content stringlengths 40 137k |
|---|
"public static String getMaterialName(Material material) {\n String ret = material.toString();\n ret = ret.replace('_', ' ');\n ret = ret.toLowerCase();\n return ret;\n}\n"
|
"public LayerDTO[] getLayersInProduct(String workspaceId, String ciId) {\n try {\n ConfigurationItemKey ciKey = new ConfigurationItemKey(workspaceId, ciId);\n List<Layer> layers = productService.getLayers(ciKey);\n LayerDTO[] layerDtos = new LayerDTO[layers.size()];\n for (int i = 0; i < ... |
"public Enum getAccess() {\n if (hasAccess()) {\n return super.getAccess();\n } else {\n return getDescriptor().getDefaultAccess();\n }\n}\n"
|
"public void clear() {\n cache.clear();\n}\n"
|
"protected void restoreWidgetValuesForWS() {\n IDialogSettings settings = getDialogSettings();\n if (settings != null) {\n String[] directoryNames = settings.getArray(STORE_DESTINATION_NAMES_ID);\n if (directoryNames != null && directoryNames.length > 0) {\n String fileName = getDefaultFi... |
"private String getLabel(Object element) {\n if (element instanceof IRepositoryViewObject) {\n Item item = ((IRepositoryViewObject) element).getProperty().getItem();\n IRepositoryNodeConfiguration conf = RepositoryNodeConfigurationManager.getConfiguration(item);\n if (conf != null) {\n ... |
"private void _applyLayout(KNode kgraph) throws IllegalActionException {\n GraphModel graph = this.getLayoutTarget().getGraphModel();\n if (graph instanceof ActorGraphModel) {\n Collection<KNode> kNodes = kgraph.getChildren();\n if (_doBoxLayout) {\n kNodes = _kieler2ptolemyEntityNodes.ke... |
"private String getCrfVersionStatus(String seSubjectEventStatus, int cvStatusId, int ecStatusId, int validatorId) {\n DataEntryStage stage = DataEntryStage.INVALID;\n Status status = Status.get(ecStatusId);\n if (stage.equals(DataEntryStage.INVALID) || status.equals(Status.INVALID)) {\n stage = DataEntr... |
"public static Map<Class<? extends AbstractRule>, Rule> parseConfig(ConfigurationSection config) {\n Map<Class<? extends AbstractRule>, Rule> rules = Collections.emptyMap();\n if (system != null && system.getConfigurationSection(\"String_Node_Str\") != null) {\n UnderSeaLevelRule rule = new UnderSeaLevelRu... |
"public void drawVertical(Canvas c, RecyclerView parent) {\n final int left = parent.getPaddingLeft();\n final int right = parent.getWidth() - parent.getPaddingRight();\n final int childCount = parent.getChildCount();\n for (int i = 0; i < childCount; i++) {\n final View child = parent.getChildAt(i);... |
"public void endElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord) {\n unmarshalRecord.removeNullCapableValue(this);\n XMLField xmlField = (XMLField) xmlDirectMapping.getField();\n if (!xmlField.getLastXPathFragment().nameIsText) {\n return;\n }\n Object value;\n if (unmarsha... |
"private void process(double dval) {\n HistogramUnit hu = getHistogramUnitIndex(dval);\n if (hu != null) {\n hu.setHcnt(hu.getHcnt() + frequency);\n } else {\n hu = new HistogramUnit(dval, 1);\n histogram.add(hu);\n Collections.sort(histogram);\n if (histogram.size() > this.m... |
"public boolean isActorReady() throws PtalonRuntimeException {\n if (_currentActorTree == null) {\n throw new PtalonRuntimeException(\"String_Node_Str\");\n }\n if ((_currentActorTree.created)) {\n if (_inNewWhileIteration()) {\n if (_currentIfTree.isForStatement) {\n in... |
"public void suck() {\n HashSet<UUID> sucked = new HashSet<UUID>();\n for (SCLItem item : list.values()) {\n if (!item.isLocationDeferred()) {\n Block block = item.getLocation().getBlock();\n Chunk chunk = block.getChunk();\n if (chunk.isLoaded() && plugin.canSuck.contains(... |
"public So2Pose mult(So2Pose postPose) {\n double[][] aM = { { Math.cos(orientation), -Math.sin(orientation), getX() }, { Math.sin(orientation), Math.cos(orientation), getY() }, { 0, 0, 1 } };\n double[][] bM = { { Math.cos(postPose.orientation), -Math.sin(postPose.orientation), postPose.getX() }, { Math.sin(post... |
"public void handleLayoutInflated(LayoutInflatedParam liparam) throws Throwable {\n final FrameLayout frameLayout = (FrameLayout) liparam.view.findViewById(liparam.res.getIdentifier(\"String_Node_Str\", \"String_Node_Str\", Common.PACKAGE_SNAP)).getParent();\n saveSnapButton = new ImageButton(localContext);\n ... |
"protected void processWhenDispose() {\n if (threadExecutor != null) {\n threadExecutor.clearThreads();\n ExtractMetaDataUtils.getInstance().closeConnection();\n }\n}\n"
|
"protected ICompletableFuture<Boolean> putIfAbsentAsyncInternal(K key, V value, ExpiryPolicy expiryPolicy, boolean withCompletionEvent) {\n ensureOpen();\n validateNotNull(key, value);\n CacheProxyUtil.validateConfiguredTypes(cacheConfig, key, value);\n final Data keyData = toData(key);\n final Data valu... |
"<T> void initializeBinding(BindingImpl<T> binding, Errors errors) throws ErrorsException {\n if (binding instanceof ConstructorBindingImpl<?>) {\n ((ConstructorBindingImpl) binding).initialize(this, errors);\n }\n}\n"
|
"public void setValueAt(Object value, int row, int col) {\n try {\n switch(col) {\n case 0:\n data.setHopName(row, value.toString());\n if (value instanceof Hop) {\n Hop h = (Hop) value;\n data.setHopAlpha(row, h.getAlpha());\n ... |
"public void testCoverage() {\n File file1 = new File(\"String_Node_Str\");\n File aspect1 = new File(\"String_Node_Str\");\n File file2 = new File(\"String_Node_Str\");\n File file3 = new File(\"String_Node_Str\");\n File file4 = new File(\"String_Node_Str\");\n File file5 = new File(\"String_Node_St... |
"public Long getNetTotalInMegs() {\n return netTotalInMegs;\n}\n"
|
"public static int getStartingGroupLevel(EdgeCursor edgeCursor, List groupCursors) throws OLAPException {\n if (edgeCursor.isFirst()) {\n return 0;\n }\n for (int i = 0; i < groupCursors.size() - 1; i++) {\n DimensionCursor dc = groupCursors.get(i);\n if (GroupUtil.isDummyGroup(dc)) {\n ... |
"public List<IComponent> filterNeededComponents(Item item, RepositoryNode seletetedNode, ERepositoryObjectType type) {\n List<IComponent> neededComponents = new ArrayList<IComponent>();\n if (!(item instanceof JSONFileConnectionItem)) {\n return neededComponents;\n }\n IComponentsService service = (I... |
"private Class<?> injectToURLClassLoader(URLClassLoader classLoader, String className) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, ClassNotFoundException {\n final URL[] urls = classLoader.getURLs();\n if (urls != null) {\n boolean hasPluginJar = false;\n for ... |
"public void exportSound(OutputStream fos, SoundTag st, SoundExportMode mode) throws IOException {\n SoundFormat fmt = st.getSoundFormat();\n int nativeFormat = fmt.getNativeExportFormat();\n if (nativeFormat == SoundFormat.EXPORT_MP3 && mode.hasMP3()) {\n List<byte[]> datas = st.getRawSoundData();\n ... |
"private Map<P, Tuple<P, List<E>>> msmt(final Set<P> sources, final Set<P> targets, Cost<E> cost, Cost<E> bound, Double max) {\n class Mark extends Quadruple<E, E, Double, Double> implements Comparable<Mark> {\n private static final long serialVersionUID = 1L;\n public Mark(E one, E two, Double three, ... |
"private void setFileNamePrefix() {\n this.fileNamePrefix = \"String_Node_Str\" + new Long(System.nanoTime()).toString() + \"String_Node_Str\" + getID() + \"String_Node_Str\" + Integer.toHexString(hashCode());\n}\n"
|
"private void updateModelString() {\n StringBuilder builder = new StringBuilder();\n String oldModelString = getModelString();\n for (IParamValueToken token : getTokens()) {\n builder.append(token.getModelString());\n }\n setModelString(builder.toString());\n for (IDataSetPO dataSet : getCurren... |
"public WebResourceResponse shouldInterceptRequest(WebView view, WebResourceRequest resourceRequest) {\n String currentUrl = resourceRequest.getUrl().toString();\n if (!mTrackingProtectionEnabled && !mAdblockEnabled && !mHttpsEverywhereEnabled || mUrl.toString().equals(currentUrl)) {\n return null;\n }\... |
"protected boolean hasJdbcType() {\n return m_jdbcType != null && !m_jdbcType.equals(-1);\n}\n"
|
"public void computeTileStack(Map<Band, Tile> targetTileMap, Rectangle targetRectangle, ProgressMonitor pm) throws OperatorException {\n try {\n int y0 = targetRectangle.y;\n int yN = y0 + targetRectangle.height - 1;\n int x0 = targetRectangle.x;\n int xN = targetRectangle.x + targetRecta... |
"protected void queueCommand(Command cmd) {\n commands.add(cmd);\n log(\"String_Node_Str\" + cmd.getClass().getSimpleName());\n latch.countDown();\n waitForCommandToComplete();\n threadState.set(WAITING);\n}\n"
|
"public void onResponse(Call<StackAnswer> call, Response<StackAnswer> response) {\n Log.e(\"String_Node_Str\", \"String_Node_Str\" + response.code());\n if (response.isSuccessful()) {\n StackAnswer stackAnswer = response.body();\n Log.e(\"String_Node_Str\", \"String_Node_Str\" + stackAnswer.getItems... |
"public void writeValueEdit(Object value) {\n reportlock = true;\n Object[] myprod = (Object[]) value;\n m_jTitle.setText(Formats.STRING.formatValue(myprod[1]) + \"String_Node_Str\" + Formats.STRING.formatValue(myprod[3]));\n m_id = myprod[0];\n m_jRef.setText(Formats.STRING.formatValue(myprod[1]));\n ... |
"public String getResourceManager() {\n return getRealValue(this.resourceManager);\n}\n"
|
"public CollectionRegionAccessStrategy buildAccessStrategy(final AccessType accessType) throws CacheException {\n if (null == accessType) {\n throw new CacheException(\"String_Node_Str\");\n }\n if (AccessType.READ_ONLY.equals(accessType)) {\n return new ReadOnlyAccessStrategy(this, props);\n ... |
"public String changeRegimen(String existingTreatmentAdviceId, String discontinuationReason, TreatmentAdvice treatmentAdvice, String clinicVisitId, Model uiModel, HttpServletRequest httpServletRequest) {\n uiModel.asMap().clear();\n fixTimeString(treatmentAdvice);\n String treatmentAdviceId = existingTreatment... |
"public static void runCommand(String command) throws IOException {\n if (command == null) {\n return;\n }\n try {\n Runtime rt = Runtime.getRuntime();\n rt.exec(command, null, new File(command.split(\"String_Node_Str\")[0]).getParentFile());\n } catch (Exception e) {\n logger.se... |
"public void finish(int item) {\n boolean offer = progressItems.offer(item);\n if (!offer) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n}\n"
|
"public void addConsToMatrix(DmvTreeProgram pp, IloLPMatrix mat) throws IloException {\n CplexUtils.addRows(mat, pp.oneArcPerWall);\n CplexUtils.addRows(mat, pp.oneParent);\n CplexUtils.addRows(mat, pp.oneArcPerPair);\n mat.addRows(pp.rootFlowIsSentLength);\n CplexUtils.addRows(mat, pp.flowDiff);\n Cp... |
"private void calculateNextEventTime(long cycles) {\n long time = nextTimerTrigger;\n int smallest = -1;\n for (int i = 0; i < noCompare; i++) {\n long ct = expCaptureTime[i];\n if (ct > 0 && ct < time) {\n time = ct;\n smallest = i;\n }\n }\n if (time == 0) {\n... |
"public void run() {\n request.start();\n final Integer[] CHUNK_SIZE = new Integer[1];\n CHUNK_SIZE[0] = Math.min(request.getNbRequested(), blockSize + ((indexing) ? 1 : 0));\n final Integer[] nbRead = new Integer[1];\n nbRead[0] = 0;\n final Boolean[] isFinished = new Boolean[1];\n isFinished[0] =... |
"public void testMiddleSource() throws Exception {\n JournalWriter<Quote> w = factory.writer(Quote.class);\n TestUtils.generateQuoteData(w, 100000);\n StringSink sink = new StringSink();\n RecordSourcePrinter p = new RecordSourcePrinter(sink);\n p.print(new TopRecordSource(compiler.compileSource(factory,... |
"private void sendDeathMessage(final EntityDeathEvent event) {\n if (event.getEntity() instanceof CraftMyPet) {\n MyPet myPet = ((CraftMyPet) event.getEntity()).getMyPet();\n String killer;\n if (event.getEntity().getLastDamageCause() instanceof EntityDamageByEntityEvent) {\n EntityDa... |
"public final void kill() {\n if (state == EMovableState.DEAD) {\n return;\n }\n grid.leavePosition(this.position, this);\n this.health = -200;\n this.strategy.strategyKilledEvent(path != null ? path.getTargetPos() : null);\n movablesByID.remove(this.getID());\n allMovables.remove(this);\n ... |
"public void element(XPathFragment frag) {\n try {\n if (isStartElementOpen) {\n openAndCloseStartElement();\n isStartElementOpen = false;\n }\n String prefix = frag.getPrefix();\n if (null == prefix) {\n prefix = XMLConstants.EMPTY_STRING;\n }\n ... |
"void createShardsForReference(SAMSequenceRecord reference, Contig contig) {\n final BitSet overlappingBins = GenomicIndexUtil.regionToBins((int) contig.start, (int) contig.end);\n if (overlappingBins == null) {\n LOG.warning(\"String_Node_Str\" + contig.start + \"String_Node_Str\" + contig.end);\n ... |
"private void step() {\n while (true) {\n encoderPub.publish(new EncoderMeasurement(10, 2));\n gpsPub.publish(new GpsMeasurement(null, null, 42.00f, false, -76.00f, false, 0, 0, brake_down, brake_down));\n imuPub.publish(new ImuMeasurement(0, 0, 1, 2, 3, 4, 5, 6, 7));\n reqAnglePub.publis... |
"public void handleMessage(Message msg) {\n switch(msg.what) {\n case View.AttachInfo.INVALIDATE_MSG:\n ((View) msg.obj).invalidate();\n break;\n case View.AttachInfo.INVALIDATE_RECT_MSG:\n final View.AttachInfo.InvalidateInfo info = (View.AttachInfo.InvalidateInfo) msg... |
"public void update(Target target) {\n User user = target.getUser();\n Team team = target.getTeam();\n LocalDate fromDate = target.getFromDate();\n LocalDate toDate = target.getToDate();\n LocalDateTime fromDateTime = new LocalDateTime(fromDate.getYear(), fromDate.getMonthOfYear(), fromDate.getDayOfMonth... |
"public void removeTask(int taskId, boolean isDocument) {\n if (mAm == null)\n return;\n if (Constants.DebugFlags.App.EnableSystemServicesProxy)\n return;\n mAm.removeTask(taskId);\n}\n"
|
"public String getName() {\n return astRoot.getIdentifier().getEscapedCodeStr();\n}\n"
|
"public String filter(String term) {\n dribble.nextToken = saveWildcards(term);\n try {\n Token mapped = filter.next();\n if (mapped.termText().equals(term))\n return term;\n return mapped.termText();\n } catch (IOException e) {\n throw new RuntimeException(\"String_Node_... |
"public MLDataPair toMLDataPair(List<Integer> dataColumnIdList, Set<Integer> workingColumnSet) {\n double[] params = new double[workingColumnSet.size()];\n int pos = 0;\n for (int i = 0; i < dataColumnIdList.size(); i++) {\n if (workingColumnSet.contains(dataColumnIdList.get(i))) {\n params[p... |
"public long hashChar(char input) {\n int unsignedInput = (int) input;\n int firstByte = (unsignedInput >> FIRST_SHORT_BYTE_SHIFT) & FIRST_SHORT_BYTE_MASK;\n int secondByte = (unsignedInput >> SECOND_SHORT_BYTE_SHIFT) & SECOND_SHORT_BYTE_MASK;\n long hash = hash1To3Bytes(2, firstByte, secondByte, secondByte... |
"public boolean isExit(Statement n) {\n switch(n.getKind()) {\n case PARAM_CALLEE:\n case HEAP_PARAM_CALLEE:\n case PHI:\n case NORMAL_RET_CALLER:\n case PARAM_CALLER:\n case HEAP_RET_CALLER:\n case NORMAL:\n case EXC_RET_CALLER:\n return false;\n ... |
"public static Set<String> getMissingJars(HDFSConnectionBean connection) {\n Set<String> set = new HashSet<String>();\n Set<String> jars = new HashSet<String>();\n ClassLoader classLoader = HadoopClassLoaderFactory.getClassLoader(connection.getDistribution(), connection.getDfVersion(), false, false);\n if (... |
"public boolean canInsertItem(int index, ItemStack itemStackIn, EnumFacing direction) {\n return isItemValidForSlot(index, itemStackIn);\n}\n"
|
"public Boolean get() {\n ModuleSelectionInfo info = moduleList.getSelection();\n return info != null && info.isPresent() && !isSelectedGameplayModule(info) && (info.isSelected() || info.isValidToSelect());\n}\n"
|
"public SqlDatabaseImpl withoutTag(String key) {\n if (this.inner().getTags() != null) {\n this.inner().getTags().remove(key);\n }\n return this;\n}\n"
|
"private String[] getNames(String vals) {\n List<String> nn = StrUtils.splitSmart(vals, charSeparator);\n String[] names = new String[nn.size()];\n int j = 0;\n for (String n : nn) {\n names[j] = unescape(n);\n j++;\n }\n return names;\n}\n"
|
"public static boolean exists(final Configuration conf, String input, final Properties providerProperties) throws IOException {\n return resolveNameToPath(conf, input, providerProperties, true, false) != null;\n}\n"
|
"public boolean onCommand(CommandSender sender, Command commandArg, String commandLabel, String[] arg) {\n try {\n Player player = (Player) sender;\n String command = commandArg.getName().toLowerCase();\n try {\n if (command.equalsIgnoreCase(\"String_Node_Str\")) {\n if... |
"public void onTextureAcceptable(int texture, GLRender source) {\n super.onTextureAcceptable(texture, source);\n try {\n if (mVideoEncoder != null) {\n int oldTexture = mVideoEncoder.getInputTextureId();\n if (texture != oldTexture) {\n mVideoEncoder.setInputTextureId(t... |
"public void Status(String[] args, User user) {\n PermissionUser puser2 = null;\n User user2 = null;\n if (args.length == 1 && !user.hasPerm(\"String_Node_Str\")) {\n user.sendMessage(ChatColor.RED + \"String_Node_Str\");\n return;\n } else if (args.length == 1) {\n if ((puser2 = Permis... |
"public void handleEvent(Event event) {\n if (chart != null) {\n IAxisSet axisSet = chart.getAxisSet();\n if (axisSet != null) {\n IAxis xAxis = axisSet.getXAxis(0);\n if (xAxis != null) {\n Point cursor = chart.getPlotArea().toControl(Display.getCurrent().getCursor... |
"public void render(final Treeitem item, final Object data) throws Exception {\n final Tree tree = item.getTree();\n final Component parent = item.getParent();\n final int index = item.getIndex();\n final Template tm = resoloveTemplate(tree, parent, data, index, \"String_Node_Str\");\n if (tm == null) {\... |
"public SparseVector saxpy(double scalar, Vector vector) {\n checkVectorSize(vector);\n SparseVector resultVector = new SparseVector(size, hashMap);\n if (vector.type() != VectorType.SPARSE) {\n for (int i = 0; i < size; i++) {\n resultVector.set(i, this.get(i) + scalar * vector.get(i));\n ... |
"public HashMap<String, HashMap<PlotId, Plot>> getPlotMePlots(Connection connection) throws SQLException {\n ResultSet r;\n PreparedStatement stmt;\n HashMap<String, Integer> plotWidth = new HashMap<>();\n HashMap<String, Integer> roadWidth = new HashMap<>();\n final HashMap<Integer, Plot> plots = new Ha... |
"public void actionPerformed(ActionEvent e) {\n if (!element.isEditable()) {\n Application.getInstance().getGUILog().log(\"String_Node_Str\");\n return;\n }\n SessionManager.getInstance().createSession(\"String_Node_Str\");\n try {\n element.setBody(Utils.addHtmlWrapper(doc));\n ... |
"public void filterQueryFailed(FilterQuery query) {\n if (currentFilterQuery.equals(query))\n filterQueryFinished(query, false);\n}\n"
|
"public static ApplicationInfo generateApplicationInfo(Package p, int flags) {\n if (p == null)\n return null;\n if (!copyNeeded(flags, p, null)) {\n if (!sCompatibilityModeEnabled) {\n p.applicationInfo.disableCompatibilityMode();\n }\n return p.applicationInfo;\n }\n ... |
"public org.hl7.fhir.dstu2.model.QuestionnaireResponse convertQuestionnaireResponse(org.hl7.fhir.dstu3.model.QuestionnaireResponse src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.QuestionnaireResponse tgt = new org.hl7.fhir.dstu2.model.Questionnaire... |
"private Set<MethodOutline> addTransition(StateClass state, BlockOutline block, Set<MethodOutline> combination, Set<MethodOutline> triggered, MethodOutline method) {\n final Set<MethodOutline> nextMethods = computeNextMethods(combination, triggered, method);\n final StateClass next = getStateFromBlockAndMethods(b... |
"public void testEnum() {\n runConformTest(new String[] { \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" }, \"String_Node_Str\");\n}\n"
|
"public static AnnotatorConfiguration getAnnotatorConfig(String name) {\n switch(name) {\n case BabelfyAnnotatorConfig.ANNOTATOR_NAME:\n return new BabelfyAnnotatorConfig();\n case NIFWebserviceAnnotatorConfiguration.ANNOTATOR_NAME:\n return new NIFWebserviceAnnotatorConfiguration... |
"public String getMode() {\n if (this.isEnabled()) {\n return DEFAULT_MODE;\n return DISABLED_MODE;\n}\n"
|
"public ValidateResult validate(AliasTransaction tx) {\n Alias alias = tx.getTxData();\n if (!Address.validAddress(alias.getAddress())) {\n return ValidateResult.getFailedResult(this.getClass().getName(), AccountErrorCode.ADDRESS_ERROR);\n }\n if (!StringUtils.validAlias(alias.getAlias())) {\n ... |
"private int getWeight(long id) {\n TLongBitArraySet m = nodeMrcaTipsAndInternal.get(id);\n if (m == null) {\n return 1;\n } else {\n return m.size();\n }\n}\n"
|
"public void onCompleted(JSONObject object, GraphResponse response) {\n try {\n SocialUser user = new SocialUser();\n user.userId = getValue(\"String_Node_Str\", object);\n user.accessToken = AccessToken.getCurrentAccessToken().getToken();\n user.profilePictureUrl = String.format(PROFILE_... |
"static final StackedSeriesLookup create(ChartWithAxes cwa, RunTimeContext rtc) throws ChartException, IllegalArgumentException {\n if (cwa == null) {\n return null;\n }\n final StackedSeriesLookup ssl = new StackedSeriesLookup(rtc);\n final Axis axBase = cwa.getBaseAxes()[0];\n final Axis[] axaOr... |
"protected void setEquations(final ExpandableStatefulODE equations) {\n this.expandable = equations;\n}\n"
|
"public ImportItem computeImportItem(IProgressMonitor monitor, ResourcesManager resManager, IPath resourcePath, boolean overwrite) throws Exception {\n if (resManager == null || resourcePath == null) {\n return null;\n }\n if (!validResourcePath(resourcePath)) {\n return null;\n }\n ImportI... |
"private boolean trigger(IAssistTagAttributeState state) {\n Assert.isNotNull(state, \"String_Node_Str\");\n if (state.getTagName().compareToIgnoreCase(\"String_Node_Str\") != 0)\n return false;\n if (state.getAttribute().compareToIgnoreCase(\"String_Node_Str\") != 0)\n return false;\n return ... |
"private void _init() throws IllegalActionException, NameDuplicationException {\n _state = new State(_controller, \"String_Node_Str\");\n _controller.initialStateName.setExpression(\"String_Node_Str\");\n directorClass.setVisibility(Settable.EXPERT);\n control = new PortParameter(this, \"String_Node_Str\");... |
"public void init() throws XPathExpressionException, URISyntaxException, SAXException, XMLStreamException, LoginAuthenticationExceptionException, IOException, AutomationUtilException {\n super.initCluster(TestUserMode.SUPER_TENANT_ADMIN);\n automationContext = getAutomationContextWithKey(\"String_Node_Str\");\n ... |
"public void createCluster(final String name, final String type, final String distro, final String specFilePath, final String rpNames, final String dsNames, final String networkName, final String topology, final boolean resume, final boolean skipConfigValidation, final boolean alwaysAnswerYes) {\n this.alwaysAnswerY... |
"public void visitContainer(IContainerArea container) {\n if (container instanceof PageArea) {\n newPage(container);\n new SlideWriter(this).writeSlide((PageArea) container);\n this.pageGraphic.dispose();\n } else if (container instanceof TableArea) {\n outputTable((TableArea) containe... |
"private JComponent _getModeTransitionPanel() {\n JPanel modeTransitionTablePanel = new JPanel(new BorderLayout());\n final ModeTransitionTableModel tableModel = new ModeTransitionTableModel(_model);\n final JTable table = new JTable(tableModel);\n table.setGridColor(Color.black);\n JButton addRowButton ... |
"public void takeDamage(byte damage, int thisPlayerIndex, int thisMinionIndex, HearthTreeNode<BoardState> boardState, Deck deck) throws HSInvalidPlayerIndexException {\n byte damageRemaining = (byte) (damage - armor_);\n if (damageRemaining > 0) {\n armor_ = 0;\n super.takeDamage(damageRemaining, at... |
"private final void performLayoutLockedInner() {\n final int dw = mDisplay.getWidth();\n final int dh = mDisplay.getHeight();\n final int N = mWindows.size();\n int repeats = 0;\n int i;\n while (mLayoutNeeded) {\n mPolicy.beginLayoutLw(dw, dh);\n int topAttached = -1;\n for (i = ... |
"public static File getExternalProjectFolder(Project project, Context context) {\n initExternalStorage(context);\n String folderName = project.getId() + \"String_Node_Str\";\n File fileProject = new File(sFileExternDir, folderName);\n fileProject.mkdirs();\n return fileProject;\n}\n"
|
"public org.hl7.fhir.dstu2.model.CodeableConcept convertCodeableConcept(org.hl7.fhir.dstu3.model.CodeableConcept src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.CodeableConcept tgt = new org.hl7.fhir.dstu2.model.CodeableConcept();\n copyElement(s... |
"private RPCResultPacket put(String filename, String contents, int id) {\n if (!Utility.fileExists(this, filename)) {\n logError(\"String_Node_Str\" + this.addr + \"String_Node_Str\" + filename + \"String_Node_Str\");\n return new RPCResultPacket(id, Status.NOT_EXIST, Utility.stringToByteArray(Status.N... |
"public synchronized void run() {\n if (connectionNo > 0) {\n long time = System.currentTimeMillis();\n for (int i = 0; i < connectionNo; i++) {\n TCPConnection connection = activeConnections[i];\n switch(connection.state) {\n case TCPConnection.CLOSE_WAIT:\n ... |
"public static Class<?> classForName(String name, ClassLoader... loaders) throws ClassNotFoundException {\n try {\n if (Thread.currentThread().getContextClassLoader() != null) {\n return Class.forName(name, true, Thread.currentThread().getContextClassLoader());\n } else {\n return... |
"public void start() {\n final ClassPathResolver classPathResolver = new ClassPathResolver();\n boolean agentJarNotFound = classPathResolver.findAgentJar();\n if (!agentJarNotFound) {\n logger.severe(\"String_Node_Str\");\n logPinpointAgentLoadFail();\n return;\n }\n final String boo... |
"private void initServlet(Servlet servlet) throws ServletException {\n if (instanceInitialized && !singleThreadModel) {\n return;\n }\n try {\n instanceSupport.fireInstanceEvent(BEFORE_INIT_EVENT, servlet);\n if (SecurityUtil.executeUnderSubjectDoAs()) {\n Object[] initType = ne... |
"protected void setUp() throws Exception {\n super.setUp();\n cells[0] = new CellArea(10, 10, 40, 40);\n cells[1] = new CellArea(50, 10, 40, 40);\n cells[2] = new CellArea(90, 10, 40, 40);\n cells[2].defineBorder(BorderInfo.RIGHT_BORDER, 6);\n cells[2].defineBorder(BorderInfo.RIGHT_BORDER, Color.orang... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.