content stringlengths 40 137k |
|---|
"public float getAmount4() {\n return (float) DecimalRounder.roundOff((quantityQuarter4 * item.getPrice()), 2);\n}\n"
|
"public void testAll() throws Exception {\n File jarFile = createAppJarFile(FakeApp.class);\n appClient.deploy(jarFile);\n verifyProgramNames(FakeApp.PROCEDURES, procedureClient.list());\n programClient.start(FakeApp.NAME, ProgramType.PROCEDURE, FakeProcedure.NAME);\n assertProgramRunning(programClient, ... |
"public IPreparedQuery getPreparedQuery() {\n return this.pQuery;\n}\n"
|
"private void build(Node node, int nodeIndex, TailBuilder tb) {\n char[] letters = node.getLetters();\n if (letters != null) {\n if (letters.length > 1) {\n int tailIndex = tb.insert(letters, 1, letters.length - 1);\n tail[nodeIndex] = tailIndex;\n }\n if (node.isTermina... |
"private void getAllVersions(Project project, Property property, List<IRepositoryViewObject> allVersion) throws PersistenceException {\n ERepositoryObjectType itemType = ERepositoryObjectType.getItemType(property.getItem());\n Object fullFolder = getFullFolder(project, itemType, property.getItem().getState().getP... |
"protected void removeEmptyLabel() {\n jobsPanel.remove(noJobLabel);\n GuiUtil.refresh(this);\n}\n"
|
"public void writeToNBT(NBTTagCompound nbt) {\n super.writeToNBT(nbt);\n nbt.setByte(\"String_Node_Str\", type);\n nbt.setByte(\"String_Node_Str\", facing);\n nbt.setBoolean(\"String_Node_Str\", locked);\n if (storedStack != null) {\n nbt.setTag(\"String_Node_Str\", storedStack.writeToNBT(new NBTT... |
"public T getById(int univId) throws DaoException {\n DSLContext context = getJooq();\n try {\n Result<Record> result = context.select().from(Tables.UNIVERSAL_PAGE).where(Tables.UNIVERSAL_PAGE.UNIV_ID.eq(univId)).and(Tables.UNIVERSAL_PAGE.ALGORITHM_ID.eq(algorithmId)).fetch();\n return (UniversalPag... |
"void setupUI() {\n setupTermfilterSpinners();\n JPanel termfilterPanel = new JPanel();\n termfilterPanel.setLayout(new BoxLayout(termfilterPanel, BoxLayout.X_AXIS));\n termfilterPanel.add(new JLabel(\"String_Node_Str\"));\n termfilterPanel.add(tpSpinner);\n termfilterPanel.add(new JLabel(\"String_Nod... |
"private void lazyInitialize() {\n if (initialized) {\n return;\n }\n synchronized (this) {\n if (initialized) {\n return;\n }\n XMLDescriptor xmlDescriptor = (XMLDescriptor) getDescriptor();\n Iterator mappingIterator = xmlDescriptor.getMappings().iterator();\n ... |
"protected void flushContainer() throws IllegalArgumentException, IllegalAccessException, IOException {\n final byte[] refs;\n String refSeqName = null;\n if (refSeqIndex == SAMRecord.NO_ALIGNMENT_REFERENCE_INDEX)\n refs = new byte[0];\n else {\n final SAMSequenceRecord sequence = samFileHeade... |
"private TableData findDeletes(TableData existingData, TableData newData, String primaryKeyColumns) {\n boolean found;\n TableData deletes = new TableData(newData.tableName);\n Iterator<String> existingRowItr = existingData.getTableData().keySet().iterator();\n while (existingRowItr.hasNext()) {\n St... |
"public static ImageFeatures readFeatures(File fFolder, MegaFeatures megaFeatures) {\n Line mega = new Line(megaFeatures.megafacade);\n ImageFeatures out = new ImageFeatures();\n out.mega = megaFeatures;\n Line imageL = null;\n out.miniFacades = new ArrayList();\n double ppm = 40;\n {\n if (... |
"private void readRequiredJarFiles(final Kryo kryo, final Input input) throws IOException {\n final int numJars = input.readInt();\n if (numJars > 0) {\n for (int i = 0; i < numJars; i++) {\n final Path p = new Path();\n p.read(kryo, input);\n this.userJars.add(p);\n ... |
"public CompletionStage<Result> show(final String languageTag) {\n final CompletionStage<Cart> loadedCart = getOrCreateCart();\n final CompletionStage<Object> completionStage = loadedCart.thenComposeAsync(cart -> runAsyncHook(CartLoadedHook.class, hook -> hook.cartLoaded(cart)), HttpExecution.defaultContext());\n... |
"public LocalDateTime fromNonNullValue(String s) {\n return LOCAL_DATETIME_PARSER.parseDateTime(s).toLocalDateTime();\n}\n"
|
"public static IAggregationResultSet[] load(String name, IDocArchiveReader reader) throws IOException {\n RAInputStream inputStream = reader.getStream(name);\n DataInputStream dataInputStream = new DataInputStream(inputStream);\n int size = dataInputStream.readInt();\n inputStream.close();\n if (size <= ... |
"private final String formatAmount(BigDecimal amount) {\n DecimalFormat amountFormat = new DecimalFormat(\"String_Node_Str\", DecimalFormatSymbols.getInstance(Locale.ENGLISH));\n return amountFormat.format(amount);\n}\n"
|
"public TableEntryLocation findUniqueLocation(final TableEntryLocation proposedLocation, String[] columnsBeingCreated) {\n TableEntryLocation tableEntryLocation = new TableEntryLocation(proposedLocation);\n int counter = 1;\n boolean exists = true;\n while (exists) {\n boolean found = false;\n ... |
"public synchronized void append(Date date, String str) throws Exception {\n long epoch = this.amount.toTrendrrEpoch(date).longValue();\n for (int i = 0; i < 5; i++) {\n TimeAmountFile file = null;\n try {\n file = this.cache.get(epoch);\n file.append(str);\n return;... |
"private SentinelHttpMessage attack(String data) throws ConnectionTimeoutException {\n SentinelHttpMessageAtk httpMessage = initAttackHttpMessage(data);\n lastHttpMessage = httpMessage;\n BurpCallbacks.getInstance().sendRessource(httpMessage, attackWorkEntry.followRedirect);\n boolean hasError = false;\n ... |
"void resetCounter(long cycles) {\n double divider = 1.0;\n if (clockSource == SRC_ACLK) {\n divider = 1.0 * core.smclkFrq / core.aclkFrq;\n }\n divider = divider * inputDivider;\n long cycctr = cycles - counterStart;\n double tick = cycctr / divider;\n counterPassed = (int) (divider * (tick... |
"public void cdata(String value) {\n try {\n if (isStartElementOpen) {\n isStartElementOpen = false;\n outputStreamWrite(CLOSE_ELEMENT);\n }\n for (String part : MarshalRecord.splitCData(value)) {\n outputStreamWrite(OPEN_CDATA);\n outputStreamWrite(pa... |
"public void testProgramList() throws Exception {\n testListInitialState(TEST_NAMESPACE1, ProgramType.FLOW);\n testListInitialState(TEST_NAMESPACE2, ProgramType.MAPREDUCE);\n testListInitialState(TEST_NAMESPACE1, ProgramType.WORKFLOW);\n testListInitialState(TEST_NAMESPACE2, ProgramType.SPARK);\n testLis... |
"public void checkpointIfRequired() throws SQLException {\n if (fileLockMethod != FileLock.LOCK_SERIALIZED || readOnly || !reconnectChangePending || closing) {\n return;\n }\n synchronized (this) {\n long now = System.currentTimeMillis();\n if (now > reconnectCheckNext + SysProperties.RECO... |
"private void marshalSimpleValue(XPathFragment xmlRootFragment, MarshalRecord marshalRecord, Object originalValue, Object object, Object value, AbstractSession session, NamespaceResolver namespaceResolver) {\n if (xmlRootFragment != null) {\n QName qname = ((XMLRoot) originalValue).getSchemaType();\n X... |
"public void reset() {\n table.setRedraw(false);\n for (final TableItem i : table.getItems()) {\n i.dispose();\n }\n list.clear();\n table.setRedraw(true);\n if (listener != null) {\n table.removeListener(SWT.SetData, listener);\n }\n}\n"
|
"private void setLabelLayoutData(Control control) {\n GridData gd = new GridData(GridData.VERTICAL_ALIGN_BEGINNING);\n gd.widthHint = 100;\n if (Locale.getDefault().getLanguage().equals(\"String_Node_Str\")) {\n gd.widthHint += 15;\n }\n label.setLayoutData(gd);\n}\n"
|
"public void loadPlayerInventory(Player player) {\n if (inventories.containsKey(player.getUniqueId())) {\n InventoryStore inv = inventories.get(player.getUniqueId());\n player.getInventory().setContents(inv.getInventory());\n player.getInventory().setArmorContents(inv.getArmor());\n inven... |
"public void countBigram(String word) {\n word = word.trim();\n if (word.isEmpty()) {\n return;\n }\n if (containsMentions) {\n Matcher m = PATTERN_MENTION.matcher(word);\n if (m.matches()) {\n word = m.group(1);\n }\n }\n synchronized (bigramCounts) {\n b... |
"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 if (command.equalsIgnoreCase(\"String_Node_Str\")) {\n if (player.isOp() || gimm... |
"private static void logAccess(IOContext context) {\n ACCESS.xinfo().$ip(context.channel.getIp()).$(\"String_Node_Str\").$(\"String_Node_Str\").$(\"String_Node_Str\").$ts(System.currentTimeMillis()).$(\"String_Node_Str\").$('\"').$(context.request.getMethodLine()).$('\"').$(' ').$(context.getResponseCode()).$(' ').$... |
"public void setExtensionRegistry(IExtensionRegistry registry) {\n this.extensionRegistry = registry;\n}\n"
|
"public void initData() {\n connectedElementRepresentationManager.clear(mappingDataDomain.getContentIDType());\n iCurrentStorageIndex = -1;\n super.initData();\n}\n"
|
"public OperationOutcome validate(byte[] source, FhirFormat cntType, List<String> profiles) throws Exception {\n List<ValidationMessage> messages = new ArrayList<ValidationMessage>();\n if (doNative) {\n if (cntType == FhirFormat.JSON)\n validateJsonSchema(location, messages);\n if (cntTy... |
"public void computePotentialSplitScore() {\n PolylineSplitMerge alg = new PolylineSplitMerge();\n alg.setMinimumSideLength(5);\n alg.setThresholdSideSplitScore(0);\n List<Point2D_I32> contour = new ArrayList<>();\n for (int i = 0; i < 20; i++) {\n contour.add(new Point2D_I32(i, 0));\n }\n c... |
"public void remove(int n) {\n for (int i = 0; i < n; i++) {\n removeFromQueue();\n if (listener != null) {\n listener.onRemove(this);\n }\n }\n}\n"
|
"private void addCacheToTree() {\n try {\n TileCache courseCache = new MemoryTileCache();\n File mapCacheDir = new File(mapCacheFolderDiskPath);\n if (!mapCacheDir.isDirectory() || !mapCacheDir.exists()) {\n throw new IOException(\"String_Node_Str\");\n }\n FilenameFilte... |
"private void doTestJob() {\n String tjName = m_job.getTestJob().getName();\n sysOut(NLS.bind(Messages.ExecutionControllerTestJobBegin, tjName));\n sysOut(NLS.bind(Messages.ExecutionControllerTestJobExpectedTestSuites, new Object[] { tjName, m_job.getTestJob().getNodeListSize() }));\n List<INodePO> executed... |
"public List<Baseline> getPostedBaselinesFor(Component component) throws UnableToInitializeEntityException, UnableToListBaselinesException {\n logger.debug(\"String_Node_Str\" + this.getFullyQualifiedName() + \"String_Node_Str\" + component.getFullyQualifiedName());\n List<String> bls_str = null;\n String cmd ... |
"public boolean createVmdataFiles(String vmName, List<String[]> vmDataList, String configDriveLabel) {\n String isoPath = \"String_Node_Str\" + vmName + \"String_Node_Str\";\n String configDriveName = \"String_Node_Str\";\n try {\n deleteLocalFolder(\"String_Node_Str\" + isoPath);\n } catch (IOExcept... |
"protected void setToggleButtonEnabled(String buttonId, boolean isEnabled) {\n String id = getNodePath() + buttonId;\n if (getContext().isEnabled(id)) {\n getToggleButton(id).setEnabled(isEnabled);\n } else {\n getToggleButton(id).setEnabled(false);\n }\n}\n"
|
"public void onCreate() {\n new Utils(this).log(\"String_Node_Str\");\n super.onCreate();\n preferences = new Preferences(getApplicationContext());\n preferences.registerOnSharedPreferenceChangeListener(this);\n if (desiredMode == null) {\n desiredMode = preferences.getHeadsetMode();\n }\n i... |
"public void handleEvent(IndicatorEvent event) {\n onIndicatorChangedExternally(event);\n}\n"
|
"public Form createForm(HttpServletRequest request, ApplicationContext appContext) throws TransactionException {\n ItemManager im = appContext.getItemManager();\n DivisionOfficeManager dom = appContext.getDivisionOfficeManager();\n PersonManager pm = appContext.getPersonManager();\n PR pr = new PR();\n S... |
"public boolean containsKey(final Object key) {\n if (key == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n for (final Entry<String, String> e : data) {\n if (key.equals(e.getKey())) {\n return true;\n }\n }\n return false;\n}\n"
|
"private void renderVertex(final GL2 gl, PathwayVertexRep vertexRep) {\n Color tmpNodeColor = null;\n gl.glPushName(glPathwayView.getPickingManager().getPickingID(glPathwayView.getID(), EPickingType.PATHWAY_ELEMENT_SELECTION.name(), vertexRep.getID()));\n float canvasXPos = pixelGLConverter.getGLWidthForPixelW... |
"public ModuleSpaceHost createModuleSpaceHost(BrowserWidget widget, final String moduleName) throws UnableToCompleteException {\n TreeLogger logger = getLogger();\n Shell widgetShell = widget.getShell();\n try {\n Cursor waitCursor = display.getSystemCursor(SWT.CURSOR_WAIT);\n widgetShell.setCurs... |
"protected Object doFilterWriteWsText(NextFilter nextFilter, IoSession session, WriteRequest writeRequest, WsTextMessage wsText) throws Exception {\n IoBufferEx buf = wsText.getBytes();\n if (buf.remaining() < CONTROL_BYTES.length) {\n return wsText;\n }\n byte[] leadingBytes = new byte[CONTROL_BYTES... |
"public void testVNTFontListPreferenceShouldFindOTFAndTTFFilesWhenPresentInDirectoryWithoutSlashAtTheEnd() throws IOException {\n final TypedArray typedArray = mock(TypedArray.class);\n doReturn(\"String_Node_Str\").when(typedArray).getString(R.styleable.VNTFontListPreference_vnt_fontDirectory);\n doReturn(typ... |
"private HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, WebComponentDescriptor webCompDesc) throws AnnotationProcessorException {\n Class webCompClass = (Class) ainfo.getAnnotatedElement();\n if (!HttpServlet.class.isAssignableFrom(webCompClass)) {\n log(Level.SEVERE, ainfo, localStrings.g... |
"protected File findDefaultExecutable() {\n Process p;\n try {\n if (Platform.getCurrent().is(Platform.WINDOWS)) {\n p = getSearchingProcess(ArrayUtils.add(CMD_EXE, NODE));\n } else {\n p = getSearchingProcess(BIN_BASH, \"String_Node_Str\", \"String_Node_Str\", NODE);\n ... |
"private void addEmptyDataToContainer(StyleEntry style, XlsContainer parent, int startCoordinate, int width) {\n Data data = createEmptyData(parent, style);\n data.setSizeInfo(new ContainerSizeInfo(startCoordinate, width));\n addData(data);\n}\n"
|
"public void addArgsFor(SDVariable[] variables, DifferentialFunction function) {\n String[] varNames = new String[variables.length];\n for (int i = 0; i < varNames.length; i++) {\n if (variables[i] == null)\n throw new ND4JIllegalStateException(\"String_Node_Str\" + i);\n varNames[i] = va... |
"public void connect() {\n try {\n conn = new NetworkConnection(address, params, bestHeight, 60000);\n } catch (IOException ex) {\n throw new PeerException(ex);\n } catch (ProtocolException ex) {\n throw new RuntimeException(ex);\n }\n}\n"
|
"public List<String> getResults() {\n List<String> recordsNames = new ArrayList<>();\n Utils.waitFor(ExpectedConditions.visibilityOfAllElementsLocatedBy(By.cssSelector(SearchConstants.RESULTS_NAMES_SELECTOR)));\n List<WebElement> results = webDriver.findElements(By.cssSelector(SearchConstants.RESULTS_NAMES_SEL... |
"public void update2ndStep() {\n activeComponents.forEach(Component.Instance::deactivate);\n activeComponents.clear();\n super.update2ndStep();\n int rows = size / context.get(Context.KEY_COLUMNS);\n int minRowsPerServer = (minSizePerServer + context.get(Context.KEY_COLUMNS) - 1) / context.get(Context.KE... |
"private void setStatusText(String author, long createdUtc, int kind, long nowTimeMs, int numComments, boolean over18, String parentSubreddit, int score, String subreddit, boolean votable) {\n Context c = getContext();\n Resources r = getResources();\n statusText.clear();\n statusText.clearSpans();\n if ... |
"private void compile(TreeLogger logger, Set<CompilationUnit> newUnits) {\n PerfLogger.start(\"String_Node_Str\");\n if (jdtCompiler.doCompile(newUnits)) {\n boolean anyErrors = CompilationUnitInvalidator.invalidateUnitsWithErrors(logger, newUnits);\n CompilationUnitInvalidator.validateCompilationUn... |
"private void ellipse(final SnipeData v, Location<World> targetBlock, Direction axis) {\n double xrads = this.xrad * this.xrad;\n double yrads = this.yrad * this.yrad;\n int minx = GenericMath.floor(targetBlock.getBlockX() - this.xrad);\n int maxx = GenericMath.floor(targetBlock.getBlockX() + this.xrad) + 1... |
"private List decodeCollection(Object val, Class elementClass) {\n elementClass = FieldUtil.getRealType(elementClass, field);\n Collection collection = (Collection) val;\n List<BuguEntity> result = new ArrayList<BuguEntity>();\n if (refList.cascade().toUpperCase().indexOf(Default.CASCADE_READ) == -1 || with... |
"private Bitmap applyConvert(File f) {\n Bitmap bitmap = ImageUtil.decodeFile(f, false);\n if (convertable != null) {\n bitmap = convertable.convert(bitmap);\n try {\n FileOutputStream out = new FileOutputStream(f);\n bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);\n ... |
"protected boolean getChildStaticTransformation(View child, Transformation t) {\n FancyCoverFlowItemWrapper item = (FancyCoverFlowItemWrapper) child;\n if (android.os.Build.VERSION.SDK_INT >= 16) {\n item.invalidate();\n }\n final int coverFlowCenter = this.getWidth() / 2;\n final int childCenter ... |
"public void addGlobalConstraint(GlobalConstraint constraint) {\n constraint.setModel(this);\n iGlobalConstraints.addElement(constraint);\n if (constraint instanceof InfoProvider)\n iInfoProviders.addElement(constraint);\n for (Enumeration e = iModelListeners.elements(); e.hasMoreElements(); ) ((Mode... |
"List<Substitutable> getFileElements(FileEntry fileEntry) {\n String[] pathEntries = fileEntry.getName().split(\"String_Node_Str\");\n List<Substitutable> substituables = null;\n List<File> retrievedFiles = null;\n for (String pathEntry : pathEntries) {\n String isRegex = fileEntry.getRegex();\n ... |
"public void configure(HeatMapModel hmm) {\n heatMapModel = hmm;\n if (heatMapModel.getScreen() == null) {\n System.err.println(\"String_Node_Str\");\n return;\n }\n List<Plate> subScreen = Arrays.asList(hmm.getScreen().get(0));\n List<String> annotations = new ArrayList<String>();\n ann... |
"public void testAnswerConstraint() {\n IntegerData ans = new IntegerData(13);\n FormParseInit fpi = new FormParseInit(\"String_Node_Str\");\n FormEntryController fec = initFormEntry(fpi);\n do {\n QuestionDef q = fpi.getCurrentQuestion();\n if (q == null || q.getTextID() == null || \"String_N... |
"public void sendPushRequest(PushRequest push) throws IOException {\n if (push == null) {\n throw new NullPointerException(\"String_Node_Str\");\n }\n ReplyHandler replyHandler = _pushRouteTable.getReplyHandler(push.getClientGUID());\n if (replyHandler != null)\n replyHandler.handlePushRequest... |
"public void addInt(final int value) {\n events.add(new ParquetProtocol(\"String_Node_Str\") {\n public byte readByte() throws TException {\n return (byte) value;\n }\n });\n break;\n case I16:\n events.add(new ParquetProtocol(\... |
"private SortedSet<ContentKey> queryByTimeKeys(TimeQuery query) {\n try {\n String timePath = query.getUnit().format(query.getStartTime());\n QueryResult queryResult = spokeStore.readTimeBucket(query.getChannelName(), timePath);\n ActiveTraces.getLocal().add(\"String_Node_Str\", queryResult);\n ... |
"public void testDataRecovery2() throws Exception {\n final int size = 1000;\n HazelcastInstance h1 = Hazelcast.newHazelcastInstance(new Config());\n IMap map1 = h1.getMap(\"String_Node_Str\");\n for (int i = 0; i < size; i++) {\n map1.put(i, \"String_Node_Str\" + i);\n }\n assertEquals(size, m... |
"static void fixRepeatedly(String filename) throws IOException {\n for (int i = 0; i < MAX_FIXES; i++) {\n if (!fix(filename, unfixableErrors)) {\n break;\n }\n }\n}\n"
|
"public static StyleEntry applyDiagonalLine(StyleEntry entry, String color, String style, int width) {\n if (width > 0) {\n entry.setProperty(StyleConstant.BORDER_DIAGONAL_COLOR_PROP, color);\n entry.setProperty(StyleConstant.BORDER_DIAGONAL_STYLE_PROP, convertBorderStyle(style));\n entry.setPro... |
"protected void _createControllers() {\n super._createControllers();\n _attributeController = new AttributeController(this, AttributeController.PARTIAL);\n _classDefinitionController = new ClassDefinitionController(this, AttributeController.PARTIAL);\n _entityController = new ActorInstanceController(this, A... |
"protected byte[] generatePrimaryFragment(TreeLogger logger, LinkerContext context, CompilationResult result, String[] js) throws UnableToCompleteException {\n TextOutput to = new DefaultTextOutput(context.isOutputCompact());\n to.print(generatePrimaryFragmentString(logger, context, result.getStrongName(), js[0],... |
"void startSpecificActivityLocked(ActivityRecord r, boolean andResume, boolean checkConfig) {\n ProcessRecord app = mService.getProcessRecordLocked(r.processName, r.info.applicationInfo.uid, true);\n r.task.stack.setLaunchTime(r);\n if (app != null && app.thread != null) {\n try {\n if ((r.in... |
"private static int calcDefenseOrSpecialDefense(BattlePlayer playerDefender, BattlePlayer playerAttacker, Move move, Battle stats) {\n Pokemon defender = playerDefender.getPokemon();\n Pokemon attacker = playerAttacker.getPokemon();\n int defense = 1;\n int stat = 1;\n double sm = 1;\n double mod = 1;... |
"private void resourceDependencyCrawl(String resourceKey, JsonNode jsonNode, DependencyManager resourceDependencies, Template template, Set<String> unresolvedResourceDependencies, boolean onLiveBranch) throws CloudFormationException {\n Map<String, String> pseudoParameterMap = StackEntityHelper.jsonToPseudoParameter... |
"public void run() {\n if (TicketUtils.isTicketSet(project)) {\n initializeJMS(project);\n } else {\n MMSLoginAction.loginAction(project);\n }\n}\n"
|
"private void showIdeaDialog() {\n SpannableString text = new SpannableString(mDbHelper.getTextById(mIdRecycler));\n text.setSpan(new AbsoluteSizeSpan(24, true), 0, text.length(), 0);\n String note = mDbHelper.getNoteById(mIdRecycler);\n new LovelyStandardDialog(MainActivity.getInstance()).setTopColorRes(ge... |
"public static void switchComponent(INode node, IComponent delegateComponent, String oldEmfComponent, List<? extends IElementParameter> oldParms) {\n if (GlobalServiceRegister.getDefault().isServiceRegistered(IUnifiedComponentService.class)) {\n IUnifiedComponentService service = (IUnifiedComponentService) Gl... |
"public void generateTransitionCode(StringBuffer code, TransitionRetriever transitionRetriever) throws IllegalActionException {\n StringBuffer codeBuffer = new StringBuffer();\n codeBuffer.append(getCodeGenerator().comment(\"String_Node_Str\"));\n ptolemy.domains.modal.kernel.FSMActor fsmActor = (ptolemy.domai... |
"private String nextToken() {\n char currChar = schema.charAt(pos);\n int endPos = pos;\n while (!(Character.isWhitespace(currChar) || currChar == ':' || currChar == ',' || currChar == '<' || currChar == '>')) {\n endPos++;\n currChar = schema.charAt(endPos);\n }\n String token = schema.sub... |
"private CTabFolder createResultTabs(Composite parent) {\n tabFolder = new CTabFolder(parent, SWT.TOP | SWT.CLOSE);\n tabFolder.setBorderVisible(true);\n tabFolder.setLayoutData(new GridData(GridData.FILL_BOTH));\n Display display = getSite().getShell().getDisplay();\n tabFolder.setSelectionBackground(ne... |
"protected void doPreService(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n BaseAttributeBean attrBean = (BaseAttributeBean) request.getAttribute(IBirtConstants.ATTRIBUTE_BEAN);\n String format = attrBean.getFormat();\n String emitterId = attrBean.getEmitterI... |
"public static boolean isJDK16() {\n return JavaSEPlatform.is(JavaSEPlatform.v1_6);\n}\n"
|
"public static boolean hasResidence() {\n return residencePlugin != null && residencePlugin.isEnabled();\n}\n"
|
"private void findPassedParameters() {\n Set<AbstractVariable> passedParametersG1 = extractPassedParameters(pdg1, mappedNodesG1);\n Set<AbstractVariable> passedParametersG2 = extractPassedParameters(pdg2, mappedNodesG2);\n for (PDGNodeMapping nodeMapping : maximumStateWithMinimumDifferences.getNodeMappings()) ... |
"private void _addRectangle(List<IconVisibleLocation> result, Rectangle2D viewSize, double scaleX, double scaleY, double translateX, double translateY, NamedObj object) {\n Locatable location = null;\n try {\n location = (Locatable) object.getAttribute(\"String_Node_Str\", Locatable.class);\n } catch (I... |
"public void testCase3() {\n ExecutionTime et = ExecutionTime.forCron(parser.parse(\"String_Node_Str\"));\n Optional<ZonedDateTime> olast = et.lastExecution(currentDateTime);\n ZonedDateTime last = olast.orElse(null);\n ZonedDateTime expected = ZonedDateTime.of(LocalDateTime.of(2015, 12, 31, 12, 0), ZoneId.... |
"private static JsonNode executeCommand(JsonNode currentNode, String command) {\n JsonNode newNode = null;\n if (currentNode != null) {\n System.out.println(\"String_Node_Str\" + currentNode);\n if (isGet(command)) {\n String argument = command.substring(4, command.length() - 1);\n ... |
"private void deleteFromIndexesAndPrimaryKey(String currentAttribute, Set<StreamEvent> deletedEventSet) {\n for (StreamEvent deletedEvent : deletedEventSet) {\n if (primaryKeyData != null) {\n primaryKeyData.remove(deletedEvent.getOutputData()[primaryKeyPosition]);\n }\n for (Map.Entr... |
"public Pair<File, Integer> findMutationFile() {\n int startColumn = 8;\n File mutationFile = null;\n if (relevantDate.get(Calendar.YEAR) < 2013) {\n mutationFile = extractAnalysisRunFile(getFileName(\"String_Node_Str\"), \"String_Node_Str\", LEVEL);\n if (mutationFile == null) {\n File maf = ... |
"private void readNextKey() throws IOException {\n more = in.next();\n if (more) {\n DataInputBuffer nextKeyBytes = in.getKey();\n if (!in.isSameKey()) {\n keyIn.reset(nextKeyBytes.getData(), nextKeyBytes.getPosition(), nextKeyBytes.getLength() - nextKeyBytes.getPosition());\n ... |
"protected static void javaToNativeARGB(int[] pixels, int width, int height) {\n int index = 0;\n int yindex = (height - 1) * width;\n for (int y = 0; y < height / 2; y++) {\n if (BIG_ENDIAN) {\n for (int x = 0; x < width; x++) {\n int temp = pixels[index];\n pix... |
"public boolean checkTrigger(GameEvent event, Game game) {\n Permanent enchantment = game.getPermanentOrLKIBattlefield(this.getSourceId());\n UUID controller = this.getControllerId();\n if (enchantment != null && enchantment.getAttachedTo() != null && game.getCombat().getPlayerDefenders(game).contains(enchantm... |
"public static void createUser() {\n if (firstUser == null || firstUser == false)\n Application.index();\n if (params.get(\"String_Node_Str\") != null) {\n String firstName = params.get(\"String_Node_Str\");\n String lastName = params.get(\"String_Node_Str\");\n String email = params.g... |
"void convertSelectedSqlPressed() {\n Binding binding = getSelectedBinding();\n if (binding.canConvertSqlSymbol()) {\n binding.acceptSqlConversion();\n }\n updateSymbolConversionPanel(binding);\n bindingListInput.datatypeChanged();\n bindingTableViewer.refresh(binding);\n updateRowColors();\... |
"public void refresh(AbstractAnalysisMetadataPage masterPage) {\n this.masterPage = (ColumnMasterDetailsPage) masterPage;\n if (summaryComp != null && !summaryComp.isDisposed()) {\n summaryComp.dispose();\n }\n if (resultComp != null && !resultComp.isDisposed()) {\n resultComp.dispose();\n ... |
"public void addSlave(SlaveBrowser slave) {\n slaves.put(slave.getId(), slave);\n setChanged();\n notifyObservers(new BrowserCaptureEvent(Event.CONNECTED, slave));\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.