content stringlengths 40 137k |
|---|
"private void saveDocumention(Item item) {\n if (item instanceof ProcessItem || item instanceof JobletProcessItem) {\n boolean isAutoSaveDocumentation = CorePlugin.getDefault().getPreferenceStore().getBoolean(ITalendCorePrefConstants.DOC_GENERATION);\n if (isAutoSaveDocumentation) {\n if (Gl... |
"protected ExecutionResult execution(File transformedAppFolder, TransformationContext transformationContext) {\n executed = true;\n try {\n attributeValue = (T) transformationContext.get(attributeName);\n return TUExecutionResult.nullResult(this);\n } catch (IllegalArgumentException | ClassCastEx... |
"ModuleDefinition copy(String URIprefix, String displayId, String version) {\n ModuleDefinition cloned = this.deepCopy();\n cloned.setWasDerivedFrom(this.getIdentity());\n cloned.setPersistentIdentity(createCompliantURI(URIprefix, displayId, \"String_Node_Str\"));\n cloned.setDisplayId(displayId);\n clon... |
"public void executing() {\n if (canceled) {\n return;\n }\n executing = true;\n queueManager.addScheduledLast(this);\n}\n"
|
"protected void configure() {\n setName(WORKFLOW_NAME);\n}\n"
|
"public boolean sendResponse(RequestID id, Message message) {\n if (requestChannels.containsKey(id)) {\n LOG.log(Level.SEVERE, \"String_Node_Str\");\n return false;\n }\n SocketChannel channel = requestChannels.get(id);\n if (!socketChannels.contains(channel)) {\n LOG.log(Level.WARNING,... |
"public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) throws IOException, ServletException {\n HttpSession httpSession = request.getSession();\n String ajaxRequestHeader = request.getHeader(\"String_Node_Str\");\n if (logger.isDebugEnabled()) {\n... |
"public Cursor queryLocal(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder, long directoryId) {\n if (VERBOSE_LOGGING) {\n Log.v(TAG, \"String_Node_Str\" + uri);\n }\n final SQLiteDatabase db = mDbHelper.getReadableDatabase();\n SQLiteQueryBuilder qb = new SQLi... |
"public void onMachineBroken() {\n super.onMachineBroken();\n if (!worldObj.isRemote) {\n this.worldObj.setBlockState(getPos(), getBlockType().getStateFromMeta(BlockAlveary.AlvearyType.PLAIN.ordinal()), 2);\n }\n}\n"
|
"public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {\n final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();\n final ResourceRoot deploymentRoot = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT);\n final ServiceModuleLoader module... |
"public void handle(THEvent event) {\n if (event == null || !handler.isAgentRegistered(this))\n return;\n if (event instanceof Duoble<?>) {\n if (event instanceof THClickEvent)\n handler.enqueueEventTuple(new EventGrabberDuobleTuple(event, clickProfile().handle((Duoble<?>) event), grabber... |
"public boolean contains(short i) {\n return (bitmap[toIntUnsigned(i) / 64] & (1l << (i % 64))) != 0;\n}\n"
|
"public boolean addAll(int index, Collection<? extends T> c) {\n try {\n boolean toRet = list.addAll(index, c);\n minModified = Math.min(minModified, index);\n maxModified = size();\n modified = true;\n return flush(toRet);\n } catch (IndexOutOfBoundsException e) {\n thro... |
"private void getAffectedElements(Set<IResource> resources, Object[] elements, IStructuredContentProvider contentProvider, List<Object> result) {\n for (Object element : elements) {\n IPath path = AdapterUtils.adapt(element, IPath.class);\n if (path == null) {\n IResource resource = AdapterU... |
"public void populateItem(final Item<ICellPopulator<NotificationTO>> cellItem, final String componentId, final IModel<NotificationTO> model) {\n final NotificationTO notificationTO = model.getObject();\n AjaxLink deleteLink = new IndicatingDeleteOnConfirmAjaxLink(\"String_Node_Str\") {\n private static fin... |
"private boolean compareListWithGoldenFile(List list, String goldenFile) throws Exception {\n boolean isIdentical = true;\n String fullGoldenFile = GOLDEN_FOLDER + goldenFile;\n InputStream is = getResourceAStream(fullGoldenFile);\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n ... |
"void createControl() {\n treeViewer = new TreeViewer(getPrimaryPanel(), SWT.MULTI | SWT.FULL_SELECTION | SWT.H_SCROLL | SWT.V_SCROLL);\n Tree tree = treeViewer.getTree();\n final GridData gridData = new GridData(GridData.FILL_BOTH);\n gridData.grabExcessHorizontalSpace = true;\n treeViewer.getControl().... |
"private Object convertValue(Element node, XMLField key, Object value) {\n XMLConversionManager xmlCnvMgr = (XMLConversionManager) session.getDatasourcePlatform().getConversionManager();\n if (key.isTypedTextField() && (node != null)) {\n String schemaType = node.getAttributeNS(XMLConstants.SCHEMA_INSTANCE... |
"public void checkCharacterTypesRuleEmptyReplace() {\n final String[] original = { \"String_Node_Str\" };\n final String[] pass_types = { \"String_Node_Str\" };\n exception.expect(TaskValidationException.class);\n checkCharacterTypesRuleInternal(original, original, pass_types, \"String_Node_Str\", \"String_... |
"private int map_en_us(KeyOrder order) {\n switch(order.event.getKeyCode()) {\n case KeyEvent.VK_ESCAPE:\n return 0xff1b;\n case KeyEvent.VK_F1:\n return 0xffbe;\n case KeyEvent.VK_F2:\n return 0xffbf;\n case KeyEvent.VK_F3:\n return 0xffc0;\n ... |
"public boolean put(String key, E value) {\n DiskLruCache.Editor editor = null;\n OutputStream os = null;\n try {\n editor = mDiskLruCache.edit(key);\n if (editor == null) {\n return false;\n }\n os = editor.newOutputStream(0);\n if (os != null) {\n fina... |
"public void setup() throws IOException {\n {\n final TcpReplicationConfig tcpReplicationConfig = TcpReplicationConfig.of(8086, new InetSocketAddress(\"String_Node_Str\", 8087)).heartBeatInterval(1, SECONDS);\n clusterA = new ReplicatingClusterBuilder((byte) 1, 1024).tcpReplication(tcpReplicationConfig... |
"public boolean onTouchEvent(MotionEvent me) {\n if (getKeyboard() == null)\n return false;\n if (areTouchesDisabled(me)) {\n return super.onTouchEvent(me);\n final int action = MotionEventCompat.getActionMasked(me);\n if (!mMiniKeyboardPopup.isShowing() && mGestureDetector != null && mGesture... |
"protected void parseRecord() {\n if (ch == newLine && skipEmptyLines) {\n return;\n }\n boolean matched = false;\n if (lookaheadFormats != null || lookbehindFormats != null) {\n if (initializeLookaheadInput) {\n initializeLookaheadInput = false;\n this.lookaheadInput = n... |
"public void testExecuteOnMembers_WhenCollectionNull() {\n final IExecutorService service = client.getExecutorService(randomString());\n final Collection<Member> collection = null;\n service.executeOnMembers(new MapPutRunnable(\"String_Node_Str\"), collection);\n}\n"
|
"public float[] getColor(Integer dimensionID, Integer recordID) {\n if (isDataHomogeneous()) {\n return getColorMapper().getColor(getNormalizedValue(dimensionID, recordID));\n } else {\n if (EDataClass.CATEGORICAL.equals(getDataClass(dimensionID, recordID))) {\n CategoricalClassDescriptio... |
"public void clear() {\n kPos = kStart;\n free = (int) (keyCapacity * loadFactor);\n size = 0;\n offsets.fill(-1);\n}\n"
|
"public void execute(HierarchicalGraph graph, AttributeModel attributeModel) {\n isCanceled = false;\n triangles(hgraph, attributeModel);\n}\n"
|
"public Rows<String, String, String> getMultiRowByRange(String columnFamilyName, String keyStart, String keyEnd, String start, String end, int maxCount) {\n RangeSlicesQuery<String, String, String> sliceQuery = HFactory.createRangeSlicesQuery(keyspace, ss, ss, ss);\n sliceQuery.setColumnFamily(columnFamilyName);\... |
"public void render(GLGraphics g, float w, float h, GLElement parent) {\n if (h < 5)\n return;\n float hi = Math.min(h, 18);\n g.drawText(r.getLabel(), x, 1 + (h - hi) * 0.5f, w - 2, hi - 2);\n}\n"
|
"public ShortPoint2D getNearestResourcePointForPlayer(ShortPoint2D point, EResourceType resourceType, byte playerId) {\n Map<Integer, List<Integer>> sortedResourcePoints = landscapeGrid.getSortedMapForResourceType(resourceType);\n return getNearestPointInDefaultPartitionOutOfSortedMap(point, sortedResourcePoints,... |
"public BatchPipelineSpec build() {\n return new BatchPipelineSpec(stages, connections, resources, driverResources, clientResources, stageLoggingEnabled, endingActions, numOfRecordsPreview);\n}\n"
|
"public static List<GraphTargetItem> checkClass(List<GraphTargetItem> output) {\n if (true) {\n }\n List<GraphTargetItem> ret = new ArrayList<GraphTargetItem>();\n List<GraphTargetItem> functions = new ArrayList<GraphTargetItem>();\n List<GraphTargetItem> staticFunctions = new ArrayList<GraphTargetItem>(... |
"public List<FileInformation> waitForReplicationToComplete(List<FileInformation> fileInfos) throws OSDDrainException {\n List<FileInformation> finishedFileInfos = new LinkedList<FileInformation>();\n List<FileInformation> toBeRemovedFileInfos = new LinkedList<FileInformation>();\n while (!fileInfos.isEmpty()) ... |
"static String message(Response response) {\n try {\n ResponseBody responseBody = response.errorBody();\n return responseBody == null ? response.message() : responseBody.string();\n } catch (IOException e) {\n return response.message();\n }\n}\n"
|
"public void runTestAndPrintResult(final IPerfTestRunner runner, final String name, final int threadCount, final String resultFile) throws Exception {\n final Histogram warmupHist = createHistogram();\n println(\"String_Node_Str\");\n final long t1 = System.nanoTime();\n final int LINES = 50000;\n int it... |
"public void run() {\n try {\n if (RouterService.acceptedIncomingConnection() && RouterService.isSupernode()) {\n byte[] addr = RouterService.getAddress();\n int port = RouterService.getPort();\n if (NetworkUtils.isValidAddress(addr) && NetworkUtils.isValidPort(port) && !Netwo... |
"public PotionEffectType getType() {\n return (PotionEffectType) Potion.potionTypes[getPotionID()];\n}\n"
|
"public void fire() {\n try {\n if (!this.isDone()) {\n this.transition.enter(AtomicMarkedState.this.parent);\n this.transition.after(AtomicMarkedState.this.parent);\n AtomicMarkedState.this.commit();\n }\n } catch (Exception t) {\n this.fireException(t);\n ... |
"public static int checkBoxIconWidth() {\n if (checkBoxIconWidth == -1) {\n Icon icon = checkBoxIcon();\n checkBoxIconWidth = (icon != null) ? icon.getIconWidth() : 0;\n Integer gap = (Integer) UIManager.get(\"String_Node_Str\");\n checkBoxIconWidth += (gap != null) ? gap.intValue() + 4 :... |
"public List<InputSplit> getSplits(JobContext context) throws IOException {\n Configuration conf = context.getConfiguration();\n SplitFile sf = new SplitFile(conf);\n TiledInputFormatContext ifContext = TiledInputFormatContext.load(conf);\n HdfsMrsImageDataProvider dp = new HdfsMrsImageDataProvider(context.... |
"private void insertIndexes(DB mongoDb, String collectionName, DBObject collection) {\n DBCollection indexedCollection = mongoDb.getCollection(collectionName);\n BasicDBList indexes = (BasicDBList) collection.get(INDEXES);\n for (Object object : indexes) {\n DBObject index = (DBObject) object;\n ... |
"private Set<?> parseSetElement(Element collectionEle, BeanDefinition bd) {\n String defaultTypeClassName = collectionEle.getAttribute(BeanDefinitionParserDelegate.VALUE_TYPE_ATTRIBUTE);\n NodeList nl = collectionEle.getChildNodes();\n ManagedSet set = new TempManagedSet(nl.getLength(), defaultTypeClassName);\... |
"public static ArrayList<Player> getEnabledPlayers(final DLNAResource resource) {\n return getPlayers(resource);\n}\n"
|
"public synchronized void put(Token t, Branch branch) {\n boolean blocked = false;\n try {\n _token = t;\n if (_isGetWaiting()) {\n _setGetWaiting(false);\n _setRendezvousComplete(false);\n notifyAll();\n while (!_isRendezvousComplete()) {\n ... |
"public VmTypeInfo populateVirtualBootRecord(VmType vmType) throws EucalyptusCloudException {\n Long imgSize = this.getMachine().getImageSizeBytes();\n if (imgSize > 1024l * 1024l * 1024l * vmType.getDisk()) {\n throw new EucalyptusCloudException(\"String_Node_Str\" + imgSize / (1024l * 1024l) + \"String_N... |
"private Properties getPersistenceProperties() throws IOException {\n Properties properties = new Properties();\n InputStream is = ClassLoader.getSystemClassLoader().getResourceAsStream(PERSISTENCE_PROPS);\n if (is == null)\n throw new IOException(\"String_Node_Str\" + PERSISTENCE_PROPS);\n try {\n ... |
"public void testOfferPoll() throws IOException, InterruptedException {\n for (int i = 0; i < 10; i++) {\n boolean result = q.offer(\"String_Node_Str\");\n if (i < 6) {\n assertTrue(result);\n } else {\n assertFalse(result);\n }\n }\n assertEquals(6, q.size());... |
"public int getHeroHealth(int playerIndex, int turn, int activePlayerIndex) {\n try {\n BoardModel boardModel = boards_.get(currentPlayerId).get(turn);\n PlayerSide playerByIndex = boardModel.getPlayerByIndex(playerId);\n PlayerSide otherPlayer = playerByIndex.getOtherPlayer();\n return b... |
"public void handleEvent(Event event) {\n EventContext ctx = event.getContext();\n if (!(ctx instanceof DocumentEventContext)) {\n return;\n }\n CoreSession session = ctx.getCoreSession();\n DocumentModel doc = ((DocumentEventContext) ctx).getSourceDocument();\n if (doc == null) {\n retu... |
"public void testErrorLibraryNeedsSave() throws Exception {\n List fileNames = new ArrayList();\n fileNames.add(INPUT_FOLDER + \"String_Node_Str\");\n fileNames.add(INPUT_FOLDER + \"String_Node_Str\");\n List filePaths = dumpDesignAndLibrariesToFile(fileNames);\n String designFilePath = (String) filePath... |
"public void startReport(IReportContent report) {\n logger.log(Level.FINE, \"String_Node_Str\");\n this.report = report;\n writer.open(out, \"String_Node_Str\");\n if (isEmbeddable) {\n fixTransparentPNG();\n return;\n }\n writer.startWriter();\n writer.openTag(HTMLTags.TAG_HTML);\n ... |
"public void setupColumnOrder() {\n stopListening();\n for (int i = 0; i < table.getColumnCount(); i++) {\n TableColumn tableColumn = table.getColumn(i);\n columns.add(tableColumn);\n }\n Collections.sort(columns, new Comparator<TableColumn>() {\n public int compare(TableColumn o1, Tabl... |
"public void fixContext() {\n if (getLibrary() == null)\n return;\n String contextID = getLibrary().getDefaultContextId();\n if (getExampleHandler() != null)\n exampleHandler.fix(null);\n if (getEquivalentHandler() != null)\n equivalentHandler.set(equivalentHandler.get(null), contextID)... |
"public boolean onKeyDown(int keyCode, KeyEvent event) {\n if (event.getRepeatCount() == 0) {\n if (keyCode == KeyEvent.KEYCODE_DPAD_RIGHT) {\n int position = adapter.getCheckedPosition();\n if (position >= 0) {\n Uri videoUri = adapter.getVideoUri(position);\n ... |
"public int compareTo(final GenomicInterval e) {\n if (e == null) {\n return -1;\n }\n if (!getChromosome().equals(e.getChromosome())) {\n return getChromosome().compareTo(e.getChromosome());\n }\n final int startComp = Integer.compare(this.start, e.getStart());\n if (startComp != 0) {\n... |
"private void dumpStackFrame(int verbosity) {\n Address start, end;\n if (VM.BuildForIA32) {\n if (prevFp.isZero()) {\n start = fp.minus(20 * BYTES_IN_ADDRESS);\n Log.writeln(\"String_Node_Str\", fp);\n } else {\n start = prevFp;\n }\n end = fp;\n } ... |
"public DataOutputView reset() {\n this.position = this.offset;\n return this;\n}\n"
|
"public void shutdown(final boolean terminate) {\n long start = Clock.currentTimeMillis();\n if (logger.isFinestEnabled()) {\n logger.finest(\"String_Node_Str\" + state);\n }\n if (!setShuttingDown()) {\n waitIfAlreadyShuttingDown();\n return;\n }\n if (!terminate) {\n fina... |
"private SelfLoopImpl createPreviewSelfLoop(GraphImpl previewGraph, org.gephi.graph.api.Edge sourceEdge) {\n org.gephi.graph.api.EdgeData sourceEdgeData = sourceEdge.getEdgeData();\n SelfLoopImpl previewSelfLoop = new SelfLoopImpl(previewGraph, sourceEdge, nodeMap.get(sourceEdge.getSource().getId()));\n previe... |
"public void actionPerformed(ActionEvent e) {\n if (LibrarySettings.SNAPSHOT_SHARING_ENABLED.getValue()) {\n } else {\n categoryShareWidget.setShareable(category);\n categoryShareWidget.show((JComponent) e.getSource());\n }\n}\n"
|
"public void contractDetails(int requestId, ContractDetails contractDetails) {\n for (TradeHandler handler : handlers) {\n handler.contractDetails(requestId, contractDetails);\n }\n}\n"
|
"protected Char chooseEnemy() {\n Char enemy = super.chooseEnemy();\n if (enemy != null && Dungeon.level.distance(enemy.pos, Dungeon.hero.pos) <= 8) {\n return enemy;\n } else {\n return null;\n }\n return enemy;\n}\n"
|
"public OPMObjectInstance getCollectionFirstElement() {\n checkTypeForCollectionOnlyOperations();\n return collectionValues.get(collectionValues.firstKey());\n}\n"
|
"public static Op optimize(Op op, RestrictionManagerImpl cnf) {\n if (op instanceof OpNull) {\n return op;\n }\n Op result = MultiMethod.invokeStatic(FilterPlacementOptimizer2.class, \"String_Node_Str\", op, cnf);\n return result;\n}\n"
|
"public static ArrayList<CurseResult> calculate(String url, ArrayList<CurseResult> list) throws Exception {\n String[] splitUrl = url.split(\"String_Node_Str\");\n if (splitUrl.length != 7 || !splitUrl[0].equals(\"String_Node_Str\") || !splitUrl[2].equals(\"String_Node_Str\") || !splitUrl[3].equals(\"String_Node_... |
"protected IndexReader openShard(String table, String shard) throws IOException {\n LOG.info(\"String_Node_Str\", shard, table);\n Path tablePath = new Path(blurBasePath, table);\n if (!exists(tablePath)) {\n throw new FileNotFoundException(tablePath.toString());\n }\n Path hdfsDirPath = new Path(... |
"public boolean progress() {\n for (Shuffle sorts : sortedMergers.values()) {\n sorts.run();\n }\n for (int i : finishedTargets) {\n if (!finishedTargetsCompleted.contains(i)) {\n finishTarget(i);\n finishedTargetsCompleted.add(i);\n }\n }\n return !finishedTarg... |
"protected void loadGenerationExtensionDefns() {\n IExtensionRegistry registry = Platform.getExtensionRegistry();\n IExtensionPoint extPoint = registry.getExtensionPoint(EXTENSION_POINT_GENERATION);\n if (extPoint == null)\n return;\n IExtension[] exts = extPoint.getExtensions();\n for (int i = 0;... |
"public RecordReader<K, V> createRecordReader(InputSplit split, TaskAttemptContext context) throws IOException, InterruptedException {\n return new StreamRecordReader<K, V>(createStreamEventDecoder(context.getConfiguration()));\n}\n"
|
"public static Object getModelValueFromCursor(Cursor cursor, TableStructure tableStructure, Field field) {\n int columnIndex = cursor.getColumnIndex(tableStructure.getColumnName(field));\n Object value = null;\n if (columnIndex >= 0 || (StructureUtils.isForeignKey(field) && ReflectionUtils.implementsModel(fiel... |
"private void removeApp(Application app, File base, ModTime mt, Payload.Outbound payload) throws URISyntaxException {\n if (logger.isLoggable(Level.FINE))\n logger.fine(\"String_Node_Str\" + mt.name + \"String_Node_Str\");\n try {\n File dir = fileOf(base, mt.name);\n removeDir(dir, payload);... |
"public static void main(String[] args) throws JATEException {\n try {\n AppATEACLRDTECTest appATETest = new AppATEACLRDTECTest(solrHome.toString(), solrCoreName);\n boolean reindex = true;\n if (args.length > 0) {\n try {\n reindex = Boolean.valueOf(args[0]);\n ... |
"private void setSpinner() {\n Spinner spinner = (Spinner) findViewById(R.id.spinnerCategory);\n final String[] spinnerItems = new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };\n spinner.setAdapter(new ArrayAdapter<String>(AccountEditor.this, android.R.layout.simple_spinner_item, ... |
"public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n RemoteMethodInfo methodInfo = remoteInterfaceInfo.methodInfoMap.get(method);\n if (methodInfo == null) {\n return invokeNonProxied(proxy, method, args);\n }\n long startTimeNs = 0;\n if (logger.isLoggable(Level.... |
"protected void populateTOSProjectList() {\n Project[] projects = null;\n if (getConnection() != null) {\n String user2 = getConnection().getUser();\n String repositoryId2 = getConnection().getRepositoryId();\n String workSpace = getConnection().getWorkSpace();\n String name = getConne... |
"private static void prepareCollectionPropertyInCellForDuplication(HSSFCell cell, String collectionName, String collectionItemName) {\n if (cell != null && cell.getCellType() == HSSFCell.CELL_TYPE_STRING) {\n String cellValue = cell.getStringCellValue();\n String newValue = replaceCollectionProperty(ce... |
"public DecimalType getProcessMemoryUsage(int pid) throws DeviceNotFoundException {\n OSProcess process = getProcess(pid);\n long memortInBytes = process.getResidentSetSize();\n long memoryInMB = getSizeInMB(memortInBytes);\n return new DecimalType(memoryInMB);\n}\n"
|
"public long getDelay(TimeUnit unit) {\n return unit.convert(canReuseTime - System.nanoTime(), TimeUnit.NANOSECONDS);\n}\n"
|
"public void onBlockPlace(BlockPlaceEvent event) {\n if (event.isCancelled())\n return;\n if (JailZoneManager.isInsideJail(event.getBlockPlaced().getLocation()) && (!Util.permission(event.getPlayer(), \"String_Node_Str\", event.getPlayer().isOp()) || Jail.prisoners.containsKey(event.getPlayer().getName()))... |
"public void updateRSSFeed() {\n if (_outputFeed == null)\n readInCurrentRSSFeed();\n _outputFeed.update();\n _numItemsSinceLastDownload = _outputFeed.getNumItemsSinceLastDownload();\n for (Category c : getCategories()) c.updateRSSFeed();\n}\n"
|
"protected VDI cloudVDIcopy(Connection conn, VDI vdi, SR sr, int wait) throws Exception {\n Task task = null;\n if (wait == 0) {\n wait = 2 * 60 * 60;\n }\n try {\n task = vdi.copyAsync(conn, sr);\n waitForTask(conn, task, 1000, (long) wait * 1000);\n checkForSuccess(conn, task);... |
"public static RecordType entryTypeToRecordType(FSEntry entry) {\n if (entry instanceof FSFile) {\n return RecordType.FILE;\n else if (entry instanceof FSFolder)\n return RecordType.FOLDER;\n else\n throw new IllegalArgumentException(\"String_Node_Str\" + entry.getClass());\n}\n"
|
"private void doSaveRecord() {\n RecordModel rm = new RecordModel();\n rm.setType(type);\n rm.setText(content);\n rm.setFile(photo == null ? \"String_Node_Str\" : photo.toString());\n rm.setReply(inReplyToStatusId);\n getContentResolver().insert(StatusUpdateInfoColumns.CONTENT_URI, rm.values());\n}\n"... |
"public void scrollNext() {\n int i = 0;\n int scrollX = getScrollX();\n int targetX = scrollX;\n final int count = Math.min(mSuggestions.size(), MAX_SUGGESTIONS);\n int rightEdge = scrollX + getWidth();\n while (i < count) {\n if (mWordX[i] <= rightEdge && mWordX[i] + mWordWidth[i] >= rightEdg... |
"private List<Transaction> maybeRotateKeys(KeyParameter aesKey, boolean sign) throws DeterministicUpgradeRequiresPassword {\n checkState(lock.isHeldByCurrentThread());\n List<Transaction> results = Lists.newLinkedList();\n long keyRotationTimestamp = vKeyRotationTimestamp;\n if (keyRotationTimestamp == 0)\n... |
"public void run() {\n Button add = new Button(HookMethods.SnapContext);\n add.setText(\"String_Node_Str\");\n add.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));\n boolean shouldShowAdd = true;\n if (Groups.groups.size() == 3 && Pref... |
"public void init(GLAutoDrawable gLDrawable) {\n _gl = gLDrawable.getGL();\n _gl.glEnable(GL.GL_BLEND);\n _gl.glEnable(GL.GL_LINE_SMOOTH);\n _gl.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA);\n _gl.glLineWidth((float) 2.0);\n _gl.glPointSize((float) 2.0);\n _gl.glClearColor(0.0f, 0.0f, 0.... |
"boolean finalLaunchCheck(final ILaunchConfiguration configuration, String mode, IProgressMonitor monitor) throws CoreException {\n paramValues = new HashMap();\n LauncherEngineConfig engineConfig = new LauncherEngineConfig();\n IReportEngineFactory factory = (IReportEngineFactory) Platform.createFactoryObject... |
"private void parseDataDirOptions(CommandLine cmd, String baseDatadirPath) {\n if (cmd.hasOption(ClientTestStrings.DATA_DIR)) {\n setDataDir(FileUtils.resolveAgainstBasePath(cmd.getOptionValue(ClientTestStrings.DATA_DIR), baseDatadirPath));\n }\n if (getDataDir() == null) {\n setDataDir((!StringU... |
"public void handle(Message<JsonObject> res) {\n if (\"String_Node_Str\".equals(res.body().getString(\"String_Node_Str\"))) {\n JsonObject r = res.body().getObject(\"String_Node_Str\", new JsonObject());\n if (r.getObject(\"String_Node_Str\", new JsonObject()).size() > 0) {\n handler.handle(... |
"private Class<?> load(String className) {\n className = getFullClassName(className);\n try {\n return getClassLoader().loadClass(className);\n } catch (ClassNotFoundException e) {\n LOG.warn(\"String_Node_Str\", className);\n }\n return null;\n}\n"
|
"public void deployModules(Collection<ModuleNeeded> modules, IProgressMonitor monitorWrap) {\n boolean modified = false;\n LibrariesIndex index = LibrariesIndexManager.getInstance().getStudioLibIndex();\n EMap<String, String> jarsToRelativePath = index.getJarsToRelativePath();\n Map<String, String> customUr... |
"public AbstractRecord buildRow(AbstractRecord record, Object object, org.eclipse.persistence.internal.sessions.AbstractSession session, XMLMarshaller marshaller) {\n if (null == getRootXPathNode().getNonAttributeChildren()) {\n return record;\n }\n XMLDescriptor xmlDescriptor = (XMLDescriptor) this.des... |
"public String[] getDevices() {\n return monomesMap.keySet().toArray(new String[0]);\n}\n"
|
"private String parseParams(Object[] args) {\n if (args == null || args.length == 0) {\n return \"String_Node_Str\";\n }\n StringBuilder stringBuilder = new StringBuilder();\n for (Object temp : args) {\n if (temp == null) {\n temp = \"String_Node_Str\";\n }\n String t... |
"static void unbox(MethodVisitor mv, String sname, Wrapper wt) {\n mv.visitMethodInsn(Opcodes.INVOKESTATIC, sname, NAME_UNBOX_METHOD, unboxingDescriptor(wt), false);\n}\n"
|
"public BufferedImage getFrameAsBufferedImageEx(InputStream is) throws Exception {\n BufferedImage bi = getFrameAsBufferedImage(is);\n if (bi == null)\n return null;\n if (baseImage == null)\n baseImage = new BufferedImage(logicalScreenWidth, logicalScreenHeight, BufferedImage.TYPE_INT_ARGB);\n ... |
"public Pony importPony() throws IOException {\n if (this.version == VERSION_COWSAY)\n return this.importCow();\n boolean[] PLAIN = new boolean[9];\n Color[] colours = new Color[256];\n boolean[] format = plain;\n Color background = null, foreground = null;\n for (int i = 0; i < 256; i++) {\n ... |
"public void run() {\n try {\n while (alive && mainThread.isAlive()) {\n if (scanner.hasNext()) {\n String input = scanner.next();\n if (input.equals(\"String_Node_Str\") || input.equals(\"String_Node_Str\")) {\n alive = false;\n } els... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.