content
stringlengths
40
137k
"public static JsonNode evaluateFunctions(JsonNode jsonNode, StackEntity stackEntity, Map<String, ResourceInfo> resourceInfoMap, TemplateSection templateSection) throws CloudFormationException {\n if (jsonNode == null)\n return jsonNode;\n if (!jsonNode.isArray() && !jsonNode.isObject())\n return js...
"public boolean closeTab(TabView tabView, Config.BubbleAction action, boolean animateOff) {\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(mContext);\n boolean debug = prefs.getBoolean(\"String_Node_Str\", false);\n if (debug) {\n Toast.makeText(mContext, \"String_Node_Str\", ...
"protected void buildLogicContainerProperties(IContent content, LayoutContext context) {\n IStyle style = content.getStyle();\n if (style != null && !style.isEmpty()) {\n boxStyle = new BoxStyle();\n IStyle cs = content.getComputedStyle();\n Color color = PropertyUtil.getColor(cs.getProperty(...
"public void put(ResourceContext resourceContext, CachedResponse resource) {\n if (resource != null && resource.getStatusCode() != HttpStatusConstants.SC_NOT_MODIFIED) {\n resource.setRequestHeadersFromRequest(resourceContext.getOriginalRequest());\n String key = getCacheKey(resourceContext, resource);...
"protected static Class loadClass(String name, byte[] bytes) {\n if (DyvilREPL.dumpDir != null) {\n int index = name.lastIndexOf('/');\n String fileName;\n if (index <= 0) {\n fileName = name + \"String_Node_Str\";\n } else {\n fileName = name.substring(index + 1) + ...
"private Button addCheckBox(Composite parent, String label, String key, int indentation) {\n Button checkBox = new Button(parent, SWT.CHECK);\n checkBox.setText(label);\n GridData gd = new GridData(32);\n gd.horizontalIndent = indentation;\n gd.horizontalSpan = 2;\n checkBox.setLayoutData(gd);\n ch...
"public void resuming() {\n execute(new Runnable() {\n\n public void run() {\n listener.resuming();\n }\n });\n}\n"
"public void createPartControl(Composite parent) {\n otherColor = colorFromRGBString(DEFAULT_OTHER_COLOR);\n systemColor = colorFromRGBString(DEFAULT_SYSTEM_COLOR);\n highlightColor = colorFromRGBString(DEFAULT_HIGHLIGHT_COLOR);\n dateColor = colorFromRGBString(DEFAULT_DATE_COLOR);\n mainComp = new Compo...
"public void testToggleDrillState2(FoodMartTestCase test) {\n test.assertAxisReturns(\"String_Node_Str\", \"String_Node_Str\" + nl + \"String_Node_Str\" + nl + \"String_Node_Str\" + nl + \"String_Node_Str\" + nl + \"String_Node_Str\" + nl + \"String_Node_Str\" + nl + \"String_Node_Str\" + nl + \"String_Node_Str\" + ...
"public Map<String, String> getQueryMap() {\n Map<String, String> map = new HashMap<String, String>();\n switch(this.indicatorEnum) {\n case RowCountIndicatorEnum:\n case NullCountIndicatorEnum:\n case BlankCountIndicatorEnum:\n map.put(MENU_VIEW_ROWS, getRowsStatement());\n ...
"public void setSparkContext() {\n if (JavaSparkProgram.class.isAssignableFrom(userProgramClass)) {\n sparkContext = new JavaSparkContext();\n } else if (ScalaSparkProgram.class.isAssignableFrom(userJobClass)) {\n sparkContext = new ScalaSparkContext();\n scalaJobFlag = true;\n } else {\n ...
"public void map(Chunk[] chks, NewChunk nc) {\n Vec[] A_vecs = fra.vecs();\n Vec[] B_vecs = frb.vecs();\n long A_rows = fra.numRows();\n long B_rows = frb.numRows();\n long start = chks[0].start();\n int chunkSize = chks[0].len();\n ValueString vstr = new ValueString();\n for (int r = 0; r < chu...
"protected void okPressed() {\n super.okPressed();\n try {\n DataSetUIUtil.updateColumnCache(this.getHandle(), false);\n } catch (Exception e) {\n DataSetExceptionHandler.handle(e);\n return;\n }\n if (super.rootNode.hasSubNodes()) {\n PropertyNode[] nodes = rootNode.getSubNod...
"public boolean a() {\n EntityLiving localEntityLiving = this.entityMyPet.getOwner();\n if (localEntityLiving == null) {\n return false;\n }\n this.b = localEntityLiving.aC();\n return a(this.b, false);\n}\n"
"protected void incrementalExpansion(UndirectedWeightedListGraph G, int k) {\n int n = G.getNumVertices();\n for (int u = 0; u < n; u++) {\n this.addCofaces(G, k, new Simplex(new int[] { u }), lower_vertices, 0);\n lower_vertices.add(u);\n }\n}\n"
"public void sendRepeatedKeys(int... keys) {\n final int count = keys.length;\n if ((count & 0x1) == 0x1) {\n throw new IllegalArgumentException(\"String_Node_Str\" + \"String_Node_Str\");\n }\n final Instrumentation instrumentation = getInstrumentation();\n for (int i = 0; i < count; i += 2) {\n ...
"public void testCleanupAfterMigration() throws Exception {\n System.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n final int size = 10000;\n HazelcastInstance h1 = Hazelcast.newHazelcastInstance(null);\n IMap map1 = h1.getMap(\"String_Node_Str\");\n for (int i = 0; i < size; i++) {\n ma...
"public void init(ClassLoader parentClassLoader, ServletContext sc, boolean mtomEnabled) {\n this.parentClassLoader = parentClassLoader;\n this.mtomEnabled = mtomEnabled;\n InputStream xrServiceStream = initXRServiceStream(parentClassLoader, sc);\n DBWSModelProject xrServiceModelProject = new DBWSModelProje...
"private void processDefaultCompletion(Processor<ResolveResult> processor, PsiElement element, PsiElement qualifier) {\n DotNetNamespaceAsElement namespace;\n String qualifiedText = \"String_Node_Str\";\n if (qualifier != null) {\n qualifiedText = StringUtil.strip(qualifier.getText(), CSharpReferenceExp...
"public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {\n super.startElement(uri, localName, qName, attributes);\n if (localName.equals(\"String_Node_Str\")) {\n inWord = true;\n word = \"String_Node_Str\";\n freq = Integer.parseInt(a...
"public Object clone() {\n VertexMesh clone = new VertexMesh();\n clone.copy(this);\n return clone;\n}\n"
"public void setGuidedAltitude(double altitude) {\n ControlApi.getApi(this).climbTo(altitude);\n}\n"
"private void maybeUpdateSize() {\n Widget w = super.getWidget();\n if (w != null) {\n if (desiredHeight != null) {\n w.setHeight(desiredHeight);\n }\n if (desiredWidth != null) {\n w.setWidth(desiredWidth);\n }\n }\n}\n"
"public void entityDeath(EntityDeathEvent event) {\n dPlayer player = null;\n dNPC npc = null;\n Map<String, dObject> context = new HashMap<String, dObject>();\n dEntity entity = new dEntity(event.getEntity());\n context.put(\"String_Node_Str\", entity.getDenizenObject());\n if (event.getEntity().getL...
"public final void write(DataOutputStream codeStream) throws IOException {\n codeStream.writeShort(this.size);\n for (int i = 1; i < this.size; i++) {\n if (this.constantPool[i] != null) {\n this.constantPool[i].write(codeStream);\n }\n }\n}\n"
"protected CachedReportData persistCachedReportDataToDisk(String reportRequestUuid) {\n CachedReportData cachedData = reportCache.get(reportRequestUuid);\n if (cachedData != null) {\n if (cachedData.isPersisted()) {\n log.debug(\"String_Node_Str\");\n } else {\n ReportRequest r...
"private String getCSSStyleName() {\n return getStyleName() + \"String_Node_Str\" + curFace.getName();\n}\n"
"public org.hl7.fhir.dstu2.model.Substance convertSubstance(org.hl7.fhir.dstu3.model.Substance src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Substance tgt = new org.hl7.fhir.dstu2.model.Substance();\n copyDomainResource(src, tgt);\n for (org...
"public <E extends UnivariateDistribution> E getFilteredPosterior(Variable var) {\n if (getTimeIDOfPosterior() == 0) {\n Variable staticVar = this.infAlgTime0.getOriginalModel().getVariables().getVariableByName(var.getName());\n return this.infAlgTime0.getPosterior(staticVar);\n } else {\n Va...
"private boolean processJavaDeltas(IJavaElementDelta[] affectedChildren) {\n for (IJavaElementDelta d : affectedChildren) {\n IJavaElement element = d.getElement();\n if (element instanceof IPackageFragmentRoot) {\n IPath path = ((IPackageFragmentRoot) element).getPath();\n if (pa...
"protected void initializeInternal(final DataDefinition definition, final Data input, final GeneralizationHierarchy[] hierarchies, final ARXConfiguration config) {\n super.initializeInternal(definition, input, hierarchies, config);\n height = new int[hierarchies.length];\n for (int j = 0; j < height.length; j+...
"protected String choiceOf(String sampleName, String title, String[] choices, String deflt) {\n String choice = null;\n int choiceInt = 0;\n Log.stdout(\"String_Node_Str\" + sampleName + \"String_Node_Str\" + title + \"String_Node_Str\");\n for (int i = 1; i <= choices.length; i++) {\n Log.stdout(i +...
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n AppRater.app_launched(this);\n BitmapDrawable bg = (BitmapDrawable) getResources().getDrawable(R.drawable.bg_striped);\n bg.setTileModeXY(Shader.TileMode.REPEAT, Shader.TileMode.REP...
"private boolean isConvertibleFrom(IType type) {\n IClass iclass = type.getTheClass();\n return iclass == dyvil.tools.compiler.ast.type.Types.OBJECT_CLASS || iclass.getAnnotation(Types.ARRAY_CONVERTIBLE) != null || dyvil.tools.compiler.ast.type.Types.ITERABLE.isSuperClassOf(type);\n}\n"
"public void fillTabList(ProxiedPlayer player, TabList tabList, TabListContext context) {\n if (config.verticalMode) {\n tabList = tabList.flip();\n context = new GenericTabListContext(tabList.getRows(), tabList.getColumns(), player, context.getPlayerManager()).setPlayer(context.getPlayer());\n }\n ...
"public void contextInitialized(ServletContextEvent pServletContextEvent) {\n logger.info(\"String_Node_Str\");\n ServletContext servletContext = pServletContextEvent.getServletContext();\n try {\n String shutdownPrefString = servletContext.getInitParameter(\"String_Node_Str\");\n if (shutdownPre...
"public <T> T[] toArray(T[] a) {\n int size = size();\n if (a.length < size) {\n a = Array.createFrom(a, size);\n }\n Object[] result = a;\n Iterator<E> it = iterator();\n for (int i = 0; i < size; ++i) {\n result[i] = it.next();\n }\n if (a.length > size) {\n a[size] = null...
"public void testDelegatesToValue4() {\n String contents = \"String_Node_Str\" + \"String_Node_Str\";\n String toFind = \"String_Node_Str\";\n int offset = contents.lastIndexOf(toFind);\n assertType(contents, offset, offset + toFind.length(), \"String_Node_Str\");\n}\n"
"public void testSetup() {\n if (!getPlatform().isMySQL()) {\n warning(\"String_Node_Str\");\n return;\n }\n DatabaseSessionImpl databaseSession = getDatabaseSession();\n DatabaseLogin login = getDatabaseSession().getLogin();\n String connectionString = login.getConnectionString();\n int...
"public void setEditor(AbstractMultiPageTalendEditor editor) {\n this.editor = editor;\n if (editor != null && !duplicate) {\n CommandStack commandStack = (CommandStack) editor.getTalendEditor().getAdapter(CommandStack.class);\n commandStack.addCommandStackEventListener(commandStackEventListener);\n...
"public void keyDown(org.eclipse.swt.events.KeyEvent keyEvent, EditPartViewer viewer) {\n int keyCode = keyEvent.keyCode;\n if (selectedConnectionPart != null) {\n if (selectedConnectionPart != null) {\n CreateComponentOnLinkHelper.unselectConnection(selectedConnectionPart);\n }\n ...
"public PublicIp assignDedicateIpAddress(Account owner, final Long guestNtwkId, final Long vpcId, final long dcId, final boolean isSourceNat) throws ConcurrentOperationException, InsufficientAddressCapacityException {\n if (owner == null) {\n s_logger.error(\"String_Node_Str\");\n return null;\n }\n...
"public static SecurityPerformanceSnapshot create(Client client, Portfolio portfolio, ReportingPeriod period) {\n Map<Security, SecurityPerformanceRecord> transactions = initRecords(client);\n Date startDate = period.getStartDate();\n Date endDate = period.getEndDate();\n if (portfolio.getReferenceAccount()...
"public Object put(Object key, Object value) {\n V oldValue = null;\n K marshalledKey = (K) marshallKey(key);\n V marshalledValue = (V) marshallValue(value);\n synchronized (getMutex(marshalledKey)) {\n final ReplicatedRecord old = storage.get(marshalledKey);\n final Vector vector;\n if...
"public synchronized void onChange(final Reconfigurable reconfigurable) {\n LOGGER.debug(\"String_Node_Str\" + name);\n final Configuration config = reconfigurable.reconfigure();\n if (config != null) {\n setConfiguration(config);\n logger.debug(\"String_Node_Str\");\n } else {\n logger...
"private static void train(Config config) throws Exception {\n String matrixType = config.getString(\"String_Node_Str\");\n MultiLabelClfDataSet trainSet;\n MultiLabelClfDataSet testSet;\n switch(matrixType) {\n case \"String_Node_Str\":\n trainSet = TRECFormat.loadMultiLabelClfDataSet(con...
"public static List connect(String dbType, String url, String username, String pwd, final String driverClassNameArg, final String driverJarPathArg, String dbVersion, String additionalParams) throws Exception {\n Connection connection = null;\n DriverShim wapperDriver = null;\n List conList = new ArrayList();\n...
"protected EdmEntityContainer createEntityContainer(String name) throws ODataException {\n EntityContainerInfo enitityContainerInfo = edmProvider.getEntityContainer(name);\n if (enitityContainerInfo == null) {\n throw new EdmException(EdmException.COMMON);\n }\n return new EdmEntityContainerImplProv(...
"private void renderDimensionGroupConnections(GL2 gl) {\n gl.glColor4f(1, 1, 0, 1f);\n gl.glLineWidth(4);\n List<GLBrick> leftBricks = leftDimGroup.getBricks();\n List<GLBrick> rightBricks = rightDimGroup.getBricks();\n SimilarityMap similarityMap = relationAnalyzer.getSimilarityMap(leftDimGroup.getSetID...
"public void post(Object evt) {\n if (!(evt instanceof Event)) {\n log.warn(\"String_Node_Str\");\n }\n for (Listener l : listeners) {\n l.handleEvent(evt);\n }\n}\n"
"public void execute() throws TaskException {\n checkConfiguration();\n Vector files = getFileList();\n if (isUpToDate(files))\n return;\n log(\"String_Node_Str\" + archiveType + \"String_Node_Str\" + cabFile.getAbsolutePath());\n if (!Os.isFamily(\"String_Node_Str\")) {\n log(\"String_Node...
"private void ingestCorporaTest() throws RequestNotValidException, NotFoundException, GenericException, AlreadyExistsException, AuthorizationDeniedException, InvalidParameterException, InterruptedException, IOException, FileAlreadyExistsException, SolrServerException {\n AIP root = model.createAIP(null, RodaConstant...
"private void populateMeasureDefinitionForCalculateMeasures(ICubeQueryDefinition query) throws DataException, AdapterException {\n List calculatedMeasures = query.getDerivedMeasures();\n if (calculatedMeasures == null || calculatedMeasures.size() == 0)\n return;\n List measures = query.getMeasures();\n ...
"public void hasShownSniperIsLosing(FakeAuctionServer auction, int lastPrice, int lastBid) {\n driver.showsSniperStatus(auction.itemId, lastPrice, lastBid, SniperStatus.LOSING.text);\n}\n"
"public Job call() throws Exception {\n int retries = 20;\n int attempts = 0;\n Set<String> retryableExceptions = ImmutableSet.of(RuntimeException.class.getName());\n Set<String> retryableExceptionMessages = ImmutableSet.of(\"String_Node_Str\", \"String_Node_Str\");\n while (!isCancelled) {\n atte...
"public HumanNPC getNPC(Entity entity) {\n if (entity == null) {\n return null;\n }\n if (((CraftEntity) entity).getHandle() instanceof CraftNPC) {\n return ((CraftNPC) (((CraftEntity) entity).getHandle())).npc;\n }\n return null;\n}\n"
"public void run() {\n if (Status == WolfState.Despawned || getOwner() == null) {\n StopTimer();\n } else {\n if (Status == WolfState.Here) {\n Time2HPregen--;\n SitTimer--;\n if (MyWolfConfig.SitdownTime > 0 && SitTimer <= 0) {\n Wolf.setSitting(true)...
"protected void addJob(final Job job) {\n int i = findEmptyPosition();\n log.debug(\"String_Node_Str\" + i + \"String_Node_Str\" + job.getJobDescription());\n JProgressBar progress = new JProgressBar();\n progress.setStringPainted(true);\n progress.setString(\"String_Node_Str\");\n progress.setToolTip...
"public double getLng() {\n return longitude;\n}\n"
"private boolean localizePositionPatterns(int[] alignmentLocations) {\n int size = alignmentLocations.length;\n for (int row = 0; row < size; row++) {\n for (int col = 0; col < size; col++) {\n QrCode.Alignment a = lookup.get(row * size + col);\n if (a == null)\n contin...
"protected String getUrl() {\n return \"String_Node_Str\";\n}\n"
"private void checkCancelRequestedFlag() {\n if (this.cancelRequested.compareAndSet(true, false)) {\n final TaskCancelResult tsr = cancelTask();\n if (tsr.getReturnCode() != AbstractTaskResult.ReturnCode.SUCCESS && tsr.getReturnCode() != AbstractTaskResult.ReturnCode.TASK_NOT_FOUND) {\n LOG....
"private void cleanupTimedOutTransactions() {\n List<TransactionEdit> invalidEdits = null;\n logReadLock.lock();\n try {\n synchronized (this) {\n if (!isRunning()) {\n return;\n }\n long currentTime = System.currentTimeMillis();\n Map<Long, InP...
"private boolean isDeprecatedEntry(Map.Entry entry) {\n Object key = entry.getKey();\n if (EngineConstants.APPCONTEXT_CLASSLOADER_KEY.equals(key) || EngineConstants.WEBAPP_CLASSPATH_KEY.equals(key) || EngineConstants.PROJECT_CLASSPATH_KEY.equals(key) || EngineConstants.WORKSPACE_CLASSPATH_KEY.equals(key)) {\n ...
"public XMLConversionManager getXmlConversionManager() {\n return getXMLHelperDelegate().getXmlConversionManager();\n}\n"
"public void dispose() {\n boolean saveWorld = CoreRegistry.get(NetworkSystem.class).getMode().isAuthority();\n networkSystem.shutdown();\n eventSystem.process();\n componentSystemManager.shutdown();\n guiManager.closeAllWindows();\n if (saveWorld) {\n try {\n CoreRegistry.get(WorldP...
"private boolean mayBeNullMethodCall(VisitorState state, ExpressionTree expr, Symbol.MethodSymbol exprSymbol) {\n if (NullabilityUtil.fromUnannotatedPackage(exprSymbol, config)) {\n return false;\n }\n if (!Nullness.hasNullableAnnotation(exprSymbol)) {\n return false;\n }\n return nullnessF...
"public XMLDirectMapping generateDirectMapping(Property property, XMLDescriptor descriptor, NamespaceInfo namespaceInfo) {\n XMLDirectMapping mapping = new XMLDirectMapping();\n mapping.setAttributeName(property.getPropertyName());\n String fixedValue = property.getFixedValue();\n if (fixedValue != null) {\...
"public void onEntityPortal(EntityPortalEvent event) {\n if (!Settings.createNether || ASkyBlock.getNetherWorld() == null) {\n return;\n }\n if (event.getEntity() == null) {\n return;\n }\n if (event.getFrom() != null && event.getFrom().getBlock().getType().equals(Material.ENDER_PORTAL)) {\...
"public void onChildRemoved(Component child) {\n super.onChildRemoved(child);\n final int pgsz = getPageSize();\n if (pgsz > 0) {\n final int sz = getChildren().size();\n if (sz > 0 && ((sz % pgsz) == 0 || pgsz == 1)) {\n final int pgcnt = smartUpdatePaging();\n if (_actpg >...
"private void nextRound() throws NulsException, IOException {\n consensusManager.initConsensusStatusInfo();\n PocMeetingRound currentRound = calcRound();\n consensusManager.setCurrentRound(currentRound);\n while (TimeService.currentTimeMillis() < (currentRound.getStartTime())) {\n try {\n ...
"public void onEnable() {\n getDataFolder().mkdir();\n getCommand(\"String_Node_Str\").setExecutor(cmdExecutor);\n getCommand(\"String_Node_Str\").setUsage(\"String_Node_Str\");\n PlayerListener rightClickListener = new PlayerListener() {\n public void onPlayerInteract(PlayerInteractEvent event) {\n ...
"public void execute() throws Exception {\n MatchResultViewer viewer = MatchResultViewer.this;\n CompositeEntity currentModel = (CompositeEntity) getModel();\n CompositeEntity oldModel = (CompositeEntity) GTTools.cleanupModel(currentModel);\n _delegateUndoStack(currentModel, oldModel);\n ModelChangeReque...
"private String _encode(long... numbers) {\n int numberHashInt = 0;\n for (int i = 0; i < numbers.length; i++) {\n numberHashInt += (numbers[i] % (i + 100));\n }\n String alphabet = this.alphabet;\n char ret = alphabet.toCharArray()[numberHashInt % alphabet.length()];\n char lottery = ret;\n ...
"public void postExport(CourseEnvironmentMapper envMapper, boolean backwardsCompatible) {\n super.postExport(envMapper, backwardsCompatible);\n ModuleConfiguration mc = getModuleConfiguration();\n List<Long> groupKeys = (List<Long>) mc.get(COEditController.CONFIG_KEY_EMAILTOGROUP_IDS);\n if (groupKeys != nu...
"private void gainFocus() {\n if (!mArrowNavigation && mRollo.mState.iconCount > 0) {\n mArrowNavigation = true;\n mRollo.selectIcon(Math.round(mMessageProc.mPosX) * Defines.COLUMNS_PER_PAGE, SELECTED_FOCUSED);\n mRollo.mState.save();\n }\n}\n"
"protected void deactivate(ComponentContext context) {\n if (asTopologyReceiver != null) {\n try {\n asTopologyReceiver.terminate();\n } catch (Exception e) {\n log.warn(\"String_Node_Str\", e);\n }\n }\n if (autoscalerHealthStatEventReceiver != null) {\n try {...
"public String getRelativePath() {\n return \"String_Node_Str\" + this.getAssetPath();\n}\n"
"public Shell createWindow(final Display display) {\n Shell activeShell = display.getActiveShell();\n int style = SWT.DIALOG_TRIM | SWT.MIN | SWT.MAX | SWT.APPLICATION_MODAL | SWT.RESIZE;\n if (activeShell == null) {\n mapperShell = new Shell(mapperShell, style);\n } else {\n mapperShell = new...
"public HttpResponseStatus process(IMap<String, String> hcMap, String id, String newDocument, String remoteAddr, String obsoleteDocId) {\n HttpResponseStatus status = NOT_ACCEPTABLE;\n try {\n ObjectNode aggregate = objectMapper.readValue(newDocument, ObjectNode.class);\n if (isValidDocument(aggrega...
"public void run() {\n if (!mDone) {\n synchronized (this) {\n if (!mDone) {\n mResult = call();\n mDone = true;\n try {\n this.notifyAll();\n } catch (Exception ignored) {\n }\n }\n }\n ...
"public static String getResponseString(String response) {\n if (response.length() == 0 || response.isEmpty() || response == null) {\n response = FAIL_RES;\n }\n JsonParser parser = new JsonParser();\n JsonElement element = parser.parse(response);\n if (element.isJsonObject()) {\n JsonObjec...
"public void test() throws Exception {\n NIFDocumentCreator creator = new TurtleNIFDocumentCreator();\n String nifDocument = creator.getDocumentAsNIFString(document);\n NIFDocumentParser parser = new TurtleNIFDocumentParser();\n AnnotatedDocument newDocument = parser.getDocumentFromNIFString(nifDocument);\n...
"public void testjSLPDefaultsToECF() {\n String expected = \"String_Node_Str\";\n Namespace namespaceByName = IDFactory.getDefault().getNamespaceByName(namespace);\n IServiceID aServiceID = ServiceIDFactory.getDefault().createServiceID(namespaceByName, DiscoveryTestHelper.SERVICES, new String[] { DiscoveryTest...
"public void postConstruct() {\n LogManager manager = LogManager.getLogManager();\n String cname = getClass().getName();\n if (manager != null) {\n logFileProperty = manager.getProperty(cname + \"String_Node_Str\");\n }\n if (logFileProperty == null || logFileProperty.trim().equals(\"String_Node_S...
"public void nullSafeSet(PreparedStatement preparedStatement, Object value, int index) throws HibernateException, SQLException {\n if (value == null) {\n for (int i = 0; i < getColumnMappers().length; i++) {\n ColumnMapper<?, ?> nextMapper = getColumnMappers()[i];\n if (Hibernate36Helper...
"private TypeDetails executeType(String type, ExpressionNode exp, boolean atEntry) throws PathEngineException, DefinitionException {\n if (atEntry && Character.isUpperCase(exp.getName().charAt(0)) && hashTail(type).equals(exp.getName()))\n return new TypeDetails(CollectionStatus.SINGLETON, type);\n TypeDet...
"public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {\n final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();\n final ModuleSpecification moduleSpecification = deploymentUnit.getAttachment(Attachments.MODULE_SPECIFICATION);\n final ServiceModuleLo...
"public static <T extends Enum<T>> T getEnumValue(ArgumentList arguments, IParameter parameter, Class<T> type) {\n IValue value = arguments.get(parameter);\n if (value == null) {\n value = parameter.getValue();\n }\n try {\n switch(value.valueTag()) {\n case IValue.ENUM_ACCESS:\n ...
"public static void explodeModule(Archive source, File directory, boolean preserveManifest) throws IOException, DeploymentException {\n File explodedManifest = null;\n File preservedManifestFromArchive = null;\n FileArchive target = new FileArchive();\n target.create(directory.toURI());\n explodeJar(new ...
"public void init(NamedList args) {\n super.init(args);\n Parameters.setParam(args, \"String_Node_Str\", \"String_Node_Str\");\n Parameters.setParam(args, \"String_Node_Str\", \"String_Node_Str\");\n Parameters.setParam(args, \"String_Node_Str\", 200);\n Parameters.setParam(args, \"String_Node_Str\", 864...
"public List<EdmProperty> getKeyProperties() throws EdmException {\n if (edmKeyProperties == null) {\n String keyPropertyName;\n EdmProperty edmProperty;\n edmKeyProperties = new ArrayList<EdmProperty>();\n for (String keyPropertyName : getKeyPropertyNames()) {\n try {\n ...
"protected Response setOrAddAttribute(String version, String persistenceUnit, String type, String key, String attribute, HttpHeaders hh, UriInfo ui, URI baseURI, InputStream in) {\n PersistenceContext app = getPersistenceContext(persistenceUnit, baseURI, version, null);\n if (app == null || app.getClass(type) == ...
"private boolean isValidAmount(final boolean zeroIsValid) {\n final String str = textView.getText().toString().trim();\n try {\n if (!str.isEmpty()) {\n final Monetary amount;\n if (localCurrencyCode == null) {\n amount = inputFormat.parse(str);\n else\n ...
"private void sendInterModAPIMessages() {\n ItemIngot ingotGeneric = BigReactors.ingotGeneric;\n ItemStack yelloriteOre = new ItemStack(BigReactors.blockYelloriteOre, 1);\n final int YELLORIUM = 0;\n String[] names = { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };\n ...
"public boolean isOptimizable(DataHandle handle) {\n if (!(handle instanceof DataHandleOutput)) {\n return false;\n }\n DataHandleOutput output = (DataHandleOutput) handle;\n if (output.getInputBuffer() == null || !output.getInputBuffer().equals(this.manager.getDataGeneralized().getArray())) {\n ...
"Configuration updateOrientationFromAppTokensUnchecked(Configuration currentConfig, IBinder freezeThisOneIfNeeded) {\n Configuration config;\n synchronized (mWindowMap) {\n config = updateOrientationFromAppTokensLocked(currentConfig, freezeThisOneIfNeeded);\n if (config != null) {\n mLayo...
"static String suggestServletName(String servletClass) {\n int pos = servletClass.lastIndexOf('.');\n String suggest = (pos < 0) ? servletClass : servletClass.substring(pos + 1);\n String firstChar = suggest.substring(0, 1).toLowerCase(Locale.ENGLISH);\n suggest = firstChar + suggest.substring(1);\n retu...
"private static ExprType uncachedFindExprType(Context context, SwiftAST tree) throws UserException {\n int token = tree.getType();\n switch(token) {\n case ExMParser.CALL_FUNCTION:\n {\n return callFunction(context, tree, true);\n }\n case ExMParser.VARIABLE:\n ...
"private static TransitionException exceptionOnCondition(String message, Predicate p) {\n return new TransitionException(\"String_Node_Str\" + message + \"String_Node_Str\" + p.getClass());\n}\n"