content
stringlengths
40
137k
"public void checkClock(int clock) {\n for (int i = 0; i < nextAvaliable; i++) {\n LockTable.checkLock(readSet[i].hashCode(), clock, contextLocks);\n readSet[i].clear();\n }\n}\n"
"private void writeSome(Chronicle chronicle) throws IOException {\n ExcerptAppender appender = chronicle.createAppender();\n for (int i = 0; i < RUNS; i++) {\n appender.writeDocument(wire -> wire.write(TestKey.test).text(\"String_Node_Str\"));\n }\n}\n"
"public Collection<IOPort> equivalentPorts(IOPort input) {\n if (input == _actor.derivative) {\n return _derivativeEquivalents;\n }\n return _otherEquivalents;\n}\n"
"public void render(Renderer renderer, StringOutput sb, Component source, URLBuilder ubu, Translator translator, RenderResult renderResult, String[] args) {\n FullCalendarComponent fcC = (FullCalendarComponent) source;\n FullCalendarElement fcE = fcC.getCalendarElement();\n Form rootForm = fcE.getRootForm();\n...
"public ConsumerInfo getInfo() {\n ConsumerInfo ci = new ConsumerInfo();\n ci.setType(new ConsumerType(\"String_Node_Str\"));\n ci.setParent(null);\n ci.setMetadataField(\"String_Node_Str\", \"String_Node_Str\");\n ci.setMetadataField(\"String_Node_Str\", \"String_Node_Str\");\n System.out.println(ci....
"protected Class<?> loadClass(final String name, final boolean resolve) throws ClassNotFoundException {\n synchronized (this) {\n final Class<?> clazz = findLoadedClass(name);\n if (clazz != null) {\n return clazz;\n }\n }\n if (name.startsWith(\"String_Node_Str\")) {\n r...
"protected TMDMService getService(MDMServerDef serverDef) throws XtentisException {\n boolean workInUI = UIUtil.isWorkInUI();\n return RepositoryWebServiceAdapter.getMDMService(serverDef, workInUI);\n}\n"
"public void incomingPacketInfo(long arrivalTimeMs, long sendTime24bits, int payloadSize, long ssrc) {\n if (logger.isTraceEnabled()) {\n logger.trace(\"String_Node_Str\" + hashCode() + \"String_Node_Str\" + arrivalTimeMs + \"String_Node_Str\" + sendTime24bits + \"String_Node_Str\" + payloadSize + \"String_No...
"private void logSpan(Span span) {\n System.out.println(\"String_Node_Str\" + span.hashCode() + \"String_Node_Str\" + span + \"String_Node_Str\" + spanMap.size() + \"String_Node_Str\" + Thread.currentThread().getId());\n}\n"
"public void setUIComponent(UIComponent uicomponent) {\n super.setUIComponent(uicomponent);\n setShow(uicomponent != null);\n}\n"
"public final Object getUserValue(String key) {\n if (userValueMap == null) {\n return null;\n }\n Object value = userValueMap.get(key);\n if (value instanceof CDateTime) {\n return ((CDateTime) value).getTime();\n }\n return value;\n}\n"
"private Transform getTransform() {\n Transformation transformation = getTransformation();\n Transform transform = new Transform();\n double size = transformation.getSize();\n double[] scale = transformation.getScale();\n double[] rotation = transformation.getRotation();\n double[] translation = trans...
"public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(EventType.TRANSITION).append(\"String_Node_Str\").append(this.name).append(\"String_Node_Str\").append(this.transition != null ? this.transition.toString() : \"String_Node_Str\").append(\"String_Node_Str\").append(this.id).append(\"...
"public boolean validate() {\n cleanWarnings();\n cleanErrors();\n boolean valid = true;\n if (getRole() == null) {\n addError(\"String_Node_Str\");\n valid = false;\n }\n if (getRole() != null && getRole().getConditionName() != null) {\n if (getRole().getConditionName().equals(NC...
"public Widget getWidgetAt(int column, final LogFrameActivityDTO userObject) {\n switch(column) {\n case 0:\n final Label parentCodeLabel = new Label();\n parentCodeLabel.addStyleName(CSS_CODE_LABEL_STYLE_NAME);\n final ExpectedResultDTO parent;\n if (userObject != ...
"public static String getLongName(ItemStack itemstack) {\n int atomicNumber = itemstack.getItemDamage();\n return atomicNumber < ElementEnum.heaviestMass ? MinechemHelper.getLocalString(elements[atomicNumber].getUnlocalizedName()) : MinechemHelper.getLocalString(\"String_Node_Str\");\n}\n"
"static void setConnInterval(Settings settings) {\n if (settings != null) {\n Settings.BleConnectionParametersEditor editor = settings.editBleConnParams();\n if (editor != null) {\n editor.maxConnectionInterval(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M ? 11.25f : 7.5f).commit();\n ...
"public void deleteInstance(KnowledgeBase kb, KBInstance aInstance) {\n getReificationStrategy(kb).deleteInstance(kb, aInstance);\n}\n"
"public void process(TaskScheduler ts) throws ShutdownException {\n ts.getTaskSummary(this.logger);\n this.sem.release();\n}\n"
"public JsonValue apply(Representation representation) throws AuditException {\n try {\n return extractValues(new JsonRepresentation(representation).getJsonObject());\n } catch (IOException | JSONException e) {\n throw new AuditException(\"String_Node_Str\", e);\n }\n}\n"
"public Object call() throws Exception {\n getClientEngine().getProxyService().destroyDistributedObject(getServiceName(), name);\n return null;\n}\n"
"private void publishNotification(long absoluteSize) {\n try {\n notificationService.publish(streamFeed, new StreamSizeNotification(System.currentTimeMillis(), absoluteSize)).get();\n } catch (NotificationFeedException e) {\n LOG.warn(\"String_Node_Str\", streamFeed, e);\n } catch (Throwable t) {...
"private void updateCommentsInList(Comment comment) {\n comment.setBodyHtml(ServiceManager.getInstance().getMarkupForComment(comment));\n int index = getCommentsInListWithId(comment.getId());\n if (index != -1) {\n commentsList.set(index, comment);\n } else {\n commentsList.add(comment);\n ...
"public Object clone() {\n PrimLongTreeMap<V> clone = null;\n try {\n clone = (PrimLongTreeMap<V>) super.clone();\n } catch (CloneNotSupportedException e) {\n throw new InternalError();\n }\n clone.root = null;\n clone.size = 0;\n clone.modCount = 0;\n clone.entrySet = null;\n c...
"private void loadSignatures(SignedDocumentValidator validator) {\n logger.debug(\"String_Node_Str\");\n Map<String, SimpleReport> simpleReports = loadValidationResults(validator);\n List<AdvancedSignature> signatureList = validator.getSignatures();\n additionalVerificationErrors = new LinkedHashMap<>();\n ...
"private void sampleClusterAssignments(int sampleNumber) {\n for (int p = 0; p < numberOfDomains; p++) {\n for (int j = 0; j < numberOfFunctions; j++) {\n updateCountsBeforeSamplingClusterAssignment(sampleNumber, p, j);\n int currentNumberOfClusters = dpPriors[p].computeClustersDistribut...
"public void process(final Object obj) {\n final long processStart = System.nanoTime();\n if (obj instanceof Invocation) {\n final Invocation inv = (Invocation) obj;\n final MemberImpl memberFrom = ClusterManager.get().getMember(inv.conn.getEndPoint());\n if (memberFrom != null) {\n ...
"public void onMessage(String channel, String sender, String login, String hostname, String message) {\n if (message.charAt(0) == '!') {\n String[] parts = message.split(\"String_Node_Str\");\n if (message.equalsIgnoreCase(\"String_Node_Str\")) {\n sendMessage(channel, sender + \"String_Node...
"boolean prepareForNextBuild(AjBuildConfig newBuildConfig) {\n currentBuildTime = System.currentTimeMillis();\n addedClassFiles = new ArrayList();\n if (lastSuccessfulBuildTime == -1 || buildConfig == null) {\n return false;\n }\n if (newBuildConfig.getOutputJar() != null)\n return false;\n...
"public static String[] configureBean(Object bean, String[] args) throws ConfigurationException {\n BeanInfo bi;\n try {\n bi = Introspector.getBeanInfo(bean.getClass());\n } catch (Exception ex) {\n throw new ConfigurationException(\"String_Node_Str\" + ex.getMessage());\n }\n Map<String, ...
"private void removeHistorySearchProgressListeners(HistoryReader reader) {\n synchronized (progressListeners) {\n Iterator iter = progressListeners.values().iterator();\n while (iter.hasNext()) {\n HistorySearchProgressListener l = (HistorySearchProgressListener) iter.next();\n re...
"public boolean addSeedToStorage(ItemStack seedStack) {\n return this.tile.addStackToInventory(seedStack);\n}\n"
"public static void compileCall(ArrayList<Command> ROM, CallStatement call) {\n ArrayList<Subroutine> oldsubs = new ArrayList<Subroutine>();\n oldsubs.addAll(subs);\n subs.clear();\n subs.addAll(call.cursubs);\n ArrayList<Command> tempROM = new ArrayList<Command>();\n tokens.addAll(0, call.statement);...
"protected IDataRowExpressionEvaluator createCubeEvaluator(CubeHandle cube, final Chart cm, List<String> columnExpression) throws BirtException {\n IBaseCubeQueryDefinition qd = null;\n ReportItemHandle referredHandle = ChartReportItemUtil.getReportItemReference(itemHandle);\n boolean isChartCubeReference = is...
"public int hashCode() {\n return id;\n}\n"
"public void updateEntity() {\n if (container.getWorldObj().isRemote) {\n for (int i = 0; i < 6; i += 2) {\n movementStage[i / 2] = (movementStage[i / 2] + 0.01F) % 1.0F;\n }\n return;\n }\n step();\n init();\n for (ForgeDirection side : ForgeDirection.VALID_DIRECTIONS) {\...
"private PluginClassLoader createPluginClassLoader(final URL[] urls, final ClassLoader parent) {\n if (SECURITY_MANAGER != null) {\n return AccessController.doPrivileged(new PrivilegedAction<PluginClassLoader>() {\n public PluginClassLoader run() {\n return new PluginClassLoader(urls...
"public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) {\n long start = Util.timeMS();\n String noPermission = \"String_Node_Str\";\n String Contrib = event.getMessage();\n Contrib = Contrib.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n if (!ZBukkitContrib.checkCommand(Contr...
"public void run() {\n try {\n super.run();\n if (this.view == null) {\n MessageDialog.openError(view.getSite().getShell(), \"String_Node_Str\", \"String_Node_Str\");\n return;\n }\n WorkbenchClipboard.getWorkbenchClipboard().reset();\n IStructuredSelection se...
"private Location getSurface(World world, int x, int z) {\n x = (int) (Math.random() * 16 + x);\n z = (int) (Math.random() * 16 + z);\n Location loc = new Location(world, x, 0, z);\n int id = 0;\n for (int y = world.getMaxHeight() - 1; y > 0; y--) {\n loc = new Location(world, x, y, z);\n i...
"public void showUpdaterDialog(final Context context, String title, String body, ArrayList<String> textArray, String version, Intent[] intents, final boolean isForcedUpdate) {\n this.isForcedUpdate = isForcedUpdate;\n String sharePrefAnswer = AppController.getStoredString(Constants.VERSION_SKIP_UPDATE);\n if (...
"private void processCmdLine(String[] args) {\n if (!Options.v().parse(args))\n throw new OptionsParseException(\"String_Node_Str\");\n if (PackManager.v().onlyStandardPacks()) {\n for (Pack pack : PackManager.v().allPacks()) {\n Options.v().warnForeignPhase(pack.getPhaseName());\n ...
"public void register(long uoid, ServiceDescriptor serviceDescriptor, Bimsie1RemoteServiceInterface remoteServiceInterface) {\n serviceDescriptor.setUrl(url);\n Map<String, ServiceDescriptor> map = uoidToInternalServices.get(uoid);\n if (map == null) {\n map = new HashMap<String, ServiceDescriptor>();\n...
"public void update(final Serializable id, final Object[] fields, final int[] dirtyFields, final boolean hasDirtyCollection, final Object[] oldFields, final Object oldVersion, final Object object, final Object rowId, final SessionImplementor session) throws HibernateException {\n final boolean[] tableUpdateNeeded = ...
"private void saveResources(ResourceSet resourceSet) throws IOException, PersistenceException {\n for (Resource resource : resourceSet.getResources()) {\n if (resource.getURI().isFile()) {\n EmfHelper.saveResource(resource);\n }\n}\n"
"private EnvTypePair analyzeCallNewFwd(Node expr, TypeEnv inEnv, JSType requiredType, JSType specializedType) {\n if (isPropertyTestCall(expr)) {\n return analyzePropertyTestCallFwd(expr, inEnv, specializedType);\n }\n Node callee = expr.getFirstChild();\n if (isFunctionBind(callee, inEnv, true)) {\n...
"public AzureDeleteContextObject deleteInit(Stack stack) throws Exception {\n AzureCredential credential = (AzureCredential) stack.getCredential();\n AzureLocation azureLocation = AzureLocation.valueOf(stack.getRegion());\n AzureClient azureClient = azureStackUtil.createAzureClient((AzureCredential) stack.getC...
"public void handle(Object object, String[] rowValues) {\n super.handle(object);\n if (duplicateMap.containsKey(object)) {\n duplicateValueList = duplicateMap.get(object);\n } else {\n List<Object[]> temp = new ArrayList<Object[]>();\n temp.add(rowValues);\n duplicateMap.put(object,...
"public void onAccountSelected(WalletAccount account) {\n log.info(\"String_Node_Str\", account.getId());\n openPocket(account, false);\n}\n"
"public void testRemoteLoadFiles() throws Exception {\n final FileInfo info = new FileInfo(\"String_Node_Str\", -1, -1, false, false, \"String_Node_Str\");\n final boolean shouldReset = false;\n List<FileInfo> actual = new ProcessingFileLoader(null, Collections.<FileLoadPostProcessor>emptySet(), new File(\"Str...
"public boolean checkExport() {\n setErrorMessage(null);\n if (!super.checkExport()) {\n return false;\n }\n if (getCurrentExportType1().equals(JobExportType.PETALSESB)) {\n chkButton.setVisible(false);\n zipOption = null;\n if (isMultiNodes()) {\n setErrorMessage(Mess...
"public void simpleCase() {\n List<Point2D_I32> contour = new ArrayList<Point2D_I32>();\n for (int i = 0; i < 10; i++) contour.add(new Point2D_I32(i, 0));\n for (int i = 1; i < 5; i++) contour.add(new Point2D_I32(9, i));\n for (int i = 1; i < 10; i++) contour.add(new Point2D_I32(9 + i, 4));\n for (int i ...
"protected IResultIterator executeOdiQuery(IEventHandler eventHandler, StopSign stopSign) throws DataException {\n try {\n RDLoad rdLoad = RDUtil.newLoad(engine.getSession().getTempDir(), engine.getContext(), new QueryResultInfo(realBasedQueryID, null, -1));\n DataSetResultSet dataSetResult = rdLoad.lo...
"private ArrayList<DownloadLink> getArchiveList(DownloadLink downloadLink) {\n ArrayList<DownloadLink> ret = new ArrayList<DownloadLink>();\n File file;\n int type = JDUnrar.getArchivePartType(downloadLink);\n String name = null;\n int nums = 0;\n int i = 0;\n switch(type) {\n case JDUnrarCo...
"protected int getTerminationTimeout() {\n return NO_TIMEOUT__FORCE_RESTART;\n}\n"
"private List<Transformation> initializeTransforms(WorkerContext context, List<ETLStage> stages) throws Exception {\n List<String> transformIds = GSON.fromJson(context.getRuntimeArguments().get(Constants.Transform.PLUGINIDS), STRING_LIST_TYPE);\n List<Transformation> transforms = Lists.newArrayList();\n Precon...
"public public void onServiceStateChanged(ServiceState serviceState) {\n if (serviceState.getState() == ServiceState.STATE_OUT_OF_SERVICE) {\n Intent intent = new Intent(RadioMonitor.this, DarkService.class);\n intent.setAction(DarkService.ACTION_RADIO_LOST);\n context.startService(intent);\n ...
"public static void save(String name, IAggregationResultSet[] resultSets, IDocArchiveWriter writer) throws IOException {\n RAOutputStream outputStream = writer.createRandomAccessStream(name);\n DataOutputStream dataOutputStream = new DataOutputStream(outputStream);\n if (resultSets == null) {\n dataOutp...
"private PageLayout getRootView(int position) {\n String tag = CarouselViewPager.getConfig().getPageFragmentTag(position);\n Fragment f = mFragmentManager.findFragmentByTag(tag);\n if (f != null && f.getView() != null) {\n return (PageLayout) f.getView().findViewById(R.id.root);\n }\n return null;...
"public void readSpawnData(ByteArrayDataInput data) {\n try {\n TileEntity tileEntity = this.worldObj.getBlockTileEntity(data.readInt(), data.readInt(), data.readInt());\n if (tileEntity instanceof TileTurret) {\n this.host = (TileTurret) tileEntity;\n }\n } catch (Exception e) {\n...
"public org.hl7.fhir.dstu2.model.SupplyRequest.SupplyRequestWhenComponent convertSupplyRequestWhenComponent(org.hl7.fhir.dstu3.model.SupplyRequest.SupplyRequestWhenComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.SupplyRequest.SupplyRequest...
"public void visit(final Term t) {\n if (t instanceof Variable) {\n Variable v = ((Variable) t);\n vars.add(v);\n }\n}\n"
"public Community createCommunity(Community community, String user_ip, String user_agent, String xforwarderfor, HttpHeaders headers, HttpServletRequest request) throws WebApplicationException {\n log.info(\"String_Node_Str\");\n org.dspace.core.Context context = null;\n Community retCommunity = null;\n try ...
"public SGeometryData convertToSObject(GeometryData input) {\n if (input == null) {\n return null;\n }\n SPluginInformation result = new SPluginInformation();\n result.setOid(input.getOid());\n result.setRid(input.getRid());\n result.setIndices(input.getIndices());\n result.setVertices(input...
"public PacketTransformer getRTCPTransformer() {\n boolean invokeOnEngineChain;\n PacketTransformer rtpTransformer;\n synchronized (this) {\n if (rtcpTransformChain == null) {\n rtcpTransformChain = new PacketTransformerChain(false);\n invokeOnEngineChain = true;\n } else {\...
"protected void tearDown() throws MojoExecutionException, MojoFailureException {\n if (!testFailureIgnore) {\n if (executionError != null) {\n throw executionError;\n }\n if (failures) {\n throw new MojoExecutionException(\"String_Node_Str\");\n }\n } else {\n ...
"public int hashCode() {\n int n = getSourceNodeId().hashCode() * getTargetNodeId().hashCode();\n return n;\n}\n"
"public Response dbExport() {\n return Response.ok(new StreamingOutput() {\n public void write(final OutputStream os) throws IOException {\n configurationController.dbExportInternal(os);\n }\n };\n return Response.ok(sout).type(MediaType.TEXT_XML).header(SyncopeConstants.CONTENT_DISPOS...
"public List<String[]> getAllRows(List<List<Object>> queryResult) {\n List<String[]> allRows = new ArrayList<String[]>();\n if (queryResult == null || queryResult.isEmpty())\n return allRows;\n String[] row = null;\n for (int i = 0; i < queryResult.size(); i++) {\n List<Object> rawRow = queryR...
"public void startArray(JsonArray array) throws IOException {\n firstElementInLevel.push(true);\n writer.beginArray();\n}\n"
"public void addDimension(int id) {\n data.writeInt(id);\n}\n"
"private <T extends BaseEntity> T postRESTBodyReturn(String apiCall, String urlParams, BaseEntity entity, Class<T> returnEntityType) {\n HttpClient httpClient = new DefaultHttpClient();\n String completeUrl = buildRequestURL(apiCall, urlParams);\n try {\n HttpPost request = new HttpPost(completeUrl);\n ...
"static void cleanup() {\n String tempFolder = getTempDir().getAbsolutePath();\n File dir = new File(tempFolder);\n File[] nativeLibFiles = dir.listFiles(new FilenameFilter() {\n private final String searchPattern = \"String_Node_Str\" + getVersion();\n public boolean accept(File dir, String name...
"public boolean isValid() {\n return super.isValid() && !(edgesPerNewNode < 2 || edgesPerNewNode + 1 > getNumberOfNodes());\n}\n"
"public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, AbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n XPathFragment rootFragment = null;\n if (xmlAnyObjectMapping.isReadOnly()) {\n return false;\n }\n XMLMarsh...
"public ResponseEntity<Object> handleOAuth2AccessDeniedException(final OAuth2AccessDeniedException ex, final WebRequest request) {\n logger.error(\"String_Node_Str\", ex);\n final String response = \"String_Node_Str\" + ex.getMessage();\n final ModelAndView model = new ModelAndView(\"String_Node_Str\");\n m...
"private RedisQueryInterpreter onTranslation(Queue clauseQueue, EntityMetadata entityMetadata) {\n RedisQueryInterpreter interpreter = new RedisQueryInterpreter(getColumns(getKunderaQuery().getResult(), entityMetadata));\n for (Object clause : clauseQueue) {\n if (clause.getClass().isAssignableFrom(FilterC...
"public QuotesIterator<Quote> getIntradayQuotes(Symbol symbol) throws ProviderException {\n String tmpdir = CFG.getProperty(\"String_Node_Str\", \"String_Node_Str\");\n File f = new File(tmpdir + \"String_Node_Str\" + symbol.getName() + \"String_Node_Str\");\n InputStream is = null;\n try {\n is = Fi...
"public WsnSession call() {\n URI httpRequestURI = httpUri;\n ResultAwareLoginContext loginContext = (ResultAwareLoginContext) session.getAttribute(HttpLoginSecurityFilter.LOGIN_CONTEXT_KEY);\n IoBufferAllocatorEx<?> parentAllocator = session.getBufferAllocator();\n IoBufferAllocatorEx<WsBuffer> allocator =...
"void setOverflow(int overflow) throws SQLException {\n index.getPageStore().logUndo(this, data);\n firstOverflowPageId = overflow;\n if (written) {\n writeHead();\n data.writeInt(firstOverflowPageId);\n }\n index.getPageStore().update(this);\n}\n"
"static void SKP_Silk_encode_signs(SKP_Silk_range_coder_state sRC, byte[] q, final int length, final int sigtype, final int QuantOffsetType, final int RateLevelIndex) {\n int i;\n int inData;\n int[] cdf = new int[3];\n i = SKP_SMULBB(N_RATE_LEVELS - 1, (sigtype << 1) + QuantOffsetType) + RateLevelIndex;\n ...
"public static Set<String> getAllModuleNamesFromIndex() {\n Set<String> moduleNames = new HashSet<String>();\n moduleNames.addAll(LibrariesIndexManager.getInstance().getMavenLibIndex().getJarsToRelativePath().keySet());\n for (String platformURL : LibrariesIndexManager.getInstance().getStudioLibIndex().getJars...
"public void displayWindowMenu(Entity entity, MouseEvent mouseEvent) {\n LinkedList<Entity> entities = new LinkedList<Entity>();\n entities.add(entity);\n WindowContextMenuEvent windowMenuEvent = new WindowContextMenuEvent(entities, mouseEvent);\n SceneManager.getSceneManager().postEvent(windowMenuEvent);\n...
"public Rsrcc_srcm_stmt_kind_tgtc_tgtm edges() {\n return new Rsrcc_srcm_stmt_kind_tgtc_tgtmBDD(new jedd.internal.RelationContainer(new jedd.Attribute[] { stmt.v(), srcm.v(), tgtc.v(), tgtm.v(), srcc.v(), kind.v() }, new jedd.PhysicalDomain[] { ST.v(), T1.v(), V2.v(), T2.v(), V1.v(), FD.v() }, (\"String_Node_Str\" +...
"public static void downloadFileFromURL(URL url, Update update, ModContainer mod, String fileName) {\n File newFile = new File(fileName);\n FileUtils.copyURLToFile(url, newFile);\n return newFile;\n}\n"
"public int getMaximumEntryLength(Paint p) {\n int max = 0;\n for (int i = 0; i < mLegendLabels.length; i++) {\n if (mLegendLabels[i] != null) {\n int length = Utils.calcTextWidth(p, mLegendLabels[i]);\n if (length > max)\n max = length;\n }\n }\n return ma...
"public String coordinateJob(final JobRequest jobRequest, final JobMetadata jobMetadata) throws GenieException {\n final long coordinationStart = System.nanoTime();\n final Map<String, String> tags = MetricsUtils.newSuccessTagsMap();\n final String jobId = jobRequest.getId().orElseThrow(() -> new GenieServerEx...
"public TabView openUrl(final String urlAsString, long urlLoadStartTime, final boolean setAsCurrentTab, String openedFromAppName) {\n Analytics.trackOpenUrl(openedFromAppName);\n if (wasUrlRecentlyLoaded(urlAsString, urlLoadStartTime) && !urlAsString.equals(mContext.getString(R.string.empty_bubble_page))) {\n ...
"public DesignElement findDataSource(String name) {\n return resolveElement(name, DATA_SOURCE_NAME_SPACE, null);\n}\n"
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n if (savedInstanceState == null) {\n Bundle bundle = getArguments();\n mImageUrl = bundle != null ? bundle.getString(\"String_Node_Str\") : \"String_Node_Str\";\n } else {\n mImageUrl = savedInstanceS...
"private void prepareVarSelParams(final List<String> args, final SourceType sourceType) {\n args.add(\"String_Node_Str\");\n addRuntimeJars(args);\n args.add(\"String_Node_Str\");\n args.add(ShifuFileUtils.getFileSystemBySourceType(sourceType).makeQualified(new Path(modelConfig.getDataSetRawPath())).toStrin...
"public void sessionDidActivate(Session sess) {\n synchronized (_desktops) {\n final boolean old = _desktops.disableExpunge(true);\n try {\n for (Iterator it = _desktops.values().iterator(); it.hasNext(); ) ((DesktopCtrl) it.next()).sessionDidActivate(sess);\n } finally {\n ...
"public void attribute(String namespaceURI, String localName, String name, String value) {\n XMLEvent event;\n if (XMLConstants.XMLNS_URL.equals(namespaceURI)) {\n try {\n if (localName.equals(XMLConstants.XMLNS)) {\n event = xmlEventFactory.createNamespace(value);\n ...
"public void postConstruct(Composite parent) {\n final Shell shell = parent.getShell();\n parent.setLayout(new GridLayout(7, false));\n Group grpInputSettings = new Group(parent, SWT.NONE);\n grpInputSettings.setText(\"String_Node_Str\");\n GridData gd_grpInputSettings = new GridData(SWT.LEFT, SWT.CENTER...
"public void validate() throws Exception {\n ArgumentCaptor<DataRequest> arg1 = ArgumentCaptor.forClass(DataRequest.class);\n ArgumentCaptor<String> arg2 = ArgumentCaptor.forClass(String.class);\n ArgumentCaptor<URI> arg3 = ArgumentCaptor.forClass(URI.class);\n ArgumentCaptor<NoContentResponse> arg4 = Argum...
"public static Project fromBytes(byte[] bytes, Gson gson) throws IOException {\n InputStreamReader reader = new InputStreamReader(new ByteArrayInputStream(bytes), Charset.forName(\"String_Node_Str\"));\n return fromReader(reader, gson);\n}\n"
"public final boolean hasResourceAt(short x, short y, EResourceType resourceType) {\n return getResourceTypeAt(x, y) == resourceType && resourceAmount[getIdx(x, y)] > 0;\n}\n"
"private DateFormat getDateFormat() {\n String format = Settings.System.getString(getContext().getContentResolver(), Settings.System.DATE_FORMAT);\n if (format == null || \"String_Node_Str\".equals(format)) {\n return DateFormat.getDateInstance(DateFormat.SHORT);\n } else {\n return new SimpleDat...
"public void seek(long localPos) throws IOException {\n if (localPos < 0) {\n throw new IOException(CoreMessages.getFormattedString(ResourceConstants.INVALID_SEEK_OFFSET, new Object[] { localPos }));\n }\n if (localPos >= entry.getLength()) {\n throw new EOFException(Messages.getString(ResourceCo...
"public void testStorageEngines() throws Throwable {\n testCreateWithStorageEngine(\"String_Node_Str\");\n testCreateWithStorageEngine(\"String_Node_Str\");\n testCreateWithStorageEngine(\"String_Node_Str\");\n testCreateWithStorageEngine(\"String_Node_Str\");\n testCreateWithStorageEngine(\"String_Node_...