content stringlengths 40 137k |
|---|
"public boolean applies(Ability abilityToModify, Ability source, Game game) {\n if (abilityToModify instanceof SpellAbility || abilityToModify instanceof FlashbackAbility || abilityToModify instanceof RetraceAbility) {\n Card sourceCard = game.getCard(abilityToModify.getSourceId());\n if (sourceCard !=... |
"public void removeControlCausedMessage(String messageId) {\n IMessageManager messageManager = getMessageManager();\n if (messageManager != null && isFormReady()) {\n if (Widgets.isAccessible(getErrorMessageControl())) {\n messageManager.removeMessage(messageId, getErrorMessageControl());\n ... |
"private <T extends SecurityPrice> List<T> internalGetQuotes(Class<T> klass, Security security, Date startDate) throws IOException {\n if (security.getTickerSymbol() == null)\n throw new IOException(MessageFormat.format(Messages.MsgMissingTickerSymbol, security.getName()));\n Calendar start = Calendar.getI... |
"public ImmutableSet<SpecialProperty> getSpecialProperties() {\n return portfolio.getPersistentSpecialProperties();\n}\n"
|
"public int maxEntrySize() {\n return super.maxEntrySize() + 128;\n}\n"
|
"public void handle() {\n String request = headers.get(null);\n String[] requ = request.split(\"String_Node_Str\");\n String method = requ[0];\n String cPath = requ[1];\n String protocol = requ[2];\n String path, querry;\n path = cPath.substring(1);\n String[] params;\n HashMap<String, String... |
"private List compute() {\n List diffs = new ArrayList();\n if (text1.equals(\"String_Node_Str\")) {\n diffs.add(new Difference(EditType.INSERT, text2));\n return diffs;\n }\n if (text2.equals(\"String_Node_Str\")) {\n diffs.add(new Difference(EditType.DELETE, text1));\n return d... |
"public static boolean hasAggregation(Chart cm) {\n SeriesDefinition baseSD = null;\n if (cm instanceof ChartWithAxes) {\n ChartWithAxes cwa = (ChartWithAxes) cm;\n baseSD = cwa.getBaseAxes()[0].getSeriesDefinitions().get(0);\n } else if (cm instanceof ChartWithoutAxes) {\n ChartWithoutAxe... |
"public Void doInBackground() {\n try {\n generateProcessing.setEnabled(false);\n progressBar.setIndeterminate(true);\n rateIndicatorBFToProcessing.setLogFilePath(logFilename, burnInParser.getValue() / 100.0);\n rateIndicatorBFToProcessing.setBfCutoff(Double.valueOf(bfCutoffParser.getText... |
"public Iterator<T> getNormalSuccessors(final T ret) {\n Iterator<? extends Object> allPreds = delegate.getPredNodes(ret);\n Filter sameProc = new Filter() {\n public boolean accepts(Object o) {\n return getProcOf(ret).equals(getProcOf((T) o));\n }\n };\n Iterator<Object> sameProcPr... |
"public void start() {\n if (timerRunning) {\n return;\n }\n timerRunning = true;\n timer = new CountDownTimer(currentDuration, 100) {\n\n public void onTick(long millis) {\n currentDuration = millis;\n updateText(millis);\n invalidate();\n }\n pu... |
"public static Object getProxy(final ProxyKey proxyKey) {\n initialChecks();\n Object proxy = proxies.get(proxyKey);\n if (proxy == null) {\n proxy = createInstanceClusterwide(proxyKey);\n }\n return proxy;\n}\n"
|
"public boolean renderStatic(Vec3i translation, RenderHelper renderer, RenderBlocks renderBlocks, int pass) {\n Transformation t = null;\n if (getFace() == ForgeDirection.UP)\n t = new Rotation(180, 180, 0, Vec3d.center);\n if (getFace() == ForgeDirection.NORTH)\n t = new Rotation(90, 0, 0, Vec3d... |
"public void setPattern(IFillerPattern pattern, IStatementParameter[] params) {\n this.pattern = pattern;\n this.params = params;\n template = pattern.createTemplate(this, params);\n}\n"
|
"private void test(Resource resource, String expression, int count, String... types) throws FileNotFoundException, IOException, FHIRException {\n if (TestingUtilities.context == null)\n TestingUtilities.context = SimpleWorkerContext.fromPack(\"String_Node_Str\");\n if (fp == null)\n fp = new FluentP... |
"public void doit(PrintWriter out, Blur.Iface client, String[] args) throws CommandException, TException, BlurException {\n if (args.length < 5) {\n throw new CommandException(\"String_Node_Str\" + help());\n }\n CommandLine cmd = parse(args, out);\n ColumnDefinition columnDefinition = new ColumnDefi... |
"private void displayFolder(String path) {\n List<FileInfo> fileInfos = cache.get(path);\n if (fileInfos == null)\n fileInfos = androidDevice.list(path);\n List<FileInfo> files = new ArrayList<>();\n for (FileInfo fi2 : fileInfos) {\n if (fi2.directory)\n continue;\n files.ad... |
"private boolean createSqlQuery(String dataFilterAsString, Indicator indicator) throws ParseException, AnalysisExecutionException {\n ModelElement analyzedElement = indicator.getAnalyzedElement();\n if (analyzedElement == null) {\n return traceError(\"String_Node_Str\" + indicator.getName());\n }\n N... |
"public Response execute() {\n int addedAnnotations = 0;\n int defaultValueIndex = 0;\n DatabaseAccessor db = null;\n try {\n db = initDB();\n for (int i = 0; i < type.size(); i++) {\n if (type.get(i).equals(defaults)) {\n defaultValueIndex = i;\n break... |
"public void write(byte[] buffer, int offset, int count) {\n try {\n if (buffer == null) {\n Log.w(TAG, \"String_Node_Str\");\n return;\n }\n mmOutStream.write(buffer, offset, count);\n } catch (IOException | NullPointerException e) {\n Log.e(TAG, \"String_Node_St... |
"String swiftUpload(SwiftTO swift, String container, String lDir, String lFilename) {\n Script command = new Script(\"String_Node_Str\", s_logger);\n long SWIFT_MAX_SIZE = 5L * 1024L * 1024L * 1024L;\n command.add(\"String_Node_Str\");\n List<String> files = new ArrayList<String>();\n if (lFilename.equal... |
"void notifyAsyncListeners(AsyncEventType asyncEventType, Throwable t) {\n synchronized (asyncListenerContexts) {\n if (asyncListenerContexts.isEmpty()) {\n return;\n }\n clone = new LinkedList<AsyncListenerContext>(asyncListenerContexts);\n if (asyncEventType.equals(AsyncEvent... |
"public void addCell(int col, int span, IStyle style) {\n XlsTable table = tables.peek();\n ContainerSizeInfo cellSizeInfo = table.getColumnSizeInfo(col, colSpan);\n addContainer(createCellContainer(cellSizeInfo, style, getCurrentContainer(), rowSpan));\n}\n"
|
"public void blockRemoved(Chunk chunk, BlockPosition pos) {\n for (int i = 0; i < 6; i++) {\n BlockPosition nBp = new BlockPosition(pos.x + (int) NEIGHBORS6[i].x, pos.y + (int) NEIGHBORS6[i].y, pos.z + (int) NEIGHBORS6[i].z);\n if (_parent.getBlock(nBp.x, nBp.y, nBp.z) == DIRT_TYPE) {\n addA... |
"public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase par5EntityLiving, ItemStack itemStack) {\n int angle = MathHelper.floor_double((par5EntityLiving.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;\n TileEntity tileEntity = world.getTileEntity(x, y, z);\n if (tileEntity instanceof IRotatab... |
"public long append(Record record, long prevAddress) {\n long thisAddress = beginRecord0(prevAddress);\n append0(record, thisAddress);\n return thisAddress;\n}\n"
|
"private static Location createDeploymentJar(Class<?> clz) throws IOException {\n File tempFile = File.createTempFile(clz.getName(), \"String_Node_Str\");\n Location tempJarLocation = new LocalLocationFactory().create(tempFile.getPath());\n ClassLoader remembered = Thread.currentThread().getContextClassLoader(... |
"public boolean process(T input, ImageUInt8 binary) {\n boundPolygon.vertexes.reset();\n detectorSquare.process(input, binary);\n FastQueue<Polygon2D_F64> found = detectorSquare.getFoundPolygons();\n clusters = s2c.process(found.toList());\n c2g.process(clusters);\n List<SquareGrid> grids = c2g.getGri... |
"public void looperThreadQuitsLooperEarly() throws InterruptedException {\n final CountDownLatch backgroundLooperStartedAndStopped = new CountDownLatch(1);\n final CountDownLatch mainThreadCommitCompleted = new CountDownLatch(1);\n final CountDownLatch backgroundThreadStopped = new CountDownLatch(1);\n Exec... |
"private static void cloneEdgeDefinition(ICubeQueryDefinition cloneQuery, IEdgeDefinition edge, int type, IEdgeDrillFilter drill, ICube cube) throws DataException {\n IEdgeDefinition cloneEdge = cloneQuery.createEdge(type);\n Iterator<IDimensionDefinition> dimension = edge.getDimensions().iterator();\n List<IL... |
"public byte[] getAddress(boolean checkForce) {\n if (checkForce && ConnectionSettings.FORCE_IP_ADDRESS.getValue()) {\n String address = ConnectionSettings.FORCED_IP_ADDRESS_STRING.getValue();\n try {\n InetAddress ia = InetAddress.getByName(address);\n byte[] addr = ia.getAddress... |
"public boolean isSuperType(Type t) {\n if (t.equals(this.superClass) || this.interfaces.contains(t)) {\n return true;\n } else if (this.superClass != null && this.superClass.theClass != null) {\n return this.superClass.theClass.isSuperType(t);\n }\n return false;\n}\n"
|
"private void applySurfaceChangesTransaction(boolean recoveringMemory, int numDisplays, int defaultDw, int defaultDh) {\n if (mService.mWatermark != null) {\n mService.mWatermark.positionSurface(defaultDw, defaultDh);\n }\n if (mService.mStrictModeFlash != null) {\n mService.mStrictModeFlash.posi... |
"public void exportResource(String rootName, String directory, String exportResource, int leadupDepth) throws InterruptedException {\n File file = new File(exportResource);\n if (file.isFile()) {\n String destinationName = file.getName();\n if (!\"String_Node_Str\".equals(directory)) {\n ... |
"public Bundle perform(Bundle extras) throws Exception {\n QBDialog dialog = (QBDialog) extras.getSerializable(QBServiceConsts.EXTRA_DIALOG);\n File file = (File) extras.getSerializable(QBServiceConsts.EXTRA_FILE);\n if (file == null) {\n dialog = multiChatHelper.updateDialog(dialog);\n } else {\n ... |
"public static AttributeDiff attributeDiffFromText(Class<?> clazz, String s) {\n String[] tokens = s.split(\"String_Node_Str\");\n AttributeDiff ad;\n if (Geometry.class.isAssignableFrom(clazz)) {\n ad = new GeometryAttributeDiff(s);\n } else {\n if (AttributeDiff.TYPE.REMOVED.name().startsWit... |
"public void hasSeen(AutoRefPlayer apl) {\n long ctime = location.getWorld().getFullTime();\n if (lastSeen > 0 && ctime - lastSeen < SEEN_COOLDOWN)\n return;\n String message = String.format(\"String_Node_Str\", apl.getPlayerName(), blockdata.getRawName());\n getMatch().addEvent(new TranscriptEvent(a... |
"static PacketMap getPacketsFromFci(ByteArrayBuffer fciBuffer, boolean includeNotReceived) {\n int fciLen = -1;\n if (fciBuffer == null || (fciLen = fciBuffer.getLength()) < MIN_FCI_LENGTH) {\n logger.warn(PARSE_ERROR + \"String_Node_Str\" + fciLen);\n return null;\n }\n byte[] fciBuf = fciBuf... |
"public void onClose(AjaxRequestTarget target) {\n setResponsePage(new ODocumentPage(new ODocumentModel(documentModel.getObject())).setModeObject(DisplayMode.VIEW));\n}\n"
|
"public View getView(int position, View convertView, ViewGroup parent) {\n LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n View row;\n if (convertView == null) {\n row = inflater.inflate(R.layout.record_row, parent, false);\n } else {\n ... |
"protected Section creatMetadataSection(final ScrolledForm form, Composite topComp) {\n Section section = createSection(form, topComp, getMetadataTitle(), \"String_Node_Str\");\n Composite parent = toolkit.createComposite(section);\n parent.setLayout(new GridLayout(2, false));\n nameText = createMetadataTex... |
"protected final void setKey() {\n final String at1, at2;\n if ((type % 2) == 1) {\n at1 = Symbols.TO_COMPONENT_1;\n at2 = Symbols.TO_COMPONENT_2;\n } else {\n at1 = Symbols.TO_COMPOUND_1;\n at2 = Symbols.TO_COMPOUND_2;\n }\n final String targetString = target != null ? target... |
"public static void setup() throws Exception {\n cConf = createCConf();\n final Injector injector = AppFabricTestHelper.getInjector(cConf);\n metadataAdmin = injector.getInstance(MetadataAdmin.class);\n authorizer = injector.getInstance(AuthorizerInstantiator.class).get();\n appFabricServer = injector.ge... |
"public void write(int b) throws IOException {\n if (recordInterface.canWrite())\n recordInterface.writeIntBE(b);\n}\n"
|
"public static Locale lcidToLocale(short lcid) {\n if (lcid == 0x0409) {\n return Locale.US;\n }\n}\n"
|
"private void propagateFileName(Project project, Property property) throws PersistenceException {\n String originalVersionText = null;\n URI uri = property.eResource().getURI();\n String fileNameString = uri.trimFileExtension().lastSegment();\n int index = fileNameString.lastIndexOf(\"String_Node_Str\");\n ... |
"public KeyPair generateKeyPair() {\n if (!initialized)\n initialize(strength, new SecureRandom());\n byte[] seed = new byte[edParams.getCurve().getField().getb() / 8];\n random.nextBytes(seed);\n EdDSAPrivateKeySpec privKey = new EdDSAPrivateKeySpec(seed, edParams);\n EdDSAPublicKeySpec pubKey = ... |
"public List<FlowRun> getFlowHistory(String accountId, String appId, String flowId) {\n Map<String, Integer> started = Maps.newHashMap();\n Map<String, Integer> stopped = Maps.newHashMap();\n Map<String, Integer> states = Maps.newHashMap();\n String sql = \"String_Node_Str\" + \"String_Node_Str\";\n List... |
"private void onInsert(EventLog log) {\n if (insertEvents == null) {\n insertEvents = new ConcurrentHashMap<Object, EventLog>();\n }\n insertEvents.put(log.getEntityId(), log);\n}\n"
|
"public boolean isRouterIncluded() {\n return _routerIncluded;\n}\n"
|
"protected void onDialogClosed(final boolean positiveResult) {\n super.onDialogClosed(positiveResult);\n mSelectedValue = mNumberPicker.getValue();\n if (positiveResult) {\n final int selectedValue = mNumberPicker.getValue();\n if (this.callChangeListener(selectedValue)) {\n mSelectedV... |
"public void taskAnswer(String taskId, final String conversationId, AgentDto agent) {\n LOGGER.debug(\"String_Node_Str\", taskId);\n LOGGER.debug(\"String_Node_Str\", agent);\n boolean wouldConnectAgent = true;\n NexMoConversation conversation = null;\n do {\n conversation = conversationService.ge... |
"private void writeMainClass(final ClientArtifactsManager clientArtifactsManager) throws IOException {\n final String mainClassResourceName = GLASSFISH_APPCLIENT_GROUP_FACADE_CLASS_NAME.replace('.', '/') + \"String_Node_Str\";\n final File mainClassFile = File.createTempFile(\"String_Node_Str\", \"String_Node_Str... |
"public void error(Object message, Throwable t) {\n if (isErrorEnabled())\n logger.log(SELF_FQCN, Level.ERROR, message, t);\n}\n"
|
"public List createPastableBeansList(ExtendedTableModel extendedTable, List copiedObjectsList) {\n ArrayList list = new ArrayList();\n ArrayList countList = new ArrayList();\n ArrayList<String> labelsExisted = getLabelsExisted(extendedTable);\n for (Object current : copiedObjectsList) {\n if (current... |
"public void componentHidden(ComponentEvent event) {\n ArrayList<UUID> newFilters = new ArrayList<UUID>(filters.keySet());\n newFilters.removeAll(originalFilters.keySet());\n ArrayList<UUID> modifiedFilters = new ArrayList<UUID>(filters.keySet());\n modifiedFilters.removeAll(newFilters);\n ArrayList<UUID... |
"public static void toInfixString(ASTNode root, StringBuilder buf) {\n if (root == null) {\n return;\n }\n int rootType = root.getToken().getType();\n String rootText = root.getText();\n if (Identifier == rootType || Number == rootType || StringLiteral == rootType || KW_TRUE == rootType || KW_FALS... |
"public void process(ImageFloat32 input, ImageUInt8 output) {\n inputPow2.reshape(input.width, input.height);\n inputMean.reshape(input.width, input.height);\n inputMeanPow2.reshape(input.width, input.height);\n inputPow2Mean.reshape(input.width, input.height);\n stdev.reshape(input.width, input.height);... |
"private void processPropertyAnnotations(TypeInfo info, JavaClass cls, JavaHasAnnotations javaHasAnnotations, Property property) {\n if (helper.isAnnotationPresent(javaHasAnnotations, XmlMixed.class)) {\n info.setMixed(true);\n property.setMixedContent(true);\n }\n if (helper.isAnnotationPresent(... |
"public void insertStringTest() throws ConnectorException {\n ClusterName clusterName = getClusterName();\n TableMetadataBuilder tableMetadataBuilder = new TableMetadataBuilder(CATALOG, TABLE, clusterName.getName());\n TableMetadata tableMetadata = tableMetadataBuilder.addColumn(STRING_COLUMN, ColumnType.VARCH... |
"public static void copyConfigFiles(IProject project, Plugin plugin) {\n Enumeration paths = plugin.getBundle().getEntryPaths(CONFIG_PATH);\n if (paths == null) {\n return;\n }\n while (paths.hasMoreElements()) {\n String nextElement = (String) paths.nextElement();\n String currentPath ... |
"public String getXMLString() throws SchemaNotFoundException {\n if (xmlString == null) {\n xmlString = constructXML(getOrderedNameValueList(), schemaUri);\n }\n return xmlString;\n}\n"
|
"public static void setupReplacers() {\n CULog.log(\"String_Node_Str\");\n boolean test = false;\n listFoliageReplacers.clear();\n HashMap<Comparable, String> lookup = new HashMap<>();\n lookup.clear();\n lookup.put(BlockPlanks.EnumType.OAK, \"String_Node_Str\");\n lookup.put(BlockPlanks.EnumType.S... |
"public org.hl7.fhir.dstu2.model.DataElement.DataElementMappingComponent convertDataElementMappingComponent(org.hl7.fhir.dstu3.model.DataElement.DataElementMappingComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.DataElement.DataElementMappi... |
"public void toArray(final double[] data) {\n data[0] = 1;\n data[1] = 0;\n data[2] = 0;\n data[3] = 0;\n data[4] = 0;\n data[5] = 0;\n data[6] = 0;\n data[7] = 0;\n data[8] = 0;\n data[9] = translation[0];\n data[10] = translation[1];\n data[11] = translation[2];\n}\n"
|
"public static BasicML loadModel(ModelConfig modelConfig, List<ColumnConfig> columnConfigList, Path modelPath, FileSystem fs) throws IOException {\n if (!fs.exists(modelPath)) {\n return null;\n }\n PersistorRegistry.getInstance().add(new PersistBasicFloatNetwork());\n FSDataInputStream stream = null... |
"synchronized QueryColumnInfo getQueryColumnInfo(Class entityClass, String propertyName) {\n if (entityClass == null) {\n throw new NullPointerException(ENTITY_CLASS);\n }\n if (propertyName == null) {\n throw new NullPointerException(\"String_Node_Str\");\n }\n Map<String, QueryColumnInfo>... |
"private AbstractBuild match(RunList runList, AbstractBuild firstJob) {\n if (firstJob != null) {\n for (Object aRunList : runList) {\n AbstractBuild currentBuild = (AbstractBuild) aRunList;\n if (firstJob.equals(getFirstUpstreamBuild(currentBuild))) {\n return currentBuil... |
"private static boolean existReferenceDate(AggregationDefinition[] aggregations) throws DataException {\n for (int i = 0; i < aggregations.length; i++) {\n AggregationFunctionDefinition[] aggrFunc = aggregations[i].getAggregationFunctions();\n if (aggrFunc == null)\n continue;\n for (... |
"public void answer(OutputStream output, StartStopListenerDelegate startStopListenerDelegate) throws IOException {\n this.output = output;\n long CLoverride = -2;\n if (lowRange != 0 || highRange != 0) {\n output(output, http10 ? HTTP_206_OK_10 : HTTP_206_OK);\n } else {\n if (soapaction != nu... |
"public static List filterProtocols(HandlerContext context) {\n FilterTreeEvent event = FilterTreeEvent.class.cast(context.getEventObject());\n List protocols = event.getChildObjects();\n ArrayList result = new ArrayList();\n if (protocols != null && protocols.size() > 0) {\n for (int i = 0; i < prot... |
"public static void main(String[] args) throws URISyntaxException {\n HashSet<URI> ProteinType = new HashSet<URI>();\n ProteinType.add(ComponentDefinition.PROTEIN);\n HashSet<URI> DNAType = new HashSet<URI>();\n DNAType.add(ComponentDefinition.DNA);\n HashSet<URI> RNAType = new HashSet<URI>();\n RNATy... |
"public static double pixelError(ImagePlus label, ImagePlus proposal) {\n if (label.getWidth() != proposal.getWidth() || label.getHeight() != proposal.getHeight() || label.getImageStackSize() != proposal.getImageStackSize()) {\n IJ.log(\"String_Node_Str\");\n return -1;\n }\n final ImageStack lab... |
"private void flushRecentWords() throws IOException {\n if (recentWords.isEmpty())\n return;\n openWordQueueWriter();\n Set<String> keySet = recentWords.keySet();\n ArrayList<String> list = new ArrayList<String>(keySet);\n Collections.sort(list);\n for (int i = 0; i < list.size(); i++) {\n ... |
"void ensureNotStartingBackground(ServiceRecord r) {\n if (mStartingBackground.remove(r)) {\n if (DEBUG_DELAYED_STATS)\n Slog.v(TAG, \"String_Node_Str\" + r);\n rescheduleDelayedStarts();\n }\n if (mDelayedStartList.remove(r)) {\n if (DEBUG_DELAYED_STATS)\n Slog.v(TAG... |
"private String getStackTraceInfo(Exception e) {\n StringBuffer sb = new StringBuffer();\n StackTraceElement[] stack = e.getStackTrace();\n for (StackTraceElement ste : stack) {\n appendLine(sb, \"String_Node_Str\" + ste.getClassName() + \"String_Node_Str\" + ste.getLineNumber() + \"String_Node_Str\" + ... |
"public void onModuleLoad() {\n singleton = this;\n topPanel.setWidth(\"String_Node_Str\");\n mailList = new MailList();\n mailList.setWidth(\"String_Node_Str\");\n rightPanel.add(mailList);\n rightPanel.add(mailDetail);\n mailList.setWidth(\"String_Node_Str\");\n mailDetail.setWidth(\"String_No... |
"public static int duplicateRight(HSSFSheet sheet, Block block, int n) {\n if (n > 0) {\n Set mergedRegions = new HashSet();\n Util.shiftCellsRight(sheet, block.getStartRowNum(), block.getEndRowNum(), (block.getEndCellNum() + 1), (block.getNumberOfColumns() * n), true);\n for (int rowNum = block... |
"public <T> Invoker<T> refer(final Class<T> type, final URL url) throws RpcException {\n try {\n GenericObjectPool.Config config = new GenericObjectPool.Config();\n config.testOnBorrow = url.getParameter(\"String_Node_Str\", true);\n config.testOnReturn = url.getParameter(\"String_Node_Str\", fa... |
"public SSHKeyPair registerSSHKeyPair(RegisterSSHKeyPairCmd cmd) {\n Account caller = CallContext.current().getCallingAccount();\n Account owner = _accountMgr.finalizeOwner(caller, cmd.getAccountName(), cmd.getDomainId(), cmd.getProjectId());\n SSHKeyPairVO s = _sshKeyPairDao.findByName(owner.getAccountId(), o... |
"protected void update() {\n Context context = getContext().getContext();\n if (context == null || context.config == null || context.handle == null) {\n reset();\n return;\n }\n root.setRedraw(false);\n ARXResult result = model.getResult();\n ARXNode node = model.getSelectedNode();\n ... |
"protected ParsedResult extract(String text, Date refDate, Matcher matcher, ChronoOptions options) {\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(refDate);\n if (matcher.group(2) == null && matcher.group(11) == null && matcher.group(6) == null)\n return null;\n ParsedResult result... |
"private void sendPasswordResetRelatedSMS(Study study, Phone phone, boolean includePhoneSignIn, SmsTemplate template) {\n String sptoken = getNextToken();\n CacheKey cacheKey = CacheKeys.passwordResetForPhone(sptoken, study.getIdentifier());\n cacheProvider.setObject(cacheKey, getPhoneString(phone), VERIFY_OR_... |
"public void compute() {\n graph.readLock();\n Set<Node> nodes = new HashSet<Node>();\n int nodeCount = 0;\n for (Node node : graph.getNodes()) {\n distances.put(node, Double.POSITIVE_INFINITY);\n nodes.add(node);\n nodeCount++;\n }\n distances.put(sourceNode, 0d);\n while (!no... |
"protected static RangerResourceMatcher createResourceMatcher(RangerResourceDef resourceDef, RangerPolicyResource resource) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"String_Node_Str\" + resourceDef + \"String_Node_Str\" + resource + \"String_Node_Str\");\n }\n RangerResourceMatcher ret = null;\n ... |
"public void createContent(String id, Element parent) {\n Document dom = parent.getOwnerDocument();\n if (ContentConstants.DOWNLOADEXTENSION_DATA.equals(id)) {\n Element tr = dom.createElement(\"String_Node_Str\");\n Element td = dom.createElement(\"String_Node_Str\");\n String style = \"Stri... |
"private void initOptions() {\n ConfigurableOption wrappingText = initializeWrappingText();\n ConfigurableOption chartDpi = new ConfigurableOption(CHART_DPI);\n chartDpi.setDisplayName(getMessage(\"String_Node_Str\"));\n chartDpi.setDataType(IConfigurableOption.DataType.INTEGER);\n chartDpi.setDisplayTyp... |
"public void firePageBreakEvent() {\n if (pageBreakListeners != null) {\n for (int i = 0; i < pageBreakListeners.size(); i++) {\n ((IPageBreakListener) pageBreakListeners.get(i)).onPageBreak(isHorizontalPageBreak);\n }\n }\n}\n"
|
"public WarpingResults[] simplePointWarp2dMT(double binaryThreshold, boolean calculateMismatchImage, int radius) {\n final ImageStack sourceSlices = originalLabels.getImageStack();\n final ImageStack targetSlices = proposedLabels.getImageStack();\n final ImageStack maskSlices = (null != mask) ? mask.getImageSt... |
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n Permanent sourceObject = game.getPermanentOrLKIBattlefield(source.getSourceId());\n if (controller != null && sourceObject != null) {\n UUID defendingPlayerId = game.getCombat().getDefend... |
"public String alter(final String streamName, final ColumnNameTypeList columns) {\n try {\n ssaw.api().alterStream(streamName, columns);\n return \"String_Node_Str\".concat(streamName).concat(\"String_Node_Str\");\n } catch (StratioEngineStatusException | StratioAPISecurityException | StratioEngineO... |
"public void readProfileWithValidArgumentThatDoesNotExistInPersistenceStore() throws PersistenceException {\n Profile profile = new Profile(100, \"String_Node_Str\", null, null, false, false, false, false, \"String_Node_Str\", false);\n profileDAO.create(profile);\n profile = profileDAO.read(101);\n assertT... |
"public Collection<QueryableEntry> call() throws Exception {\n MapContextQuerySupport mapContextQuerySupport = mapService.getMapServiceContext().getMapContextQuerySupport();\n return mapContextQuerySupport.queryOnPartition(name, predicate, partition);\n}\n"
|
"protected void build() {\n super.hierarchy = null;\n super.error = null;\n super.groupsizes = null;\n HierarchyBuilderRedactionBased<T> builder = getBuilder(false);\n try {\n super.groupsizes = builder.prepare(data);\n } catch (Exception e) {\n super.error = \"String_Node_Str\";\n ... |
"protected boolean hide(final Page<?> page) {\n if ((focusedPage == page) && (lastFocused != null)) {\n focus(lastFocused);\n lastFocused = focusedPage;\n }\n final PageAndHead widgets = getWidgets(page);\n if (widgets != null) {\n display.remove(widgets.pageWidget);\n page.setVi... |
"private void applyBackgroundHorizontalPositon(BackgroundInfo binfo, String xposition) {\n if (xposition.endsWith(\"String_Node_Str\")) {\n binfo.setBackgroundXPositionAbsolute(false);\n try {\n binfo.setBackgroundXPosition((int) Double.parseDouble(xposition.substring(0, xposition.length() -... |
"private CAstNode makeConstRead(CAstNode root, CAstNode receiver, CAstNode element, RewriteContext context, Map<Pair<CAstNode, NoKey>, CAstNode> nodeMap) {\n CAstNode get, result;\n String receiverTemp = TEMP_NAME + (readTempCounter++);\n String elt = (String) element.getValue();\n if (elt.equals(\"String_N... |
"public JavaAnnotation getAnnotation(JavaClass arg0) {\n if (arg0 != null && !isMetadataComplete) {\n Class annotationClass = ((JavaClassImpl) arg0).getJavaClass();\n Annotation anno = javaModelImpl.getAnnotationHelper().getAnnotation(getAnnotatedElement(), annotationClass);\n if (anno != null) ... |
"protected void onCreate(Bundle savedInstanceState) {\n initTheme();\n super.onCreate(savedInstanceState);\n initLayout();\n initToolbar();\n}\n"
|
"private int completeHeader(Map<String, OperationRequestHeader> headers, CommandContext ctx, ParsedCommandLine parsedCmd, String buffer, int cursor, List<String> candidates) {\n final OperationRequestHeader header = headers.get(parsedCmd.getLastHeaderName());\n if (header == null) {\n return -1;\n }\n ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.