content
stringlengths
40
137k
"public void setVisible(boolean visible) {\n setVisible(getElement(), visible);\n}\n"
"public AppAccount getAppAccount() {\n return appAccountRepo.all().fetchOne();\n}\n"
"public void update(Observable observable, Object o) {\n if (observable instanceof JsTestDriverServer) {\n switch((JsTestDriverServer.Event) event) {\n case STARTED:\n setStatus(Status.NO_BROWSERS);\n break;\n case STOPPED:\n setStatus(Status....
"private InputParameterAttributes updateInputElementAttrs(InputParameterAttributes inputParamAttrs, ScalarParameterHandle paramDefn) {\n if (inputParamAttrs == null)\n inputParamAttrs = DesignFactory.eINSTANCE.createInputParameterAttributes();\n InputElementAttributes inputAttrs = inputParamAttrs.getElemen...
"public void test_onClientApplicationDeRegisteredEvent_resolve() throws Exception {\n ClientApplicationDeregisteredEvent event = new ClientApplicationDeregisteredEvent(application);\n notifier.doNotify(event);\n verify(mockRestTemplate).postForEntity(eq(URI.create(\"String_Node_Str\")), any(Message.class), eq(...
"private void migrateDownloaders(OldConfig oldConfig) {\n List<DownloaderConfig> downloaders = new ArrayList<>();\n for (Downloader oldDownloader : oldConfig.getDownloaders()) {\n DownloaderConfig newDownloader = new DownloaderConfig();\n if (oldDownloader.getType().equals(\"String_Node_Str\")) {\n ...
"private CompletableFuture<Path> produceEpub3(boolean askPath, boolean isTemp) {\n CompletableFuture<Path> completableFuture = new CompletableFuture<>();\n try {\n Path currentTabPath = current.currentPath().get();\n Path currentTabPathDir = currentTabPath.getParent();\n Path configPath = asc...
"private static void persistFeedbackResponses(Map<String, FeedbackResponseAttributes> map) {\n Map<String, FeedbackResponseAttributes> responses = map;\n try {\n for (FeedbackResponseAttributes response : responses.values()) {\n adjustFeedbackResponseId(response);\n }\n frDb.create...
"void rollbackThisAndResumeOther(Transaction otherTx, SlaveContext txId) {\n try {\n TransactionManager txManager = graphDbConfig.getTxModule().getTxManager();\n txManager.rollback();\n System.out.println(\"String_Node_Str\" + txId);\n transactions.remove(txId);\n if (otherTx != nu...
"public void setupMetadata(CloudPlatform cloudPlatform, Long stackId) {\n try {\n Stack stack = stackRepository.findOneWithLists(stackId);\n MetadataSetup metadataSetup = metadataSetups.get(cloudPlatform);\n metadataSetup.setupMetadata(stack);\n } catch (Exception e) {\n LOGGER.error(\...
"private void _setupPreviewPage() {\n int pageIndex = 1;\n _preview = new PtolemyEditor();\n IFile previewFile = _getPreviewFile();\n if (previewFile != null) {\n try {\n _preview.init(_editor.getEditorSite(), getEditorInput());\n } catch (Exception e) {\n OutputConsole.o...
"public void attributeChanged(Attribute attribute) throws IllegalActionException {\n if (attribute == requestPort) {\n Actor actor = (Actor) getContainer();\n CompositeResourceScheduler scheduler = (CompositeResourceScheduler) getDecorator();\n String portName = ((StringToken) ((Parameter) attri...
"public long addData(ByteBuffer data) {\n int dataSize = data.remaining();\n long state = m_state.get();\n for (; ; ) {\n if (state == -1) {\n state = m_state.get();\n continue;\n }\n final long offs = getOffs(state, m_blockSize);\n long space = (m_blockSize - ...
"public void open(Object item) {\n if (item instanceof FlowStep) {\n FlowStep flowStep = (FlowStep) item;\n String type = flowStep.getComponent().getType();\n if (type.equals(FixedLengthFormatter.TYPE) || type.equals(DelimitedFormatter.TYPE)) {\n EditFormatPanel editFormat = new EditF...
"public NodeRunConstructionResult createNodeRunConstructionResult(UserRequest ureq, WindowControl wControl, UserCourseEnvironment userCourseEnv, NodeEvaluation ne, String nodecmd) {\n Controller controller;\n Roles roles = ureq.getUserSession().getRoles();\n if (roles.isGuestOnly()) {\n Translator trans...
"public boolean matchesCell(Cell other, double atomicMisfit, double lengthMisfit, double angleMisfit) {\n Cell n1 = this.getWyckoffCell();\n Cell n2 = null;\n if (other.getBasisSize() <= 0)\n n2 = other.getNigliReducedCell().getWyckoffCell();\n else\n n2 = other.getNigliReducedCell().getWyckof...
"public static Object createObject(String filePath, String className) throws ClassNotFoundException, InstantiationException, IllegalAccessException, IOException {\n if (StringUtils.isBlank(className)) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n ClassLoaderUtility.addFile(filePath)...
"protected boolean validateFormLogic(UserRequest ureq) {\n boolean allOk = true;\n String whiteList = domainListElement.getValue();\n domainListElement.clearError();\n if (StringHelper.containsNonWhitespace(whiteList)) {\n List<String> normalizedList = registrationModule.getDomainList(whiteList);\n ...
"public void testSelectPhoneNumberNumberWithEmployeeWithFirstNameFirst() {\n org.eclipse.persistence.jpa.JpaEntityManager em = (org.eclipse.persistence.jpa.JpaEntityManager) createEntityManager();\n ExpressionBuilder employees = new ExpressionBuilder();\n Expression exp = employees.get(\"String_Node_Str\").equ...
"public static IPath getRuntimePath() {\n if (runtimePath == null) {\n if (testRuntimeDir == null) {\n runtimePath = DqpPlugin.getInstance().getStateLocation();\n } else {\n runtimePath = new Path(testRuntimeDir);\n }\n }\n return (IPath) runtimePath.clone();\n}\n"
"private void splitBorderStyle(Object borderStyle, StringBuilder bstyle, StringBuilder bwidth, StringBuilder bcolor) {\n if (borderStyle != null) {\n Properties borderProperties = new Properties();\n ComponentFactoryHelper.createBorderCSSProperties(borderStyle.toString(), borderProperties);\n bs...
"public SlackMessageHandle<SlackMessageReply> deleteMessage(String timeStamp, SlackChannel channel) {\n SlackMessageHandleImpl<SlackMessageReply> handle = new SlackMessageHandleImpl<SlackMessageReply>(getNextMessageId());\n Map<String, String> arguments = new HashMap<>();\n arguments.put(\"String_Node_Str\", a...
"public Object run() {\n return Boolean.valueOf(Boolean.getBoolean(IIOP_CLIENT_PER_THREAD_FLAG));\n}\n"
"public void removeSelectedLinks() {\n if (parent.showConfirmDialog(\"String_Node_Str\")) {\n Vector<DownloadLink> linksToDelete = getSelectedObjects();\n allLinks.removeAll(linksToDelete);\n table.getSelectionModel().clearSelection();\n fireTableChanged();\n }\n}\n"
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n if (getArguments() != null) {\n mEventKey = getArguments().getString(KEY, \"String_Node_Str\");\n }\n parent = getActivity();\n if (parent instanceof RefreshableHostActivity) {\n ((RefreshableHostActi...
"protected void executePatch() throws Throwable {\n if (nodeService.exists(RM_CONFIG_FOLDER) && !nodeService.exists(TEMPLATE_ROOT)) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\");\n }\n NodeRef templateRoot = createNode(ContentModel.TYPE_FOLDER, RM_CONFIG_FOLDE...
"public List<MetadataTable> fillAll(Package pack, DatabaseMetaData dbJDBCMetadata, List<String> tableFilter, String tablePattern, String[] tableType) {\n List<MetadataTable> list = new ArrayList<MetadataTable>();\n if (dbJDBCMetadata == null) {\n return null;\n }\n Package catalogOrSchema = PackageHe...
"public static void main(final String[] args) throws Exception {\n if (args.length != 4) {\n usage(\"String_Node_Str\");\n }\n final String qcfBindingName = args[0];\n final String queueBindingName = args[1];\n final String username = args[2];\n final String password = args[3];\n new JMSQueu...
"public List<Record> getRecordsByRecordTypeIDAndMonth(Context context, long recordTypeID, int recordYear, int recordMonth) {\n RecordDao recordDao = getDaoSession(context).getRecordDao();\n return recordDao.queryBuilder().where(RecordDao.Properties.IsDel.eq(false)).where(RecordDao.Properties.RecordTypeID.eq(recor...
"protected void preview(String format, boolean allowPage) {\n if (!prePreview()) {\n return;\n }\n FormEditor editor = UIUtil.getActiveReportEditor(false);\n ModuleHandle model = null;\n if (model == null) {\n if (editor instanceof MultiPageReportEditor) {\n model = ((MultiPageRe...
"public void saveHTML(File file, String videoFileName, String clientType, String clientVersion) throws FileNotFoundException {\n String html = BackupTubeCommon.getHTMLTemplate();\n html = html.replace(BackupTubeCommon.TEMPLATE_CLIENT_TYPE, clientType);\n html = html.replace(BackupTubeCommon.TEMPLATE_CLIENT_VER...
"private void setAbsoluteFile(File transformedAppFolder, TransformationContext transformationContext) {\n if (absoluteFileFromContextAttribute != null) {\n absoluteFile = (File) transformationContext.get(absoluteFileFromContextAttribute);\n setRelativePath(transformedAppFolder, absoluteFile);\n ...
"public void testHA() throws Exception {\n HBaseTestingUtility hBaseTestingUtility = new HBaseTestingUtility();\n hBaseTestingUtility.startMiniDFSCluster(1);\n Configuration hConf = hBaseTestingUtility.getConfiguration();\n hConf.setBoolean(\"String_Node_Str\", true);\n InMemoryZKServer zkServer = InMemo...
"protected static void initialize(final Configuration conf, final Properties p) {\n if (adHocProviderFactories == null) {\n adHocProviderFactories = new HashMap<String, AdHocDataProviderFactory>();\n final ServiceLoader<AdHocDataProviderFactory> dataProviderLoader = ServiceLoader.load(AdHocDataProvider...
"private void setListView() {\n mCursor = managedQuery(StatusUpdateInfoColumns.CONTENT_URI, null, null, null, null);\n mAdapter = new RecordCursorAdaper(this, mCursor);\n mListView = (ListView) findViewById(android.R.id.list);\n mListView.setAdapter(mAdapter);\n mListView.setOnItemClickListener(this);\n ...
"public void putLong(final String key, final long value) {\n p.putLong(safeKey(key), value);\n}\n"
"protected void createComponents() {\n guiRenderer = new GuiRenderer(mc, mc.getTextureManager(), fontRendererObj, itemRender);\n final GuiSubTexture guiBackground = new GuiSubTexture(TEXTURE, new Rectangle(0, 0, 176, 227));\n final GuiTexture inactiveHandle = new GuiSubTexture(TEXTURE, new Rectangle(176, 0, 12...
"public static void main(String[] args) {\n String metaF = \"String_Node_Str\";\n GeoCoding gc;\n try {\n gc = new S1GeoCodingImpl(metaF);\n double lat = 54.81;\n double lon = -5.81;\n double p = 6180.1;\n double l = 13476.0;\n try {\n System.out.println(\"S...
"public boolean renderInWorld(AEBaseBlock blk, IBlockAccess world, int x, int y, int z, RenderBlocks renderer) {\n boolean xx = getTileEntity(world, x - 1, y, z) instanceof TileController && getTileEntity(world, x + 1, y, z) instanceof TileController;\n boolean yy = getTileEntity(world, x, y - 1, z) instanceof Ti...
"private <P> void addPropertyBuilder(PropertyMapping<T, ?, K, FieldMapperColumnDefinition<K, S>> t, SubPropertyMeta<T, ?> subProp, AbstractFieldMapperMapperBuilder<S, ?, K> builder) {\n ((AbstractFieldMapperMapperBuilder<S, P, K>) builder).addMapping(t.getColumnKey(), t.getColumnDefinition(), ((SubPropertyMeta<T, P>...
"public void setDescription(String description) {\n this.description = new Text(description);\n}\n"
"private SortedMap<ArtifactDescriptor, Set<PluginClass>> getPluginsInArtifact(Table table, Id.Artifact artifactId, Predicate<PluginClass> filter) {\n SortedMap<ArtifactDescriptor, Set<PluginClass>> result = new TreeMap<>();\n ArtifactCell parentCell = new ArtifactCell(artifactId);\n byte[] parentDataBytes = ta...
"protected String[] createEnvArray(Map parameters, boolean isAgentSet) {\n String[] envArray = super.createEnvArray(parameters, isAgentSet);\n if (envArray == null) {\n envArray = EnvironmentUtils.propToStrArray(EnvironmentUtils.getProcessEnvironment(), IStartAut.PROPERTY_DELIMITER);\n }\n Vector<Str...
"private void addAnimator(AnimatorBundle... animators) {\n boolean added = true;\n for (AnimatorBundle animator : animators) {\n if (!mSetAnimatorBundles.add(animator)) {\n throw new IllegalArgumentException(\"String_Node_Str\" + animator.mTypeAnimation + \"String_Node_Str\");\n }\n }\...
"public void include(ServletRequest servletRequest, ServletResponse servletResponse) throws IOException, ServletException {\n BundleServletRequest bundleServletRequest = new BundleServletRequest(this, (HttpServletRequest) servletRequest);\n String contextPath = _bundleServletContext.getContextPath();\n if (_re...
"private static String getImpalaURLString(boolean supportContext, String server, String port, String sid, String Principal) {\n String s = EDatabaseConnTemplate.IMPALA.getUrlTemplate(null);\n String standardURlString = getImpalaURlString(s, supportContext, server, port, sid);\n String principalSuffix = \"Strin...
"public static FgAndVars getLinearChainFgWithVars() {\n FactorGraph fg = new FactorGraph();\n Var w0 = new Var(VarType.PREDICTED, 2, \"String_Node_Str\", Lists.getList(\"String_Node_Str\", \"String_Node_Str\"));\n Var w1 = new Var(VarType.PREDICTED, 2, \"String_Node_Str\", Lists.getList(\"String_Node_Str\", \"...
"private void writeDasProperties() throws IOException {\n if (dasPropsFile.createNewFile()) {\n dasProperties = new Properties();\n dasProperties.setProperty(K_DAS_HOST, DASHost);\n dasProperties.setProperty(K_DAS_PORT, String.valueOf(DASPort));\n dasProperties.setProperty(K_DAS_IS_SECURE...
"public void writeJump(MethodWriter writer, Label dest, IValue instance, IArguments arguments) {\n if ((this.modifiers & Modifiers.STATIC) != 0) {\n if (instance != null && instance.getValueType() == IValue.CLASS_ACCESS) {\n instance = null;\n }\n if (this.intrinsicOpcodes != null) {\...
"public Tuple2<Path, Double> call() throws IOException {\n List<?> hyperParameters = hyperParameterCombos.get(i % hyperParameterCombos.size());\n Path candidatePath = new Path(candidatesPath, Integer.toString(i));\n log.info(\"String_Node_Str\", i, hyperParameters);\n Pair<JavaRDD<M>, JavaRDD<M>> trainTestD...
"protected ArrayList<Task> execute(Operation operation, Term[] args, Memory memory) {\n js.put(\"String_Node_Str\", memory);\n if (args.length != 2)\n return null;\n if (!(args[1] instanceof Variable)) {\n return null;\n }\n Object result = null;\n String input = Texts.unescape(args[0].n...
"protected IViewerReportDesignHandle getDesignHandle() throws Exception {\n if (viewer == null)\n return null;\n IViewerReportDesignHandle design = null;\n IReportRunnable reportRunnable = null;\n String designFile = createAbsolutePath(viewer.getReportDesign());\n String documentFile = createAbsol...
"public void fillContextMenu(IMenuManager menu) {\n if (!isShowMenu()) {\n return;\n }\n TreeSelection currentSelection = ((TreeSelection) this.getContext().getSelection());\n if (isSelectedColumnLevel(currentSelection) || isSelectedMdmColumn(currentSelection)) {\n IMenuManager submenu = new M...
"private void log(AttributeMetadata attributeMetadata) {\n LOG.trace(\"String_Node_Str\", attributeMetadata.getPojoClass() != null ? attributeMetadata.getPojoClass().getName() : \"String_Node_Str\", attributeMetadata.getAttributeName() != null ? attributeMetadata.getAttributeName() : \"String_Node_Str\");\n}\n"
"public void receivePacket(MatchStartPacket packet) {\n updatePlayersList(packet.getMatchInfo().getPlayers());\n MapLoader mapLoader = MapList.getDefaultList().getMapById(packet.getMatchInfo().getMapInfo().getId());\n long randomSeed = packet.getRandomSeed();\n byte myPlayerNumber = getMyPlayerNumber();\n ...
"public Partition getNextScaleUpPartition(String clusterId) {\n String policyId;\n int nextPartitionIndex;\n ClusterContext clusterContext = AutoscalerContext.getInstance().getClusterContext(clusterId);\n int currentPartitionIndex = clusterContext.getCurrentPartitionIndex();\n String serviceId = Autoscal...
"private OrdinalSet<InstanceKey> computeImplicitPointsToSetAtCheckCast(CGNode node, SSACheckCastInstruction instruction) {\n PointerKey rhs = pointerKeys.getPointerKeyForLocal(node, instruction.getVal());\n OrdinalSet<InstanceKey> rhsSet = getPointsToSet(rhs);\n MutableSparseIntSet S = MutableSparseIntSet.make...
"private void startBackgroundContainer(IStyle style, DimensionType pageWidth, DimensionType pageHeight) {\n String backgroundHeight = parseBackgroundSize(style.getBackgroundHeight(), pageHeight);\n String backgroundWidth = parseBackgroundSize(style.getBackgroundWidth(), pageWidth);\n if (backgroundHeight == nu...
"public void onClick(final ClickEvent event) {\n event.preventDefault();\n final Element element = event.getRelativeElement();\n final int width = element.getClientWidth();\n groupMenu.setTarget(groupPresenter);\n groupMenu.show(element.getAbsoluteLeft(), element.getAbsoluteTop());\n}\n"
"public void register(ExtensionBuilder builder) {\n builder.observer(CubeConfigurator.class).observer(CubeClientCreator.class).observer(CubeRegistrar.class).observer(CubeLifecycleController.class).observer(CubeSuiteLifecycleController.class).observer(ClientCubeControllerCreator.class).observer(BeforeStopContainerObs...
"public void triggerTermination(Long stackId, Boolean deleteDependencies) {\n Stack stack = stackService.getById(stackId);\n if (BYOS.equals(stack.cloudPlatform())) {\n String selector = FlowChainTriggers.BYOS_CLUSTER_TERMINATION_TRIGGER_EVENT;\n notify(selector, new TerminationEvent(selector, stack...
"public void doRollback() {\n checkClosed();\n if (this.entityTransaction != null) {\n this.entityTransaction.rollback();\n } else {\n this.persistenceDelegator.rollback();\n }\n}\n"
"private void adjustAxisSpacing(GL gl) {\n Point currentPoint = glMouseListener.getPickedPoint();\n float[] fArTargetWorldCoordinates = GLCoordinateUtils.convertWindowCoordinatesToWorldCoordinates(gl, currentPoint.x, currentPoint.y);\n float fWidth = fArTargetWorldCoordinates[0] - fXTranslation - fXDefaultTran...
"private void produceSpec() throws Exception {\n if (buildFlags.get(\"String_Node_Str\")) {\n if (page.getIni().getPropertyNames(\"String_Node_Str\") != null)\n for (String n : page.getIni().getPropertyNames(\"String_Node_Str\")) {\n Utilities.copyFile(new CSFile(page.getFolders().sr...
"public void run() {\n String[] args = { localServer, distantServer, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", cacheSize };\n Main.main(args, false);\n}\n"
"public void onClick(View view) {\n mainActivity.onClickItem(getAdapterPosition());\n selectedItem = getAdapterPosition();\n notifyDataSetChanged();\n}\n"
"public void setViewerWidgetCode(String viewerWidgetCode) {\n this.viewerWidgetCode = viewerWidgetCode;\n}\n"
"public Character getCharacterBasicInfo(String name, String realm, String region, long lastModified) throws CharacterNotFoundException, ServerUnavailableException, InvalidApplicationSignatureException, TooManyRequestsException, NotModifiedException {\n String URL = \"String_Node_Str\";\n Map<Integer, String> clas...
"public void initialize() throws IllegalActionException {\n super.initialize();\n double xUnitValue = ((DoubleToken) xUnit.getToken()).doubleValue();\n int widthValue = ((IntToken) width.getToken()).intValue();\n plot.setXRange(_xInit, _xUnit * widthValue + _xInit);\n plot.setWrap(true);\n int persVal...
"public void onSetup(File log, File world) {\n try {\n connection = new InjectionConnection(log.toPath(), world.toPath(), \"String_Node_Str\");\n } catch (IOException | InterruptedException ex) {\n throw new UndeclaredThrowableException(ex);\n }\n warpLogFile = new File(world.getAbsolutePath()...
"public int getNextImageID() {\n LOGGER.debug(\"String_Node_Str\");\n PreparedStatement stmt = null;\n String query = \"String_Node_Str\";\n int nextImageID = 0;\n try {\n stmt = con.prepareStatement(query);\n stmt.setString(1, \"String_Node_Str\");\n ResultSet rs = stmt.executeQuery...
"public Set<ClassInfo> getAncestors() {\n Set<ClassInfo> sc = new HashSet<ClassInfo>();\n List<ClassInfo> queue = new LinkedList<ClassInfo>();\n queue.add(this);\n while (!queue.isEmpty()) {\n ClassInfo cls = queue.remove(0);\n sc.add(cls);\n ClassInfo superClass = cls.getSuperClassInfo...
"public void setup() {\n MockitoAnnotations.initMocks(this);\n fragment = new LightCycleSupportFragment();\n fragment.attachLightCycle(lightCycle);\n activityController = attach(fragment);\n}\n"
"private float calculateCircle(float radius, float current_step, float numberOfElements) {\n float phi = (float) ((float) 2 * Math.PI / numberOfElements);\n setFXCoord((float) (fCenterX + radius * Math.cos(phi * current_step)));\n setFYCoord((float) (fCenterY + radius * Math.sin(phi * current_step)));\n ret...
"public void run(final CommandSender cs, String label, String[] args) {\n if (!r.isPlayer(cs)) {\n return;\n }\n Player p = (Player) cs;\n if (!r.perm(p, \"String_Node_Str\", true, true)) {\n return;\n }\n if (r.checkArgs(args, 0) && args[0].contains(\"String_Node_Str\")) {\n if (...
"public UnmarshalRecord buildSelfRecord(UnmarshalRecord unmarshalRecord, Attributes atts) {\n try {\n Descriptor xmlDescriptor = (Descriptor) xmlCompositeObjectMapping.getReferenceDescriptor();\n if (null == xmlDescriptor) {\n xmlDescriptor = findReferenceDescriptor(null, unmarshalRecord, at...
"private byte[] getBytes(String jpaFieldName, EntityMetadata m, Object value) {\n Attribute idCol = m.getIdAttribute();\n MetamodelImpl metaModel = (MetamodelImpl) KunderaMetadata.INSTANCE.getApplicationMetadata().getMetamodel(m.getPersistenceUnit());\n EntityType entity = metaModel.entity(m.getEntityClazz());...
"private void processPropertyAnnotations(TypeInfo info, JavaClass cls, JavaHasAnnotations javaHasAnnotations, Property property) {\n if (helper.isAnnotationPresent(javaHasAnnotations, XmlMixed.class)) {\n info.setMixed(true);\n property.setMixedContent(true);\n }\n if (helper.isAnnotationPresent(...
"public void endOfExecution(Scope functionScope) {\n for (Entry<Tree, Optional<String>> entry : hasIssue.entrySet()) {\n Optional<String> value = entry.getValue();\n if (value.isPresent()) {\n addIssue(entry.getKey(), value.get());\n }\n }\n}\n"
"public void playPriority(UUID activePlayerId, boolean resuming) {\n int errorContinueCounter = 0;\n infiniteLoopCounter = 0;\n int bookmark = 0;\n clearAllBookmarks();\n try {\n applyEffects();\n while (!isPaused() && !checkIfGameIsOver() && !this.getTurn().isEndTurnRequested()) {\n ...
"public Map<InstanceType, InstanceTypeDescription> getMapOfAvailableInstanceTypes() {\n final Map<InstanceType, InstanceTypeDescription> availableinstances = new SerializableHashMap<InstanceType, InstanceTypeDescription>();\n for (InstanceType t : this.availableInstanceTypes) {\n availableinstances.put(t, ...
"public void run() {\n NSIndexSet removedIndexes = collectionChanges.getRemovedIndexes();\n if (removedIndexes != null && removedIndexes.size() > 0) {\n collectionView.deleteItems(getIndexPathsFromIndexesWithSection(removedIndexes, 0));\n }\n NSIndexSet insertedIndexes = collectionChanges.getInserted...
"public void arrayResponse() throws IOException {\n this.snippet.expectResponseFields(\"String_Node_Str\").withContents(tableWithHeader(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\").row(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\"));\n MockHttpServletResponse response = new MockH...
"public void testEven4ParityTournament7Selection() {\n final int LOWER_SUCCESS = 50;\n final int UPPER_SUCCESS = 50;\n Evolver evolver = getEvolver();\n final EvenParity model = new EvenParity(evolver, 4);\n setupModel(model);\n model.setProgramSelector(new TournamentSelector(evolver, 7));\n final ...
"private StructureDefinition parseProfileSheet(String n, List<String> namedSheets, List<ValidationMessage> issues, boolean logical) throws Exception {\n StructureDefinition sd = new StructureDefinition();\n Map<String, ElementDefinitionConstraintComponent> invariants = new HashMap<String, ElementDefinitionConstra...
"public void handleFree(DownloadLink downloadLink) throws Exception {\n requestFileInformation(downloadLink);\n String dllink = null;\n String fileID = new Regex(downloadLink.getDownloadURL(), \"String_Node_Str\").getMatch(0);\n boolean isStream = br.containsHTML(\"String_Node_Str\");\n if (!isStream) {\...
"private String addQuoteForSpecialChar(String expression) {\n int lastIndex = expression.lastIndexOf(\"String_Node_Str\");\n if (lastIndex > 0) {\n String first = expression.substring(0, lastIndex).trim();\n String second = expression.substring(lastIndex + 1, expression.length()).trim();\n St...
"private void playSong(final String filePath) {\n final File file = new File(filePath);\n final byte[] data = new byte[(int) file.length()];\n try {\n final FileInputStream in = new FileInputStream(file);\n if (in.read(data) != data.length) {\n in.close();\n Log.e(\"String_N...
"public boolean poll() {\n Long requestId = apiBootstrap.getRequestId();\n logger.info(\"String_Node_Str\" + requestId + \"String_Node_Str\");\n ApiBootstrapStatus apiBootstrapStatus = apiManager.getBootstrapStatus(requestId);\n int registeredHostsCount = 0;\n ApiHostList apiHostList = apiManager.getRegi...
"protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n switch(requestCode) {\n case RTL2832U_RESULT_CODE:\n if (resultCode == RESULT_OK)\n Log.i(LOGTAG, \"String_Node_Str\");\n else {\n...
"private void drawCrosshair(IPrimitiveRenderer ipr) throws ChartException {\n paletteEntry = FillUtil.getColor(paletteEntry);\n if (ChartUtil.isColorTransparent((ColorDefinition) paletteEntry)) {\n paletteEntry = goFactory.createColorDefinition(0, 0, 0, 15);\n }\n final ColorDefinition cd = (ColorDef...
"public void startCluster(final String clusterName, final String nodeGroupName, final String nodeName) {\n Map<String, String> queryStrings = new HashMap<String, String>();\n queryStrings.put(Constants.QUERY_ACTION_KEY, Constants.QUERY_ACTION_START);\n try {\n String fullNodeName = autoCompleteNodeName(...
"public void undoAction() {\n if (isSheetProtected())\n return;\n int row = getReservedRow();\n int column = getReservedColumn();\n int lastRow = getReservedLastRow();\n int lastColumn = getReservedLastColumn();\n Sheet sheet = getReservedSheet();\n switch(_reserveType) {\n case DATA:...
"private String cidrToIPAndNetmask(String route) {\n String[] parts = route.split(\"String_Node_Str\");\n if (parts.length == 1)\n parts = (route + \"String_Node_Str\").split(\"String_Node_Str\");\n if (parts.length != 2)\n return null;\n int len;\n try {\n len = Integer.parseInt(par...
"public Entitlement find(String name) {\n Entitlement result = entityManager.find(Entitlement.class, name);\n if (isDeletedOrNotManaged(result)) {\n result = null;\n return result;\n}\n"
"public void close() {\n for (T machine : machines) {\n if (machine instanceof Closeable)\n Streams.closeQuietly((Closeable) machine);\n }\n}\n"
"public MissionDetailFragment getDetailFragment() {\n return MissionDetailFragment.newInstance(mMissionItem.getType());\n}\n"
"public List<Camera> getAll() throws PersistenceException {\n List<Camera> cameraList = new ArrayList<>();\n PreparedStatement stmt = null;\n String query = \"String_Node_Str\";\n try {\n stmt = con.prepareStatement(query);\n ResultSet rs = stmt.executeQuery();\n while (rs.next()) {\n ...
"protected void deleteDir(File dir) {\n String[] files = dir.list();\n if (files == null) {\n files = new String[0];\n }\n for (int i = 0; i < files.length; i++) {\n File file = new File(dir, files[i]);\n if (file.isDirectory()) {\n deleteDir(file);\n } else {\n ...
"public Node visitClassField(MxParser.ClassFieldContext ctx) {\n String declClass = ctx.Identifier().getText();\n List<Node> body = new ArrayList<>();\n Location declClassPos = new Location(ctx.Identifier());\n Location bodyPos = new Location(ctx.LBRACE());\n for (MxParser.ClassBodyContext declarator : c...