content stringlengths 40 137k |
|---|
"public String getIconName(Object model) {\n assert (model instanceof EmbeddedImageHandle);\n EmbeddedImageHandle image = (EmbeddedImageHandle) model;\n return IReportGraphicConstants.ICON_ELEMENT_IMAGE;\n}\n"
|
"public void dump() {\n if (!log.isDebugEnabled())\n return;\n StringBuilder sb = new StringBuilder();\n synchronized (channels) {\n for (RemoteAddress address : channels.keySet()) {\n sb.append(\"String_Node_Str\");\n sb.append(i);\n sb.append(\"String_Node_Str\"... |
"protected boolean shouldDrawAt(ShortPoint2D current) {\n return current.x % 2 == 0 && current.y % 2 != 0;\n}\n"
|
"public static String getUnitString(int unit, boolean speedUnit) {\n String unitString;\n switch(unit) {\n case BYTE_UNIT:\n unitString = B;\n break;\n case KILOBYTE_UNIT:\n unitString = KB;\n break;\n case MEGA_BYTE_UNIT:\n unitString = ... |
"public static BooleanGrid union(BooleanGrid d, BooleanGrid e) {\n BooleanGrid result = union(d, e, d.att);\n if (result != nothingThere && d.att != e.att)\n Debug.e(\"String_Node_Str\" + d.attribute().getMaterial() + \"String_Node_Str\" + e.attribute().getMaterial());\n return union(d, e, d.att);\n}\n"... |
"private Buffer requestBufferInternal(final int minimumSizeOfBuffer, final boolean block) throws IOException, InterruptedException {\n if (minimumSizeOfBuffer > this.maximumBufferSize) {\n throw new IllegalArgumentException(\"String_Node_Str\" + minimumSizeOfBuffer + \"String_Node_Str\" + this.maximumBufferSi... |
"public String getIntactElemenetName() {\n if (currentModelElement == null) {\n currentModelElement = getCurrentModelElement(getEditor());\n }\n return DqRepositoryViewService.buildElementName(getProperty());\n}\n"
|
"private void processRollupForFIFiles(String localFsFolder) {\n try {\n FileSystem fs = ShifuFileUtils.getFileSystemBySourceType(SourceType.LOCAL);\n if (!fs.isDirectory(new Path(localFsFolder))) {\n return;\n }\n FileStatus[] fss = fs.listStatus(new Path(localFsFolder));\n ... |
"public void testBasicSetupEncoder_AUTO_MODE() {\n Sensor<File> sensor = Sensor.create(FileSensor::create, SensorParams.create(Keys::path, \"String_Node_Str\", ResourceLocator.path(\"String_Node_Str\")));\n Parameters p = NetworkTestHarness.getParameters();\n p = p.union(NetworkTestHarness.getHotGymTestEncoder... |
"void onCdmaCallWaitingReject() {\n final Call ringingCall = mPhone.getRingingCall();\n if (ringingCall.getState() == Call.State.WAITING) {\n Connection c = ringingCall.getLatestConnection();\n if (c != null) {\n final String number = c.getAddress();\n final int presentation = ... |
"public void changed(String name) {\n if (_parameters.containsKey(name)) {\n Variable var = (Variable) (_parameters.get(name));\n if (((Boolean) _ignoreEntryChange.get(name)).booleanValue() == false) {\n _ignoreValueChanged = _ignoreValueChanged + 1;\n if (_constructorDirector == ... |
"public void run(boolean showAll) {\n Resource<?> resource = shell.getCurrentResource();\n int width = shell.getWidth();\n List<Resource<?>> childResources = resource.listResources(resourceFactory);\n List<String> listData = new LinkedList<String>();\n int maxLength = 0;\n String el;\n for (Resourc... |
"public void mouseDown(MouseEvent e) {\n if (!isValidateRowCount()) {\n MessageDialog.openWarning(null, DefaultMessagesImpl.getString(\"String_Node_Str\"), DefaultMessagesImpl.getString(\"String_Node_Str\"));\n } else {\n ModelElementIndicator[] result = treeViewer.openIndicatorSelectDialog(ColumnMa... |
"public void reset() {\n mPasswordEntry.setText(\"String_Node_Str\");\n mPasswordEntry.requestFocus();\n long deadline = mLockPatternUtils.getLockoutAttemptDeadline();\n if (shouldLockout(deadline)) {\n handleAttemptLockout(deadline);\n } else {\n resetState();\n }\n}\n"
|
"public void testComplexContradictingEventsFail() {\n List jesse = Arrays.asList(new Character[] { new Character('J'), new Character('E'), new Character('S'), new Character('S'), new Character('E') });\n List wilson = Arrays.asList(new Character[] { new Character('W'), new Character('I'), new Character('L'), new ... |
"protected boolean _parseArg(String arg) throws Exception {\n if (arg.equals(\"String_Node_Str\")) {\n _expectingClass = true;\n } else if (arg.equals(\"String_Node_Str\")) {\n System.out.println(_usage());\n StringUtilities.exit(0);\n } else if (arg.equals(\"String_Node_Str\")) {\n ... |
"public void addJPAEdmAssociationView(JPAEdmAssociationView associationView) {\n currentAssociation = associationView.getEdmAssociation();\n consistentAssociatonList.add(currentAssociation);\n}\n"
|
"public void setMaximumDepth(int maxDepth) {\n if (dataTypesTable != null && maxDepth > dataTypesTable.length) {\n dataTypesTable = null;\n }\n this.maxDepth = maxDepth;\n}\n"
|
"public void clear() {\n setSessionID(\"String_Node_Str\");\n setUserName(\"String_Node_Str\");\n setProjectName(\"String_Node_Str\");\n setCaseName(\"String_Node_Str\");\n setCurrentView(\"String_Node_Str\");\n setAuthenticated(null);\n setSiteAdministrator(false);\n setAccountLocked(false);\n ... |
"private void visit(IMethodModel m, String annotationValue) {\n boolean hasPath = m.hasAnnotation(PATH);\n if (hasPath) {\n String annotationValue2 = m.getAnnotationValue(PATH);\n if (annotationValue.endsWith(\"String_Node_Str\")) {\n if (annotationValue2.startsWith(\"String_Node_Str\")) ... |
"public void onDataSetChanged() {\n eventEntries.clear();\n ArrayList<EventEntry> events = new ArrayList<EventEntry>();\n for (int i = 0; i < eventProviders.size(); i++) {\n eventEntries.addAll(eventProviders.get(i).getEventEntries());\n }\n updateEntryList(eventEntries);\n}\n"
|
"public boolean isLadder(EntityLivingBase entity) {\n return mySide.offsetY == 0 && entity.isCollidedHorizontally;\n}\n"
|
"protected static Pattern getPattern(IFile file) {\n EMFUtil util = EMFUtil.getInstance();\n Resource resource = util.getResourceSet().getResource(URI.createPlatformResourceURI(file.getFullPath().toString()), true);\n Pattern pattern = (Pattern) EcoreUtil.getObjectByType(resource.getContents(), PatternPackage.... |
"public void destroy() {\n if (debugger != null) {\n List<Context> list = contexts.remove(application);\n if (list != null && list.size() > 0) {\n Context[] array;\n synchronized (list) {\n array = list.toArray(new Context[list.size()]);\n list.clear(... |
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (mRootView == null) {\n mRootView = inflater.inflate(R.layout.weather_fragment, container, false);\n initViews(mRootView);\n isPrepared = true;\n isLoaded = false;\n if (isVisi... |
"public Control createControl(Composite subComposite, IElementParameter param, int numInRow, int nbInRow, int top, Control lastControl) {\n FormData data;\n CLabel labelLabel;\n if (param.getValue().equals(\"String_Node_Str\")) {\n labelLabel = getWidgetFactory().createCLabel(subComposite, param.getDisp... |
"public void handle(ExceptionMessage muleMsg) {\n try {\n Object requestMsg = muleMsg.getPayload();\n String requestString = requestMsg.toString();\n BaseMessage msg = (BaseMessage) BindingManager.getDefaultBinding().fromOM(requestString);\n Throwable ex = muleMsg.getException().getCause(... |
"public V get(K key, ExpiryPolicy expiryPolicy) {\n final Future<V> f = getAsync(key, expiryPolicy);\n try {\n return toObject(f.get());\n } catch (Throwable e) {\n throw ExceptionUtil.rethrowAllowedTypeFirst(e, CacheException.class);\n }\n}\n"
|
"public void onSuccess(HttpResponse<ArrayList<Event>> response) {\n mView.hideLoading();\n correctEvent(response.body());\n if (events == null || isReload || readCacheFirst) {\n events = response.body();\n } else {\n events.addAll(response.body());\n }\n if (response.body().size() > 0) {... |
"public void deleteFiles(ArrayList<Layoutelements> a, final Main b, List<Integer> pos, AppTheme appTheme) {\n final MaterialDialog.Builder c = new MaterialDialog.Builder(b.getActivity());\n c.title(b.getResources().getString(R.string.confirm));\n int fileCounter = 0, dirCounter = 0;\n final ArrayList<BaseFi... |
"public void buildCellStyle(ICellContent cell, StringBuffer styleBuffer, boolean isHead) {\n if (HTMLRenderOption.LAYOUT_PREFERENCE_FIXED.equals(layoutPreference)) {\n styleBuffer.append(\"String_Node_Str\");\n }\n IStyle style = getElementStyle(cell);\n IStyle cellMergedStyle = new CellMergedStyle(c... |
"public Data getData() throws DataProcessingException {\n Data data = getPredecessor().getData();\n if (data instanceof DataStartSignal)\n sampleRate = ((DataStartSignal) data).getSampleRate();\n if (data instanceof DataStartSignal || (data instanceof SpeechStartSignal && captureUtts)) {\n baos =... |
"public void moveTo(Session session, int newPos) throws SQLException {\n PageStore store = index.getPageStore();\n readAllRows();\n PageBtreeLeaf p2 = PageBtreeLeaf.create(index, newPos, parentPageId);\n store.logUndo(this, data);\n store.logUndo(p2, null);\n p2.rows = rows;\n p2.entryCount = entry... |
"private final void renderResource(ResourceContext resourceContext, Output output) {\n String httpUrl = ResourceUtils.getHttpUrlWithQueryString(resourceContext);\n MultipleOutput multipleOutput = new MultipleOutput();\n multipleOutput.addOutput(output);\n CachedResponse cachedResource = null;\n Resource ... |
"public void load(File file) {\n if (file == null || !file.exists()) {\n throw new IllegalArgumentException(\"String_Node_Str\" + file.getName() + \"String_Node_Str\");\n }\n try {\n this.load(source.openStream());\n } catch (IOException e) {\n throw new IllegalStateException(\"String_N... |
"public void fire() throws IllegalActionException {\n super.fire();\n url.update();\n if (input.hasToken(0)) {\n RecordToken record = (RecordToken) input.get(0);\n if (_debugging) {\n _debug(\"String_Node_Str\" + record);\n }\n StringBuffer data = new StringBuffer();\n ... |
"public void run() {\n try {\n final boolean fullSync = !Hosts.isCoordinator() && host.isLocalHost() && BootstrapArgs.isCloudController() && !Databases.isSynchronized();\n final boolean passiveSync = !fullSync && host.hasSynced();\n if (!fullSync && !passiveSync) {\n throw Exceptions.... |
"private void updateDialogByNotification(QBChatMessage chatMessage) {\n String dialogId = chatMessage.getProperty(ChatNotificationUtils.PROPERTY_DIALOG_ID);\n String lastMessage = ChatNotificationUtils.getBodyForUpdateChatNotificationMessage(context, chatMessage);\n QBDialog dialog = ChatDatabaseManager.getDia... |
"public void setRunning(AtomicBoolean running) {\n _exitObject.set(running);\n}\n"
|
"public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) {\n if (!worldIn.isRemote) {\n ItemStack stack = playerIn.getHeldItem(hand);\n if (!ItemStackUtil.isEmpty(stack) && FluidLib.hasF... |
"protected void initConnectionParametersWithContext(IElement element, IContext context) {\n if (connParameters == null) {\n connParameters = new ConnectionParameters();\n }\n String dbType = connParameters.getDbType();\n Object value = elem.getPropertyValue(\"String_Node_Str\");\n IElementParamete... |
"final <KB, KBI, MKBI extends MetaBytesInterop<KB, ? super KBI>, E, EW> long putEntry(SegmentState segmentState, MKBI metaKeyInterop, KBI keyInterop, KB key, long keySize, MetaBytesWriter<E, ? super EW> metaElemWriter, EW elemWriter, E elem, MultiStoreBytes entry, boolean writeDefaultInitialReplicationValues) {\n lo... |
"public static List<Source> parseSources(String raw, PulseaudioClient client) {\n List<Source> sources = new ArrayList<Source>();\n String[] parts = raw.split(\"String_Node_Str\");\n if (parts.length <= 1) {\n return sources;\n }\n for (int i = 1; i < parts.length; i++) {\n String[] lines =... |
"public void accept(int hash, int pos) {\n final long offset = offsetFromPos(pos);\n final NativeBytes entry = entry(offset);\n if (isNewer(entry, timeStamp)) {\n entryModifiableCallback.set(index, pos);\n}\n"
|
"private void updateCurrentCharset(String currentLine) {\n if (currentLine != null) {\n if (currentLine.startsWith(HttpHeader.CONTENT_TYPE)) {\n String clValue = currentLine.substring(13, currentLine.length() - 2).trim();\n ContentType ct = ContentType.parse(clValue);\n if (ct... |
"private static void addContextForHadoopElementParameters(final IProcess2 process, final ConnectionItem connItem, List<? extends IElementParameter> elementParameters, final EComponentCategory category, final boolean ignoreContextMode) {\n IHadoopClusterService hadoopClusterService = null;\n if (GlobalServiceRegis... |
"public void refresh() {\n try {\n new WorkspaceModifyOperation() {\n protected void execute(IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException {\n IProject project = getResource();\n project.touch(null);\n }\n ... |
"public static AbstractClusterMonitor getClusterMonitor(ParentComponentMonitor parentMonitor, ClusterChildContext context, String appId) throws PolicyValidationException, PartitionValidationException, TopologyInConsistentException {\n String clusterId = context.getId();\n String serviceName = context.getServiceNa... |
"public RuleClass build(RuleClass.Builder builder, final RuleDefinitionEnvironment env) {\n return builder.add(attr(\"String_Node_Str\", STRING).allowedValues(new AllowedValueSet(AndroidManifestMerger.getAttributeValues())).value(AndroidManifestMerger.getRuleAttributeDefault())).add(attr(\"String_Node_Str\", STRING_... |
"public void initialize() throws IllegalActionException {\n for (int i = 0; i < _forward.length; i++) {\n _forward[i] = 0.0;\n _forwardCache[i] = 0.0;\n _backward[i] = 0.0;\n _backwardCache[i] = 0.0;\n }\n}\n"
|
"private Map<String, PersistenceUnitMetadata> findPersistenceMetadatas() throws InvalidConfigurationException {\n Enumeration<URL> xmls = null;\n try {\n xmls = Thread.currentThread().getContextClassLoader().getResources(\"String_Node_Str\");\n } catch (IOException ioex) {\n log.warn(\"String_Nod... |
"public void update(Rider rider) {\n if (rider.hasGoal()) {\n if (rider.getGoal().isGoalDone()) {\n setStopGoal(rider);\n }\n rider.getGoal().executeUpdate(rider);\n }\n}\n"
|
"protected void doRun() {\n final IWorkspaceRunnable op = new IWorkspaceRunnable() {\n\n public IStatus runInUIThread(IProgressMonitor monitor) {\n monitor.beginTask(\"String_Node_Str\", 100);\n if (nodes == null) {\n nodes = (List<RepositoryNode>) selection.toList();\n ... |
"public String[] getEnvironments() {\n ContextEnvironment[] envs = getNamingResources().findEnvironments();\n List<String> results = new ArrayList<String>();\n for (ContextEnvironment env : envs) {\n try {\n ObjectName oname = createObjectName(env);\n results.add(oname.toString());... |
"public static void updateColumnCacheAfterCleanRs(DataSetHandle dataSetHandle) throws SemanticException {\n if (dataSetHandle instanceof OdaDataSetHandle) {\n if (dataSetHandle.getPropertyHandle(OdaDataSetHandle.RESULT_SET_PROP).isLocal())\n dataSetHandle.getPropertyHandle(OdaDataSetHandle.RESULT_S... |
"private Container ilazyorToRun(ArrayContainer x) {\n if (isFull())\n return this.clone();\n final int nbrruns = this.nbrruns;\n final int offset = Math.max(nbrruns, x.getCardinality());\n ensureCapacity(offset + nbrruns);\n copyValuesLength(this.valueslength, 0, this.valueslength, offset, nbrruns... |
"public Templates logger(Appendable logger) {\n return new Templates((s, r) -> {\n try {\n return missing.apply(s, r);\n } catch (Exception e) {\n logger.append(format(\"String_Node_Str\", s, e.getMessage()));\n return (instance, appendable) -> appendable;\n }\n ... |
"public Object getValue(int fieldIndex) throws BirtException {\n Object value = it.getValue(this.metadata.getFieldName(fieldIndex));\n if (value == null) {\n return this.metadata.getNullValueReplacer(fieldIndex);\n }\n return value;\n}\n"
|
"public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {\n changeDomTree(tree, \"String_Node_Str\");\n}\n"
|
"public void testContent() throws IOException {\n IReportContent rContent = new ReportContent();\n IContent content1 = rContent.createContainerContent();\n IContent content2 = rContent.createContainerContent();\n content1.setName(\"String_Node_Str\");\n content1.setHelpText(\"String_Node_Str\");\n Byt... |
"public void onRightClick(Player player, HumanNPC npc) {\n if (player.getItemInHand().getTypeId() == Constants.evilNPCTameItem) {\n if (new Random().nextInt(100) <= Constants.evilNPCTameChance) {\n setTame(true);\n npc.setEvil(false);\n CreatureTask.despawn(CreatureTask.getCre... |
"private InputStream getResponseStream(HttpURLConnection con) throws IOException {\n long dataSizeGuess = setContentLengthProps(con);\n BitCache cache = BitCacheFactory.getCache(context, dataSizeGuess);\n cache.initializeCache();\n OutputStream cacheOut = cache.getCacheStream();\n AndroidStreamUtil.write... |
"public void onUpdateResult(ReaderActions.UpdateResult result, int numNewPosts) {\n if (!hasActivity()) {\n AppLog.w(T.READER, \"String_Node_Str\");\n return;\n }\n setIsUpdating(false, updateAction);\n if (result == ReaderActions.UpdateResult.CHANGED && numNewPosts > 0 && isCurrentTag(tagName... |
"public List<Path> flushSnapshot(MemStoreSnapshot snapshot, long cacheFlushId, MonitoredTask status, ThroughputController throughputController) throws IOException {\n ArrayList<Path> result = new ArrayList<Path>();\n int cellsCount = snapshot.getCellsCount();\n if (cellsCount == 0)\n return result;\n ... |
"public void testVerifyFetchGroups() {\n if (isWeavingEnabled()) {\n ClassDescriptor hockeyGearDescriptor = getServerSession().getDescriptor(HockeyGear.class);\n FetchGroupManager hockeyGearFetchGroupManager = hockeyGearDescriptor.getFetchGroupManager();\n assertTrue(\"String_Node_Str\", hockeyG... |
"private void evaluateTriggerable(Triggerable t, TreeReference anchorRef) {\n TreeReference contextRef = t.contextRef.contextualize(anchorRef);\n Vector<TreeReference> v = exprEvalContext.expandReference(contextRef);\n for (int i = 0; i < v.size(); i++) {\n EvaluationContext ec = new EvaluationContext(e... |
"public <T> T invoke(Context context, Class<T> classOfT) {\n T t = null;\n try {\n t = xmlMapper.readValue(context.getInputStream(), classOfT);\n } catch (JsonParseException | JsonMappingException e) {\n logger.error(\"String_Node_Str\", e);\n } catch (IOException e) {\n logger.error(\"... |
"public Set<File> classpath() {\n SourceSet sourceSet = sourceSet(project);\n Set<File> cp = new LinkedHashSet<>(sourceSet.getResources().getSrcDirs());\n cp.addAll(sourceSet.getRuntimeClasspath().getFiles());\n Configuration provided = project.getConfigurations().findByName(\"String_Node_Str\");\n if (p... |
"private List<Collection<Resource>> trackNodesInCycles(Set<Resource> nodesInCycles) {\n List<Collection<Resource>> ret = new ArrayList<>();\n List<Set<Resource>> stronglyConnectedSets = new StrongConnectivityInspector<>(hierarchyGraph).stronglyConnectedSets();\n for (Resource node : nodesInCycles) {\n f... |
"public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) {\n if (!(sender instanceof Player)) {\n sender.sendMessage(MessageUtils.mustBeIngameMessage);\n return true;\n }\n Player player = (Player) sender;\n HumanNPC npc = null;\n boolean returnva... |
"private Orders transformToOrderEntityBean(OrderBean formBean) {\n Orders entity = new Orders();\n Client client = clientService.findClientById(getClientId().toString());\n entity.setClient(client);\n entity.setOrderDate(new Date());\n entity.setServiceRequirement(formBean.getServiceRequirement());\n ... |
"protected void drawTable(TableArea table) {\n if (table.needClip()) {\n render.startClip(table);\n }\n currentX += getX(table);\n currentY += getY(table);\n updateRenderXY();\n parseTableExtraSpanRows(table);\n startTable(table);\n iterateOnRows(table);\n if (table.needClip()) {\n ... |
"public boolean onPrepareOptionsMenu(Menu menu) {\n super.onCreateOptionsMenu(menu);\n if (advanced) {\n if (!basicOn) {\n menu.removeItem(MODE_ADVANCED);\n menu.add(0, MODE_BASIC, 0, \"String_Node_Str\").setIcon(android.R.drawable.ic_menu_help);\n advancedOn = false;\n ... |
"protected void onPostExecute(Bitmap result) {\n if (result != null) {\n if (bmImage != null)\n bmImage.setImageBitmap(result);\n if (cachedMap != null && appId != null)\n cachedMap.put(appId, result);\n }\n}\n"
|
"private boolean getDown(int max) {\n int count = 0;\n for (DatenDownload datenDownload : this) {\n Start s = datenDownload.start;\n if (s != null) {\n if (s.status == Start.STATUS_RUN) {\n ++count;\n if (count >= max) {\n return false;\n ... |
"public synchronized void setCapacity(int capacity) {\n if (this.capacity == capacity) {\n return;\n }\n this.capacity = checkCapacity(capacity);\n if (this.capacity != 0) {\n Map<MapGeneratorJob, File> newMap = createMap(this.capacity);\n if (this.map != null) {\n newMap.put... |
"public int hashCode() {\n return getAddress().toLowerCase().hashCode();\n}\n"
|
"private void sectorErase(int address) {\n writeStatus(SECTOR_ERASE_MILLIS);\n int sectorAddress = address & 0xf0000;\n loadedAddress = -1;\n for (int i = 0; i < buffer.length; i++) {\n buffer[i] = (byte) 0xff;\n }\n blockWriteAddress = sectorAddress;\n for (int i = 0; i < 0x100; i++) {\n ... |
"public void attachContainerWithoutTTY() throws Exception {\n String snippet = \"String_Node_Str\";\n CreateContainerResponse container = dockerClient.createContainerCmd(\"String_Node_Str\").withCmd(\"String_Node_Str\", snippet).withTty(false).exec();\n LOG.info(\"String_Node_Str\", container.toString());\n ... |
"public void endFunctionDef() {\n functionDefs.pop();\n}\n"
|
"protected void setupProxies() {\n if (proxy == null) {\n try {\n proxy = ProxySetupHelper.getSocksProxy(getRemoteFileURL());\n if (proxy == null) {\n proxy = ProxySetupHelper.getProxy(getRemoteFileURL().toExternalForm());\n }\n } catch (NoClassDefFoundEr... |
"public void testEndToEndSmartDiff_SomeChange() {\n com.google.gwt.valuestore.server.SimpleFoo.reset();\n try {\n JSONObject foo = fetchVerifyAndGetInitialObject();\n SimpleFoo fooResult = SimpleFoo.getSingleton();\n fooResult.setUserName(\"String_Node_Str\");\n fooResult.setIntId(45);... |
"public Object getValueAt(final int rowIndex, final int columnIndex) {\n if (this.layer instanceof HopfieldLayer) {\n if (columnIndex == 0) {\n return \"String_Node_Str\" + (rowIndex + 1);\n }\n return \"String_Node_Str\" + (rowIndex + 1);\n }\n return \"String_Node_Str\" + this... |
"public BigDecimal getMinSalePrice(PurchaseOrder purchaseOrder, PurchaseOrderLine purchaseOrderLine) throws AxelorException {\n Product product = purchaseOrderLine.getProduct();\n TaxLine saleTaxLine = accountManagementService.getTaxLine(purchaseOrder.getOrderDate(), purchaseOrderLine.getProduct(), purchaseOrder.... |
"public Object eval(DataInstance model, EvaluationContext evalContext) {\n String name = id.toString();\n Object[] argVals = new Object[args.length];\n Hashtable funcHandlers = evalContext.getFunctionHandlers();\n if (name.equals(\"String_Node_Str\") && args.length == 3) {\n return ifThenElse(model, ... |
"public void run() {\n User user = getUser();\n for (AnnotationLayer layer : annoService.listAnnotationLayer(getProject())) {\n if (!layer.isEnabled()) {\n continue;\n }\n List<Recommender> recommenders = recommendationService.listRecommenders(layer);\n if (recommenders == n... |
"public int peel(byte[] buffer, int start, int bytesAvailable) {\n if (bytesAvailable < 30) {\n return 0;\n }\n if (buffer[start] != '#') {\n return 1;\n }\n if (buffer[start + 1] != 'Y') {\n return 1;\n }\n if (buffer[start + 2] != 'P') {\n return 1;\n }\n if (buf... |
"private void updateSuppression(NotificationGroup group) {\n if (group == null || mUpdatingSuppressionBlocked) {\n return;\n }\n boolean prevSuppressed = group.suppressed;\n group.suppressed = group.summary != null && !group.expanded && (group.children.size() == 1 || (group.children.size() == 0 && gr... |
"private List<StudentAttributes>[] separateStudents(List<StudentAttributes> students) {\n if (students == null)\n return new List[6];\n List<StudentAttributes>[] lists = new List[6];\n int prevIdx = 0;\n int nextIdx = 0;\n int id = 0;\n for (StudentAttributes student : students) {\n if (... |
"public static List unpackPushEPs(byte[] data) throws BadPacketException {\n List ret = new LinkedList();\n DataInputStream dais = new DataInputStream(is);\n while (dais.available() > 0) ret.add(PushEndpoint.fromBytes(dais));\n return Collections.unmodifiableList(ret);\n}\n"
|
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setRetainInstance(true);\n dbConn = new DatabaseConnection(getActivity());\n if (getArguments() != null) {\n if (getArguments().containsKey(NewsReaderListActivity.SUBSCRIPTION_ID)) {\n idFeed = getAr... |
"public void removedService(ServiceReference arg0, Object arg1) {\n String key = ((String[]) arg0.getProperty(Constants.OBJECTCLASS))[0];\n if (serviceMap.containsKey(key)) {\n serviceMap.remove(key);\n sc--;\n }\n if (!(thread == null) && !thread.isInterrupted() && !(runnable instanceof Unman... |
"private static String persist(Map<String, ?> map) {\n DataBundle bundle = new DataBundle();\n int count = 0;\n Set<String> set = map.keySet();\n Iterator<String> itr = set.iterator();\n String type = \"String_Node_Str\";\n for (Map.Entry<String, ?> entry : map.entrySet()) {\n String key = entr... |
"public void testPropertyDuplication() {\n DefaultFeatureType city = city();\n city = new DefaultFeatureType(name(\"String_Node_Str\"), false, new DefaultFeatureType[] { city() }, city.getProperty(\"String_Node_Str\"));\n assertPropertiesEquals(city, false);\n assertPropertiesEquals(city, true, \"String_Nod... |
"public Object convertFromEObj2Bean(EObject eObj) {\n EClass eCls = eObj.eClass();\n Class beanCls = (Class) classMap.getKey(eCls);\n if (beanCls != null) {\n try {\n Object bean = beanCls.newInstance();\n Map<Field, Method[]> beanFieldMap = beanClassUtil.findFieldMap(beanCls);\n ... |
"public void onClick(DialogInterface dialog, int id) {\n if (mUploadingMediaProgressMax.containsKey(localMediaId)) {\n mEditorFragmentListener.onMediaUploadCancelClicked(localMediaId);\n switch(mediaType) {\n case IMAGE:\n content.removeMedia(mTappedImagePredicate);\n ... |
"protected void create(List<TableInfo> tableInfos) {\n for (TableInfo tableInfo : tableInfos) {\n DBObject options = setCollectionProperties(tableInfo);\n getDBName();\n DB db = mongo.getDB(databaseName);\n if (db.collectionExists(tableInfo.getTableName())) {\n db.getCollection... |
"protected Object openDialogBox(Control cellEditorWindow) {\n ITDQPatternService service = null;\n if (GlobalServiceRegister.getDefault().isServiceRegistered(ITDQPatternService.class)) {\n service = (ITDQPatternService) GlobalServiceRegister.getDefault().getService(ITDQPatternService.class);\n }\n if... |
"private Pair<String, List<SqlStatement.Type>> makeKeysSql(DataSource dataSource) {\n SqlQuery sqlQuery = SqlQuery.newQuery(dataSource, \"String_Node_Str\" + hierarchy);\n RolapLevel[] levels = (RolapLevel[]) hierarchy.getLevels();\n for (RolapLevel level : levels) {\n if (level.isAll()) {\n ... |
"public static String getClassName(InputStream input) throws IOException {\n DataInputStream data = new DataInputStream(input);\n int cookie = data.readInt();\n if (cookie != 0xCAFEBABE) {\n return null;\n }\n data.readInt();\n ConstantPool constants = new ConstantPool(data);\n Object[] valu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.