content stringlengths 40 137k |
|---|
"void readPropertyValues() {\n final ValueResolver placeHolderResolver = new PlaceHolderResolver();\n this.profileEnable = readBoolean(\"String_Node_Str\", true);\n this.collectorSpanServerIp = readString(\"String_Node_Str\", DEFAULT_IP, placeHolderResolver);\n this.collectorSpanServerPort = readInt(\"Strin... |
"public void unlockTxApprove(String txHash, long rockTime) {\n boolean b = true;\n int index = 0;\n while (b) {\n UtxoOutput output = ledgerCacheService.getUtxo(txHash + \"String_Node_Str\" + index);\n if (output != null) {\n if (rockTime > 0) {\n if (OutPutStatusEnum.UT... |
"public static Object cloneSource(Object source) {\n source = unwrapToModel(source);\n if (source instanceof Object[]) {\n Object[] array = (Object[]) source;\n ArrayList list = new ArrayList();\n for (int i = 0; i < array.length; i++) {\n if (array[i] instanceof ColumnHandle) {\n ... |
"public void stop() throws Exception {\n if (!this.wasStarted) {\n DefaultExecuteResultHandler stopProcessHandler = executeCommand(getDefaultStopCommand(getStopPort()));\n stopProcessHandler.waitFor(5 * 60L * 1000L);\n if (this.startedProcessHandler != null) {\n this.startedProcessHan... |
"public void testDifferentMemberAdded() throws Exception {\n HazelcastClient client = mock(HazelcastClient.class);\n InetSocketAddress inetSocketAddress = new InetSocketAddress(\"String_Node_Str\", 5701);\n final Connection connection = mock(Connection.class);\n final List<LifecycleState> lifecycleEvents = ... |
"public float getYValForXIndex(int xIndex) {\n Entry e = getEntryForXIndex(xIndex);\n if (e != null && e.getXIndex() == xIndex)\n return e.getVal();\n else\n return Float.NaN;\n}\n"
|
"private static void parseLine(int lineNumber, String line) throws ParserException, ApplicationException {\n switch(line.charAt(0)) {\n case '#':\n break;\n case '[':\n if (line.equals(\"String_Node_Str\")) {\n if (currentState != STATE_START) {\n ... |
"protected boolean _run() {\n int count = select(readFdSet.address, writeFdSet.address, 0);\n if (count < 0) {\n LOG.error().$(\"String_Node_Str\").$(Os.errno()).$();\n return false;\n }\n final long timestamp = System.currentTimeMillis();\n boolean useful = false;\n fds.clear();\n if... |
"public void renderGridLines(Canvas c) {\n if (!mXAxis.isDrawGridLinesEnabled() || !mXAxis.isEnabled())\n return;\n float[] positions = new float[mXAxis.mEntryCount * 2];\n for (int i = 0; i < positions.length; i += 2) {\n positions[i] = mXAxis.mEntries[i / 2];\n }\n mTrans.pointValuesToPix... |
"protected void onHandleIntent(Intent intent) {\n if (NetworkUtils.isOnline()) {\n PatientAndMatchesWrapper patientAndMatchesWrapper = new PatientAndMatchesWrapper();\n List<Patient> patientList = new PatientDAO().getUnsyncedPatients();\n final ListIterator<Patient> it = patientList.listIterator... |
"public String selectPreviousItem() {\n if (hasResults && selectedIndex >= 0) {\n resultDisplayItems.get(selectedIndex).setSelectedState(false);\n selectedIndex--;\n if (selectedIndex >= 0) {\n resultDisplayItems.get(selectedIndex).setSelectedState(true);\n resultDisplayIte... |
"private long readNameHashBin(long hash) {\n return hash >> 60;\n}\n"
|
"public Vector<DebugVariable> getWatchList(DebugVariableType[] types) {\n Vector<DebugVariable> result = null;\n if (DebugState.paused(this.state) && (types.length > 0)) {\n boolean hasSomethingToWatch = false;\n for (DebugVariableType t : types) if ((t == DebugVariableType.GLOBAL) || (t == DebugVar... |
"protected void setUp() throws Exception {\n System.out.println(\"String_Node_Str\" + getClass().getSimpleName() + \"String_Node_Str\" + getName());\n FSUtils.delTree(new File(SetupUtils.TEST_DIR));\n testEnv = new TestEnvironment(new TestEnvironment.Services[] { TestEnvironment.Services.DIR_SERVICE, TestEnvir... |
"public List<String> getQueryParameters(String key) {\n if (isOpaque()) {\n throw new UnsupportedOperationException(NOT_HIERARCHICAL);\n }\n String query = getEncodedQuery();\n if (query == null) {\n return Collections.emptyList();\n }\n String encodedKey;\n try {\n encodedKey ... |
"public void buildCluster(Stack stack) {\n Cluster cluster = stack.getCluster();\n try {\n clusterService.updateCreationDateOnCluster(cluster);\n AmbariClient ambariClient = clientFactory.getAmbariClient(stack, stack.getCluster());\n Set<HostGroup> hostGroups = hostGroupService.getByCluster(c... |
"protected void publicFire(TTrigger trigger, Object... args) {\n TriggerWithParameters<TState, TTrigger> configuration = triggerConfiguration.get(trigger);\n if (configuration != null) {\n configuration.validateParameters(args);\n }\n TriggerBehaviour<TState, TTrigger> triggerBehaviour;\n try {\n ... |
"public void run() {\n final RemovalHandler handler = scope.get();\n String fileResult;\n try {\n for (final File file : files) {\n fileResult = X_IO.toStringUtf8(new FileInputStream(file));\n final Class<? extends Model> type = typeNameToClass.get(file.getParent());\n f... |
"public void initializejobletContainer(Rectangle rectangle) {\n disposeColors();\n Point location = this.getLocation();\n collapseFigure.setCollapsed(jobletContainer.isCollapsed());\n titleFigure.setText(\"String_Node_Str\" + title + \"String_Node_Str\");\n Dimension preferedSize = titleFigure.getPreferr... |
"public void initParameters() {\n OperatorUIUtils.initParamList(bandList, getBandNames(), (Object[]) paramMap.get(\"String_Node_Str\"));\n if (sourceProducts != null) {\n final MetadataElement absRoot = AbstractMetadata.getAbstractedMetadata(sourceProducts[0]);\n if (absRoot != null) {\n ... |
"private void markSenseIncompleteUnsent(final SQLiteDatabase db) {\n if (inSenseMode) {\n SqlStorage<FormRecord> storage = new SqlStorage<FormRecord>(FormRecord.STORAGE_KEY, FormRecord.class, new ConcreteDbHelper(c, db));\n for (FormRecord record : storage) {\n if (FormRecord.STATUS_INCOMPLE... |
"private static boolean evaluateSimpleExpression(String simpleExpression, List<? extends IElementParameter> listParam, ElementParameter currentParam) {\n boolean showParameter = false;\n String test = null;\n if (simpleExpression.contains(EQUALS)) {\n test = EQUALS;\n } else {\n if (simpleExpr... |
"public void bringDate(long jdn) {\n CalendarType mainCalendar = Utils.getMainCalendar();\n AbstractDate today = Utils.getTodayOfCalendar(mainCalendar);\n AbstractDate date = Utils.getDateFromJdnOfCalendar(mainCalendar, jdn);\n viewPagerPosition = (today.getYear() - date.getYear()) * 12 + today.getMonth() -... |
"protected CtMember.Cache hasMemberCache() {\n WeakReference cache = memberCache;\n if (cache != null)\n return (CtMember.Cache) cache.get();\n else\n return null;\n}\n"
|
"protected void okPressed() {\n Calendar cenlendar = Calendar.getInstance();\n SimpleDateFormat format = null;\n int year = timed.getYear();\n int month = timed.getMonth();\n int day = timed.getDay();\n if (timet != null) {\n format = new SimpleDateFormat(\"String_Node_Str\");\n } else {\n ... |
"public void destroy() {\n if (this.encapsulatedContext != null) {\n this.encapsulatedContext.destroy();\n }\n}\n"
|
"private void spreadRegrowth(int cell, float strength) {\n if (strength >= 0 && Level.passable[cell] && !Level.losBlocking[cell]) {\n affectedCells.add(cell);\n if (strength >= 1.5f) {\n spreadRegrowth(cell + PathFinder.CIRCLE[left(direction)], strength - 1.5f);\n spreadRegrowth(c... |
"private static List wrap(List list, RelDataType type) {\n if (type.isNullable()) {\n switch(type.getSqlTypeName()) {\n case TIMESTAMP:\n return Functions.adapt(list, TIMESTAMP_TO_LONG);\n case TIME:\n return Functions.adapt(list, TIME_TO_INT);\n ... |
"public void widgetSelected(SelectionEvent e) {\n if (e.getSource() instanceof Tree) {\n if (((TreeItem) e.item).getItemCount() != 0) {\n preview.renderModel(null);\n description.setText(icp.getDefaultDescription());\n ChartExamplesView.setActionsEnabled(false);\n } els... |
"private URL generateURL(String uri) throws MalformedURLException {\n String path = URIUtil.getLocalPath(uri);\n if (path != null) {\n String fullPath = SessionHandleAdapter.getInstance().getSessionHandle().getFileLocator().findFile(SessionHandleAdapter.getInstance().getReportDesignHandle(), path);\n ... |
"private CacheEntry queryEmailDisplayName(String email) {\n CacheEntry entry = new CacheEntry();\n String[] contactInfoSelectionArgs = new String[1];\n contactInfoSelectionArgs[0] = email;\n Cursor cursor = SqliteWrapper.query(mContext, mContext.getContentResolver(), EMAIL_WITH_PRESENCE_URI, EMAIL_PROJECTIO... |
"public void widgetSelected(SelectionEvent e) {\n button.setEnabled(false);\n table.select(table.indexOf(item));\n List<ModuleToInstall> datalist = new ArrayList<ModuleToInstall>();\n datalist.add(data);\n final DownloadModuleJob job = new DownloadModuleJob(datalist);\n job.addJobChangeListener(new Jo... |
"public Set<InvokeSite> getInvokeSites(MethodInfo invokee) {\n MethodNode node = getMethodNode(invokee);\n Set<InvokeSite> invokeSites = new HashSet<InvokeSite>();\n for (ExecutionContext ec : node.getInstances()) {\n if (ec.getCallString().isEmpty()) {\n AppInfo appInfo = AppInfo.getSingleto... |
"public boolean isFractionCurrency() {\n return !mParentCurrency.equals(NO_PARENT);\n}\n"
|
"public int run(String[] args) throws Exception {\n Options options = new Options();\n options.addOption(OPTION_CUBE_NAME);\n options.addOption(OPTION_PARTITION_FILE_PATH);\n options.addOption(OPTION_HTABLE_NAME);\n parseOptions(options, args);\n Path partitionFilePath = new Path(getOptionValue(OPTION... |
"public String toJson() {\n used = true;\n if (operations.size() > 1) {\n throw new UnsupportedOperationException(\"String_Node_Str\");\n }\n return toJsonWithoutChecks();\n}\n"
|
"public void onJoin(PlayerJoinEvent e) {\n final Player player = e.getPlayer();\n User user = User.get(player);\n user.getScoreboard();\n IndependentThread.actions(ActionType.PREFIX_GLOBAL_UPDATE_PLAYER, player);\n IndependentThread.actions(ActionType.DUMMY_GLOBAL_UPDATE_USER, user);\n IndependentThre... |
"private ProcessResult verbUpper(String verb, Map<String, Object> namespace, List<Object> statement) {\n Token variable = getVariable(verb, statement, 1, namespace);\n Token parameter = getParameter(verb, statement, 2, namespace, EnumSet.of(TokenType.STRING, TokenType.ARRAY, TokenType.MAP));\n try {\n s... |
"public void drawValues(Canvas c) {\n float sliceangle = mChart.getSliceAngle();\n float factor = mChart.getFactor();\n PointF center = mChart.getCenterOffsets();\n float yoffset = Utils.convertDpToPixel(5f);\n for (int i = 0; i < mChart.getData().getDataSetCount(); i++) {\n RadarDataSet dataSet =... |
"public CustomTxtEvent parseFirstLine(CustomTxtTraceContext context) {\n CustomTxtEvent event = new CustomTxtEvent(fDefinition, TmfTimestamp.Zero, new TmfEventSource(\"String_Node_Str\"), fEventType, new TmfEventReference(\"String_Node_Str\"));\n event.processGroups(context.inputLine, context.firstLineMatcher);\n... |
"public IPersistentMap put(Object key, Object val) {\n int i = indexOf(key);\n Object[] newArray;\n if (i >= 0) {\n if (array[i + 1] == val)\n return this;\n newArray = array.clone();\n newArray[i + 1] = val;\n } else {\n newArray = new Object[array.length + 2];\n ... |
"public void setSubdirectory(String subdir) {\n if (subdir != null && name.length() > 0) {\n this.subdirectory = JDUtilities.removeEndingPoints(JDUtilities.validateFileandPathName(subdir));\n } else\n this.subdirectory = null;\n}\n"
|
"public void displayLocal(final GL2 gl) {\n if (pathway == null || !pathwayManager.hasItem(pathway.getID()))\n return;\n if (isPathwayDataDirty)\n initPathwayData(gl);\n pickingManager.handlePicking(this, gl);\n if (isDisplayListDirty) {\n rebuildPathwayDisplayList(gl, displayListIndex)... |
"protected String getErrorMessage(HttpServletRequest request, String key) {\n return messageSource.getMessage(getDefaultMessageKey(), request.getLocale(), getMessageParams());\n}\n"
|
"public void progress() {\n for (int t : messages.keySet()) {\n if (batchDone.get(t)) {\n continue;\n }\n boolean canProgress = true;\n while (canProgress) {\n Map<Integer, Queue<Object>> map = messages.get(t);\n Map<Integer, Boolean> finishedForTarget = f... |
"protected void action() {\n ShortPoint2D position = super.getPos();\n if (!super.isValidPosition(position)) {\n if (searchesCounter > 120) {\n super.getMovable().kill();\n return;\n }\n if (super.preSearchPath(true, position.x, position.y, Constants.MOVABLE_FLEEING_DIJK... |
"public void selectionChanged(IWorkbenchPart part, ISelection selection) {\n clearContainer();\n boolean is = true;\n if (part instanceof DQRespositoryView) {\n StructuredSelection sel = (StructuredSelection) selection;\n Object fe = sel.getFirstElement();\n if (fe instanceof IFile) {\n ... |
"public long getEnergyCapacity(ItemStack itemStack) {\n return 1000000;\n}\n"
|
"public final TU set(String propertyName, String contextAttributeName) {\n Method method = getMethod(propertyName);\n latePropertiesAttributes.put(propertyName, contextAttributeName);\n latePropertiesSetters.put(propertyName, method);\n return (TU) this;\n}\n"
|
"public void shouldFetch_withACompoundAttributeQueryOnACompoundGSIWithAHashValueTheSameAsThePrimaryKeyDefinition() {\n final String itemId = randomId();\n final String gsiProperty = randomString(10);\n final Integer gsiSupportingProperty = randomInt(20);\n final Set<String> stringPropertyValues = new HashSe... |
"public boolean equals(Object obj) {\n boolean equal = true;\n if (obj instanceof Node) {\n Node n = (Node) obj;\n if (n.getArity() != this.getArity()) {\n equal = false;\n } else if (n.getIdentifier() != this.getIdentifier()) {\n equal = false;\n } else {\n ... |
"public List<TdColumn> returnColumns(IMetadataConnection metadataConnection, TableNode tableNode, boolean... dontCreateClose) {\n if (metadataConnection == null || tableNode == null || tableNode.getType() != TableNode.TABLE) {\n return Collections.emptyList();\n }\n NamedColumnSet table = tableNode.getT... |
"private void saveUpdateStatus(Project project) throws JSONException {\n Context ctx = CoreRuntimePlugin.getInstance().getContext();\n RepositoryContext repositoryContext = (RepositoryContext) ctx.getProperty(Context.REPOSITORY_CONTEXT_KEY);\n PreferenceManipulator prefManipulator = new PreferenceManipulator()... |
"public int getID() {\n return id;\n}\n"
|
"public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n dropTable(db, FriendTable.TABLE_NAME);\n dropTable(db, ChatMessageTable.TABLE_NAME);\n dropTable(db, ChatTable.TABLE_NAME);\n onCreate(db);\n}\n"
|
"private int executeLinking(ExecutionContext context, ImmutableList<String> linkerInputs) throws InterruptedException {\n OCamlLinkStep linkStep = new OCamlLinkStep(ocamlContext.getCxxCompiler(), ocamlContext.getOcamlCompiler(), ocamlContext.getOutput(), ocamlContext.getLinkableInput().getArgs(), linkerInputs, ocaml... |
"public boolean a() {\n if (!petEntity.canMove()) {\n return false;\n }\n EntityLiving owner = this.petEntity.getOwner();\n if (owner == null) {\n return false;\n }\n this.lastDamager = localEntityLiving.aF();\n if (this.lastDamager == null || !lastDamager.isAlive()) {\n return... |
"public boolean directMarshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Session session, NamespaceResolver namespaceResolver) {\n if (!isSet(object)) {\n return;\n }\n}\n"
|
"public void prePersist() {\n pre_persist_count++;\n}\n"
|
"public void processCommand(ICommandSender commandSender, String[] args) {\n int x, z;\n if (args.length <= 0) {\n throw new WrongUsageException(\"String_Node_Str\");\n }\n String structureName = args[0];\n StructureInfo structureInfo = StructureHandler.getStructure(structureName);\n World worl... |
"public String toString() {\n StringBuffer result = new StringBuffer();\n result.append(listener.getClass().getName());\n result.append(\"String_Node_Str\");\n for (Iterator i = dependencies.iterator(); i.hasNext(); ) {\n EventList dependency = (EventList) i.next();\n result.append(\"String_No... |
"void startRecentsActivity(ActivityManager.RunningTaskInfo topTask, boolean isTopTaskHome) {\n SystemServicesProxy ssp = mSystemServicesProxy;\n List<ActivityManager.RecentTaskInfo> recentTasks = ssp.getRecentTasks(3, UserHandle.CURRENT.getIdentifier(), isTopTaskHome);\n boolean useThumbnailTransition = !isTop... |
"public boolean hasNoMovableAt(short x, short y) {\n return movableGrid.hasNoMovableAt(x, y);\n}\n"
|
"public static org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetContactComponent convertValueSetContactComponent(org.hl7.fhir.dstu3.model.ValueSet.ValueSetContactComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetContact... |
"public int getNrDeleteErrors() {\n return Iterables.size(Iterables.filter(failedUpdates, new Predicate<UpdateResult>() {\n public boolean apply(UpdateResult input) {\n return Action.DELETE.equals(input.getAction());\n }\n }));\n}\n"
|
"protected boolean checkPageBreak() throws BirtException {\n boolean ret = false;\n if (!isInInlineStacking && context.isAutoPageBreak()) {\n int aHeight = getAllocatedHeight();\n while (aHeight + parent.getAbsoluteBP() - 3000 > context.getMaxBP()) {\n if (!parent.autoPageBreak()) {\n ... |
"public static NiftyDialogBuilder getInstance(Context context) {\n int ort = context.getResources().getConfiguration().orientation;\n if (mOrientation != ort) {\n mOrientation = ort;\n instance = null;\n }\n if (instance == null && !((Activity) context).isFinishing()) {\n synchronized (... |
"public Entity duplicate(Entity original) {\n Entity dupe;\n Location dupeLoc;\n if (sm.pluginSupport.getMythicSupport() != null && sm.pluginSupport.getMythicSupport().isMythicMob(original)) {\n dupe = sm.pluginSupport.getMythicSupport().spawnMythicMob(original);\n } else if (original instanceof Zomb... |
"public void nullKey() {\n try {\n cache.invokeEntryProcessor((Integer) null, new MockEntryProcessor<Integer, String, Void>());\n fail(\"String_Node_Str\");\n } catch (NullPointerException e) {\n }\n}\n"
|
"protected void _resolveProperties(NamedObj analyzer) throws KernelException {\n super._resolveProperties(analyzer);\n NamedObj toplevel = _toplevel();\n PropertyConstraintHelper toplevelHelper = (PropertyConstraintHelper) getHelper(toplevel);\n toplevelHelper.reinitialize();\n toplevelHelper._addDefault... |
"public static UUID getUUID(String username) {\n if (usernameToUUID.containsKey(username)) {\n return usernameToUUID.get(username);\n }\n String shortenedName = NameUtil.stripUsername(username);\n Account account = null;\n try {\n account = accounts.queryBuilder().selectColumns(\"String_Nod... |
"public void onResponseReceived(Request request, Response response) {\n if (yapoolGWT.getSignState() == false) {\n if (SignRequestCallback.responseIsOk(response)) {\n yapoolGWT.reloadSession();\n } else if (!SignRequestCallback.responseIsOk(response)) {\n messageLabel.setVisible(t... |
"public void init(IViewSite site, IMemento memento) throws PartInitException {\n super.init(site, memento);\n if (memento == null) {\n setLinkingEnabled(false);\n }\n getViewSite().getActionBars().getToolBarManager().add(new RefreshDQReponsitoryViewAction(this));\n}\n"
|
"public boolean checkVersions() {\n if (!setDatabasePath()) {\n return false;\n }\n File path = getExternalFilesDirWrapper();\n File oldpath = new File(Environment.getExternalStorageDirectory(), \"String_Node_Str\");\n Long oldmtime = mtime.get(path.getAbsolutePath());\n if (oldmtime == null) {... |
"public static double getPlannedTime(Usr user, QDate fromDate, QDate toDate) {\n return roundToTenth(getNumberOfWorkdays(user, fromDate, toDate) * HOURS_PER_WORKDAY);\n}\n"
|
"public void testDataConnectionWithWifiToAMToWifi() {\n assertNotNull(\"String_Node_Str\", TEST_ACCESS_POINT);\n assertTrue(\"String_Node_Str\" + TEST_ACCESS_POINT, cmActivity.connectToWifi(TEST_ACCESS_POINT));\n waitForNetworkState(ConnectivityManager.TYPE_WIFI, State.CONNECTED, STATE_TRANSITION_LONG_TIMEOUT)... |
"public static void addAllAttributesOfAspect(Rule from, Multimap<Attribute, Label> labelBuilder, Aspect aspect, DependencyFilter dependencyFilter) {\n ImmutableMap<String, Attribute> attributes = aspect.getDefinition().getAttributes();\n for (Attribute aspectAttribute : attributes.values()) {\n if (!depend... |
"private Sheet generateDeclarationEtcBOHeader(List<MaterialExtension> extensions, Sheet sheet) {\n Field[] fields = DeclarationEtcBO.class.getDeclaredFields();\n Row r1 = sheet.createRow(0);\n Row r2 = sheet.createRow(1);\n Cell numcell = r1.createCell(0);\n numcell.setCellValue(\"String_Node_Str\");\n ... |
"public Object call() throws Exception {\n groupInProcess.add(group.getName(), key);\n try {\n makeTimedCall(createResponse(key));\n lastContentKey.updateIncrease(key, group.getName(), GROUP_LAST_COMPLETED);\n groupInProcess.remove(group.getName(), key);\n logger.trace(\"String_Node_St... |
"public void setValueRequested(Attribute<Object> attr, Object value) throws AttrTableSetException {\n Selection selection = frame.getCanvas().getSelection();\n Circuit circuit = frame.getCanvas().getCircuit();\n if (selection.isEmpty() && circuit != null) {\n AttrTableCircuitModel circuitModel = new Att... |
"public void render(OpenGLContext context) {\n if (!context.isDirty() || SumoPlatform.isBatchMode()) {\n return;\n }\n int x = context.getX();\n int y = context.getY();\n float zoom = context.getZoom();\n float width = context.getWidth() * zoom;\n float height = context.getHeight() * zoom;\n... |
"private void writeElement(String indent, XhtmlNode node) throws IOException {\n if (!pretty)\n indent = \"String_Node_Str\";\n if (node.getChildNodes().size() == 0)\n dst.append(indent + \"String_Node_Str\" + node.getName() + attributes(node) + \"String_Node_Str\" + (isPretty() ? \"String_Node_Str\... |
"public void process(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n List<Supplier> suppliers = new ArrayList<Supplier>();\n String searchField = request.getParameter(\"String_Node_Str\");\n SupplierSearcher searcher = new SupplierSearcher();\n if (Validato... |
"public static void init() throws Exception {\n hbmInputStream = MODEL_XML_TO_HBM_CONVERTER.convert(Utils.FULL_FIRST_ENTITY_XML_RESOURCE)[0].getInputStream();\n hbmInputSource = new InputSource(MODEL_XML_TO_HBM_CONVERTER.convert(Utils.FULL_FIRST_ENTITY_XML_RESOURCE)[0].getInputStream());\n hbmFirstEntity = bui... |
"public boolean sameAs(AEColor color, ItemStack comparableItem) {\n ItemStackSrc is = colors[color.ordinal()];\n if (comparableItem == null || is == null)\n return false;\n return comparableItem.getItem() == is.item && comparableItem.getItemDamage() == is.damage;\n}\n"
|
"public void render(IModuleRenderHelper renderHelper, FontRenderer fontRenderer, int currenty, IModuleDataContents screenData, ModuleRenderInfo renderInfo) {\n GlStateManager.disableLighting();\n if (screenData == null) {\n return;\n }\n int currentLevel = (int) screenData.getContents();\n int but... |
"public ArrayList<FilePath> newDirectoryStream() {\n String path = name;\n ArrayList<FilePath> list = New.arrayList();\n try {\n if (path.indexOf('!') < 0) {\n path += \"String_Node_Str\";\n }\n if (!path.endsWith(\"String_Node_Str\")) {\n path += \"String_Node_Str\";... |
"public Location getLocation() {\n return m_location;\n}\n"
|
"protected void writeExtraNamespaces(List extraNamespaces, XMLRecord xmlRecord, AbstractSession session) {\n if (extraNamespaces == null) {\n return;\n }\n for (int i = 0, extraNamespacesSize = extraNamespaces.size(); i < extraNamespacesSize; i++) {\n Namespace next = (Namespace) extraNamespaces.... |
"private void outputNormalizedImage(final int x0, final int y0, final int w, final int h, final double[][] gamma0ReferenceArea, final double[][] sigma0ReferenceArea, final Map<Band, Tile> targetTiles, final Rectangle targetRectangle) {\n try {\n for (Band tgtBand : targetBands) {\n final Tile targe... |
"public String getDescription(int tagType) {\n switch(tagType) {\n case TAG_MAJOR_BRAND:\n return getMajorBrandDescription();\n case TAG_COMPATIBLE_BRANDS:\n return getCompatibleBrandsDescription();\n case TAG_DURATION_SECONDS:\n return getDurationDescription();\... |
"public void setCurrentSymbol(String name) throws PtalonRuntimeException {\n if (_currentActorTree != null) {\n _currentActorTree.setSymbol(name);\n } else {\n throw new PtalonRuntimeException(\"String_Node_Str\");\n }\n}\n"
|
"public SDOSequence getOldSequence(DataObject dataObject) {\n if ((dataObject == null) || (!isDeleted(dataObject) && ((((SDODataObject) dataObject).getChangeSummary() != null) && (((SDODataObject) dataObject).getChangeSummary() != this)))) {\n return null;\n }\n if (!isCreated(dataObject) && dataObject.... |
"private void addCallbackCases(MethodBuilder mb2, final String ROLE_PARAM, final String MESSAGE_VAR, final String OP, Module main, Role peer) {\n boolean first;\n mb2.addBodyLine(StateChannelApiGenerator.SCRIBMESSAGE_CLASS + \"String_Node_Str\" + MESSAGE_VAR + \"String_Node_Str\" + JavaBuilder.SUPER + \"String_No... |
"private static UserAgentRuntimeProperties createInstance() {\n return GWT.isClient() ? new UserAgentRuntimeProperties(getNativeUserAgent()) : new UserAgentRuntimeProperties(\"String_Node_Str\");\n}\n"
|
"private boolean loopSession() throws IOException {\n Screen s = getNextScreen();\n while (s != null) {\n try {\n s.init(mPlatform, mSession, mSandbox);\n System.out.println(\"String_Node_Str\");\n s.prompt(System.out);\n System.out.print(\"String_Node_Str\");\n ... |
"public URL getChangeSetLink(LogEntry changeSet) throws IOException {\n return new URL(url, String.format(\"String_Node_Str\", encodePath(repositoryInstance), changeSet.getRevision()));\n}\n"
|
"public void stand() {\n inAnim();\n posTween = null;\n renderer.startAnimation(standAnim, Tween.Type.SPRITE_DEFINED, -1, null, null);\n outAnim(Tween.Type.SPRITE_DEFINED);\n}\n"
|
"public void testConcurrent() throws Exception {\n List<Thread> threads = Lists.newArrayList();\n for (int i = 0; i < Runtime.getRuntime().availableProcessors(); i++) {\n Thread t = new Thread(new Runnable() {\n public void run() {\n IQuery<TestGlobalEntity> globalQuery = pinusCli... |
"public static void zip(File directory, File out) throws IOException {\n ZipOutputStream zos = null;\n try {\n OutputSupplier<FileOutputStream> s = Files.newOutputStreamSupplier(out);\n zos = new ZipOutputStream(s.getOutput());\n for (File f : FileUtils.listFiles(directory, FILE, DIRECTORY)) ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.