content stringlengths 40 137k |
|---|
"public Plant couch(int pos) {\n try {\n if (level.heroFOV != null && level.heroFOV[pos]) {\n Sample.INSTANCE.play(Assets.SND_PLANT);\n }\n Plant plant = plantClass.newInstance();\n plant.pos = pos;\n return plant;\n } catch (Exception e) {\n ShatteredPixelDung... |
"protected IAction createActionHandler(ISelection model) {\n Object target = null;\n if (model instanceof IStructuredSelection) {\n target = ((IStructuredSelection) model).getFirstElement();\n }\n PasteAction action = new PasteAction(target);\n setEnabled(action.isEnabled());\n return action;\n... |
"public List<Map<K, Object>> findErrorValuesByFilter(long beginTime, long endTime, boolean serverSide, int aggregationPeriod, Long errorId, String filter, Map<String, List<String>> filters) {\n final List<String> errorKeys = KeyGeneratorUtil.generateErrorValuesKeys(serverSide, filters, filter);\n Map<K, Map<Long,... |
"private char[] getContent() throws YangModelException {\n try (JarFile file = new JarFile(getParent().getPath().toFile())) {\n ZipEntry entry = file.getEntry(path.toString());\n InputStreamReader in = new InputStreamReader(file.getInputStream(entry), \"String_Node_Str\");\n CharArrayWriter out ... |
"public Pointcut maybeGetParsedPointcut() {\n if (expr instanceof FalseLiteral) {\n return IfPointcut.makeIfFalsePointcut(Pointcut.SYMBOLIC);\n } else if (expr instanceof TrueLiteral) {\n return IfPointcut.makeIfTruePointcut(Pointcut.SYMBOLIC);\n } else {\n pointcut = new IfPointcut(new Re... |
"private void init() {\n JedisPoolConfig config = new JedisPoolConfig();\n config.setMaxIdle(10);\n config.setMaxTotal(300);\n config.setMaxWaitMillis(10000);\n config.setTestOnBorrow(true);\n config.setTestOnReturn(true);\n RedisClusterConfiguration redisClusterConfiguration = new RedisClusterConf... |
"private void sendToJoined(Player player) {\n playerManager.getOnlinePlayers().forEach(onlinePlayer -> {\n if (onlinePlayer == player) {\n return;\n }\n Entity entity = onlinePlayer.getEntity();\n Location location = entity.getLocation();\n SpawnPlayerPacket spawnPlayerP... |
"public Object getValue(String exprName) throws BirtException {\n checkStarted();\n logger.logp(Level.FINE, ResultIterator.class.getName(), \"String_Node_Str\", \"String_Node_Str\" + LogUtil.toString(exprName));\n if (this.resultService.getBaseExpression(exprName) == null && this.resultService.getAutoBindingEx... |
"public void testBuildUserDataEc2() throws IOException {\n String expectedScript = FileReaderUtils.readFileFromClasspath(\"String_Node_Str\");\n Map<String, String> map = new HashMap<>();\n map.put(\"String_Node_Str\", \"String_Node_Str\");\n map.put(\"String_Node_Str\", \"String_Node_Str\");\n Assert.as... |
"public static URL computePURootURL(URL pxmlURL, String descriptorLocation) throws IOException, URISyntaxException {\n StringTokenizer tokenizer = new StringTokenizer(descriptorLocation, \"String_Node_Str\");\n int descriptorDepth = tokenizer.countTokens() - 1;\n URL result;\n String protocol = pxmlURL.getP... |
"protected boolean checkPageBreak() throws BirtException {\n boolean ret = false;\n if (!isInInlineStacking && context.isAutoPageBreak()) {\n int aHeight = getAllocatedHeight();\n while (aHeight + parent.getAbsoluteBP() - 3000 > context.getMaxBP()) {\n parent.autoPageBreak();\n ... |
"public Collection<DBFileMetaData> getAllSnapshotFiles() {\n List<DBFileMetaData> result = new Vector<DBFileMetaData>();\n for (DatabaseProxy db : dbMan.getDatabaseListNonblocking()) {\n result.addAll(db.getLSMDB().getLastestSnapshotFiles());\n }\n return result;\n}\n"
|
"void onRow(Row4Aggregation row) throws IOException, DataException {\n if (currentResultObj == null) {\n newAggregationResultRow(row);\n } else {\n if (currentResultObj.getLevelMembers() == null || compare(row.getLevelMembers(), currentResultObj.getLevelMembers()) == 0) {\n if (accumulato... |
"public WishlistDataCursor queryWishlistData(long wd_id, long item_id, String path) {\n String[] wdColumns = null;\n String wdSelection = \"String_Node_Str\" + S.COLUMN_WISHLIST_DATA_WISHLIST_ID + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + S.COLUMN_WISHLIST_DATA_ITEM_ID + \"String_Node_Str\... |
"public void pushUniqueActorDeclaration(String actorName) throws PtalonScopeException {\n if (_currentActorTree == null) {\n _currentActorTree = new ActorTree(null, actorName);\n _trees.add(_currentActorTree);\n } else {\n _currentTree = _currentTree.addChild(actorName);\n }\n}\n"
|
"public void event(Event event) {\n if (event.getEventName().equals(\"String_Node_Str\")) {\n SimpleCardView source = (SimpleCardView) event.getSource();\n DraftPickView view = SessionHandler.sendCardPick(draftId, source.getId(), cardsHidden);\n if (view != null) {\n loadCardsToPicked... |
"public void run() {\n try {\n if (shouldConnect) {\n log.info(\"String_Node_Str\" + peer);\n peer.connect();\n }\n synchronized (PeerGroup.this) {\n if (!running) {\n peer.disconnect();\n return;\n }\n peers.ad... |
"public void evaluate_shouldReturnRelationshipsByAorB() throws Exception {\n EvaluationContext context = new EvaluationContext();\n context.setBaseCohort(new Cohort(\"String_Node_Str\"));\n RelationshipsForPersonDataDefinition d = new RelationshipsForPersonDataDefinition();\n d.setRelationshipTypes(Arrays.a... |
"public void run() {\n ChunkStore chunkStore = storageManager.loadChunkStore(getPosition());\n ChunkImpl chunk = chunkStore.getChunk();\n try {\n chunk.lock();\n if (nearCache.putIfAbsent(getPosition(), chunkStore.getChunk()) != null) {\n logger.warn(\"String_Node_Str\", getPosition())... |
"public PsiElement resolve() {\n String localName = myElement.getLocalName();\n String nsUri = myElement.getNamespace();\n Module m = ModuleUtil.findModuleForPsiElement(myElement);\n if (m == null)\n return null;\n PsiManager psiManager = PsiManager.getInstance(myElement.getProject());\n String... |
"public void addCommonMasterVertexContext(CommonVertexMasterContextWrapper commonVertexMasterContextWrapper) {\n context.put(\"String_Node_Str\", commonVertexMasterContextWrapper.getSuperstepNoWrapper());\n context.put(\"String_Node_Str\", commonVertexMasterContextWrapper.getTotalNumVerticesWrapper());\n conte... |
"public void readFromSeqFiles(Path path) throws IOException {\n Configuration config = new Configuration();\n List<Cluster> clusters = Lists.newArrayList();\n for (ClusterWritable cw : new SequenceFileDirValueIterable<ClusterWritable>(path, PathType.LIST, PathFilters.logsCRCFilter(), config)) {\n Cluste... |
"public static List<File> getCacheDirs(Context context) {\n final ArrayList<File> dirs = new ArrayList<>();\n dirs.add(context.getCacheDir());\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n Collections.addAll(dirs, context.getExternalCacheDirs());\n } else {\n File extDir = con... |
"static Loader createLoader(URL url) {\n try {\n String file = url.getFile();\n if (file != null && file.endsWith(\"String_Node_Str\")) {\n if (\"String_Node_Str\".equals(url.getProtocol())) {\n return new FileLoader(url);\n }\n return new UrlLoader(url);... |
"private void initFileContent() {\n if (getConnection().getJSONFilePath() == null || \"String_Node_Str\".equals(getConnection().getJSONFilePath())) {\n return;\n }\n byte[] bytes = getConnection().getFileContent();\n Project project = ProjectManager.getInstance().getCurrentProject();\n IProject fs... |
"public void processPacket(Packet packet) {\n RosterPacket rosterPacket = (RosterPacket) packet;\n for (Iterator i = rosterPacket.getRosterItems(); i.hasNext(); ) {\n RosterPacket.Item item = (RosterPacket.Item) i.next();\n RosterEntry entry = new RosterEntry(item.getUser(), item.getName(), item.get... |
"protected void createMuleApp(final File app) throws MojoExecutionException, ArchiverException {\n validateProject();\n MuleArchiver archiver = new MuleArchiver(prependGroupId);\n addAppDirectory(archiver);\n addCompiledClasses(archiver);\n addDependencies(archiver);\n archiver.setDestFile(app);\n ... |
"public static void sendLocalMessage(BungeeChatContext context) throws InvalidContextError {\n context.require(BungeeChatContext.HAS_SENDER, BungeeChatContext.HAS_MESSAGE);\n Optional<BungeeChatAccount> account = context.getSender();\n Optional<String> finalMessage = preProcessMessage(context, Format.LOCAL_CHA... |
"private List<String> columnHeaderForColumnSet(SimpleStatIndicator simpInd) {\n List<String> columnElementList = new ArrayList<String>();\n if (simpInd.getAnalyzedColumns().size() == 0) {\n return columnElementList;\n }\n TdXmlElementType tdXmeElement = null;\n if (DrillDownUtils.judgeMenuType(thi... |
"public void testCase1() {\n final ExecutionTime et = ExecutionTime.forCron(parser.parse(\"String_Node_Str\"));\n final Optional<ZonedDateTime> lastExecution = et.lastExecution(currentDateTime);\n if (lastExecution.isPresent()) {\n final ZonedDateTime actual = lastExecution.get();\n final ZonedDa... |
"public void securityBreak() {\n worldObj.func_147480_a(xCoord, yCoord, zCoord, true);\n disableDrops();\n}\n"
|
"public void onEvent(PagingEvent event) {\n if (inPagingMold()) {\n if (WebApps.getFeature(\"String_Node_Str\") && getModel() != null) {\n if (_rodPagingIndex == null)\n _rodPagingIndex = new LinkedList<Integer>();\n int ap = event.getActivePage();\n int size = ... |
"public static void registerKurentoServletContextListener(ServletContext ctx) {\n if (ctx.getAttribute(KURENTO_SERVLET_CONTEXT_LISTENER_ATTRIBUTE_NAME) != null) {\n log.info(\"String_Node_Str\");\n return;\n }\n ctx.setAttribute(KURENTO_SERVLET_CONTEXT_LISTENER_ATTRIBUTE_NAME, \"String_Node_Str\"... |
"public void widgetSelected(SelectionEvent e) {\n boolean needUpdateModel = false;\n Object oSelected = e.getSource();\n if (oSelected.getClass().equals(Button.class)) {\n needUpdateModel = true;\n if (oSelected.equals(cbOrientation)) {\n if (cbOrientation.getSelection()) {\n ... |
"public void insertRow(int rowNumber, int parentRowNumber) throws SemanticException {\n transStar(TRANS_LABEL_INSERT_ROW);\n Assert.isLegal(rowNumber != 0);\n int realRowNumber = rowNumber > 0 ? parentRowNumber + rowNumber : parentRowNumber + rowNumber + 1;\n int shiftPos = rowNumber > 0 ? rowNumber : rowNu... |
"public boolean finalizeCommandsOnStart(Commands cmds, VirtualMachineProfile<SecondaryStorageVmVO> profile) {\n NicProfile managementNic = null;\n NicProfile controlNic = null;\n for (NicProfile nic : profile.getNics()) {\n if (nic.getTrafficType() == TrafficType.Management) {\n managementNic... |
"public ST codegen() {\n ST expr = CodeGen.expr();\n expr.add(\"String_Node_Str\", \"String_Node_Str\" + codeStr(arg) + \"String_Node_Str\");\n return expr;\n}\n"
|
"private double trigramForURLLabel(String candidateURL, String label, String nodeType) {\n List<Triple> labelOfCandidate = rdfsLabelIndex.getLabelForURI(candidateURL);\n if (labelOfCandidate.isEmpty()) {\n return 0;\n }\n HashSet<String> union = new HashSet<String>();\n double sim = 0;\n if (!n... |
"public static String durationToString(final Integer duration) {\n if (duration == null) {\n return ERROR_STRING_VALUE;\n }\n long longValueFromDuration = duration.longValue();\n long hours = longValueFromDuration / 3600;\n long minutes = longValueFromDuration % 3600 / 60;\n long seconds = long... |
"public boolean isChangesRequiresResponseDeletion(FeedbackQuestionDetails newDetails) {\n FeedbackRubricQuestionDetails newRubricDetails = (FeedbackRubricQuestionDetails) newDetails;\n if (this.numOfRubricChoices != newRubricDetails.numOfRubricChoices || this.rubricChoices.containsAll(newRubricDetails.rubricChoic... |
"public void testGetChampion() throws Exception {\n try {\n handler.getChampion(1, ChampData.ALL).get(1, MINUTES);\n } catch (RequestException ex) {\n if (isNotServerside(ex))\n throw ex;\n }\n}\n"
|
"protected void read(DataInputStream inputStream) throws IOException, ClassFormatException {\n byte tag;\n this.size = inputStream.readUnsignedShort();\n this.constantPool = new Constant[this.size];\n for (int i = 1; i < this.size; i++) {\n this.constantPool[i] = Constant.readConstant(inputStream);\n... |
"private Vector3f calcBlockPos(Vector3f pos, Vector3f chunkPos) {\n if (pos != null && chunkPos != null) {\n return new Vector3f(pos.x - (chunkPos.x * Chunk.chunkDimensions.x), pos.y - (chunkPos.y * Chunk.chunkDimensions.y), pos.z - (chunkPos.z * Chunk.chunkDimensions.z));\n }\n return null;\n}\n"
|
"public void serverPledgeSync() throws Exception {\n projectModel.serverName.set(\"String_Node_Str\");\n project = projectModel.getProject();\n ObservableSet<LHProtos.Pledge> openPledges = backend.mirrorOpenPledges(project, gate);\n ObservableSet<LHProtos.Pledge> claimedPledges = backend.mirrorClaimedPledge... |
"public SharePage open(String server, String userName, String password, String... context) {\n String url = server + getPageURL(context);\n synchronized (CURRENT_LOGGED_IN_USER_LOCK) {\n if (currentLoggedInUser != null && !userName.equals(currentLoggedInUser)) {\n sharePageNavigation.openUserDro... |
"public int compare(final Viewer viewer, final Object o1, final Object o2) {\n if (direction == SWT.NONE) {\n return 0;\n }\n Comparator<Object> comparator = comparators.get(tableColumn);\n if (comparator == null) {\n return 0;\n }\n return direction == SWT.DOWN ? comparator.compare(o2, ... |
"public void logout() throws Exception {\n Object returnObject = null;\n try {\n if (insertItems.size() > 0) {\n SObject[] accs = insertItems.toArray(new SObject[insertItems.size()]);\n Create create = new Create();\n create.setSObjects(accs);\n SaveResult[] sr =... |
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n Permanent permanent = game.getPermanent(this.targetPointer.getFirst(game, source));\n if (controller != null && permanent != null) {\n Abilities<ManaAbility> mana = permanent.getAbilities... |
"public void setMessage(Message message) {\n m_message = (GetKeyboardLayoutNameMessage) message;\n}\n"
|
"private Index getSortIndex() {\n if (sort == null) {\n return null;\n }\n ArrayList<Column> sortColumns = New.arrayList();\n for (int idx : sort.getQueryColumnIndexes()) {\n if (idx < 0 || idx >= expressions.size()) {\n throw DbException.getInvalidValueException(\"String_Node_Str\"... |
"public void execute() {\n if (this.port == -1)\n this.port = this.ssl ? 443 : 80;\n if (this.virtualHost == null)\n this.virtualHost = this.address;\n FullHttpRequest request = new DefaultFullHttpRequest(this.version, this.method, this.path);\n request.headers().add(HttpHeaders.Names.CONNECTI... |
"private void setup() {\n setPrefColumnCount(30);\n validationSupport.registerValidator(this, (c, newValue) -> {\n boolean wasError = false;\n try {\n Parser.parse(getText());\n } catch (ParseException e) {\n wasError = true;\n }\n return ValidationResult.f... |
"private void updateSwaggerResources(GenericArtifact[] artifacts, Tenant tenant) throws APIMigrationException {\n log.debug(\"String_Node_Str\");\n APIDefinitionFromSwagger20 definitionFromSwagger20 = new APIDefinitionFromSwagger20();\n for (GenericArtifact artifact : artifacts) {\n API api = registrySe... |
"public void setLevel(int level) {\n String group = \"String_Node_Str\" + getLevel();\n if (RCPermissions.removeParent(player, group)) {\n this.level = level;\n group = \"String_Node_Str\" + level;\n RCPermissions.addParent(player, group);\n }\n}\n"
|
"public void dealDamage(Entity entity) {\n if (explosion == null) {\n return;\n }\n double distance = 0;\n if (entity.getWorld().equals(explosion.getWorld())) {\n distance = entity.getLocation().distance(explosion.getLocation());\n }\n if (distance > damageRadius) {\n return;\n ... |
"private void removeAtoms(int numAtoms, List<Site> newSites) {\n GAParameters params = GAParameters.getParams();\n Random rand = params.getRandom();\n for (int i = 0; i < numAtoms; i++) {\n newSites.remove(RandomNumbers.getUniformIntBetweenInclusive(0, newSites.size() - 1));\n }\n}\n"
|
"public void setValueAt(Object value, int row, int col) {\n switch(col) {\n case 0:\n filters.get(rowUUIDs.get(row)).setName((String) value);\n break;\n case 1:\n {\n ColorFilter filter = filters.get(row);\n filter.setFilterString((String) ... |
"public void startElement(final String uri, final String localName, final String name, final Attributes atts) throws SAXException {\n if (ignoreDepth > 0) {\n ignoreDepth++;\n return;\n }\n if (PR_D_CODEREF.matches(atts)) {\n ignoreDepth++;\n try {\n final URI hrefValue =... |
"public void update(ModelEvent event) {\n if (event.target == EventTarget.MODEL) {\n this.model = (Model) event.data;\n } else if (event.target == EventTarget.CRITERION_DEFINITION) {\n if (model != null) {\n root.setRedraw(false);\n if (model.getKAnonymityModel().isActive() && ... |
"protected void startFilterThread() {\n synchronized (fFilterSyncObj) {\n if (fFilterThread != null) {\n fFilterThread.cancel();\n }\n final ITmfFilterTreeNode filter = (ITmfFilterTreeNode) fTable.getData(Key.FILTER_OBJ);\n if (fFilterThread == null || fFilterThread.filter != f... |
"private File findGitDir(File file) {\n File[] listFiles = file.listFiles();\n if (listFiles != null) {\n for (File child : listFiles) {\n if (child.isDirectory() && child.getName().equals(\"String_Node_Str\")) {\n return child;\n } else if (child.isDirectory()) {\n ... |
"public String getInformation() {\n String name = getSeed().getUnlocalizedName();\n if (name.indexOf('_') >= 0) {\n name = name.substring(name.indexOf('_') + 1);\n }\n if (name.indexOf('.') >= 0) {\n name = name.substring(name.indexOf('.') + 1);\n }\n return \"String_Node_Str\" + name;\n... |
"private static void saveArmourBlockToList(World world, int x, int y, int z, int ix, int iy, int iz, ArrayList<ICube> list, ArrayList<CubeMarkerData> markerBlocks, ForgeDirection direction) throws InvalidCubeTypeException {\n if (world.isAirBlock(x, y, z)) {\n return;\n }\n Block block = world.getBlock(... |
"public void addCheckBox(String name, String label, boolean defaultValue) {\n JLabel lbl = new JLabel(label + \"String_Node_Str\");\n lbl.setBackground(_background);\n JRadioButton checkbox = new JRadioButton();\n checkbox.setBackground(_background);\n checkbox.setOpaque(false);\n checkbox.setSelected... |
"public ModelElement initCWMResourceBuilder() {\n Analysis analysis = (Analysis) super.initCWMResourceBuilder();\n Indicator blockKeyIndicator = ColumnsetFactory.eINSTANCE.createBlockKeyIndicator();\n analysis.getResults().getIndicators().add(blockKeyIndicator);\n RecordMatchingIndicator matchRuleIndicator ... |
"protected boolean containsAll(final Collection arg0) {\n eagerlyLoadDataCollection();\n boolean result = false;\n if (getDataCollection() != null && !(getDataCollection() instanceof ProxyCollection)) {\n result = ((Collection) getDataCollection()).containsAll(arg0);\n }\n return result;\n}\n"
|
"private void _initialize() throws IllegalActionException {\n _commActors = new LinkedList();\n _modeList = new LinkedList();\n _container = (TypedCompositeActor) getContainer();\n Director director = ((CompositeActor) _container).getDirector();\n if (!(director instanceof GiottoDirector))\n retur... |
"public CharSequence getFlyweightStrB(int index) {\n long address = address0(index);\n int len = Unsafe.getUnsafe().getInt(address);\n return len == VariableColumn.NULL_LEN ? null : csB.of(address + 4, address + 4 + len * 2);\n}\n"
|
"public void onPause() {\n if (hasEmbedsOrIframes()) {\n pauseWebView();\n super.onPause();\n}\n"
|
"private static UnitDimension create(Map<UnitDimension, Fraction> components) {\n switch(components.size()) {\n case 0:\n return NONE;\n case 1:\n {\n final Map.Entry<UnitDimension, Fraction> entry = components.entrySet().iterator().next();\n final Un... |
"public static void main(String[] args) throws IOException, Exception {\n checkUserHome();\n checkLogsDirectory();\n Set<String> tasks = new HashSet<>();\n parseArgs(args, tasks);\n if (url == null) {\n printHelp(NO_URL_SPECIFIED_MSG);\n System.exit(1);\n }\n if (!url.startsWith(\"Str... |
"public ActivateItemMessage decode(ChannelBuffer buffer) throws IOException {\n int slot = buffer.readUnsignedShort();\n return new ActivateItemMessage(slot);\n}\n"
|
"public SymbolScope buildSymbolScope(IResource resource) {\n IFile file = (IFile) resource;\n String body = \"String_Node_Str\";\n try {\n body = CharStreams.toString(new InputStreamReader(file.getContents()));\n } catch (CoreException | IOException e) {\n }\n SourceFile virtualSourceFile = Sou... |
"public void handlePremium(DownloadLink downloadLink, Account account) throws Exception {\n br.setFollowRedirects(true);\n String linkurl = null;\n requestFileInformation(downloadLink);\n br.setDebug(true);\n Form profidown = br.getFormBySubmitvalue(\"String_Node_Str\");\n if (profidown == null)\n ... |
"public void removeMetadata(Id.NamespacedId entityId) throws NotFoundException {\n entityValidator.ensureEntityExists(entityId);\n businessMds.removeMetadata(entityId);\n}\n"
|
"private void set() {\n Block standblock = player.getLocation().getBlock().getRelative(BlockFace.DOWN);\n BendingPlayer bp = GeneralMethods.getBendingPlayer(player.getName());\n if (!bp.isTremorsensing()) {\n if (block != null)\n revert();\n return;\n }\n if (EarthMethods.isEarth... |
"public void widgetSelected(SelectionEvent e) {\n if (!isContextMode()) {\n checkFieldsValue();\n }\n testSalesforceLogin();\n if (authBtn.getSelectionIndex() == 0) {\n String proxy = null;\n if (useProxyBtn.getSelection()) {\n proxy = SalesforceModuleParseAPI.USE_SOCKS_PROXY... |
"public boolean addRawAnnotation(String type) {\n switch(type) {\n case \"String_Node_Str\":\n this.modifiers |= Modifiers.SEALED;\n return false;\n case \"String_Node_Str\":\n this.modifiers |= Modifiers.STRICT;\n return false;\n case \"String_Node_St... |
"private static FileStatus getFileStatusInHdfsInternal(String hdfsPath) throws Exception {\n try {\n FileSystem fs = FileSystem.get(conf);\n LOGGER.logInfo(\"String_Node_Str\", hdfsPath);\n FileStatus fileStatus = fs.getFileStatus(new Path(hdfsPath));\n return fileStatus;\n } catch (Pa... |
"private PDFTemplateBuilder preparePdfTicket(HttpServletRequest request, Event event, TicketReservation ticketReservation, Ticket ticket) {\n TicketCategory ticketCategory = ticketCategoryRepository.getById(ticket.getCategoryId(), event.getId());\n Organization organization = organizationRepository.getById(event.... |
"public CanonicalizedKeyRing canonicalize(OperationLog log, int indent) {\n log.add(isSecret() ? LogType.MSG_KC_SECRET : LogType.MSG_KC_PUBLIC, indent, KeyFormattingUtils.convertKeyIdToHex(getMasterKeyId()));\n indent += 1;\n if (getVersion() <= 3) {\n log.add(LogType.MSG_KC_ERROR_V3, indent);\n ... |
"protected Object getValue(Packet response) {\n if (response.getValue() != null) {\n Object result = toObject(response.getValue());\n if (result instanceof ClientServiceException) {\n throw new RuntimeException(((ClientServiceException) result).getThrowable());\n }\n return res... |
"public String renameTransferredResource(TransferredResource resource, String newName, boolean replaceExisting, boolean reindexResources) throws AlreadyExistsException, GenericException, IsStillUpdatingException, NotFoundException {\n if (Files.exists(Paths.get(resource.getFullPath()))) {\n Path resourcePath ... |
"public void drawBackgroundLayer(float partialTickTime, int mouseX, int mouseY) {\n Rectangle_I_2D rec = new Rectangle_I_2D(0, 0, TAB_WIDTH, TAB_HEIGHT);\n rec.x = width / 2 - rec.width / 2;\n GuiUtils.drawContinuousTexturedBox(rec.x, rec.y, 0, 200, rec.width, rec.height, 38, 38, 4, zLevel);\n}\n"
|
"public void searchDone(YTSearchHelper helper, YTSearchHelper.SearchArg arg, YTFeed.Result result, Err err) {\n if (!handleSearchResult(helper, arg, result, err))\n return;\n checkDupAsync(arg, (YTVideoFeed.Entry[]) result.entries);\n}\n"
|
"private boolean compareAndSetWriteLocation(long expectedValue, long newValue) {\n if (Jvm.vmSupportsCS8())\n return buffer.compareAndSwapLong(writeLocationOffset, expectedValue, newValue);\n synchronized (this) {\n if (expectedValue == getWriteLocation()) {\n setWriteLocation(newValue);\... |
"public void run() {\n for (ResourceNode resourceNode : pathToRefresh) {\n XmiResourceManager xrm = new XmiResourceManager();\n if (xrm.isPropertyFile(resourceNode.getPath())) {\n List<IRepositoryNode> nodes = new ArrayList<>();\n for (Object object : viewer.getExpandedElements())... |
"public View getView(int position, View convertView, ViewGroup parent) {\n LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n int arrayIndex;\n ListItemViewHolder viewHolder;\n switch(getItemViewType(position)) {\n case ITEM_TYPE_SEPARATOR:\n ... |
"protected Object unmarshall(Object value) {\n if (value == null || _tzone == null)\n return value;\n Date date = (Date) value;\n return new Date((date).getTime() + Dates.getTimezoneOffset(TimeZones.getCurrent(), date) - Dates.getTimezoneOffset(_tzone, date));\n}\n"
|
"public void keyDown(EnumSet<TickType> types, KeyBinding kb, boolean tickEnd, boolean isRepeat) {\n if (tickEnd) {\n if (FMLClientHandler.instance().getClient().inGameHasFocus) {\n EntityPlayer player = FMLClientHandler.instance().getClient().thePlayer;\n if (player != null) {\n ... |
"private void createRevealInArtifactExplorerMenuItem(final Menu parentMenu) {\n revealInArtifactExporerMenuItem = new MenuItem(parentMenu, SWT.CASCADE);\n revealInArtifactExporerMenuItem.setText(\"String_Node_Str\");\n revealInArtifactExporerMenuItem.setImage(ImageManager.getImage(FrameworkImage.MAGNIFY));\n ... |
"public synchronized void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {\n try {\n monitor.beginTask(\"String_Node_Str\" + IConstants.TALEND + \"String_Node_Str\", \"String_Node_Str\".equals(username) ? 12 : 9);\n XtentisPort port = Util.getPort(new URL(endpointa... |
"public void savedMessage() {\n Message message = new Message();\n message.obj = getScreenShotFile().toString();\n sendCameraHandlerMessage(SAVED_FRAME, message);\n}\n"
|
"protected void createFormContent(IManagedForm managedForm) {\n this.form = managedForm.getForm();\n if (this.form != null && !this.form.isDisposed()) {\n this.form.setText(DefaultMessagesImpl.getString(\"String_Node_Str\"));\n topComposite = form.getBody();\n topComposite.setLayout(new GridL... |
"public void selectionChanged(IWorkbenchPart sourcepart, ISelection selection) {\n if (sourcepart != EventDetailView.this && selection instanceof IStructuredSelection) {\n IStructuredSelection iss = (IStructuredSelection) selection;\n Object[] arr = iss.toArray();\n if (arr.length > 0 && arr[0] ... |
"public List<Feed> getFeeds() throws Exception {\n List<Feed> list = new ArrayList<Feed>();\n try {\n Response response = providerSupport.api(FEED_URL);\n String respStr = response.getResponseBodyAsString(Constants.ENCODING);\n JSONObject resp = new JSONObject(respStr);\n JSONArray dat... |
"private String createJobSubmissionDescription(ServiceInterface serviceInterface, Document jsdl) throws ServerJobSubmissionException {\n DebugUtils.jsdlDebugOutput(\"String_Node_Str\", jsdl);\n Document output = null;\n try {\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n ... |
"public void overrideSettings(final String... keyvalues) {\n overrideCDSMode();\n super.overrideSettings(keyvalues);\n if (mListMenu == null) {\n initializePopup();\n }\n mListMenu.overrideSettings(keyvalues);\n}\n"
|
"public synchronized void printConfigValues(String testName) {\n if (baseConfig.isEmpty()) {\n return;\n }\n StringBuilder builder = new StringBuilder(String.format(\"String_Node_Str\", testName));\n for (ConfigProperty configProperty : ConfigProperty.values()) {\n String value = Config.getCon... |
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_signup);\n resources = getResources();\n initUI();\n initListeners();\n useDoubleBackPressed = true;\n user = new QBUser();\n imageUtils = new ImageUtils(this);\n valida... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.