content
stringlengths
40
137k
"private boolean processPropertyDefinitions(Map<QName, PropertyDefinition> properties, String substitutionFragment, Set<String> suggestions) {\n boolean gotMaximumSuggestions = false;\n if (properties != null) {\n for (Map.Entry<QName, PropertyDefinition> entry : properties.entrySet()) {\n Prope...
"protected void createControlsInSection(Composite compSectionClient) {\n dataModelHolder = new FixDMNameBasePropertySectionDataModelExtractor(this);\n compSimpleXPath = new SimpleXPathComposite(compSectionClient, SWT.NONE, SimpleXPathComposite.DEFAULTTITLE, dataModelHolder, dataModelHolder.getDefaultDataModel(), ...
"private Symbol findMethod(Env<AttrContext> env, Type site, Name name, List<Type> argtypes, List<Type> typeargtypes, Type intype, Symbol bestSoFar, boolean allowBoxing, boolean useVarargs, boolean operator) {\n boolean abstractOk = true;\n List<Type> itypes = List.nil();\n for (TypeSymbol s : superclasses(inty...
"private Form<?> createForm(String form, final String button, final BuildingType type) {\n Form<?> newForm = new Form<Object>(form);\n final Building building = buildings.get(type);\n AjaxButton newButton = new AjaxButton(button) {\n protected void onSubmit(AjaxRequestTarget target, Form<?> form) {\n ...
"public void execute() throws SQLException, DatabaseUnitException, IOException {\n if (this.tableTypes == null || this.tableTypes.length == 0) {\n this.tableTypes = new String[] { \"String_Node_Str\" };\n }\n IDataSet data = getDataSet();\n if (this.db2 != null) {\n log.info(\"String_Node_Str\...
"public void configure(URL base, InputStream in) throws Exception {\n if (plot != null) {\n PlotMLParser parser = new PlotMLParser(plot);\n parser.parse(base, in);\n _configureBase = null;\n _configureIn = null;\n } else {\n _configureBase = base;\n _configureIn = in;\n ...
"public boolean enterFunctionNode(FunctionNode fn) {\n if (scopeLevel == 1 && fn != jsRoot && !fn.isAnonymous()) {\n if (cx.functions == 0) {\n cx.result = fn;\n }\n cx.functions++;\n }\n return super.enterFunctionNode(fn);\n}\n"
"public void testRangeRestrictionDistance() {\n given().param(\"String_Node_Str\", getParameter(\"String_Node_Str\")).param(\"String_Node_Str\", getParameter(\"String_Node_Str\")).param(\"String_Node_Str\", \"String_Node_Str\").param(\"String_Node_Str\", \"String_Node_Str\").when().get(getEndPointName()).then().stat...
"protected boolean hasTexture(String texture) {\n ayj texturePacksManager = (ayj) getThroughReflection(avf.class, \"String_Node_Str\", mc.o);\n return texturePacksManager != null && texturePacksManager.e().a(texture) != null;\n}\n"
"protected void paintFigure(Graphics graphics) {\n Rectangle bounds = getBounds().getCopy();\n setConstraint(triangle, new Rectangle(0, 0, bounds.width, bounds.height));\n if (kind == StructuralLinkKind.EXHIBITION) {\n triangle.setConstraint(innerTriangle, new Rectangle(bounds.width / 3, bounds.height /...
"public Response execute() {\n Response rsp = null;\n DatabaseAccessor db = null;\n try {\n db = initDB();\n boolean result = db.removeGenomeRelease(genomeVersion);\n if (result) {\n rsp = new DeleteGenomeReleaseResponse(StatusCode.OK);\n } else {\n rsp = new E...
"public static void registerBasics() {\n SteamcraftRegistry.addCategory(\"String_Node_Str\");\n SteamcraftRegistry.addResearch(\"String_Node_Str\", \"String_Node_Str\", new BookPageItem(\"String_Node_Str\", \"String_Node_Str\", new ItemStack(BOOK.getItem())), new BookPageCrafting(\"String_Node_Str\", \"String_Nod...
"public synchronized void updateLink() {\n updateLink(\"String_Node_Str\");\n Set<String> allLinksFound = getLinks();\n if (alreadyChecked.isEmpty()) {\n alreadyChecked.addAll(allLinksFound);\n } else {\n updateLinkFromSet(allLinksFound);\n }\n updateLink(getLink());\n}\n"
"synchronized void audioOff() {\n if (VDBG)\n log(\"String_Node_Str\" + mPendingSco + \"String_Node_Str\" + mConnectedSco + \"String_Node_Str\" + mOutgoingSco + \"String_Node_Str\" + mA2dpState + \"String_Node_Str\" + mA2dpSuspended);\n if (mA2dpSuspended) {\n if (DBG)\n log(\"String_Node...
"private void readMinimalUnary(final String label, final int numEntriesInChunk, final InputBitStream bitInput, final IntList list) throws IOException {\n final int size = bitInput.readNibble();\n if (size == 0) {\n return;\n }\n final int min = bitInput.readNibble();\n final int max = bitInput.rea...
"public static List getMethods(IClassInfo classInfo, Comparator comp) {\n List methods = classInfo.getMethods();\n Collections.sort(methods, comp);\n mds.addAll(methods);\n return mds;\n}\n"
"public void createControl(Composite parent) {\n setControl(parent);\n Composite container = new Composite(parent, SWT.NONE);\n container.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n container.setLayout(new GridLayout(1, false));\n Group destinationGroup = new Group(container, SWT.NONE);\n ...
"private void splitExportDeclaration(Node n) {\n Node c = n.getFirstChild();\n if (NodeUtil.isDeclaration(c)) {\n n.removeChild(c);\n Node exportSpecs = new Node(Token.EXPORT_SPECS).srcref(n);\n n.addChildToFront(exportSpecs);\n Iterable<Node> names;\n if (c.isClass()) {\n ...
"public static ForgeArchive getDeployment() {\n return ShrinkWrap.create(ForgeArchive.class).addClass(ProjectHelper.class).addBeansXML().addAsAddonDependencies(AddonDependencyEntry.create(\"String_Node_Str\"), AddonDependencyEntry.create(\"String_Node_Str\"), AddonDependencyEntry.create(\"String_Node_Str\"), AddonDe...
"private void createExpressionCell(Composite parent, String label) {\n ControlProvider.createLabel(parent, label);\n defaultValueComposite = ControlProvider.getDefaultComposite(parent);\n defaultValueString = Utility.getNonNullString(structureHandle.getDefaultValue());\n defaultValue = ControlProvider.creat...
"protected void onPause() {\n super.onPause();\n try {\n unregisterReceiver(mGalleryReceiver);\n } catch (IllegalArgumentException e) {\n AppLog.d(T.EDITOR, \"String_Node_Str\");\n }\n stopMediaUploadService();\n mHandler.removeCallbacks(mAutoSave);\n mHandler = null;\n}\n"
"private void createComponents() {\n FormLayout formLayout = new FormLayout();\n formLayout.spacing = 15;\n this.setLayout(formLayout);\n Button applyButton = new Button(this, SWT.NONE);\n applyButton.setEnabled(!mapperUi.getMapperComponent().isReadOnly());\n applyButton.setText(\"String_Node_Str\");\...
"public void execute(JobExecutionContext context) throws JobExecutionException {\n LOG.debug(\"String_Node_Str\", context.getJobDetail().getKey().toString(), context.getTrigger().getKey().toString());\n Trigger trigger = context.getTrigger();\n String key = trigger.getKey().getName();\n String[] parts = key...
"public void generateWsdlOutput(WSDLDocInterface wsdlDoc, OutputGenaratorParam outputGenaratorParam) throws OutputFormatterException {\n logger.entering(\"String_Node_Str\", \"String_Node_Str\", new Object[] { wsdlDoc, outputGenaratorParam });\n String packageName = wsdlDoc.getPackageName();\n this.outputGenar...
"public ElementarySopremoModule asElementaryOperators() {\n final ElementarySopremoModule module = new ElementarySopremoModule(this.getName(), 4, 2);\n final Source initialClustersInput = module.getInput(0);\n final Source restPointsInput = module.getInput(1);\n final Source treeInput = module.getInput(2);\...
"public RepositoryFile getFolder(final String path, final boolean createIfNotExist, final boolean createParents, final String versionMessage) {\n RepositoryFile folder = repository.getFile(path);\n if (null == folder && createIfNotExist) {\n final String parentPath = getParentPath(path);\n if (null ...
"public void setUp() throws IOException {\n cache = getCacheManager().createCache(getTestCacheName(), extraSetup(newMutableConfiguration()));\n}\n"
"protected void moveSelectedElements(Tree newTree, int step) {\n TreeItem[] selection = newTree.getSelection();\n List<Integer> indexElement = new ArrayList<Integer>();\n List<Integer> indexIndicator = new ArrayList<Integer>();\n int indexColumn = -1;\n String movedType = null;\n for (TreeItem item : ...
"protected SplitResult _split(int height, boolean force) throws BirtException {\n if (children.size() == 0) {\n if (isPageBreakBeforeAvoid() && !force) {\n updateChildrenPosition();\n return SplitResult.BEFORE_AVOID_WITH_NULL;\n } else {\n updateChildrenPosition();\n ...
"public NIONode startWorker() throws Exception {\n String name = nw.getName();\n String user = nw.getUser();\n int minPort = nw.getConfiguration().getMinPort();\n int maxPort = nw.getConfiguration().getMaxPort();\n int port = minPort;\n NIONode n = null;\n int pid = -1;\n while (port <= maxPort ...
"public int numObjectives() {\n if (Parameters.parameters.booleanParameter(\"String_Node_Str\")) {\n return 2;\n } else {\n return 1;\n }\n}\n"
"private void readBindings(Sheet sheet) throws Exception {\n for (int row = 0; row < sheet.rows.size(); row++) {\n String bindingName = sheet.getColumn(row, \"String_Node_Str\");\n if (Utilities.noString(bindingName) || bindingName.startsWith(\"String_Node_Str\"))\n continue;\n Elemen...
"public static void fixupVariablePassing(Logger logger, Program prog, Function fn, Set<String> referencedGlobals) {\n HierarchicalMap<String, Var> fnargs = new HierarchicalMap<String, Var>();\n for (Var v : fn.getInputList()) {\n fnargs.put(v.name(), v);\n }\n for (Var v : fn.getOutputList()) {\n ...
"private void createCube(TabularCubeHandle cubeHandle, CubeMaterializer cubeMaterializer, Map appContext) throws BirtException {\n SecurityListener sl = new SecurityListener(this);\n sl.start(cubeHandle);\n Map<?, ?> backupAppContext = new HashMap();\n if (appContext == null)\n appContext = new HashM...
"public void shutdown() {\n writeQueue.clear();\n}\n"
"void resizeDockedStackLocked(Rect dockedBounds, Rect tempDockedTaskBounds, Rect tempDockedTaskInsetBounds, Rect tempOtherTaskBounds, Rect tempOtherTaskInsetBounds, boolean preserveWindows) {\n final ActivityStack stack = getStack(DOCKED_STACK_ID);\n if (stack == null) {\n Slog.w(TAG, \"String_Node_Str\");...
"public void uploadPhoto(HttpRequest request) throws HttpException, IOException {\n Log.d(TAG, myId + \"String_Node_Str\" + request.toString());\n HttpEntityEnclosingRequest eyefiRequest = (HttpEntityEnclosingRequest) request;\n Header[] contentTypes = eyefiRequest.getHeaders(\"String_Node_Str\");\n if ((co...
"public void linkActivated(HyperlinkEvent e) {\n for (Control control : chartComposite.getChildren()) {\n control.dispose();\n }\n boolean analysisStatue = analysis.getResults().getResultMetadata() != null && analysis.getResults().getResultMetadata().getExecutionDate() != null;\n if (!analysisStatue)...
"public void load(BindContext ctx) {\n final Component comp = getComponent();\n final BindEvaluatorX eval = getBinder().getEvaluatorX();\n final BindingExecutionInfoCollector collector = ((BinderCtrl) getBinder()).getBindingExecutionInfoCollector();\n Object value = eval.getValue(ctx, comp, _accessInfo.getP...
"public byte[] generatePacketData(IPv6Packet packet) {\n int enc1 = 0, enc2 = 0;\n byte[] data = new byte[40];\n int pos = 2;\n if (packet.flowLabel == 0) {\n enc1 |= IPHC_VF_C;\n }\n if (packet.trafficClass == 0) {\n enc1 |= IPHC_TC_C;\n }\n if ((enc1 & IPHC_VF_C) == 0) {\n ...
"protected void instrumentAndReplaceBody(MarkupStream markupStream, ComponentTag openTag, CharSequence bodyText) {\n Insets m = null;\n boolean isEmptyBorder = false;\n if (border instanceof EmptyBorder) {\n isEmptyBorder = true;\n m = border.getBorderInsets(null);\n } else if (border instance...
"public List<ForeignKey> getForeignKeys(String schemaName, String foreignKeyTableName, Database database) throws DatabaseException {\n List<ForeignKey> fkList = new ArrayList<ForeignKey>();\n try {\n String dbCatalog = database.convertRequestedSchemaToCatalog(schemaName);\n String dbSchema = databas...
"private static boolean isEqual(PsiElement element, PsiElement element2, boolean checkVirtualImpl, PsiElement scope) {\n if (element == element2) {\n return true;\n }\n if (element instanceof CSharpPropertyDeclaration && element2 instanceof CSharpPropertyDeclaration) {\n if (!Comparing.equal(((CS...
"public static List<Action> parse(long address, long containerSWFOffset, boolean ignoreNops, Reader is, int version) throws IOException, ParseException {\n FlasmLexer lexer = new FlasmLexer(is);\n List<Label> labels = new ArrayList<>();\n List<Action> ret = parse(containerSWFOffset, ignoreNops, labels, address...
"public Data getData() throws DataProcessingException {\n try {\n double firstValue = dataReader.readDouble();\n if (!inUtterance) {\n if (firstValue == DATA_START) {\n inUtterance = true;\n return (new DataStartSignal(sampleRate));\n } else {\n ...
"public LinkedHashMap<String, S> process(int max) throws IOException {\n String line = \"String_Node_Str\";\n if (this.line != null && this.line.length() > 0) {\n line = this.line;\n }\n String header = \"String_Node_Str\";\n if (this.header != null && this.header.length() > 0) {\n header =...
"public void remove(UUID id) {\n if (targets.containsKey(id)) {\n targets.remove(id);\n}\n"
"public void init(TreeViewer viewer, IStructuredSelection selection) {\n boolean canWork = !selection.isEmpty() && selection.size() == 1;\n IProxyRepositoryFactory factory = ProxyRepositoryFactory.getInstance();\n if (factory.isUserReadOnlyOnCurrentProject()) {\n canWork = false;\n }\n if (canWork...
"public List<IRepositoryViewObject> getDeletedObjects(Project project) {\n loadRecycleBin(project);\n List<IRepositoryViewObject> deletedObjects = new ArrayList<IRepositoryViewObject>();\n for (TalendItem deletedItem : projectRecyclebins.get(project.getTechnicalLabel()).getDeletedItems()) {\n try {\n ...
"public ClusterEntity createClusterConfig(ClusterCreate cluster) {\n String name = cluster.getName();\n if (name == null || name.isEmpty()) {\n throw ClusterConfigException.CLUSTER_NAME_MISSING();\n }\n List<String> failedMsgList = new ArrayList<String>();\n List<String> warningMsgList = new Array...
"public Stock[] parse() throws InvalidStructureException, IOException, XmlPullParserException {\n this.checkNode(new String[] { \"String_Node_Str\", \"String_Node_Str\" });\n String name = parser.getName().toLowerCase();\n Vector<Stock> toWrite = new Vector<Stock>();\n String dateModified = parser.getAttrib...
"public void handle(RoutingContext ctx) {\n if (!Guardian.isAdmin(ctx)) {\n ctx.response().setStatusCode(400).end();\n ctx.response().close();\n return;\n }\n DataBase database = DataBase.getInstance();\n EasyJsonObject responseObject = new EasyJsonObject();\n int no = Integer.parseI...
"public Response changeBuildPlanInstanceState(final String plan, final String instance, final UriInfo uriInfo, String request) {\n return this.planService.changePlanInstanceState(request, plan, instance, uriInfo, csarId, serviceTemplate, null, PLAN_TYPE);\n}\n"
"private void processSendPermission(List<SendPermission> sendPermissions) {\n sendPermissionMap = new ConcurrentHashMap<>(sendPermissions.size());\n int maxSendPermGrantId = 0;\n for (SendPermission sendPermission : sendPermissions) {\n String targetId = String.valueOf(sendPermission.getTargetId());\n ...
"public void EstablishPlaceholders(CarriagePackage Package) {\n for (BlockRecord Record : Package.Body) {\n if (Package.NewPositions.contains(Record)) {\n SneakyWorldUtil.SetBlock(worldObj, Record.X, Record.Y, Record.Z, Blocks.Spectre, Spectre.Types.Supportive.ordinal());\n } else {\n ...
"private void testWorkflowCommand(final Id.Program workflow) throws Exception {\n File doneFile = TMP_FOLDER.newFile();\n Assert.assertTrue(doneFile.delete());\n LOG.info(\"String_Node_Str\");\n programClient.start(workflow, false, ImmutableMap.of(\"String_Node_Str\", doneFile.getAbsolutePath()));\n asse...
"private IBlockState findAndConsumeBlock(IInventory inventory, IBlockState state) {\n if (state == null) {\n List<Integer> slots = new ArrayList<>();\n for (int i = 0; i < inventory.getSizeInventory(); i++) {\n ItemStack stack = inventory.getStackInSlot(i);\n if (stack != null && ...
"public void process() {\n javaFileContents = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n List<String> features = meta.getFeatures();\n for (String feature : features) {\n if (addJPF_BDD_Annotation)\n jav...
"public Number set(Keyword recordName, Predicate<? super Record> predicate, Sequence<Keyword> fields, Record record) {\n List<Record> records = recordsFor(recordName);\n Number count = 0;\n Sequence<Integer> indexes = get(recordName).zipWithIndex().filter(where(second(Record.class), is(predicate))).map(first(N...
"public WFStateErrors getErrors() {\n Map<Role, Receive> stuck = this.config.getStuckMessages();\n Set<Set<Role>> waitfor = this.config.getWaitForErrors();\n Map<Role, Set<Send>> orphs = this.config.getOrphanMessages();\n return new WFStateErrors(stuck, waitfor, orphs);\n}\n"
"public ServiceConfiguration apply(final T input) {\n Component component = Components.lookup(input);\n final ServiceConfiguration config = !Internets.testLocal(addr.getHostAddress()) ? component.initRemoteService(addr) : component.initService();\n LOG.info(\"String_Node_Str\" + config.getFullName());\n ret...
"private SDOType processSimpleComponentAnnotations(SDOType owningType, SimpleComponent simpleComponent, SDOProperty p, String targetNamespace, String defaultNamespace, SDOType sdoPropertyType) {\n String aliasNamesValue = (String) simpleComponent.getAttributesMap().get(SDOConstants.SDOXML_ALIASNAME_QNAME);\n if (...
"public void onDetach(Element parent) {\n removeLayerRefs(parent);\n removeResizeHandler(parent);\n removeUnitChangeHandler(relativeRuler);\n}\n"
"public void completed() {\n executor.execute(new Runnable() {\n public void run() {\n listener.completed();\n }\n }, \"String_Node_Str\");\n}\n"
"public void removeBlock(Block block) {\n if (isPlaced(block)) {\n PlacedBlock pBlock = parent.getPlacedBlockAt(block.getLocation(), false);\n if (pBlock != null)\n parent.getDatabase().delete(pBlock);\n }\n}\n"
"public void deferLoad(MappedStatement ms, MetaObject resultObject, String property, CacheKey key, Class<?> targetType) {\n delegate.deferLoad(ms, resultObject, property, key, targetType);\n}\n"
"private void closeStream() {\n logger.debug(\"String_Node_Str\");\n if (fsDataOutputStream != null) {\n try {\n fsDataOutputStream.close();\n } catch (IOException e) {\n IOUtils.closeStream(fsDataOutputStream);\n throw new StoreException(\"String_Node_Str\", e);\n ...
"private static String downloadPush(String file, String header) throws IOException, BadPacketException {\n Connection c = new Connection(address, port);\n c.initialize();\n QueryRequest query = new QueryRequest((byte) 5, 0, \"String_Node_Str\");\n c.send(query);\n c.flush();\n QueryReply reply = null;...
"public ExcerptTailer toEnd() {\n this.index = approximateLastIndex();\n return this;\n}\n"
"public void setDirty(boolean dirty) {\n m_dialog.getSQLBuilder().setDirty(dirty);\n}\n"
"public boolean startElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts) {\n try {\n Field xmlField = (Field) xmlBinaryDataCollectionMapping.getField();\n XPathFragment lastFragment = xmlField.getLastXPathFragment();\n if (!lastFragment.isAttribute()) {\n ...
"private void _applyComponentUnitConversionFactors() throws IllegalActionException {\n Map<DimensionRepresentativeConcept, Integer> componentDimensions = ((DerivedDimensionRepresentativeConcept) _representative).getComponentDimensions();\n for (Map.Entry<DimensionRepresentativeConcept, Integer> componentDimension...
"private void toRGBByte(UnpackedImageData src, int[] srcComponentSize, WritableRaster dest, int[] destComponentSize) {\n byte[] iBuf = src.getByteData(0);\n byte[] hBuf = src.getByteData(1);\n byte[] sBuf = src.getByteData(2);\n double normi = 1.0 / ((1 << srcComponentSize[0]) - 1);\n double normh = 1.0 ...
"public String getColumnText(Object element, int columnIndex) {\n SubTotalInfo info = (SubTotalInfo) element;\n switch(columnIndex) {\n case 0:\n return \"String_Node_Str\";\n case 1:\n return info.getLevel().getName() + \"String_Node_Str\" + (info.getAggregateOnMeasure() == nu...
"public CoreAttributeGroup clone(Map<CoreAttributeGroup<ATTRIBUTE_ITEM>, CoreAttributeGroup<ATTRIBUTE_ITEM>> cloneMap) {\n CoreAttributeGroup clone = cloneMap.get(this);\n if (clone != null) {\n return clone;\n }\n try {\n clone = (CoreAttributeGroup) super.clone();\n } catch (CloneNotSuppo...
"protected Boolean doInBackground(BasicNameValuePair... params) {\n if (params.length > 0 && params[0].getName().equals(\"String_Node_Str\")) {\n try {\n retrys = Integer.parseInt(params[0].getValue()) + 1;\n } catch (NumberFormatException e) {\n Log.d(\"String_Node_Str\", \"Strin...
"public void testCheckDeletedProgramSpecs() throws Exception {\n AppFabricTestHelper.deployApplication(AllProgramsApp.class);\n ApplicationSpecification spec = Specifications.from(new AllProgramsApp());\n Set<String> specsToBeVerified = Sets.newHashSet();\n specsToBeVerified.addAll(spec.getMapReduce().keySe...
"public static List<Dish> parseDishes(String dishesRespStr) throws JSONException {\n if (dishesRespStr == null) {\n return null;\n }\n ArrayList<Dish> resultList = null;\n JSONObject dishes = new JSONObject(dishesRespStr);\n resultList = new ArrayList<Dish>();\n Dish tempDish = null;\n JSONA...
"protected JSONObject getExpectedParameters(int sdlVersion) {\n JSONObject result = new JSONObject();\n JSONObject presetBank = new JSONObject();\n try {\n presetBank.put(PresetBankCapabilities.KEY_ON_SCREEN_PRESETS_AVAILABLE, PRESET_BANK_CAPABILITIES.onScreenPresetsAvailable());\n result.put(Set...
"public void openInventory(NPC npc, InventoryInteraction interaction) {\n if (!Main.game.isStarted()) {\n return;\n }\n RenderingEngine.setPageLeft(0);\n RenderingEngine.setPageRight(0);\n InventoryDialogue.setBuyback(false);\n InventoryDialogue.setInventoryNPC(npc);\n InventoryDialogue.setN...
"public static String[] getFrameworkItemsByJobType(Item item) {\n String jobType = getJobTypeFromFramework(item);\n if (JobType.BIGDATABATCH.getDisplayName().equals(jobType)) {\n return JobBatchFramework.getFrameworkToDispaly();\n } else if (ERepositoryObjectType.PROCESS_STORM.equals(repositoryObjectTyp...
"boolean expectCanAssignToPropertyOf(NodeTraversal t, Node n, JSType rightType, JSType leftType, Node owner, String propName) {\n if (!leftType.isNoType() && !rightType.canAssignTo(leftType)) {\n JSType ownerType = getJSType(owner);\n if (ownerType.isFunctionPrototypeType()) {\n FunctionType...
"public Option<MatchResult> unapply(String s) {\n final Matcher matcher = expression.matcher(s);\n if (matcher.matches()) {\n final List<String> strings = new ArrayList<>();\n for (int i = 0; i <= matcher.groupCount(); i += 1) {\n strings.add(s.substring(matcher.start(i), matcher.end(i)))...
"private static void writeFeature(Writer w, SequenceAnnotation sa, String role, int offset, boolean inline) throws IOException, SBOLConversionException {\n if (sa.getPreciseLocations().size() == 0) {\n throw new SBOLConversionException(\"String_Node_Str\" + sa.getIdentity() + \"String_Node_Str\");\n } else...
"public Set<String> getParty(Player player) {\n Set<String> players = new HashSet<String>();\n for (Party party : parties) {\n players = new HashSet<String>();\n if (party.isShared()) {\n players.addAll(party.getPlayers(player));\n }\n }\n return players;\n}\n"
"public SingularAttribute<? super X, ?> getIdAttribute() {\n idAttribute = idAttribute == null ? getSuperClazzType() != null ? ((AbstractIdentifiableType) getSuperClazzType()).getIdAttribute() : null : idAttribute;\n return idAttribute;\n}\n"
"private void parse(XMLStreamReader xmlStreamReader) throws SAXException {\n if (null == getContentHandler()) {\n return;\n }\n switch(xmlStreamReader.getEventType()) {\n case XMLStreamReader.ATTRIBUTE:\n {\n break;\n }\n case XMLStreamReader.CDATA:\n ...
"public String getReference(String name, boolean isWrite) throws IllegalActionException {\n name = processCode(name);\n String castType = null;\n String refType = null;\n StringBuffer result = new StringBuffer();\n StringTokenizer tokenizer = new StringTokenizer(name, \"String_Node_Str\", true);\n if ...
"private void addChoiceElementMapping(List<XMLField> sourceFields, String theClass, List<XMLField> targetFields) {\n XMLObjectReferenceMapping xmlMapping = new XMLObjectReferenceMapping();\n xmlMapping.setReferenceClassName(theClass);\n xmlMapping.setAttributeAccessor(temporaryAccessor);\n for (int i = 0; i...
"public List<MLHyperParameter> getHyperParametersOfModel(long modelId) throws DatabaseHandlerException {\n List<MLHyperParameter> hyperParams = new ArrayList<MLHyperParameter>();\n Connection connection = null;\n PreparedStatement getFeatues = null;\n ResultSet result = null;\n try {\n connection ...
"public IResultSetMetaData getMetaData() throws OdaException {\n logger.logp(java.util.logging.Level.FINE, CallStatement.class.getName(), \"String_Node_Str\", \"String_Node_Str\");\n java.sql.ResultSetMetaData resultmd = null;\n try {\n assertNotNull(callStat);\n resultmd = callStat.getMetaData()...
"public void run() {\n final List<Task> tasks = jobService.getTasks(filter);\n logger.info(\"String_Node_Str\", Thread.currentThread().getName(), tasks.size());\n if (tasks.isEmpty()) {\n return;\n }\n for (final Task t : tasks) {\n eatTask(t, false);\n }\n for (UUID jobId : jobIds) {...
"public void changeParam(DefaultMutableTreeNode treenode, MyParam node) {\n final JTextField name = new JTextField();\n name.addAncestorListener(new AncestorListener() {\n public void ancestorRemoved(AncestorEvent arg0) {\n }\n public void ancestorMoved(AncestorEvent arg0) {\n }\n ...
"public static void init() throws IOException {\n zkServer = InMemoryZKServer.builder().setDataDir(tmpFolder.newFolder()).build();\n zkServer.startAndWait();\n CConfiguration cConf = CConfiguration.create();\n cConf.set(Constants.Zookeeper.QUORUM, zkServer.getConnectionStr());\n injector = Guice.createIn...
"public Set<String> getEntityNames(EntityData data) {\n Set<String> names = new HashSet<String>();\n Model model = input ? inputModel : outputModel;\n if (model != null) {\n Set<String> attributeIds = data.keySet();\n for (String attributeId : attributeIds) {\n ModelAttribute attribute...
"public void widgetSelected(SelectionEvent e) {\n CheckedTreeSelectionDialog dialog = new CheckedTreeSelectionDialog(null, new PatternLabelProvider(), new WorkbenchContentProvider());\n IProject defaultPatternFolder = ResourcesPlugin.getWorkspace().getRoot().getProject(DQStructureManager.LIBRARIES);\n dialog.s...
"private synchronized void handleAction(TriggerCondition[] tg, ComponentEvent event, boolean cleanState) {\n if (tg == null || event == null) {\n return;\n }\n Point p = null;\n if (event instanceof MouseEvent) {\n p = ((MouseEvent) event).getPoint();\n }\n if (event instanceof KeyEvent)...
"public void init() throws XPathExpressionException, LoginAuthenticationExceptionException, IOException, XMLStreamException, URISyntaxException, SAXException, AutomationUtilException {\n super.initCluster(TestUserMode.SUPER_TENANT_ADMIN);\n AutomationContext automationContext1 = getAutomationContextWithKey(\"Stri...
"void onRequestRejected(String reason) {\n if (m_webservice != null) {\n m_webservice.notifyRequestRejected(reason);\n }\n}\n"
"public void fundedByHasTotalFnd() {\n List<Fund> funds = Arrays.asList(FundMother.fndFundFunderNotKnown().amountInWei(new BigDecimal(\"String_Node_Str\")).build(), FundMother.fndFundFunderNotKnown().amountInWei(new BigDecimal(\"String_Node_Str\")).build());\n when(fundRepository.findByRequestId(1L)).thenReturn(f...