content stringlengths 40 137k |
|---|
"public User getUserByName(String name) throws FtpException {\n Statement stmt = null;\n ResultSet rs = null;\n try {\n BaseUser user = selectUserByName(name);\n if (user != null) {\n user.setPassword(null);\n }\n return thisUser;\n } catch (SQLException ex) {\n ... |
"private static Path executeGS(Path input, Path output, String commandArguments) throws GhostscriptException, IOException, UnsupportedOperationException {\n String command = RodaCoreFactory.getRodaConfigurationAsString(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n command = command.replace(\"S... |
"private void addItemElements(List<RepositoryObject> elements) {\n if (elements == null || elements.isEmpty()) {\n return;\n }\n final Color redColor = Display.getDefault().getSystemColor(SWT.COLOR_RED);\n for (final RepositoryObject object : elements) {\n if (object.isDeleted()) {\n ... |
"public static void filterSmallObjectsAndHoles(FloatProcessor probabilityMap, double thresholdValue, int minSize) {\n ByteProcessor thresholded = threshold(probabilityMap, thresholdValue);\n Results res = connectedComponents(new ImagePlus(\"String_Node_Str\", thresholded), 4, minSize);\n ByteProcessor th = thr... |
"public Object unmarshallToMessage(String decodedExiString) {\n try {\n if (getInStream() != null)\n getInStream().reset();\n setInStream(new ByteArrayInputStream(decodedExiString.getBytes()));\n return getUnmarshaller().unmarshal(getInStream());\n } catch (IOException | JAXBExcept... |
"public void addChat(MetaContact contact) {\n OperationSetBasicInstantMessaging contactIMOperationSet = this.mainFrame.getProtocolIM(contact.getDefaultContact().getProtocolProvider());\n this.setCurrentChatPanel(new ChatPanel(this, contactIMOperationSet));\n this.currentChatPanel.addContactToChat(contact, stat... |
"public void onReceivePacket(ByteArrayDataInput data, EntityPlayer player, Object... extra) {\n ItemStack itemStack = (ItemStack) extra[0];\n this.setLink(itemStack, new Vector3(data.readInt(), data.readInt(), data.readInt()));\n if (ICBMExplosion.itemRadarGun instanceof ItemElectric)\n ((ItemElectric) ... |
"private static String formatDateColloquial(DateFields f) {\n String year = new Integer(f.year).toString();\n if (year.length() == 4) {\n year = year.substring(2, 4);\n }\n return intPad(f.day, 2) + \"String_Node_Str\" + intPad(f.month, 2) + \"String_Node_Str\" + year;\n}\n"
|
"private void addBeanInfoToClassInrospectionData(Map introspData, Class clazz, Map accessibleMethods) throws IntrospectionException {\n BeanInfo beanInfo = Introspector.getBeanInfo(clazz);\n PropertyDescriptor[] pda = beanInfo.getPropertyDescriptors();\n int pdaLength = pda != null ? pda.length : 0;\n for (... |
"private void parseInitialLine(String sb) throws ProtocolException, AbortException {\n int aStart;\n int aEnd;\n int bStart;\n int bEnd;\n int cStart;\n int cEnd;\n aStart = findNonWhitespace(sb, 0);\n aEnd = findWhitespace(sb, aStart);\n bStart = findNonWhitespace(sb, aEnd);\n bEnd = find... |
"private URL migrateUserProjectDir(URL oldPath, URL newPath) {\n if (oldPath.toExternalForm().equals(newPath.toExternalForm())) {\n return newPath;\n }\n if (NetUtil.isDirectory(oldPath)) {\n File oldDir = new File(oldPath.getFile());\n File newDir = new File(newPath.getFile());\n o... |
"public String[] getHosts() throws IOException {\n if (this.hostnames == null) {\n final String[] hadoopHostnames = blockLocation.getHosts();\n this.hostnames = new String[hadoopHostnames.length];\n for (int i = 0; i < hadoopHostnames.length; ++i) {\n this.hostnames[i] = stripHostname... |
"public static Map<String, Integer> loadOccCountsMap(Configuration config) {\n logger.info(\"String_Node_Str\");\n Stopwatch stopwatch = Stopwatch.createStarted();\n String fileName = config.getString(CONFIG_EDGE_COUNTS_FILE);\n Kryo kryo = KryoMap.getDefault();\n Input input;\n try {\n input =... |
"private boolean startDependency(List<ApplicationChildContext> applicationContexts, String instanceId) throws ParentMonitorNotFoundException {\n if (applicationContexts != null && applicationContexts.isEmpty()) {\n log.info(\"String_Node_Str\" + this.id);\n return false;\n }\n for (ApplicationChi... |
"private static char findPOrWCharToAppend(String phoneNumber, int currPwIndex, int nextNonPwCharIndex) {\n char c = phoneNumber.charAt(currPwIndex);\n char ret;\n ret = (isPause(c)) ? PhoneNumberUtils.PAUSE : PhoneNumberUtils.WAIT;\n if (nextNonPwCharIndex > (currPwIndex + 1)) {\n ret = PhoneNumberUt... |
"public Revocation revokePledge(LHProtos.Pledge proto, KeyParameter aesKey) throws InsufficientMoneyException {\n TransactionOutput stub;\n synchronized (this) {\n stub = pledges.inverse().get(proto);\n }\n checkArgument(stub != null, \"String_Node_Str\", proto);\n Transaction revocation = new Tra... |
"public void userExists(Integer errorCode, String userName, Callback userExistsCallback, Callback userNoExistsCallback) throws SecurityException, ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {\n String[] failParamTypes = { \"String_Node_Str\", \"String_Node_Str\", ... |
"private void doInstallIngressFlow(final CommandMessage message, String replyToTopic, Destination replyDestination) throws FlowCommandException {\n InstallIngressFlow command = (InstallIngressFlow) message.getData();\n logger.debug(\"String_Node_Str\", command);\n Long meterId = command.getMeterId();\n if (... |
"public void loadingComplete(Class<AvatarFactorySPI> clazz) {\n synchronized (loadingSet) {\n logger.info(\"String_Node_Str\" + clazz.getName());\n loadingSet.remove(clazz);\n if (loadingSet.isEmpty() == true) {\n setState(State.READY);\n }\n }\n}\n"
|
"public void testSendRequest_POST() {\n delayTestFinish(TEST_FINISH_DELAY);\n RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, getTestBaseURL() + \"String_Node_Str\");\n builder.sendRequest(\"String_Node_Str\", new RequestCallback() {\n\n public void onError(Request request, Throwabl... |
"public void onReceive(Context context, Intent intent) {\n if (intent.getAction() != null && intent.getAction().equals(BCAST_CONFIGCHANGED) && runningTask != null && launcherPackage != null) {\n Tools.HangarLog(\"String_Node_Str\" + runningTask.packageName + \"String_Node_Str\" + launcherPackage);\n if... |
"public String getTemplateString(PsiElement element) {\n return getStaticMethodPrefix(PRECONDITIONS, \"String_Node_Str\", element) + \"String_Node_Str\";\n}\n"
|
"public String maxResultsExpression() {\n return (overrides != null && overrides.containsKey(\"String_Node_Str\")) ? (String) overrides.get(\"String_Node_Str\") : \"String_Node_Str\";\n}\n"
|
"public boolean loadData() {\n BufferedReader brFile = GeneralManager.get().getResourceLoader().getResource(sFileName);\n GeneralManager.get().getLogger().log(new Status(Status.INFO, GeneralManager.PLUGIN_ID, \"String_Node_Str\" + sFileName + \"String_Node_Str\"));\n try {\n this.loadDataParseFile(brFil... |
"private void waitForStreamToBePopulated(final StreamManager streamManager, int numEvents) throws Exception {\n Tasks.waitFor(numEvents, new Callable<Integer>() {\n public Integer call() throws Exception {\n List<StreamEvent> streamEvents = streamManager.getEvents(0, Long.MAX_VALUE, Integer.MAX_VAL... |
"public static void init() {\n if (ProjectKorra.plugin.getConfig().getString(\"String_Node_Str\").equalsIgnoreCase(\"String_Node_Str\")) {\n sql = new MySQL(ProjectKorra.log, \"String_Node_Str\", host, port, user, pass, db);\n if (((MySQL) sql).open() == null) {\n ProjectKorra.log.severe(\"S... |
"public void onLocationChanged(Location loc) {\n if (loc.getProvider().equals(LocationManager.GPS_PROVIDER)) {\n isGpsAvailable = true;\n }\n if (isGpsAvailable && loc.getProvider().equals(LocationManager.NETWORK_PROVIDER)) {\n return;\n }\n long now = System.currentTimeMillis();\n doubl... |
"public void convertToProcessNode(ConnectionItem connectionItem, String tableName) throws ProcessorException {\n EDatabaseComponentName name = EDatabaseComponentName.getCorrespondingComponentName(connectionItem, ERepositoryObjectType.METADATA_CONNECTIONS);\n String componentName = null;\n componentName = name.... |
"protected void updateBackgroundImage() {\n BackgroundImageInfo bgi = boxStyle.getBackgroundImage();\n Image img = null;\n if (bgi != null) {\n if ((bgi.getXOffset() != 0 || bgi.getYOffset() != 0)) {\n String imageUrl = bgi.getUrl();\n try {\n img = Image.getInstance... |
"public void testClusterReconnectMultipleServerDueToHeartbeatNonSmartRouting() throws InterruptedException {\n factory.newInstances(null, 3);\n ClientConfig clientConfig = getNonSmartClientConfig();\n client = factory.newHazelcastClient(clientConfig);\n testListenersHeartbeatTimeoutToOwner();\n}\n"
|
"public void setResult(Object obj) {\n result = (obj == null) ? NULL : obj;\n}\n"
|
"public HighlightStatus getHighlightStatus() {\n if (isSelected()) {\n return HighlightStatus.IS_SELECTED;\n } else if (isSourceSelected() && isTargetSelected()) {\n return HighlightStatus.BOTH_SELECTED;\n } else if (isSourceSelected()) {\n return HighlightStatus.SOURCE_SELECTED;\n } el... |
"private Report executeOnRepresentation(IndexService index, ModelService model, StorageService storage, List<Representation> list, IndexedPreservationAgent agent) throws PluginException {\n List<String> newRepresentations = new ArrayList<String>();\n String aipId = null;\n Report report = PluginHelper.createPl... |
"public void map(PactRecord record, Collector out) throws Exception {\n inputTuple = record.getField(1, inputTuple);\n inputTuple.project((0 << 0) | (1 << 1) | (0 << 2) | (1 << 3) | (0 << 4));\n record.setField(1, inputTuple);\n out.collect(record);\n}\n"
|
"private String getLastNumb(String expStr) {\n String[] strA = expStr.split(regexAnyValidOperator);\n if (strA.length == 0)\n return \"String_Node_Str\";\n else {\n if (expStr.matches(\"String_Node_Str\" + regexAnyValidOperator + regexAnyValidOperator + regexGroupedNumber))\n return ex... |
"private void morphProgressToIdle() {\n MorphingAnimation animation = createProgressMorphing(getHeight(), mCornerRadius, getHeight(), getWidth());\n animation.setFromColor(mColorProgress);\n animation.setToColor(mColorIdle);\n animation.setFromStrokeColor(mColorIndicator);\n animation.setToStrokeColor(mC... |
"public ArtifactOrigin getSavedArtifactOrigin(File cache, Artifact artifact) {\n PropertiesFile cdf = getCachedDataFile(cache, artifact.getModuleRevisionId());\n String location = cdf.getProperty(\"String_Node_Str\" + artifact.getName() + \"String_Node_Str\" + artifact.getExt() + \"String_Node_Str\");\n boolea... |
"public void buildEnvVars(AbstractBuild<?, ?> build, Map<String, String> env) {\n super.buildEnvVars(build, env);\n LOGGER.fine(\"String_Node_Str\");\n IntegrityConfigurable ic = ((DescriptorImpl) this.getDescriptor()).getConfiguration(serverConfig);\n env.put(\"String_Node_Str\", IntegrityCheckpointAction.... |
"public void loadNBTData(NBTTagCompound compound) {\n NBTTagCompound properties = compound.getCompoundTag(PROP_NAME);\n hasMigrated = properties.getBoolean(\"String_Node_Str\");\n if (!hasMigrated && !player.worldObj.isRemote) {\n if (Transmutation.hasLegacyData(player)) {\n properties = Tran... |
"public List<KnowledgeBaseInfo> getKnowledgeBaseInfos() {\n synchronized (knowledgeBaseInfos) {\n List<KnowledgeBaseInfo> copy = new ArrayList<KnowledgeBaseInfo>(knowledgeBaseInfos.size());\n for (KnowledgeBaseInfo knowledgeBaseInfo : knowledgeBaseInfos) {\n copy.add(knowledgeBaseInfo);\n ... |
"public static String toString(InputStream is) {\n java.util.Scanner s = new java.util.Scanner(is, \"String_Node_Str\").useDelimiter(\"String_Node_Str\");\n return s.hasNext() ? s.next() : \"String_Node_Str\";\n}\n"
|
"private void deleteContainer(File container) {\n if (isContainer(container))\n container.delete();\n }\n}\n"
|
"public static Var fetchValueOf(Block block, List<? super Instruction> instBuffer, Var var, String valName, boolean recursive, boolean acquireWrite) {\n Type valueT = Types.retrievedType(var, recursive);\n if (Types.isPrimUpdateable(var)) {\n Var value_v = createValueVar(valName, valueT, var);\n blo... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);\n setContentView(R.layout.activity_piechart);\n tvX = (TextView) findViewById(R.id.tvXMax);\n tvY = (... |
"public static void main(String[] args) {\n String input = args[0];\n String clusters = args[1];\n String output = args[2];\n String measureClass = args[3];\n String convergenceDelta = args[4];\n String maxIterations = args[5];\n runJob(input, clusters, output, measureClass, convergenceDelta, maxIt... |
"private void getSAPCommand(CompoundCommand cc, IRepositoryViewObject object, ConnectionItem connectionItem, MetadataTable table, Node node) {\n SAPFunctionUnit functionUnit = null;\n if (object instanceof MetadataTableRepositoryObject) {\n IElementParameter schemaParam = node.getElementParameterFromField(... |
"public void run() {\n LOG.info(\"String_Node_Str\");\n Future<Service.State> completion = Services.getCompletionFuture(service);\n service.startAndWait();\n int port = service.getBindAddress().getPort();\n Cancellable contextCancellable = getContext().announce(name, port);\n LOG.info(\"String_Node_St... |
"private Integer getSizeThreshold(double riskThreshold) {\n double size = 1d / riskThreshold;\n double floor = Math.floor(size);\n if ((1d / floor) - (1d / size) >= 0.01d * highestRisk) {\n floor += 1d;\n }\n return (int) floor;\n}\n"
|
"public static ProcessedAndroidData processBinaryDataFrom(RuleContext ruleContext, StampedAndroidManifest manifest, boolean conditionalKeepRules) throws RuleErrorException, InterruptedException {\n if (conditionalKeepRules && AndroidAaptVersion.chooseTargetAaptVersion(ruleContext) != AndroidAaptVersion.AAPT2) {\n ... |
"public boolean destroy(boolean doExplosion) {\n if (doExplosion) {\n this.worldObj.createExplosion(null, this.xCoord, this.yCoord, this.zCoord, 2f, true);\n }\n if (!this.worldObj.isRemote) {\n this.getBlockType().dropBlockAsItem(this.worldObj, this.xCoord, this.yCoord, this.zCoord, this.getBloc... |
"public void testD1() throws Exception {\n if (!isApplicable()) {\n return;\n }\n String mdx = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n Result result = getTestContext().executeQuery(mdx);... |
"public static void processObligationMessage(ObligationStatusMessage message, final ProverJob proverJob) {\n if (message.getStatus().equals(TO_BE_PROVED)) {\n if (proverJob.noToBeProved) {\n System.out.println(\"String_Node_Str\" + System.currentTimeMillis());\n proverJob.noToBeProved = ... |
"public ImmutableList<? extends IMergeViewerItem> getItems() {\n Object thisSideValue = getValue(getSide());\n if (thisSideValue == null && getSide() == MergeViewerSide.ANCESTOR) {\n return ImmutableList.of();\n }\n Object leftValue = getValue(MergeViewerSide.LEFT);\n Object rightValue = getValue(... |
"public Object getValue(String path) {\n if (!path.contains(pathSeparator)) {\n Object val = root.get(path);\n if (val == null) {\n return null;\n }\n return val;\n }\n String[] parts = path.split(pathSeperator);\n Map<String, Object> node = root;\n for (int i = 0; ... |
"public boolean moveToZone(Zone toZone, UUID sourceId, Game game, boolean flag, ArrayList<UUID> appliedEffects) {\n Zone fromZone = game.getState().getZone(objectId);\n ZoneChangeEvent event = new ZoneChangeEvent(this.objectId, sourceId, ownerId, fromZone, toZone, appliedEffects);\n ZoneChangeInfo zoneChangeIn... |
"private void createNodes() {\n linearizedNodes.clear();\n branchNodes.clear();\n branchNodesToLinearizedNodesMap.clear();\n linearizedNodesToIncomingBranchSummaryNodesMap.clear();\n linearizedNodesToOutgoingBranchSummaryNodesMap.clear();\n createNodesForList(linearizedNodes, path);\n for (int i = ... |
"public void dump(Printer pw, String prefix) {\n super.dumpFront(pw, prefix);\n if (className != null) {\n pw.println(prefix + \"String_Node_Str\" + className);\n }\n if (permission != null) {\n pw.println(prefix + \"String_Node_Str\" + permission);\n }\n pw.println(prefix + \"String_Nod... |
"protected static void addPlace(Element context, List<Place> places, XPath xpath, Globe globe) {\n Place place = new Place();\n places.add(place);\n place.setExcludeFromPlaylist(XMLUtil.getBoolean(context, \"String_Node_Str\", place.isExcludeFromPlaylist(), xpath));\n place.setLabel(XMLUtil.getText(context,... |
"public static void setDefaultTheme(DesignElementHandle elementHandle) {\n if (elementHandle instanceof ReportItemHandle && hasDefaultLibrary(elementHandle.getModuleHandle())) {\n ReportItemHandle reportItemHandle = (ReportItemHandle) elementHandle;\n PropertyHandle propertyHandle = reportItemHandle.ge... |
"public void onClick(View v) {\n boolean isCollapsed = INLINE_TILE_COLLAPSED.equals(holder.getTag());\n if (isCollapsed) {\n expandInlineTile(activity, holder, tileData, inlineDetail);\n } else {\n collapsePersistentCaseTile(activity);\n }\n}\n"
|
"protected QName loadRef() {\n TypeDeclaration declaration = null;\n String elementDeclaration;\n try {\n if ((xmlElementRef != null) && (xmlElementRef.type() != XmlElementRef.DEFAULT.class)) {\n Class typeClass = xmlElementRef.type();\n elementDeclaration = typeClass.getName();\n ... |
"private void run(AtomicBoolean stop) throws InterruptedException, ExecutionException {\n while (!stop.get()) {\n for (int i = 0; i < COUNT; i++) {\n assertEquals(i, Bytes.toInt(CONN.getRawTable(TABLE_NAME).get(new Get(Bytes.toBytes(String.format(\"String_Node_Str\", i)))).get().getValue(FAMILY, QU... |
"protected boolean onGraphOverlayTouchEvent(MotionEvent _Event) {\n super.onGraphOverlayTouchEvent(_Event);\n float newX = _Event.getX();\n float newY = _Event.getY();\n switch(_Event.getAction()) {\n case MotionEvent.ACTION_DOWN:\n return true;\n case MotionEvent.ACTION_MOVE:\n ... |
"private void populateLegacyAPIEntry(JSONObject json, EGRecord record) throws Exception {\n Date date = DATE_FORMAT.parse(record.getDisplayTime().toString());\n json.put(\"String_Node_Str\", \"String_Node_Str\");\n json.put(\"String_Node_Str\", record.getDisplayTime().getTime());\n json.put(\"String_Node_St... |
"public Type getResultType(Validator validator, Exp[] args) {\n if (args.length == 0) {\n Dimension defaultTimeDimension = validator.getQuery().getCube().getTimeDimension();\n if (defaultTimeDimension == null) {\n throw MondrianResource.instance().NoTimeDimensionInCube.ex(getName());\n ... |
"protected void onSaveInstanceState(Bundle outState) {\n outState = mDrawerResult.saveInstanceState(outState);\n super.onSaveInstanceState(outState);\n}\n"
|
"public void testPopulateModulesWithAnalysisManager() {\n TmfAnalysisManager.initialize();\n Map<String, IAnalysisModuleHelper> modules = TmfAnalysisManager.getAnalysisModules();\n assertFalse(findStateSystemModule(modules.values()));\n File testXmlFile = TmfXmlTestFiles.VALID_FILE.getFile();\n if ((test... |
"public void test() {\n try {\n mapping.writeFromObjectIntoRowWithChangeRecord(changeRecord, new org.eclipse.persistence.sessions.DatabaseRecord(), (AbstractSession) getSession(), WriteType.UNDEFINED);\n } catch (EclipseLinkException exception) {\n caughtException = exception;\n }\n}\n"
|
"public void testOneRelation() throws Exception {\n LineageDataset lineageDataset = getLineageDataset(\"String_Node_Str\");\n Assert.assertNotNull(lineageDataset);\n RunId runId = RunIds.generate(10000);\n Id.DatasetInstance datasetInstance = Id.DatasetInstance.from(\"String_Node_Str\", \"String_Node_Str\")... |
"public void renderEnderman(IEndermanRenderer entity, double x, double y, double z, float yaw, float partialTickTime) {\n endermanModel.isCarrying = entity.isCarrying();\n endermanModel.isAttacking = entity.isScreaming();\n if (entity.isScreaming()) {\n double spazzAmount = 0.02D;\n x += rand.nex... |
"public static List getDataSets() {\n return SessionHandleAdapter.getInstance().getReportDesignHandle().getVisibleDataSets();\n}\n"
|
"public void testImportWrongType() throws Exception {\n final ServerConfiguration configuration = new ServerConfiguration();\n HttpServer server = new HttpServer(configuration, new SimpleUrlMatcher() {\n {\n put(\"String_Node_Str\", new ImportHandler(factory));\n }\n });\n server.st... |
"private static void writeTerminatorBlock(final OutputStream out, final SAMFormat samOutputFormat) throws IOException {\n if (SAMFormat.CRAM == samOutputFormat) {\n CramIO.issueEOF(CramVersions.DEFAULT_CRAM_VERSION, out);\n } else if (SAMFormat.BAM == samOutputFormat) {\n out.write(BlockCompressedSt... |
"public void setAlpha(int alpha) {\n if (mVectorState.mVPathRenderer.getRootAlpha() != alpha) {\n mVectorState.mVPathRenderer.setRootAlpha(alpha);\n invalidateSelf();\n }\n}\n"
|
"public void updateLocalLightDirectionGrid(ProgressIndicator progressIndicator) {\n if (localLightAzimuth) {\n if (maxBranchLenghtsGrid == null) {\n updateMaxBranchLengthGrid(progressIndicator);\n }\n GridMinMaxOperator minMaxOp = new GridMinMaxOperator();\n minMaxOp.setProgres... |
"protected static CQLStatement makeCQLforDeleteUUIDFromIndex(CDefinition def, CIndex index, UUID uuid, Map<String, Object> indexValues, Long timestamp) {\n List values = Lists.newArrayList(uuid, Long.valueOf(index.getShardingStrategy().getShardKey(uuid)));\n CQLStatement wheres = makeAndedEqualList(def, indexValu... |
"protected boolean build() {\n if (!initRooms()) {\n return false;\n }\n int distance;\n int retry = 0;\n int minDistance = (int) Math.sqrt(rooms.size());\n do {\n do {\n roomEntrance = Random.element(rooms);\n } while (roomEntrance.width() < 4 || roomEntrance.height() ... |
"public String getPlanSQL(boolean isJoin) {\n StringBuilder buff = new StringBuilder();\n if (isJoin) {\n if (joinOuter) {\n buff.append(\"String_Node_Str\");\n } else {\n buff.append(\"String_Node_Str\");\n }\n }\n if (nestedJoin != null) {\n StringBuffer b... |
"protected void onPostExecute(List<SearchField> fields) {\n if (getActivity() == null) {\n return;\n }\n progress(false);\n if (fields != null) {\n SearchFragment.this.fields = fields;\n buildSearchForm(savedState != null ? OpacClient.bundleToMap(savedState) : saveQuery());\n sav... |
"public void setRunClientType(ClientType aValue) {\n ClientType oldValue = getRunClientType();\n if (aValue != null) {\n projectPrivateProperties.setProperty(CLIENT_TYPE_KEY, aValue.getId());\n } else {\n projectPrivateProperties.remove(CLIENT_TYPE_KEY);\n }\n projectPrivatePropertiesIsDirt... |
"public void onPlayerDeath(PlayerDeathEvent event) {\n final Player currentPlayer = event.getEntity();\n FPlayer currentFPlayer = FPlayers.i.get(currentPlayer);\n if (Utilities.isWarZone(Board.getFactionAt(currentPlayer.getLocation()))) {\n if (!FactionsPlus.permission.has(currentPlayer, \"String_Node_S... |
"public void onEntityDeath(final EntityDeathEvent event) {\n if (MyPetConfiguration.USE_LEVEL_SYSTEM) {\n if (!MyPetExperience.GAIN_EXP_FROM_MONSTER_SPAWNER_MOBS && event.getEntity().hasMetadata(\"String_Node_Str\")) {\n for (MetadataValue value : event.getEntity().getMetadata(\"String_Node_Str\"))... |
"public boolean isAnonymous(HashGroupifyEntry entry) {\n throw new RuntimeException(\"String_Node_Str\");\n}\n"
|
"public Future<RpcResult<Void>> putServiceFunctionChains(PutServiceFunctionChainsInput input) {\n printTraceStart(LOG);\n ServiceFunctionChainsBuilder builder = new ServiceFunctionChainsBuilder();\n builder = builder.setServiceFunctionChain(input.getServiceFunctionChain());\n ServiceFunctionChains sfcs = bu... |
"public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n ArrayList<String> xVals = new ArrayList<String>();\n for (int i = 0; i < mSeekBarX.getProgress(); i++) {\n xVals.add((i) + \"String_Node_Str\");\n }\n ArrayList<Series> yVals1 = new ArrayList<Series>();\n for (int ... |
"public void keyPressed(KeyEvent event) {\n if (currentRow == -1 || currentColumn == -1)\n return;\n if (event.getKeyCode() == KeyEvent.VK_BACK_SPACE) {\n GlobalShortcutEntry en = GlobalShortcutConfigForm.this.tableModel.getEntryAt(currentRow);\n List<AWTKeyStroke> kss = new ArrayList<AWTKeyS... |
"public String toString() {\n StringBuilder result = new StringBuilder(200);\n result.append('[');\n boolean first = true;\n for (RecommendedItem item : recommended) {\n if (first) {\n first = false;\n } else {\n result.append(',');\n }\n result.append(Strin... |
"public void setExpansionDisabled(boolean expansionDisabled) {\n if (expansionDisabled != mExpansionDisabled) {\n final boolean wasExpanded = isExpanded();\n mExpansionDisabled = expansionDisabled;\n logExpansionEvent(false, wasExpanded);\n if (wasExpanded != isExpanded()) {\n ... |
"private Alarm findAlarm(String tenantId, String alarmId, Handle h) {\n final String sql = String.format(FIND_ALARM_BY_ID_SQL, \"String_Node_Str\", \"String_Node_Str\");\n final List<Map<String, Object>> rows = h.createQuery(sql).bind(\"String_Node_Str\", alarmId).bind(\"String_Node_Str\", tenantId).list();\n ... |
"public Map<String, ContainerService> getLocalServiceMap(PsiElement psiElement) {\n Map<String, ContainerService> services = new HashMap<String, ContainerService>();\n YAMLDocument yamlDocument = PsiTreeUtil.getChildOfType(psiFile, YAMLDocument.class);\n if (yamlDocument == null) {\n return services;\n ... |
"public int hashCode() {\n return 127 * (\"String_Node_Str\".hashCode() ^ setName.hashCode()) + 127 * (\"String_Node_Str\".hashCode() ^ uniqueId) + 127 * (\"String_Node_Str\".hashCode() ^ type.hashCode());\n}\n"
|
"public ChannelFuture answer(HttpResponse output, MessageEvent event, final boolean close, final StartStopListenerDelegate startStopListenerDelegate) throws IOException {\n ChannelFuture future = null;\n long CLoverride = -2;\n StringBuilder response = new StringBuilder();\n DLNAResource dlna = null;\n b... |
"public SectorGeometryList tessellate(DrawContext dc) {\n SectorGeometryList sgl = super.tessellate(dc);\n int count = 0;\n minElevation = Double.MAX_VALUE;\n maxElevation = -Double.MAX_VALUE;\n for (SectorGeometry sg : sgl) {\n RectTile tile = (RectTile) sg;\n RenderInfo ri = (RenderInfo) ... |
"public void afterAll(ExtensionContext context) {\n if (savePointForTestClass != null && isRegularTestClass(context)) {\n savePointForTestClass.rollback();\n savePointForTestClass = null;\n clearFieldTypeRedefinitions();\n TestRun.setCurrentTestClass(null);\n }\n}\n"
|
"void stop() throws IOException {\n synchronized (inputDataSources) {\n if (started <= 0)\n return;\n started--;\n if (started == 0)\n for (InputDataSourceDesc inputDataSourceDesc : inputDataSources) inputDataSourceDesc.stop();\n }\n}\n"
|
"public RepeatStatus executeStep(ChunkContext chunkContext, JobExecutionStatusHolder jobExecutionStatusHolder) throws Exception {\n String clusterName = getJobParameters(chunkContext).getString(JobConstants.CLUSTER_NAME_JOB_PARAM);\n if (clusterName == null) {\n clusterName = getJobParameters(chunkContext)... |
"public static void process(Throwable ex, Priority priority) {\n CommonExceptionHandler.process(ex, priority);\n if (priority == Level.FATAL && !CommonsPlugin.isHeadless()) {\n ExceptionService service = CommonsPlugin.getDefault().getExceptionService();\n if (service != null) {\n service.... |
"public static void handleApplicationInstanceTerminatedEvent(String appId, String instanceId) {\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + appId);\n }\n Applications applications = ApplicationHolder.getApplications();\n if (!applications.applicationExists(appId)) {\n log.w... |
"protected void _startContainer(IContent container) throws BirtException {\n boolean isInline = PropertyUtil.isInlineElement(container);\n if (isInline) {\n if (!unfinishedContents.isEmpty() && container.getParent() == unfinishedContents.peek()) {\n IContent parent = unfinishedContents.poll();\n... |
"public static void createVersion2(Connection conn, Integer currentVersion) {\n if (currentVersion < 2) {\n StringBuilder createVersionTable = new StringBuilder();\n createVersionTable.append(\"String_Node_Str\");\n createVersionTable.append(\"String_Node_Str\");\n createVersionTable.appe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.