content
stringlengths
40
137k
"public void showInformationDialog(String info) {\n Alert information = new Alert(Alert.AlertType.INFORMATION, info);\n information.setHeaderText(\"String_Node_Str\");\n information.showAndWait();\n}\n"
"private List<CandidateProgram<Action>> generatePopulation() {\n Random rGen = new Random();\n ArrayList<ArrayList<String>> storage = new ArrayList<ArrayList<String>>();\n FullInitialiser<Object> f = new FullInitialiser<Object>(model);\n List<CandidateProgram<Object>> firstPass = f.getInitialPopulation();\n...
"public void testAbstractCovariance_GRE272_2() {\n runNegativeTest(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\" + ...
"public Dimension getSize() {\n return screenSize;\n}\n"
"public void checkAttribute(ManagedType<?> managedType, MetamodelBuildingContext context) {\n Class<?> expressionType = getJavaType();\n Class<?> elementType = null;\n if (fetches.length != 0) {\n ManagedType<?> entityType = context.getEntityMetamodel().getManagedType(getElementType().getJavaType());\n ...
"final void handleBackup(Packet packet) {\n try {\n String name = packet.name;\n int blockId = packet.blockId;\n Q q = getQ(name);\n if (packet.operation == ClusterOperation.BLOCKING_QUEUE_BACKUP_ADD) {\n Data data = packet.getValueData();\n q.doBackup(true, data, bl...
"public Binding bindings() {\n if (binding != null) {\n return binding;\n }\n if (state != State.STARTED && state != State.PRE_RUNNING) {\n throw new IllegalStateException(\"String_Node_Str\" + id + \"String_Node_Str\" + State.STARTED + \"String_Node_Str\" + State.PRE_RUNNING + \"String_Node_Str\...
"public void testApiInvocationAndEventTest() throws Exception {\n thriftTestServer.clearTables();\n HttpResponse serviceResponse = apiStore.addApplication(APP_NAME, APIThrottlingTier.UNLIMITED.getState(), \"String_Node_Str\", \"String_Node_Str\");\n verifyResponse(serviceResponse);\n SubscriptionRequest sub...
"private static void jj_la1_init_2() {\n jj_la1_2 = new int[] { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc0000000, 0xc0000000, 0x0, 0xc0000000, 0x0, 0xc8ffffff, 0x0, 0x0, 0x0, 0xc0000000, 0x0, 0x0, 0x0, 0xc0000000, 0x0, 0x0, 0x0, 0xc0000000, 0x0, 0xc0000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x...
"public void testRecord() throws Exception {\n statServiceClient.recordCount(\"String_Node_Str\", 1);\n serviceBundle.flush();\n triggerLatchWhen(o -> replicator.count.get() == 1);\n waitForLatch(20);\n ok = replicator.count == 1 || die();\n}\n"
"private void kalmanFilter(Matrix C, Matrix z) {\n Date now = new Date();\n double dt = (now.getTime() - lastTime) / 1000.0;\n lastTime = now.getTime();\n Matrix A = getMotionModel(dt);\n Matrix x_pre = A.times(x);\n Matrix P_pre = A.times(P).times(A.transpose());\n P_pre = P_pre.plus(R);\n x_pr...
"public CommandResult execute(CommandSource source, CommandContext context) throws CommandException {\n Optional<Player> optionalInvitedPlayer = context.<Player>getOne(\"String_Node_Str\");\n if (optionalInvitedPlayer.isPresent()) {\n if (source instanceof Player) {\n Player senderPlayer = (Play...
"protected void handleMousePressed(final MouseEvent event) {\n if (!event.getButton().equals(MouseButton.PRIMARY)) {\n return;\n }\n if (cacheWhenStationary) {\n setCache(false);\n }\n final Point2D cursorPosition = getCursorPositionInContainer(event);\n storeClickValuesForDrag(cursorPos...
"public Vertex addVertex(Object id) {\n if (id == null) {\n id = AccumuloGraphUtils.generateId();\n }\n String idStr = id.toString();\n Vertex vert = null;\n if (!globals.getConfig().getSkipExistenceChecks()) {\n vert = getVertex(myID);\n if (vert != null) {\n throw Except...
"public void execute(Bundle bundle) {\n Exception e = (Exception) bundle.getSerializable(QBServiceConsts.EXTRA_ERROR);\n ErrorUtils.showError(BaseActivity.this, e);\n hideProgress();\n}\n"
"public void perform(Arguments arguments, PrintStream output) throws Exception {\n DatasetTypeId type = cliConfig.getCurrentNamespace().datasetType(arguments.get(ArgumentName.DATASET_TYPE.toString()));\n DatasetTypeMeta datasetTypeMeta = datasetTypeClient.get(type);\n Table table = Table.builder().setHeader(\"...
"public void commitPending(long currentTime) {\n TickStage.checkStage(TickStage.FINALIZE, regionThread);\n List<DynamicBlockUpdate> l;\n while ((l = pendingLists.poll()) != null) {\n for (DynamicBlockUpdate update : l) {\n add(update);\n }\n }\n processed.clear();\n PointAlone...
"void tearDown() {\n resetTmpDir();\n}\n"
"public float[] getWorldCoordinates(float x, float y) {\n float[] worldCoordinates;\n float[] w = new float[] { x, y };\n if (hasTransforms()) {\n final CoordinateTransformList<CoordinateTransform> ctl = getTransformList();\n ctl.applyInPlace(w);\n }\n if (z == null) {\n worldCoordin...
"private ServiceRegistration[] removeProxyServiceRegistrations(RemoteServiceEndpointDescription sed) {\n List results = new ArrayList();\n for (Iterator i = discoveredRemoteServiceRegistrations.keySet().iterator(); i.hasNext(); ) {\n ID containerID = (ID) i.next();\n RemoteServiceRegistration reg = ...
"public void startDocument() throws SAXException {\n if (unmarshaller.getIDResolver() != null && parentRecord == null) {\n unmarshaller.getIDResolver().startDocument(unmarshaller.getErrorHandler());\n }\n}\n"
"public void turnLeft() {\n if (direction != RIGHT)\n direction = LEFT;\n already_turned = true;\n}\n"
"private ProjectedCRS parseProjectedCRS(final int mode, final Element parent, final boolean isBaseCRS) throws ParseException {\n final Element element = parent.pullElement(mode, isBaseCRS ? new String[] { WKTKeywords.BaseProjCRS } : new String[] { WKTKeywords.ProjectedCRS, WKTKeywords.ProjCRS, WKTKeywords.ProjCS });...
"public boolean handle(World world, BlockPos pos, EnumFacing direction, ItemStack stack, EntityPlayer player, IStripesActivator activator) {\n Vec3 origin = Utils.convert(pos).add(Utils.convert(direction, -1));\n IBlockSource source = new Source(world, Utils.convertFloor(origin), direction);\n IBehaviorDispens...
"public void detach() {\n if (documentModel != null)\n documentModel.detach();\n}\n"
"protected void processPossibleIncludes(EClass previousType, CanInclude canInclude) throws QueryException, BimserverDatabaseException {\n if (currentObject != null) {\n if (canInclude.hasIncludes()) {\n for (Include include : canInclude.getIncludes()) {\n processPossibleInclude(canIn...
"private void resolvePendingState() {\n pendingStateCommand = null;\n if (pendingState == null) {\n pendingStateLoop = 0;\n return;\n }\n pendingStateLoop++;\n if (pendingStateLoop > LOOP_MAXIMUM) {\n pendingStateLoop = 0;\n throw new IllegalStateException(\"String_Node_Str\" ...
"public static void main(String[] args) {\n if (args.length < 1)\n usage();\n Command command = COMMANDS.get(args[0]);\n if (command == null)\n error(\"String_Node_Str\" + args[0]);\n List<String> arguments = asList(args).subList(1, args.length);\n try {\n command.execute(arguments);...
"private void invoke(ClientMessage request) {\n try {\n ClientInvocation invocation = new ClientInvocation(instance, request, null);\n ClientInvocationFuture future = invocation.invoke();\n future.get();\n } catch (Exception e) {\n throw rethrow(e);\n }\n}\n"
"public void check(CallGraph cg) {\n classes: for (ClassAnnotation ca : classAnnotations) {\n IClass cls = cg.getClassHierarchy().lookupClass(TypeReference.findOrCreate(ClassLoaderReference.Application, ca.className));\n IClass at = cg.getClassHierarchy().lookupClass(TypeReference.findOrCreate(ClassLoa...
"public void serialize() {\n File dir = new File(APP.DIR_LAYOUTS, \"String_Node_Str\");\n if (!Util.isValidatedDirectory(dir)) {\n LOGGER.error(\"String_Node_Str\", dir);\n return;\n }\n Set<File> filesOld = listFiles(dir).collect(toSet());\n List<Window> windows = stream(Window.WINDOWS).wi...
"public void testCancellationAwareTask2() {\n Callable task1 = new SleepingTask(5000);\n ExecutorService executor = createSingleNodeExecutorService(\"String_Node_Str\", 1);\n executor.submit(task1);\n Callable task2 = new BasicTestTask();\n Future future = executor.submit(task2);\n assertFalse(future....
"public IStatus runInUIThread(IProgressMonitor monitor) {\n try {\n if (!getViewer().getTree().isDisposed()) {\n getViewer().setExpandedElements(m_expandedElements);\n }\n } catch (SWTException e) {\n }\n return new Status(Status.OK, Plugin.PLUGIN_ID, StringConstants.EMPTY);\n}\n"
"protected void configure() {\n bind(AddressService.class).to(AddressServiceImpl.class);\n bind(AdvancedExportService.class).to(AdvancedExportServiceImpl.class);\n bind(UserService.class).to(UserServiceImpl.class);\n bind(MessageServiceImpl.class).to(MessageServiceBaseImpl.class);\n bind(MailAccountServi...
"public void testUpdateBatch() {\n List<TestEntity> entities = new ArrayList<TestEntity>();\n TestEntity entity1 = createEntity();\n TestEntity entity2 = createEntity();\n entities.add(entity1);\n entities.add(entity2);\n IShardingKey<Number> key = new ShardingKey<Number>(CLUSTER_KLSTORAGE, 1000001);\...
"private static CheckException newServiceCheckException(String correlationId, Severity severity, ServiceConfiguration config, Throwable t) {\n if (t instanceof Error) {\n return new CheckException(correlationId, t, Severity.FATAL, config);\n } else if (Severity.WARNING.ordinal() > severity.ordinal() && t i...
"private void processTasks() {\n Log.i(TAG, \"String_Node_Str\");\n TaskController taskController = new TaskController();\n QueueRecordProvider queueProv = QueueRecordProvider.get(getApplicationContext());\n QueueRecordProcessor queueProc = new QueueRecordProcessor();\n ArrayList<QueueRecord> queueRecord...
"static Object throwClassCastExceptionUnlessNull(Object o) throws ClassCastException {\n if (o != null) {\n throw new ClassCastException();\n }\n return o;\n}\n"
"public boolean performOk() {\n for (int i = 0; i < propList.size(); i++) {\n try {\n String value = null;\n Text propertyText = (Text) propertyTextList.get(i);\n if (!propertyText.isDisposed() && propertyText.getText() != null && propertyText.getText().trim().length() > 0) {\...
"private boolean containInvalidCharacter(String password) {\n if (password.contains(Constants.NEW_LINE)) {\n return true;\n }\n return true;\n}\n"
"public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {\n Tools.HangarLog(\"String_Node_Str\" + this.getClass().getCanonicalName() + \"String_Node_Str\");\n mContext = context;\n Intent intent = new Intent(context, WatchfulService.class);\n context.startService(intent...
"public AppTimesheet getAppTimesheet() {\n return appTimesheetRepo.all().fetchOne();\n}\n"
"public void restoreFromBundle(Bundle bundle) {\n super.restoreFromBundle(bundle);\n int[] values = bundle.getIntArray(PRESSES);\n for (int value : values) presses.add(value);\n partialTime = bundle.getFloat(PARTIALTIME);\n}\n"
"protected void internalSwap(final int row1, final int row2) {\n checkRow(row1, data.getNumRows());\n checkRow(row2, data.getNumRows());\n data.swap(row1, row2);\n if (dataGeneralized != null)\n dataGeneralized.swap(row1, row2);\n if (dataAnalyzed != null)\n dataAnalyzed.swap(row1, row2);\n...
"public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + (apiKey == null ? 0 : apiKey.hashCode());\n result = prime * result + (http404Strategy == null ? 0 : http404Strategy.hashCode());\n result = prime * result + (http429Strategy == null ? 0 : http429Strategy.hashC...
"public static ItemStack addToOccupiedInventorySlot(IInventory inventory, int slot, ItemStack stack, ItemStack existingStack) {\n int stackLimit = Math.min(inventory.getInventoryStackLimit(), stack.getMaxStackSize());\n if (stack.stackSize + existingStack.stackSize > stackLimit && stackLimit > existingStack.stack...
"public ArrayContainer and(ArrayContainer value2) {\n ArrayContainer value1 = this;\n final int desiredcapacity = Math.min(value1.getCardinality(), value2.getCardinality());\n ArrayContainer answer = ContainerFactory.getArrayContainer();\n if (answer.content.length < desiredcapacity)\n answer.content...
"public void openFile(String filePath) {\n try {\n if (filePath.endsWith(\"String_Node_Str\")) {\n AjdeUIManager.getDefault().getBuildConfigEditor().openFile(filePath);\n topFrame.setEditorPanel(AjdeUIManager.getDefault().getBuildConfigEditor());\n } else if (FileUtil.hasSourceSuf...
"private void maskBitmap(Bitmap bitmap, float xRatio, float yRatio, float widthRatio, float heightRatio) {\n Canvas canvas = new Canvas(bitmap);\n Paint blackFill = new Paint();\n blackFill.setColor(Color.BLACK);\n blackFill.setStyle(Paint.Style.FILL);\n float left = bitmap.getWidth() * xRatio;\n floa...
"protected Resource getPathResource(String absolutePath) {\n Resource res = registedResourceMap.get(absolutePath);\n if (res != null) {\n return res;\n }\n EMFUtil util = new EMFUtil();\n URI uri = URI.createFileURI(absolutePath);\n ResourceSet rs = EMFUtil.getInstance().getResourceSet();\n ...
"private void convertFile(String traceFileName, String javaClassName, String script) throws IOException {\n LineNumberReader reader = new LineNumberReader(IOUtils.getBufferedReader(IOUtils.openFileInputStream(traceFileName)));\n PrintWriter javaWriter = new PrintWriter(IOUtils.getBufferedWriter(IOUtils.openFileOu...
"public org.hl7.fhir.dstu2.model.Contract convertContract(org.hl7.fhir.dstu3.model.Contract src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Contract tgt = new org.hl7.fhir.dstu2.model.Contract();\n copyDomainResource(src, tgt);\n tgt.setIdenti...
"public Path executePlugin(Path uriPath, String fileFormat) throws UnsupportedOperationException, IOException, CommandException {\n try {\n return GhostScriptConvertPluginUtils.executeGS(inputPath, outputPath, commandArguments);\n } catch (GhostscriptException e) {\n return null;\n }\n}\n"
"public Snip storageLoad(String name) {\n if (cache.containsKey(name.toUpperCase())) {\n return (Snip) cache.get(name.toUpperCase());\n }\n Application app = Application.get();\n long start = app.start();\n Snip snip = null;\n PreparedStatement statement = null;\n ResultSet result = null;\n ...
"private Preset formatPreset(String title) {\n List<ProcessorPreset> processorPresets = new ArrayList<ProcessorPreset>();\n for (int i = 0; i < processorsListModel.getRowCount(); i++) {\n processorPresets.add(((ProcessorPreset) processorsListModel.getValueAt(i, 1)).clone());\n }\n return new Preset(t...
"private void setDAGParamsFromMRConf(DAG dag) {\n Configuration mrConf = this.conf;\n Map<String, String> mrParamToDAGParamMap = DeprecatedKeys.getMRToDAGParamMap();\n for (Entry<String, String> entry : mrParamToDAGParamMap.entrySet()) {\n if (mrConf.get(entry.getKey()) != null) {\n LOG.info(...
"protected RemoteCustomFieldValue[] getRemoteCustomFieldValues(Map<String, List<String>> customFields) {\n if (customFields == null) {\n return EMPTY_REMOTE_CUSTOM_FIELDS;\n }\n RemoteCustomFieldValue[] result = new RemoteCustomFieldValue[customFields.size()];\n int i = 0;\n for (Entry<String, Lis...
"public boolean executeProcess(String cmd, String tempPath) {\n try {\n log.debug(cmd);\n if (PlaybackUtil.isWindows() == false) {\n File f = new File(tempPath + \"String_Node_Str\" + Math.random() * 10000 + \"String_Node_Str\");\n FileWriter fw = new FileWriter(f);\n f...
"private static ImageIcon[] loadIcons(String name) {\n ImageIcon icon = loadIcon(\"String_Node_Str\" + name + \"String_Node_Str\");\n return new ImageIcon[] { icon, icon, icon };\n}\n"
"protected void onCommandSuccess(ListResult<IterationChange> result) {\n if (result != null) {\n for (IterationChange iterationChange : result.getList()) {\n if (iterationChange.isDeleted()) {\n Iterator<ValueEvent> valuesIterator = valueChanges.iterator();\n while (va...
"private List<TimedEvent> _getNextEventsToFire() throws IllegalActionException {\n List<TimedEvent> events = new LinkedList<TimedEvent>();\n for (Actor actor : _eventQueues.keySet()) {\n TreeSet<Time> set = _eventQueues.get(actor);\n if (!set.isEmpty()) {\n Time time = set.first();\n ...
"public Type getKeyType() {\n return keyType;\n}\n"
"public void test(final String[] args) {\n final String config = args == null || args.length == 0 ? \"String_Node_Str\" : args[0];\n final LoggerContext ctx = Configurator.initialize(ConsoleAppenderAnsiMessagesMain.class.getName(), config);\n final Logger logger = LogManager.getLogger(ConsoleAppenderJAnsiXExce...
"protected void backPressed() {\n Form form = getForm();\n if (form != null && form.isCallAfterFormBack()) {\n try {\n compService.afterFormBack(form.getName(), form.getComponentProperties());\n } catch (Throwable e) {\n ExceptionHandler.process(e);\n }\n }\n super...
"public void pickSuggestionManually(final int index, final CharSequence suggestion, final int x, final int y) {\n final SuggestedWords suggestedWords = mSuggestionStripView.getSuggestions();\n if (suggestion.length() == 1 && isShowingPunctuationList()) {\n LatinImeLogger.logOnManualSuggestion(\"String_Node...
"public void handleRequest(HttpServerExchange exchange, RequestContext context) throws Exception {\n DBObject content = context.getContent();\n if (content == null)\n content = new BasicDBObject();\n if (content instanceof BasicDBList) {\n ResponseHelper.endExchangeWithMessage(exchange, HttpStatu...
"public String getSchemaTypeNameForClassName(String className) {\n String typeName = \"String_Node_Str\";\n if (className.indexOf('$') != -1) {\n typeName = Introspector.decapitalize(className.substring(className.lastIndexOf('$') + 1));\n } else {\n typeName = Introspector.decapitalize(className....
"public int getMinOccurs() {\n return this.minOccurs;\n}\n"
"public boolean doInteraction(Object arg) {\n int okCounter = 0;\n Configuration configuration = JDUtilities.getConfiguration();\n String script = configuration.getStringProperty(Configuration.PARAM_HTTPSEND_REQUESTS);\n String user = configuration.getStringProperty(Configuration.PARAM_HTTPSEND_USER);\n ...
"public static Font getFont(String family, int size, int style) {\n Font font = null;\n if (size < 0) {\n size = 0;\n }\n Font font = null;\n String key = fd.toString();\n if (JFaceResources.getFontRegistry().hasValueFor(key)) {\n font = JFaceResources.getFontRegistry().get(key);\n } ...
"public ListResponse<ResourceLimitResponse> getResponse() {\n List<ResourceLimitVO> limits = (List<ResourceLimitVO>) getResponseObject();\n ListResponse<ResourceLimitResponse> response = new ListResponse<ResourceLimitResponse>();\n List<ResourceLimitResponse> limitResponses = new ArrayList<ResourceLimitRespons...
"public Object visitAutoText(IAutoTextContent autoText, Object value) {\n if (IAutoTextContent.PAGE_NUMBER == autoText.getType()) {\n if (parent instanceof PDFLineAreaLM) {\n String originalPageNumber = autoText.getText();\n NumberFormatter nf = new NumberFormatter();\n String...
"private void createVertex(OClass vertexClass, OClass edgeClass) {\n OrientGraph tx = new OrientGraphFactory(getDatabase().getURL()).getTx();\n OrientVertex newVertex = tx.addVertex(vertexClass.getName(), (String) null);\n OrientVertex vertex = tx.getVertex(documentModel.getObject().getIdentity());\n tx.add...
"public double get(OperatingSystemMXBean bean) {\n return bean.getSystemLoadAverage();\n}\n"
"private void drawHeaderRowAndEvents(Canvas canvas) {\n mHeaderColumnWidth = mTimeTextWidth + mHeaderColumnPadding * 2;\n mWidthPerDay = getWidth() - mHeaderColumnWidth - mColumnGap * (mNumberOfVisibleDays - 1);\n mWidthPerDay = mWidthPerDay / mNumberOfVisibleDays;\n Calendar today = today();\n if (mAreD...
"private QuestionDataElement resolveReference(IDataReference binding, QuestionDataGroup group) {\n Enumeration en = group.getChildren().elements();\n while (target == null && en.hasMoreElements()) {\n TreeElement dme = (TreeElement) en.nextElement();\n if (!dme.isLeaf()) {\n return resolv...
"public boolean performCancel() {\n docItem.getProperty().setVersion(mainPage.getOrignalVersion());\n return super.performCancel();\n}\n"
"private String constructUrl(final String proxyGrantingTicketId, final String targetService) {\n try {\n return new URL(this.casServerUrl + (this.casServerUrl.endsWith(\"String_Node_Str\") ? \"String_Node_Str\" : \"String_Node_Str\") + \"String_Node_Str\" + \"String_Node_Str\" + proxyGrantingTicketId + \"Stri...
"public boolean isStrictInvocation(Object mock, String mockClassDesc, String mockNameAndDesc) {\n if (isInstanceMethodWithStandardBehavior(mock, mockNameAndDesc)) {\n return false;\n }\n for (Object strictMock : strictMocks) {\n if (strictMock == mockClassDesc) {\n addStrictMock(mock);...
"static void restoreSpeakerMode(Context context) {\n if (DBG)\n log(\"String_Node_Str\" + sIsSpeakerEnabled);\n if (isSpeakerOn(context) != sIsSpeakerEnabled) {\n turnOnSpeaker(context, sIsSpeakerEnabled, false);\n }\n}\n"
"public void testWriteAndListLogEntries() throws InterruptedException {\n String logId = formatForTest(\"String_Node_Str\");\n LoggingOptions loggingOptions = logging().getOptions();\n LogName logName = LogName.create(loggingOptions.getProjectId(), logId);\n StringPayload firstPayload = StringPayload.of(\"S...
"public static IViewerReportDesignHandle getDesignHandle(HttpServletRequest request, ViewerField viewer) throws Exception {\n if (viewer == null)\n return null;\n IViewerReportDesignHandle design = null;\n IReportRunnable reportRunnable = null;\n String designFile = ParameterAccessor.getReport(reques...
"public void shutdown() {\n ShutdownRequest request = new ShutdownRequest(name);\n invoke(request);\n}\n"
"public void run() {\n ChanApplication.getReplyManager()._onPickedFile(\"String_Node_Str\", null);\n Toast.makeText(ImagePickActivity.this, R.string.file_open_failed, Toast.LENGTH_LONG).show();\n}\n"
"public static void buildAndInstallCodesProject(IProgressMonitor monitor, ERepositoryObjectType codeType, boolean install) throws Exception {\n Job job = new Job(\"String_Node_Str\" + codeType.getLabel()) {\n protected IStatus run(IProgressMonitor monitor) {\n try {\n if (!BuildCache...
"private IDyvilHeader loadHeader(String fileName, String name, Library library) {\n InputStream is = library.getInputStream(fileName);\n if (is != null) {\n DyvilHeader header = HeaderFile.read(is);\n header.pack = this;\n this.units.add(header);\n return header;\n }\n return nul...
"public void onCreate() {\n super.onCreate();\n helpStack = HSHelpStack.getInstance(this);\n HSZendeskGear zenDeskGear = new HSZendeskGear(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n helpStack.setGear(zenDeskGear);\n}\n"
"public void onCreate(Bundle icicle) {\n super.onCreate(icicle);\n if (debug)\n Log.d(TAG, \"String_Node_Str\");\n frontdoor = new Intent(this, FrontDoor.class);\n if (CategoryList.isSignedIn() == false) {\n startActivity(frontdoor);\n }\n restartTimerIntent = new Intent(CryptoIntents.AC...
"public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int offset) {\n ArrayList proposals = new ArrayList();\n ArrayList proposers = new ArrayList();\n try {\n if (viewer.getDocument() instanceof ICFEFileDocument) {\n try {\n proposers = ((ICFEFileDocumen...
"public void addData(int col, Object data) {\n List column = (List) columns.get(col);\n column.add(data);\n if (data instanceof Data) {\n BookmarkDef bookmark = ((Data) data).getBookmark();\n if (null == bookmark) {\n return;\n }\n int rowNo = ((Integer) columnId2StartLin...
"public static void createVersion3(Connection conn, Integer currentVersion) {\n if (currentVersion < 3) {\n StringBuilder createVersionTable = new StringBuilder();\n createVersionTable.append(\"String_Node_Str\");\n createVersionTable.append(\"String_Node_Str\");\n DbManager.getInstance()...
"public int getBottomX() {\n return plotBottomLoc.getBlockX();\n}\n"
"public PortletAppDD getPortletAppDD(ServletContext context) throws PortletContainerException {\n PortletAppDD dd = (PortletAppDD) cache.get(context);\n if (dd == null) {\n dd = createDefinition(context);\n cache.put(context, dd);\n }\n return portletAppDD;\n}\n"
"public boolean injectTrackballEvent(MotionEvent ev, boolean sync) {\n final int pid = Binder.getCallingPid();\n final int uid = Binder.getCallingUid();\n final long ident = Binder.clearCallingIdentity();\n final int result = dispatchTrackball(null, ev, pid, uid);\n if (sync) {\n mKeyWaiter.waitFo...
"public void writeText(String txt) {\n writer.openTag(\"String_Node_Str\");\n try {\n new java.math.BigDecimal(txt);\n writer.attribute(\"String_Node_Str\", \"String_Node_Str\");\n } catch (Exception e) {\n writer.attribute(\"String_Node_Str\", \"String_Node_Str\");\n }\n writer.text...
"public boolean hasChildren(Object element) {\n if (element instanceof ItemRecord) {\n File[] listFiles = ((ItemRecord) element).getFile().listFiles();\n return listFiles != null && listFiles.length > 0;\n }\n return false;\n}\n"
"protected Collection<Integer> getNextIndexMatch(Vector<PredicateProfile> profiles, IStorageUtilityIndexed<?> storage, QueryContext currentQueryContext) throws IllegalArgumentException {\n if (!(profiles.elementAt(0) instanceof IndexedValueLookup)) {\n throw new IllegalArgumentException(\"String_Node_Str\");\...
"public int getExecutionTime(MethodInfo context, InstructionHandle ih) {\n int opcode = ih.getInstruction().getOpcode();\n if (opcode == Constants.NEW) {\n NEW insn = (NEW) ih.getInstruction();\n ObjectType type = insn.getLoadClassType(context.getConstantPoolGen());\n return computeObjectSize...
"public int getPotentialCost(MapHex hex) {\n if (hex == null) {\n return 0;\n } else {\n if (specialProperty != null && ((SpecialBaseTokenLay) specialProperty).isFree()) {\n return 0;\n } else {\n return company.getBaseTokenLayCost(hex);\n }\n }\n}\n"
"public void actionPerformed(ActionEvent passwordAe) {\n if (passwordAe.getActionCommand().equals(\"String_Node_Str\")) {\n currentPassword = \"String_Node_Str\";\n newPassword = \"String_Node_Str\";\n confirmPassword = \"String_Node_Str\";\n currentPassword = readPassword(textCurrentPass...