content stringlengths 40 137k |
|---|
"public static boolean compatibleArgTypes(Type argType, Type exprType) {\n if (exprType.assignableTo(argType)) {\n return true;\n } else if (Types.isRefTo(exprType, argType)) {\n return true;\n } else {\n return false;\n }\n}\n"
|
"private void doHandShaking(final ReplicatedSharedHashMap map, final Attached attached, final long approxTime) throws IOException, InterruptedException {\n if (attached.remoteIdentifier == Byte.MIN_VALUE) {\n final byte remoteIdentifier = attached.entryReader.identifierFromBuffer();\n if (remoteIdentif... |
"public void run() {\n LevelLayout staticLayout = new LevelLayout();\n staticLayout.setOrientation(LevelLayout.HORIZONTAL);\n LayoutTarget target = new BasicLayoutTarget(gc);\n LevelLayout staticLayout = new LevelLayout(target);\n staticLayout.setOrientation(LevelLayout.HORIZONTAL);\n staticLayout.lay... |
"public void testRoundtripNoTimeZone() throws Exception {\n getXmlConversionManager().setTimeZone(null);\n Document controlDoc = getWriteControlDocument();\n InputStream inputStream = ClassLoader.getSystemResourceAsStream(\"String_Node_Str\");\n Object objFromXML = xmlUnmarshaller.unmarshal(inputStream);\n ... |
"private static void setBattlefield(Battlefield battlefield) {\n if (battlefield != null) {\n ModelManager.battlefield = battlefield;\n ParcelManager.createParcelMeshes(ModelManager.getBattlefield().getMap());\n ModelManager.getBattlefield().getMap().resetTrinkets();\n ModelManager.getBat... |
"public SchemaManager getSchemaManager(Map<String, Object> puProperties) {\n if (schemaManager == null)\n schemaManager = new CoreSchemaManager(\"String_Node_Str\", puProperties);\n return schemaManager;\n}\n"
|
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n final ViewGroup rootView = (ViewGroup) inflater.inflate(R.layout.my_site_fragment, container, false);\n int fabHeight = getResources().getDimensionPixelSize(android.support.design.R.dimen.design_fab_size_normal)... |
"public void shouldNotThrowNullPointerExceptionWhenCloseSessionsIsExecuted() throws Exception {\n k3po.finish();\n ObjectName echoServiceMbeanName = null;\n MBeanServerConnection mbeanServerConn = jmxConnection.getConnection();\n Set<ObjectName> mbeanNames = mbeanServerConn.queryNames(null, null);\n Stri... |
"protected void execute(CommandEvent event) {\n EmbedBuilder builder = new EmbedBuilder();\n Member member;\n User author;\n author = event.getAuthor();\n String target;\n String reason;\n if (event.getArgs().isEmpty()) {\n event.replyWarning(\"String_Node_Str\" + event.getClient().getPrefix... |
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n if (controller != null) {\n Permanent auraSourcePermanent = game.getPermanent(source.getSourceId());\n if (auraSourcePermanent != null && auraSourcePermanent.getSubtype().contains(\"S... |
"public boolean removeAll(Collection<?> c) {\n Iterator<?> iter = iterator();\n boolean changed = false;\n while (iter.hasNext()) {\n if (remove(iter.next())) {\n changed = true;\n }\n }\n return changed;\n}\n"
|
"public View getView(int position, View convertView, ViewGroup parent) {\n if (null == convertView) {\n convertView = LayoutInflater.from(parent.getContext()).inflate(R.layout.view_feed_tile, parent, false);\n RxViewGroup rxVg = (RxViewGroup) convertView.findViewWithTag(RxViewGroup.TAG);\n if (n... |
"protected void beforeHookedMethod(MethodHookParam param) throws Throwable {\n TextView text = (TextView) param.args[0];\n if (Resources.getSystem().getString(android.R.string.paste).equals(text.getText().toString())) {\n Open(Ectx);\n start = Etextview.getSelectionStart();\n end = Etextview.... |
"public void dispose() {\n if ((fTimeRangeRequest != null) && !fTimeRangeRequest.isCompleted()) {\n fTimeRangeRequest.cancel();\n }\n if (fFullTraceRequest != null && !fFullTraceRequest.isCompleted()) {\n fFullTraceRequest.cancel();\n }\n fFullTraceHistogram.dispose();\n fTimeRangeHistog... |
"public void testClientTLSFails() throws Exception {\n Executor executor = ExecutorsHelper.newProcessingQueue(\"String_Node_Str\");\n SSLContext context = SSLContext.getInstance(\"String_Node_Str\");\n context.init(null, null, null);\n SSLReadWriteChannel channel = new SSLReadWriteChannel(context, executor,... |
"public void testMemoryCache() throws IOException {\n long used1 = ArchiveFile.getTotalUsedCache();\n System.out.println(\"String_Node_Str\" + used1);\n ArchiveFile[] afs = new ArchiveFile[10];\n for (int i = 0; i < afs.length; i++) {\n afs[i] = createArchiveFile(\"String_Node_Str\" + i);\n }\n ... |
"public ResultSet getProcedureColumns(String schemaPattern, String procedureNamePattern, String columnNamePattern) {\n if (connection == null) {\n try {\n reconnect();\n } catch (Exception e) {\n logger.log(Level.WARNING, e.getMessage(), e);\n return null;\n }\n ... |
"private void writeCreateSimpleBean(SourceWriter sw, AutoBeanType type) {\n sw.println(\"String_Node_Str\", type.getPeerType().getQualifiedSourceName());\n sw.indent();\n sw.println(\"String_Node_Str\", type.getPeerType().getQualifiedSourceName());\n sw.indent();\n for (AutoBeanMethod method : type.getMe... |
"private int[] collectStats(String statsFile, int parentPid, boolean first, int[] curPids, ArrayList<Stats> allProcs) {\n int[] pids = Process.getPids(statsFile, curPids);\n int NP = (pids == null) ? 0 : pids.length;\n int NS = allProcs.size();\n int curStatsIndex = 0;\n for (int i = 0; i < NP; i++) {\n ... |
"public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (obj == null) {\n return false;\n }\n if (!(obj instanceof AbstractAgileObject)) {\n return false;\n }\n IAgileFeatureGroup other = (IAgileFeatureGroup) obj;\n if (uuid != other.getUuid()) {\n ... |
"public static DiffModel openDiffCompareEditor(Resource leftResource, Resource rightResource, Map<String, Object> opt, IUIHandler guiHandler, IFile efmDiffResultFile, String dbName, Object selectedObject) throws ReloadCompareException {\n MatchModel match = null;\n try {\n match = MatchService.doResourceMa... |
"private void createCacheInputStream() throws FileNotFoundException {\n metaInputStream = new BufferedInputStream(new FileInputStream(ResultSetCacheUtil.getMetaFile(context.getTmpdir(), queryResultID)), 1024);\n rowInputStream = new DataInputStream(new BufferedInputStream(new FileInputStream(ResultSetCacheUtil.ge... |
"static AbstractScheduler loadScheduler(final String schedulerClassName, final DeploymentManager deploymentManager, final InstanceManager instanceManager) {\n Class<? extends AbstractScheduler> schedulerClass;\n try {\n schedulerClass = (Class<? extends AbstractScheduler>) Class.forName(schedulerClassName)... |
"public final SentenceExec getDebtUpdate() {\n return new PreparedSentence(s, \"String_Node_Str\", SerializerWriteParams.INSTANCE);\n}\n"
|
"private List<String> getLevels(String hierarchy) {\n if (hierarchy == null || hierarchy.equals(\"String_Node_Str\")) {\n return hlevels;\n }\n List<Id.Segment> segments = Util.parseIdentifier(hierarchy);\n if (segments == null || segments.size() == 0) {\n return hlevels;\n }\n if (!Mond... |
"public String rowName() {\n return (rowName != null && !rowName.equals(\"String_Node_Str\")) ? rowName : table.rows().headers()[rowNum - 1];\n}\n"
|
"private void computeDependencies() {\n dependencies = new ArrayList<String>();\n preDependencies = new ArrayList<String>();\n postDependencies = new ArrayList<String>();\n if (mod.getPriorities() == null || mod.getPriorities().length() == 0) {\n return;\n }\n boolean parseFailure = false;\n ... |
"public String toFullInfoString() {\n StringBuffer info = new StringBuffer();\n info.append(\"String_Node_Str\" + getConnection());\n info.append(\"String_Node_Str\" + greedy);\n info.append(\"String_Node_Str\" + distance);\n info.append(\"String_Node_Str\" + hiddenVertices);\n return info.toString();... |
"private boolean isEqualProps(Map map1, Map map2) {\n if (map1 == map2) {\n return true;\n else if (map1 == null || map2 == null)\n return false;\n else if (map1.keySet().size() != map2.keySet().size())\n return false;\n Set set = map1.keySet();\n Iterator it = set.iterator();\n w... |
"private void install() {\n if (mInstalledSigID != null && curapk.sig != null && !curapk.sig.equals(mInstalledSigID)) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.SignatureMismatch).setPositiveButton(getString(R.string.ok), new DialogInterface.OnClickLi... |
"private static void writeContent(String separator, StringBuilder contents, CharSequence body, String[] matches) {\n for (String match : matches) {\n if (match != null) {\n contents.append(match).append(separator);\n } else {\n contents.append(\"String_Node_Str\").append(separator... |
"public void onStart(Intent intent, final int startId) {\n if (!intent.getAction().equals(ACTION_UPDATE_WIDGET)) {\n stopSelf(startId);\n return;\n }\n Bundle extra = intent.getExtras();\n final int appWidgetId = extra.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID);\n synchronized (this) {\n ... |
"protected void doDSPost(Context c, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException {\n String button = UIUtil.getSubmitButton(request, \"String_Node_Str\");\n if (button.equals(\"String_Node_Str\")) {\n Collection[] collectio... |
"protected void init() throws Exception {\n a = create(\"String_Node_Str\");\n a.connect(CLUSTER);\n b = create(\"String_Node_Str\");\n b.connect(CLUSTER);\n c = create(\"String_Node_Str\");\n c.connect(CLUSTER);\n Util.waitUntilAllChannelsHaveSameView(10000, 500, a, b, c);\n}\n"
|
"public void runBuild(Project project, PropertyTree config, PropertyTree appConfig, File dir, File output, Build build) {\n if (!(project instanceof XCodeProject)) {\n return;\n }\n int result = -1;\n Writer buildOut = null;\n Process process = null;\n StreamGobbler serr = null, sout = null;\n ... |
"public void shutdownDatabase() {\n try {\n DriverManager.getConnection(\"String_Node_Str\");\n log.warn(\"String_Node_Str\");\n } catch (SQLException e) {\n log.info(\"String_Node_Str\");\n log.debug(\"String_Node_Str\" + \"String_Node_Str\" + ExceptionUtils.getSQLExceptionCause(e), e... |
"protected void chore() {\n if (!isConnected()) {\n return;\n }\n List<ServerName> sns = generateDeadServersListToSend();\n if (sns.isEmpty()) {\n return;\n }\n final long curTime = EnvironmentEdgeManager.currentTime();\n if (lastMessageTime > curTime - messagePeriod) {\n retur... |
"public Cursor<IndexPoint> indexView(String columnFamily, String column, String partitionBy, String partitionId) {\n DboTableMeta meta = cachedMeta.getMeta(columnFamily);\n if (meta == null)\n throw new IllegalArgumentException(\"String_Node_Str\" + columnFamily + \"String_Node_Str\");\n DboColumnMeta c... |
"public XMLCompositeDirectCollectionMapping generateDirectCollectionMapping(Property property, XMLDescriptor descriptor, NamespaceInfo namespaceInfo) {\n XMLCompositeDirectCollectionMapping mapping = new XMLCompositeDirectCollectionMapping();\n mapping.setAttributeName(property.getPropertyName());\n initialize... |
"public void addUnifiedValues(GlobalConstants consts, String errContext, int stmtIndex, UnifiedValues unified) throws OptUnsafeError {\n int closedIndex = stmtIndex + 1;\n for (Var closed : unified.closed) {\n markClosed(closed, stmtIndex, false);\n }\n for (Var closed : unified.recursivelyClosed) {\... |
"public Object getAdministrators(EntityReference ref, UserRequestParams uparams, Context context) {\n try {\n Community res = Community.find(context, Integer.parseInt(ref.getId()));\n AuthorizeManager.authorizeAction(context, res, Constants.READ);\n Group administrators = res.getAdministrators()... |
"private static void processPrepareResponseSunnyPathTest() {\n byte hostIdentifier = 0;\n Proposer proposer = new Proposer(hostIdentifier, 4);\n PrepareRequest prepareRequest = proposer.createPrepareRequest(0);\n PrepareResponse response1 = new PrepareResponse((byte) 1, prepareRequest, new PrepareNumber((by... |
"private static List<String> getColumnListFromTargetNode(Node target) {\n List<String> columnKeyValues = new ArrayList<String>();\n IElementParameter parTableNode = target.getElementParameterFromField(EParameterFieldType.TABLE);\n if (parTableNode != null) {\n Object[] itemNode = parTableNode.getListIte... |
"private Map<Integer, List<Point>> splitIntoBands(final List<Point> POINTS, final double BAND_WIDTH) {\n Map<Integer, List<Point>> mapOfBands = new HashMap<>(getNoOfBands());\n if (POINTS.isEmpty()) {\n return mapOfBands;\n }\n int noOfPoints = POINTS.size();\n double currentBandMinY;\n double ... |
"private WordToken readWord(int first) throws IOException {\n byte[] localBuffer = buffer;\n localBuffer[position] = (byte) first;\n position++;\n while (true) {\n final int read = stream.read();\n if (read < 0) {\n throw new IOException(\"String_Node_Str\");\n }\n if ... |
"protected static boolean orderInheritance(CoreAttributeGroup group, Map<Object, ? extends CoreAttributeGroup> subGroups) {\n Class type = group.getType();\n if (type != null) {\n CoreAttributeGroup superClass = null;\n while (!type.equals(CoreClassConstants.OBJECT) && superClass == null) {\n ... |
"public void testRequestChange() {\n RouterServiceValidator.setLastRequest(mContext, null);\n assertNull(RouterServiceValidator.getLastRequest(mContext));\n String test = \"String_Node_Str\";\n JSONObject object = null;\n try {\n object = new JSONObject(TEST);\n } catch (JSONException e) {\n ... |
"public SQL SET(String... columnOrValue) {\n strBuilder.append(\"String_Node_Str\");\n for (int i = 0; i < columnEqualsValue.length; i++) {\n if (i != 0) {\n strBuilder.append(\"String_Node_Str\");\n }\n strBuilder.append(columnOrValue[i]).append(\"String_Node_Str\").append(columnO... |
"public static void printCmdFailure(String objectType, String name, String opName, String result, String message) {\n if (isJansiAvailable() && !isBlank(name)) {\n try {\n name = transferEncoding(name);\n } catch (UnsupportedEncodingException | CliException e) {\n logger.warn(\"St... |
"protected T getLightBufferRaw(int x, int y, int z) {\n int cx = (x - baseX - Region.BLOCKS.SIZE) >> Chunk.BLOCKS.BITS;\n int cy = (y - baseY - Region.BLOCKS.SIZE) >> Chunk.BLOCKS.BITS;\n int cz = (z - baseZ - Region.BLOCKS.SIZE) >> Chunk.BLOCKS.BITS;\n Chunk c = r.getLocalChunk(cx, cy, cz, loadOpt);\n i... |
"private void findFirstValidChar() {\n while (inChunkIndex >= 0 && mappedByteBuffer.get(inChunkIndex) == LINE_SPLITTER) {\n inChunkIndex--;\n }\n}\n"
|
"private void createLocalAlternatives(List<MatchNode> target, OptimizerNode pred1, OptimizerNode pred2, ShipStrategy ss1, ShipStrategy ss2, CostEstimator estimator) {\n GlobalProperties gp1 = PactConnection.getGlobalPropertiesAfterConnection(pred1, this, ss1);\n GlobalProperties gp2 = PactConnection.getGlobalProp... |
"public void surroundWith(CharSequence left, CharSequence right) {\n if (delegates.size() > 0) {\n CharSequence delegate = delegates.get(0);\n delegates.ensureCapacity(3);\n delegates.extendAndSet(0, left);\n delegates.extendAndSet(1, delegate);\n delegates.extendAndSet(2, right);\... |
"private void updateSoftKeyboardShowModeLocked(UserState userState) {\n final int userId = userState.mUserId;\n if ((userId == mCurrentUserId) && (userState.mSoftKeyboardShowMode != 0)) {\n boolean serviceChangingSoftKeyboardModeIsEnabled = userState.mEnabledServices.contains(userState.mServiceChangingSoft... |
"public void testPersistJoinTableData() {\n final String schemaName = \"String_Node_Str\";\n final String tableName = \"String_Node_Str\";\n final String joinColumn = \"String_Node_Str\";\n final String inverseJoinColumn = \"String_Node_Str\";\n JoinTableData joinTableData = new JoinTableData(OPERATION.I... |
"private static String printMemory(Pointer pointer, int size) {\n final int BYTES_PER_ROW = 4;\n String LS = System.getProperty(\"String_Node_Str\");\n byte[] buf = pointer.getByteArray(0, size);\n StringBuffer contents = new StringBuffer(LS);\n for (int i = 0; i < buf.length; i++) {\n if ((i % BY... |
"public boolean equals(Object o) {\n if (!(o instanceof TimeseriesId)) {\n return false;\n }\n TimeseriesId other = (TimeseriesId) o;\n return Objects.equal(context, other.context) && Objects.equal(metric, other.metric) && Objects.equal(tag, other.tag) && Objects.equal(runId, other.runId);\n}\n"
|
"public Composite createArea(Composite parent) {\n int numColumns = 2;\n if (description != null && description.length() > 0) {\n numColumns++;\n }\n if ((style & BUTTON_AGGREGATION) == BUTTON_AGGREGATION) {\n numColumns++;\n }\n if ((style & BUTTON_GROUP) == BUTTON_GROUP) {\n num... |
"void scheduleIdleTimeoutLocked(ActivityRecord next) {\n Message msg = mHandler.obtainMessage(IDLE_TIMEOUT_MSG, next);\n mHandler.sendMessageDelayed(msg, IDLE_TIMEOUT);\n}\n"
|
"public Event.MetaData getEventMetaData(long eventId) {\n return metaDatas[(int) eventId];\n}\n"
|
"public void setTrustManaged(boolean trustManaged) {\n if (trustManaged == mTrustManaged && mState != STATE_UNSET)\n return;\n mTrustManaged = trustManaged;\n updateState(true);\n}\n"
|
"protected void process() {\n if (!stop) {\n Company company = batch.getAccountingBatch().getCompany();\n AccountConfig accountConfig = company.getAccountConfig();\n Account doubtfulCustomerAccount = accountConfig.getDoubtfulCustomerAccount();\n String sixMonthDebtPassReason = accountConf... |
"private CustomQuoteRequest getControlObject() {\n CustomQuoteRequest ctrlObj = new CustomQuoteRequest();\n ctrlObj.requestId = \"String_Node_Str\";\n ctrlObj.currencyPairCode = \"String_Node_Str\";\n ctrlObj.date = calendar;\n return ctrlObj;\n}\n"
|
"public boolean equals(Object o) {\n if (this == o)\n return true;\n if (o == null || getClass() != o.getClass())\n return false;\n WhoisVersionInternal that = (WhoisVersionInternal) o;\n if (revision != that.revision)\n return false;\n if (!from.equals(that.from))\n return fa... |
"private ToolController initToolController(Identity identity, UserRequest ureq) {\n ToolController myTool = ToolFactory.createToolController(getWindowControl());\n CourseConfig cc = uce.getCourseEnvironment().getCourseConfig();\n if (isCourseAdmin || isCourseCoach || hasCourseRight(CourseRights.RIGHT_COURSEEDI... |
"private void _arpLinux() {\n if (_ipMap.size() == 0) {\n System.err.println(\"String_Node_Str\" + _pingLinuxCommand + \"String_Node_Str\");\n }\n try {\n Process process = Runtime.getRuntime().exec(_arpCommand);\n BufferedReader stdOut = null;\n try {\n stdOut = new Buff... |
"private void _replaceRelation(KPort kPort, KNode kNode, Relation newRelation, Relation oldRelation) throws IllegalActionException {\n Port port = null;\n Relation sourceRelation = null;\n if (kPort != null) {\n port = _kieler2PtolemyPorts.get(kPort);\n }\n if (port == null) {\n NamedObj na... |
"public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, AbstractSession session, NamespaceResolver namespaceResolver) {\n if (this.xmlCollectionReferenceMapping.isReadOnly()) {\n return false;\n }\n ContainerPolicy cp = xmlCollectionReferenceMapping.getContainerP... |
"int getValueLength(final Random r) {\n if (this.opts.isValueRandom()) {\n return r.nextInt(opts.valueSize);\n } else if (this.opts.isValueZipf()) {\n return Math.abs(this.zipf.nextInt());\n else\n return opts.valueSize;\n}\n"
|
"public void readData(DataInput in) throws IOException {\n int size = in.readInt();\n keys = new ArrayList<K>(size);\n for (int i = 0; i < size; i++) {\n int length = in.readInt();\n byte[] data = new byte[length];\n in.readFully(data);\n K obj = (K) toObject(data);\n keys.ad... |
"public void run() {\n try {\n tryToInterrupt();\n } catch (Throwable e) {\n LOG.error(\"String_Node_Str\", e);\n }\n}\n"
|
"public static boolean hasMultipleEnabledIMEsOrSubtypes(final boolean shouldIncludeAuxiliarySubtypes) {\n final InputMethodManagerCompatWrapper imm = InputMethodManagerCompatWrapper.getInstance();\n if (imm == null)\n return false;\n final List<InputMethodInfoCompatWrapper> enabledImis = imm.getEnabledI... |
"public void startRequest(MRCRequest rq) {\n try {\n Args rqArgs = (Args) rq.getRequestArgs();\n final VolumeManager vMan = master.getVolumeManager();\n StorageManager sMan = vMan.getStorageManager(rqArgs.volumeID);\n String response = sMan == null ? \"String_Node_Str\" : \"String_Node_St... |
"public void onTeleport(PlayerTeleportEvent event) {\n Location f = event.getFrom();\n Location t = event.getTo();\n Location q = new Location(t.getWorld(), t.getBlockX(), 64, t.getZ());\n if (isPlotWorld(q)) {\n if (isInPlot(q)) {\n Plot plot = getCurrentPlot(event.getTo());\n ... |
"public Class<? extends DiscoveryStrategy> getDiscoveryStrategyType() {\n return LifecycleDiscoveryStrategy.class;\n}\n"
|
"public boolean isRunning() {\n return !this.isDisabled() && (this.getTurret(false) != null && this.wattsReceived >= this.getTurret(false).getFiringRequest() || this.runPowerless);\n}\n"
|
"public int initFromPage(long valueCountL, byte[] page, int offset) throws IOException {\n int valueCount = Ints.checkedCast(valueCountL);\n if (valueCount <= 0) {\n return offset;\n }\n ByteArrayInputStream in = new ByteArrayInputStream(page, offset, page.length);\n int length = BytesUtils.readIn... |
"private Collection<BranchData> checkTargetDbBranches(JdbcConnection connection, Collection<BranchData> selectedBranches) throws OseeCoreException {\n Map<Long, BranchData> idToBranchData = new HashMap<Long, BranchData>();\n for (BranchData data : selectedBranches) {\n guidToImportFileBranchData.put(data.g... |
"public static List<TdView> getViews(Schema schema) {\n TaggedValue tv = TaggedValueHelper.getTaggedValue(TaggedValueHelper.VIEW_FILTER, schema.getTaggedValue());\n String viewFilter = tv == null ? null : tv.getValue();\n return ViewHelper.getViews(schema.getOwnedElement(), viewFilter);\n}\n"
|
"public static void prepare(VMResource vm, MemoryResource mr) {\n immortalMarkState = GC_MARK_BIT_MASK.sub(immortalMarkState);\n}\n"
|
"public void onFailure(String reason) {\n if (reason == null)\n reason = \"String_Node_Str\";\n rowsetChangeSupport.fireNetErrorEvent(reason);\n if (aCallback != null) {\n aCallback.onFailure(reason);\n }\n}\n"
|
"public final PostAggItem constantAccess() throws RecognitionException {\n PostAggItem postAggItem = null;\n Token a = null;\n postAggItem = new PostAggItem(\"String_Node_Str\");\n try {\n {\n {\n int alt128 = 2;\n int LA128_0 = input.LA(1);\n i... |
"public Object[] toArrayObjects() {\n Object[] objs = new Object[6];\n objs[0] = quantity + \"String_Node_Str\";\n objs[1] = item.getUnit().getName();\n objs[2] = item.getDescription();\n objs[3] = item.getStockNumber();\n objs[4] = getEstimatedUnitCost() + \"String_Node_Str\";\n objs[5] = getEstim... |
"private String updateHref(final Attributes atts) {\n String hrefValue = atts.getValue(ATTRIBUTE_NAME_HREF);\n if (hrefValue == null) {\n return null;\n }\n if (fixpath != null && hrefValue.startsWith(fixpath)) {\n hrefValue = hrefValue.substring(fixpath.length());\n }\n if (changeTable ... |
"public void parseOption(String arg, LinkedList args) {\n int nextArgIndex = args.indexOf(arg) + 1;\n if (LangUtil.isEmpty(arg)) {\n showWarning(\"String_Node_Str\");\n } else if (arg.equals(\"String_Node_Str\")) {\n ;\n if (args.size() > nextArgIndex) {\n buildConfig.getAjOptio... |
"protected void doSetConfigProperties(String name, GriffonService service) {\n if (LOG.isInfoEnabled()) {\n LOG.info(\"String_Node_Str\" + name + \"String_Node_Str\");\n }\n name = name.substring(0, name.length() - TRAILING.length());\n ConfigObject config = (ConfigObject) ConfigUtils.getConfigValue(... |
"private WatchKey processKey() throws InterruptedException {\n WatchKey key = watcher.take();\n for (WatchEvent<?> event : key.pollEvents()) {\n Kind<?> kind = event.kind();\n if (kind == StandardWatchEventKinds.OVERFLOW) {\n continue;\n }\n WatchEvent<Path> ev = (WatchEvent... |
"private int readUtterance() throws IOException {\n int count = 0;\n Cepstrum input = null;\n do {\n input = predecessor.getCepstrum();\n if (input != null) {\n if (input.hasContent()) {\n numberDataCepstra++;\n float[] cepstrumData = input.getCepstrumData... |
"public void updateWorkspacePatchPrefixes(StringBuilder sb, DiffFormatter diffFmt) {\n RawText rt;\n try {\n rt = new RawText(sb.toString().getBytes(\"String_Node_Str\"));\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e);\n }\n final String oldPrefix = diffFmt.ge... |
"public void combineConnectorResourceDefinitionDescriptors(JndiNameEnvironment env) {\n for (ConnectorResourceDefinitionDescriptor crdd : env.getConnectorResourceDefinitionDescriptors()) {\n ConnectorResourceDefinitionDescriptor desc = getConnectorResourceDefinitionDescriptor(crdd.getName());\n if (des... |
"private static synchronized Realm doInstantiate(String name, String className, Properties props) throws BadRealmException {\n Habitat habitat = Globals.getDefaultHabitat();\n RealmsManager mgr = null;\n try {\n mgr = getRealmsManager();\n Class realmClass = null;\n Realm r = habitat.getCo... |
"public void onRightClick(Player player, HumanNPC npc) {\n if (Permission.canUse(player, npc, getType())) {\n Operation op = null;\n if (npc.getBlacksmith().getToolType(player.getItemInHand()).equals(\"String_Node_Str\")) {\n op = Operation.BLACKSMITH_TOOLREPAIR;\n } else if (npc.getB... |
"public void onPause() {\n super.onPause();\n mLocalActivityManager.dispatchPause(getActivity().isFinishing());\n}\n"
|
"public Set<String> getClassValues() {\n return this.ROC.keySet();\n}\n"
|
"public void execute() throws Exception {\n InstanceValidator v = new InstanceValidator(SimpleWorkerContext.fromPack(pack.getAbsolutePath()), null);\n Document reg = parseXml(registry.getAbsolutePath());\n List<Element> tests = new ArrayList<Element>();\n XMLUtil.getNamedChildren(reg.getDocumentElement(), \... |
"public AbstractRecord extractPrimaryKeyRowFromExpression(Expression expression, AbstractRecord translationRow, AbstractSession session) {\n AbstractRecord primaryKeyRow = createRecord(getPrimaryKeyMappings().size(), session);\n expression.getBuilder().setSession(session.getRootSession(null));\n boolean isVali... |
"protected void buildDelayList(Readable readable) {\n String text = readable.getText();\n List<Integer> res = new ArrayList<Integer>();\n for (String word : readable.getWordList()) res.add(measureWord(word));\n readable.setDelayList(res);\n}\n"
|
"private void testStatusCode(int code, String statusMessage) {\n server.requestHandler(req -> {\n if (code != -1) {\n req.response().setStatusCode(code);\n }\n if (statusMessage != null) {\n req.response().setStatusMessage(statusMessage);\n }\n req.response().... |
"private void drawPickedObjectInfoSingle(final GL gl, final PathwayVertex pickedVertex, final boolean bDrawDisplaced) {\n if (fArWorldCoordinatePosition == null)\n return;\n gl.glPushMatrix();\n gl.glTranslatef(fArWorldCoordinatePosition[0], fArWorldCoordinatePosition[1], fZValue);\n if (bDrawDisplac... |
"public void onNext(UserEntity userEntity) {\n cookieManager.getCookieStore().removeAll();\n userUtils.disableAllUsersWithoutId(userEntity.getId());\n if (getIntent().getExtras().containsKey(\"String_Node_Str\")) {\n handleFromNotification();\n } else {\n initViews();\n checkPermissions... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.