content
stringlengths
40
137k
"private static PartialHarvest updateHarvestDefinition(PageContext context, I18n i18n, List<String> unknownDomains, List<String> illegalDomains) {\n ServletRequest request = context.getRequest();\n HTMLUtils.forwardOnEmptyParameter(context, Constants.HARVEST_PARAM, Constants.SCHEDULE_PARAM);\n String name = re...
"protected void initializeGraphicalViewer() {\n super.initializeGraphicalViewer();\n GraphicalViewer viewer = getGraphicalViewer();\n if (getModel() != null) {\n setContents();\n hookModelEventManager(getModel());\n }\n viewer.addDropTargetListener(createTemplateTransferDropTargetListener(v...
"private ToolController initToolController(Identity identity, UserRequest ureq) {\n ToolController myTool = ToolFactory.createToolController(getWindowControl());\n CourseConfig cc = uce.getCourseEnvironment().getCourseConfig();\n if (isCourseAdmin || isCourseCoach || hasCourseRight(CourseRights.RIGHT_COURSEEDI...
"public void onPlayerTeleport(final PlayerTeleportEvent e) {\n if (debug) {\n plugin.getLogger().info(e.getEventName());\n }\n if (e.getTo() == null || e.getFrom() == null) {\n return;\n }\n if (!IslandGuard.inWorld(e.getTo()) && !IslandGuard.inWorld(e.getFrom())) {\n return;\n }\...
"public MethodBinding[] getMethods(SourceTypeBinding sourceTypeBinding, char[] selector) {\n MethodBinding[] orig = sourceTypeBinding.getMethodsBase(selector);\n if (interTypeMethods.isEmpty()) {\n return orig;\n }\n Set<MethodBinding> ret = new HashSet<MethodBinding>(Arrays.asList(orig));\n for (...
"private List<HitEnum> buildRegexHitEnums() throws IOException {\n boolean luceneRegex = isLuceneRegexFlavor();\n if (luceneRegex) {\n cache.automatonHitEnumFactories = new HashMap<>();\n }\n Boolean caseInsensitiveOption = (Boolean) getOption(\"String_Node_Str\");\n boolean caseInsensitive = case...
"private static void loadComputedMeasures(DataInputStream dis, ICubeQueryDefinition qd) throws DataException, IOException {\n int size = IOUtil.readInt(dis);\n for (int i = 0; i < size; i++) {\n IComputedMeasureDefinition md = loadComputedMeasure(dis);\n IMeasureDefinition md1 = qd.createComputedMea...
"private void parseRoot(Tree tree) throws SAXException {\n if (tree.getType() == JSONLexer.OBJECT) {\n int children = tree.getChildCount();\n if (children == 1) {\n parse((CommonTree) tree.getChild(0));\n } else {\n contentHandler.startElement(\"String_Node_Str\", \"String_...
"public synchronized int get(byte[] buf, int length) {\n int getLen = length;\n if (mAddIndex == mGetIndex) {\n return 0;\n }\n if ((mGetOffset < mAddOffset) && (mGetOffset + length) > mAddOffset) {\n getLen = mAddOffset - mGetOffset;\n }\n if (buf.length < getLen) {\n getLen = bu...
"public static String getSignature(String jwt) {\n try {\n validateJWT(jwt);\n Base64.Decoder dec = Base64.getDecoder();\n final byte[] sectionDecoded = dec.decode(jwt.split(\"String_Node_Str\")[SIGNATURE]);\n return new String(sectionDecoded, \"String_Node_Str\");\n } catch (final Exc...
"public void releaseWriteBuffers() throws IOException, InterruptedException {\n if (this.outgoingTransferEnvelope == null) {\n LOG.error(\"String_Node_Str\" + this.byteBufferedOutputChannel.getID());\n return;\n }\n if (this.outgoingTransferEnvelope.getBuffer() == null) {\n LOG.error(\"Str...
"private void setupMap() {\n mMap = getMap();\n if (isMapLayoutFinished()) {\n setupMapUI();\n setupMapOverlay();\n }\n}\n"
"private Object parseNumber() throws ParseException {\n final int startIdx = getPosition();\n if (peek() == '-') {\n next();\n }\n final int integralStartIdx = getPosition();\n for (; hasMore(); next()) {\n final char c = peek();\n if (c < '0' || c > '9') {\n break;\n ...
"protected void dropFewItems(boolean var1, int var2) {\n int var3 = this.rand.nextInt(2 + var2);\n for (int var4 = 0; var4 < var3; ++var4) {\n this.dropItem(TwilightItemsOther.wildwoodSoul, 2);\n }\n}\n"
"private void addEventHandling(Element elm, StructureSource src, Trigger[] triggers) {\n if (elm != null) {\n for (int x = 0; x < triggers.length; x++) {\n Trigger tg = triggers[x];\n String scriptEvent = getJsScriptEvent(tg.getCondition().getValue());\n if (scriptEvent != nul...
"private ASTNode processASTNodeWithDifferences(AST ast, ASTRewrite sourceRewriter, ASTNode oldASTNode, List<ASTNodeDifference> differences) {\n if (differences.isEmpty()) {\n return oldASTNode;\n } else {\n Set<VariableBindingKeyPair> parameterBindingKeys = originalPassedParameters.keySet();\n ...
"private FeedbackQuestionSubmitPage loginToStudentFeedbackQuestionSubmitPage(String studentName, String fsName, String questionId) {\n StudentAttributes s = testData.students.get(studentName);\n Url submitPageUrl = new Url(Const.ActionURIs.STUDENT_FEEDBACK_QUESTION_SUBMISSION_EDIT_PAGE).withUserId(s.googleId).wit...
"public ItemStack slotClick(int slotNum, int mouseButton, int modifier, EntityPlayer player) {\n if (slotNum < 0 || slotNum >= inventorySlots.size())\n return super.slotClick(slotNum, mouseButton, modifier, player);\n Slot slot = (Slot) inventorySlots.get(slotNum);\n if (slot instanceof SlotPhantom)\n ...
"final boolean update(double timeStep, long currentTime) {\n if (!m_manager.isAny(SCANNING, STARTING_SCAN)) {\n m_timeNotScanning += timeStep;\n }\n boolean stopClassicBoost = false;\n if (m_manager.is(BOOST_SCANNING)) {\n m_timeClassicBoosting += timeStep;\n if (m_timeClassicBoosting >...
"private void buildAllDirectoriesAndSymlinks() {\n Set<Path> deletedDirectories = new HashSet<>();\n for (Path path : existingDirectories) {\n if (!absoluteDirectoriesToMake.contains(path)) {\n if (dryRun) {\n stderr(\"String_Node_Str\", path);\n } else {\n ...
"private void getURLValueExpressions(List<String> expList, URLValue uv) {\n String sa = uv.getBaseUrl();\n try {\n ActionHandle handle = actionHandleCache.get(sa);\n String exp;\n if (DesignChoiceConstants.ACTION_LINK_TYPE_HYPERLINK.equals(handle.getLinkType())) {\n ExpressionHandl...
"public static Object getMock(String mockedTypeDesc, String mockedMethodNameAndDesc, Object mockInstance, String returnTypeDesc, String genericSignature) {\n char typeCode = returnTypeDesc.charAt(0);\n if (typeCode != 'L') {\n return null;\n }\n MockedTypeCascade cascade = CASCADING_TYPES.getCascade(...
"public static List<Packet> toPackets(SpongeParticleEffect effect, Vector3d position) {\n SpongeParticleType type = effect.getType();\n EnumParticleTypes internal = type.getInternalType();\n Vector3f offset = effect.getOffset();\n int count = effect.getCount();\n int[] extra = new int[0];\n float px =...
"public void testStaticImports_GtoJ() {\n runConformTest(new String[] { \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\", \"String_Node_Str\", \"Stri...
"public HashMap<NamedEntityInText, String> runDisambiguation(String preAnnotatedText) throws IOException {\n double threshholdTrigram = 1;\n int maxDepth = 2;\n Document document = new Document();\n ArrayList<NamedEntityInText> list = new ArrayList<NamedEntityInText>();\n log.info(\"String_Node_Str\" + p...
"public boolean equals(Object obj) {\n if (obj == null || obj instanceof DataSourceAndDataSet == false)\n return false;\n if (this == obj)\n return true;\n IBaseDataSourceDesign dataSourceDesign2 = ((DataSourceAndDataSet) obj).dataSourceDesign;\n IBaseDataSetDesign dataSetDesign2 = ((DataSourc...
"private void setTopic(String topic) {\n if (null != this.getActionBar()) {\n this.getActionBar().setSubtitle(topic);\n }\n}\n"
"private void renameFolderForLocal(final ERepositoryObjectType type, final IPath sourcePath, final String label) throws PersistenceException {\n IPath lastPath = sourcePath;\n if (sourcePath.lastSegment().equalsIgnoreCase(label)) {\n String tmpLabel = label.concat(this.getNextId());\n renameFolderEx...
"public void testChainingConditions() {\n ConditionGroup conditionQueryBuilder = ConditionGroup.clause();\n conditionQueryBuilder.addCondition(column(ConditionModel$Table.NAME).is(\"String_Node_Str\").separator(\"String_Node_Str\")).addCondition(column(ConditionModel$Table.NUMBER).is(6).separator(\"String_Node_St...
"final public void add(double new_value) {\n if (values.size() > 1)\n slope.add(new_value - values.get(values.size() - 1));\n else\n slope.add(0.0);\n mean = (mean * values.size() + new_value);\n values.add(new_value);\n mean /= values.size();\n var0 += new_value * new_value / (double) (...
"protected void onPrivateMessage(String sender, String login, String hostname, String message) {\n if (irc.ircCommand(hostname, sender, message.split(\"String_Node_Str\"))) {\n sendRawLine(\"String_Node_Str\" + sender + \"String_Node_Str\");\n } else {\n sendRawLine(\"String_Node_Str\" + sender + \"...
"public void generate(MetaData data) {\n String type = getType(data.patternList);\n if (type.length() > 0) {\n type = \"String_Node_Str\" + type + \"String_Node_Str\" + type + \"String_Node_Str\";\n }\n p(\"String_Node_Str\" + data.name + type + \"String_Node_Str\");\n List<MetaData> props = data....
"public void mouseOut(Pick pick) {\n triggerToolTipHide();\n}\n"
"public boolean archiveScoData() {\n boolean success = false;\n try {\n String itemId = scormManager.getSequence().findItemFromIndex(Integer.valueOf(olatScoId));\n ItemSequence item = scormManager.getSequence().getItem(itemId);\n if (item != null) {\n success = item.archiveScoData(...
"private RevisionLocation zipAndUpload(AWSClients aws, String projectName, FilePath sourceDirectory, Map<String, String> envVars) throws IOException, InterruptedException, IllegalArgumentException {\n File zipFile = File.createTempFile(projectName + \"String_Node_Str\", \"String_Node_Str\");\n String key;\n Fi...
"private void openReportDocument() throws EngineException {\n try {\n if (archiveWriter == null) {\n openArchive();\n }\n String[] exts = executionContext.getEngineExtensions();\n writer = new ReportDocumentWriter(engine, archiveWriter, exts);\n executionContext.setRepor...
"void joinReset() {\n joinInProgress = false;\n setJoins.clear();\n timeToStartJoin = System.currentTimeMillis() + WAIT_SECONDS_BEFORE_JOIN + 1000;\n}\n"
"public byte[] doInTransform(Instrumentor instrumentor, ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws InstrumentException {\n final InstrumentClass target = instrumentor.getInstrumentClass(loader, className, classfileBuffer);\n ...
"protected void drawCellBox(CellArea cell) {\n drawBorders(cell);\n drawCellDiagonal(cell);\n BoxStyle style = cell.getBoxStyle();\n Color backgroundcolor = style.getBackgroundColor();\n BackgroundImageInfo bgimginfo = style.getBackgroundImage();\n if (!rowStyleStack.isEmpty() && (backgroundcolor == n...
"private static ZonedDateTime nextSchedule(String cronString, ZonedDateTime lastExecution) {\n CronParser cronParser = new CronParser(CronDefinitionBuilder.instanceDefinitionFor(CronType.UNIX));\n Cron cron = cronParser.parse(cronString);\n ExecutionTime executionTime = ExecutionTime.forCron(cron);\n return...
"public ApplicationDefinition getAppDef(String appName) {\n Utils.require(!m_restClient.isClosed(), \"String_Node_Str\");\n Utils.require(appName != null && appName.length() > 0, \"String_Node_Str\");\n try {\n StringBuilder uri = new StringBuilder(\"String_Node_Str\");\n uri.append(Utils.urlEnco...
"public boolean hasPlates(ItemStack me) {\n if (getStackInSlot(me, 1) != null) {\n if (!me.hasTagCompound()) {\n me.setTagCompound(new NBTTagCompound());\n }\n ItemStack clone = getStackInSlot(me, 1).copy();\n clone.setCount(1);\n if (UtilPlates.getPlate(clone) != null) ...
"public void setProperty(String sKey, String sValue) {\n if (sValue == null) {\n m_propsconfig.remove(sKey);\n } else {\n m_propsconfig.setProperty(sKey, sValue);\n }\n}\n"
"private static void reclaim(final PatriciaReclaimSourceTraverser source, final PatriciaReclaimActualTraverser actual) {\n final NodeBase actualNode = actual.currentNode;\n final NodeBase sourceNode = source.currentNode;\n if (actualNode.getAddress() == sourceNode.getAddress()) {\n actual.currentNode = ...
"public void writeError(final String message, final Map<String, String> otherInfo, final PrintWriter writer) throws IOException {\n BufferedWriter out = new BufferedWriter(writer);\n out.write(\"String_Node_Str\" + VOSerializer.formatAttribute(\"String_Node_Str\", votVersion.getVersionNumber()) + VOSerializer.for...
"public void handleEvent(IContainerEvent event) {\n if (event instanceof IContainerDisconnectedEvent || event instanceof IContainerEjectedEvent) {\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n MultiRosterAccount.this.multiRosterView.rosterAccountDisconnect...
"void setOnBatteryLocked(final long mSecRealtime, final long mSecUptime, final boolean onBattery, final int oldStatus, final int level) {\n boolean doWrite = false;\n Message m = mHandler.obtainMessage(MSG_REPORT_POWER_CHANGE);\n m.arg1 = onBattery ? 1 : 0;\n mHandler.sendMessage(m);\n mOnBattery = mOnBa...
"public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException {\n Request request = ObjectModelHelper.getRequest(objectModel);\n Integer aspectID = (Integer) request.getAttribute(ASPECT_ID);\n if (aspectID == null)\n aspect...
"public boolean berserking() {\n if (target.HP == 0 && state == State.NORMAL) {\n WarriorShield shield = target.buff(WarriorShield.class);\n if (shield != null) {\n state = State.BERSERK;\n BuffIndicator.refreshHero();\n target.SHLD = shield.maxShield() * 5;\n ...
"public Class<?> getWSObjectClass() {\n return WSMenu.class;\n}\n"
"public List<ConstructorDefinition<T>> getConstructorDefinitions() {\n return Arrays.asList(constructorDefinition);\n}\n"
"protected Result onRunJob(Params params) {\n NextcloudTalkApplication.getSharedApplication().getComponentApplication().inject(this);\n PushConfigurationState pushConfigurationState;\n for (Object userEntityObject : userUtils.getUsersScheduledForDeletion()) {\n UserEntity userEntity = (UserEntity) userE...
"private static SortedSet<TreeEntry> createRandomTree(int numDirs, int maxFilesPerDir) {\n SortedSet<TreeEntry> tree = new TreeSet<TreeEntry>();\n String currentPath = \"String_Node_Str\";\n for (int i = 0; i < numDirs; i++) {\n if (\"String_Node_Str\".equals(currentPath) || rnd.nextBoolean())\n ...
"public void shippingInfo() throws Exception {\n withShippingMethodForGermany(client(), shippingMethod -> {\n withTransientTaxCategory(client(), taxCategory -> {\n final MonetaryAmount price = EURO_5;\n final MonetaryAmount freeAbove = EURO_30;\n final ShippingRate shippingRat...
"public Optional<Tuple<Vector3d, Vector3d>> intersects(Vector3d start, Vector3d direction) {\n final double txMin;\n final double txMax;\n final Vector3d xNormal;\n if (Math.copySign(1, direction.getX()) > 0) {\n txMin = (this.min.getX() - start.getX()) / direction.getX();\n txMax = (this.max....
"private void disposeResources() {\n left = null;\n top = null;\n editor = null;\n if (diagramViewer != null) {\n diagramViewer.removePropertyChangeListener(propertyListener);\n getZoomManager().removeZoomListener(zoomListener);\n if (font != null)\n font.dispose();\n if (getReportDes...
"private CSVReader createCSVReader(String csvFileToIndex, char seperator) throws UnsupportedEncodingException, FileNotFoundException, IOException {\n CSVReader csvReader = new CSVReader(new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(csvFileToIndex.toString()), \"String_Node_Str\...
"public Prediction apply(DecisionTree tree) {\n return tree.predict(test);\n}\n"
"protected Worker makeNewWorker() {\n Worker w = new Worker(this, threadFactory);\n currentPoolSize++;\n w.start();\n return w;\n}\n"
"public void baseTest() throws IOException {\n assertSame(afs, ad.getFileSystem(\"String_Node_Str\"));\n assertNull(ad.getFileSystem(\"String_Node_Str\"));\n assertEquals(Collections.singletonList(\"String_Node_Str\"), ad.getRemotelyAccessibleFileSystemNames());\n assertNotNull(ad.getRemotelyAccessibleStora...
"public static boolean isRightAligned(IContent content, CSSValue align, boolean lastLine) {\n return align != null && isRightAligned(content, align.getCssText(), lastLine);\n}\n"
"private static void checkRelationshipList(int i, int node, int prev, int next, FileChannel fileChannel, ByteBuffer buffer) throws IOException {\n long fileSize = fileChannel.size();\n int recordSize = 33;\n if (next != NO_NEXT_BLOCK) {\n if ((long) (next + 1) * recordSize > fileSize || next < 0) {\n ...
"protected String getModulePathKey() {\n return \"String_Node_Str\";\n}\n"
"public void delete(HttpRequest request, HttpResponder responder, String namespace) {\n if (!cConf.getBoolean(Constants.Dangerous.UNRECOVERABLE_RESET, Constants.Dangerous.DEFAULT_UNRECOVERABLE_RESET)) {\n responder.sendStatus(HttpResponseStatus.FORBIDDEN);\n return;\n }\n Id.Namespace namespaceId...
"protected void drawStorageTable() {\n TableItem item;\n TableColumn column;\n int iTableColumnIndex = 0;\n int iTmpNumberOfDataItems = 0;\n int iNumberOfTableItems = refCurrentStorage.getMaximumLengthOfAllArrays();\n int iStartItemIndex = iCurrentTablePage * MAX_TABLE_ROWS;\n reinitializeTable();\...
"synchronized void write(long pos, byte[] b, int off, int len) throws IOException {\n throw new IOException(CoreMessages.getString(ResourceConstants.READ_ONLY_ARCHIVE));\n}\n"
"public void cacheManagerByInstanceNameTest() throws URISyntaxException {\n final String instanceName = randomName();\n Config config = new Config();\n config.setInstanceName(instanceName);\n Hazelcast.newHazelcastInstance(config);\n URI uri1 = new URI(\"String_Node_Str\");\n Properties properties = n...
"public String getAutoIncrementingColumnName() {\n throw new InvalidDBConfiguration(String.format(\"String_Node_Str\" + \"String_Node_Str\", getModelClass()));\n}\n"
"private void checkedOffer(List<String> transcript, Queue<List<String>> texts, Queue<TimeFrame> timeFrames, Queue<Range<Integer>> ranges, int start, int end, long timeStart, long timeEnd) {\n double wordDensity = ((double) (timeEnd - timeStart)) / (end - start);\n System.out.println(\"String_Node_Str\" + wordDens...
"private void processNodes(Element ele, HashMap cssStyles) {\n for (Node node = ele.getFirstChild(); node != null; node = node.getNextSibling()) {\n short nodeType = node.getNodeType();\n if (nodeType == Node.TEXT_NODE) {\n if (isScriptText(node)) {\n writer.cdata(node.getNode...
"public List<ConnBundleTO> getBundles() throws NotFoundException, MissingConfKeyException {\n ConnectorInfoManager manager = connInstanceLoader.getConnectorManager();\n List<ConnectorInfo> bundles = manager.getConnectorInfos();\n if (LOG.isDebugEnabled() && bundles != null) {\n LOG.debug(\"String_Node_S...
"public void putAll(Map<? extends K, ? extends V> map) {\n checkStatusStarted();\n long start = statisticsEnabled() ? System.nanoTime() : 0;\n long now = System.currentTimeMillis();\n if (map.containsKey(null)) {\n throw new NullPointerException(\"String_Node_Str\");\n }\n CacheException except...
"public boolean validateCustomVolumeSizeRange(long size) throws InvalidParameterValueException {\n if (size < 0 || (size > 0 && size < 2097152)) {\n throw new InvalidParameterValueException(\"String_Node_Str\");\n } else if (size > (_maxVolumeSizeInGb * 1000000000)) {\n throw new InvalidParameterVal...
"public PartMessage parse(ChannelBuffer buffer) {\n DefaultPartMessage multipart = new DefaultPartMessage();\n for (; ; ) {\n switch(state) {\n case SKIP_CONTROL_CHARS:\n {\n skipControlCharacters(buffer);\n state = State.READ_BOUNDARY;\n ...
"private void fileupload() throws Exception {\n String ruta = this.rutaFile();\n if (uploads != null && !uploads.isEmpty()) {\n try {\n File destFile = new File(ruta, uploadFileNames.get(0));\n FileUtils.copyFile(uploads.get(0), destFile);\n } catch (IOException e) {\n ...
"public void run() {\n boolean synthAvailable = false;\n String utteranceId = \"String_Node_Str\";\n try {\n synthAvailable = synthesizerLock.tryLock();\n if (!synthAvailable) {\n Thread.sleep(100);\n Thread synth = (new Thread(new SynthThread()));\n synth.start()...
"public boolean handles(ReadableArchive archive) throws IOException {\n boolean isEar = false;\n try {\n if (Util.getURIName(archive.getURI()).endsWith(EAR_EXTENSION)) {\n return true;\n }\n isEar = archive.exists(APPLICATION_XML) || archive.exists(SUN_APPLICATION_XML) || archive.e...
"public void disableSourceDestCheck(Stack stack) {\n AwsTemplate awsTemplate = (AwsTemplate) stack.getTemplate();\n AwsCredential awsCredential = (AwsCredential) stack.getCredential();\n AmazonCloudFormationClient amazonCfClient = awsStackUtil.createCloudFormationClient(awsTemplate.getRegion(), awsCredential);...
"protected Collection<BankTransaction> getCreditTransactionsByDateRange(String accountId, Date startDate, Date endDate) {\n Query query = this.datastoreFacade.createQueryForClass(BankTransaction.class);\n query.setFilter(\"String_Node_Str\");\n return (List<BankTransaction>) query.execute(accountId, startDate....
"public void execute(Writer writer, SnipMacroParameter params) throws IllegalArgumentException, IOException {\n if (params.getLength() < 2) {\n int count = 0;\n if (params.getLength() == 1) {\n count = Integer.parseInt(params.get(\"String_Node_Str\"));\n } else {\n count = ...
"private static void openUrlInternal(Context context, String url) {\n if (WPUrlUtils.isWordPressCom(url)) {\n WPWebViewActivity.openUrlByUsingWPCOMCredentials(context, url);\n } else {\n WPWebViewActivity.openURL(context, url, ReaderConstants.HTTP_REFERER_URL);\n }\n}\n"
"public static ApplicationInfoBean getApplicationRuntime(String applicationId, int tenantId) throws RestAPIException {\n ApplicationInfoBean applicationBean = null;\n ApplicationContext applicationContext;\n String applicationUuid;\n try {\n applicationUuid = getAutoscalerServiceClient().getApplicati...
"private void checkExisted(ItemRecord record) {\n Property property = record.getProperty();\n if (property != null) {\n IPath itemPath = PropertyHelper.getItemPath(property);\n IFile itemFile = ResourcesPlugin.getWorkspace().getRoot().getFile(itemPath);\n try {\n itemFile.getParent...
"private Object generateId(Object e, EntityMetadata m, Client<?> client, final KunderaMetadata kunderaMetadata) {\n Metamodel metamodel = KunderaMetadataManager.getMetamodel(kunderaMetadata, m.getPersistenceUnit());\n IdDiscriptor keyValue = ((MetamodelImpl) metamodel).getKeyValue(e.getClass().getName());\n if...
"private static Object[] testCase_missingAttribute() {\n List<ChangeItem> changes = new LinkedList<>();\n final int ci1AttrId = 1;\n final int artId = 3;\n final long missingGamma = 9L;\n long artGamma = 7L;\n HashMap<Long, ApplicabilityToken> applicMap = new HashMap<>();\n applicMap.put(1L, Applic...
"public int getZ() {\n return pos.getZ();\n}\n"
"private void delete() {\n Intent intent = new Intent(this, DarkService.class);\n intent.setAction(DarkService.ACTION_DELETE);\n intent.putExtra(DarkService.EXTRA_VOLUME_PATH, getFilesDir() + \"String_Node_Str\");\n startService(intent);\n}\n"
"public static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingComponent convertConformanceMessagingComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceMessagingComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.Con...
"public void await() {\n int recCount = this.recCount;\n this.recCount = 0;\n holderSlot = -1;\n sysCall.sysPthreadCondWait(cond, mutex);\n this.recCount = recCount;\n holder = RVMThread.getCurrentThread();\n}\n"
"protected boolean refreshNewJob() {\n if (alreadyEditedByUser) {\n return false;\n }\n StructuredSelection selection = (StructuredSelection) mainPage.getSelection();\n if (selection != null && selection.isEmpty()) {\n RepositoryNode node = (RepositoryNode) selection.getFirstElement();\n ...
"private static String formatArgument(String argument) {\n String argumentWithoutWhiteSpaces = argument.trim();\n return argumentWithoutWhiteSpaces;\n}\n"
"private void includeSupportedFeatures(FgExamples data, FeatureTemplateList templates) {\n for (int i = 0; i < data.size(); i++) {\n FgExample ex = data.get(i);\n for (int a = 0; a < ex.getOriginalFactorGraph().getNumFactors(); a++) {\n Factor f = ex.getFgLat().getFactor(a);\n if ...
"public List<String> getWailaBody(Entity entity, List<String> tip, IWailaEntityAccessor data, IWailaConfigHandler cfg) {\n if (entity instanceof EntityLiving && cfg.getConfig(showEquippedItems)) {\n EntityLiving living = (EntityLiving) entity;\n for (int i = 0; i < 5; i++) {\n ItemStack stac...
"public void connect() throws IOException {\n if (token != null && username == null) {\n try {\n doGet(\"String_Node_Str\", true);\n } catch (IOException excep) {\n LOGGER.severe(\"String_Node_Str\" + endpointUrl);\n throw excep;\n }\n return;\n }\n ...
"public void dontHangOnHugeAutNumObject() throws Exception {\n String response = DummyWhoisClient.query(NrtmServer.getPort(), String.format(\"String_Node_Str\", MIN_RANGE, MAX_RANGE), 5 * 1000);\n assertTrue(response, response.contains(String.format(\"String_Node_Str\", MIN_RANGE)));\n assertTrue(response, res...
"public DecoratorAttributes createDecoratorAttributes(NamedObj target) {\n if (target instanceof Actor && !(target instanceof ResourceScheduler)) {\n try {\n return new ResourceAttributes(target, this);\n } catch (KernelException ex) {\n throw new InternalErrorException(ex);\n ...
"public void handleRequest(HttpServerExchange exchange, RequestContext context) throws Exception {\n DBObject content = context.getContent();\n if (content == null) {\n content = new BasicDBObject();\n }\n if (content instanceof BasicDBList) {\n ResponseHelper.endExchangeWithMessage(exchange, ...
"protected void evalSchemaIndicLow(final ConnectionIndicator connectionIndicator, final CatalogIndicator catalogIndic, final SchemaIndicator schemaIndic, final TdCatalog tdCatalog, final TdSchema tdSchema, ReturnCode ok) throws SQLException {\n boolean hasSchema = tdSchema != null;\n boolean hasCatalog = tdCatalo...
"private void buildDubboServiceComponents(MonitorDataFrame mdf, Map<String, Object> pi, String appid, Map<String, Set<String>> compServices) {\n Map<String, Object> comps = mdf.getElemInstValues(appid, \"String_Node_Str\", \"String_Node_Str\");\n if (comps == null || comps.size() == 0) {\n return;\n }\n...
"protected ReturnCode canSave() {\n ReturnCode checkMdmExecutionEngine = checkMdmExecutionEngine();\n if (!checkMdmExecutionEngine.isOk()) {\n return checkMdmExecutionEngine;\n }\n List<ModelElement> analyzedElement = new ArrayList<ModelElement>();\n for (ModelElementIndicator modelElementIndicato...