content
stringlengths
40
137k
"static JavaRDD<Cells> filterSelectedColumns(JavaRDD<Cells> rdd, final Set<ColumnName> selectedCols) {\n List<ColumnName> list = new ArrayList<>(selectedCols);\n JavaRDD<Cells> rddResult = rdd.map(new FilterColumns(list));\n return rddResult;\n}\n"
"protected List<Solution> replacement(List<Solution> population, List<Solution> offspringPopulation) {\n List<Solution> jointPopulation = new ArrayList<>();\n jointPopulation.addAll(population);\n jointPopulation.addAll(offspringPopulation);\n Ranking ranking = computeRanking(jointPopulation);\n List<Sol...
"public void setInventorySlotContents(int slot, ItemStack stack) {\n switch(slot) {\n case SPECIMEN_SLOT_ID:\n this.specimen = stack;\n if (stack != null && stack.stackSize > getInventoryStackLimit()) {\n stack.stackSize = getInventoryStackLimit();\n }\n ...
"public boolean isGeometry() {\n return (type == DBDatatype.POINT || type == DBDatatype.REGION);\n}\n"
"private void closeConnection() {\n try {\n this.dictConnection.close();\n } catch (DictException dx) {\n if (logger.isInfoEnabled())\n logger.info(dx);\n }\n}\n"
"private static void evalTensor2(Tensor t1, Tensor expT1Adj, Tensor t2, Tensor expT2Adj, Tensor2Factory fact, Tensor expOut, double adjFill, Algebra tmpS) {\n Tensor.checkSameAlgebra(t1, t2);\n TensorIdentity id1 = new TensorIdentity(t1);\n ConvertAlgebra<Tensor> id1Co = new ConvertAlgebra<Tensor>(id1, tmpS);\...
"public void testCreateGroup() {\n mockServer.expect(requestTo(\"String_Node_Str\")).andExpect(method(POST)).andRespond(withSuccess(\"String_Node_Str\", MediaType.TEXT_PLAIN));\n yammerTemplate.groupOperations().createGroup(\"String_Node_Str\", false);\n}\n"
"private ArrayList<ColumnOrWildcard> parseColumns() throws ParseException {\n ArrayList<ColumnOrWildcard> list = new ArrayList<ColumnOrWildcard>();\n if (readIf(\"String_Node_Str\")) {\n list.add(new ColumnOrWildcard());\n } else {\n do {\n ColumnOrWildcard column = new ColumnOrWildcar...
"public static boolean computeSelectedFiles(TreeSelection treeSelection, List<IFile> selectedFiles) {\n boolean isSelectFile = false;\n Iterator iterator = treeSelection.iterator();\n while (iterator.hasNext()) {\n Object obj = iterator.next();\n if (obj instanceof IFile) {\n IFile fil...
"public boolean dragEnd(final DragContext context) {\n boolean allowed = true;\n if (m_dockingAndContainmentControl != null) {\n allowed = m_dockingAndContainmentControl.dragEnd(context);\n }\n allowed = allowed & checkForAndApplyLineSplice();\n if (!allowed) {\n context.reset();\n } els...
"public int doStartTag() throws JspException {\n JspWriter out = pageContext.getOut();\n boolean emphasiseDate = false;\n boolean emphasiseTitle = false;\n if (emphColumn != null) {\n emphasiseDate = emphColumn.equalsIgnoreCase(\"String_Node_Str\");\n emphasiseTitle = emphColumn.equalsIgnoreCa...
"public static void sendToPlayers(Packet packet, int x, int y, int z, int maxDistance, NetworkMod mod) {\n if (packet != null) {\n for (int j = 0; j < w.playerEntities.size(); j++) {\n EntityPlayerMP player = (EntityPlayerMP) w.playerEntities.get(j);\n if (Math.abs(player.posX - x) <= ma...
"public static <T1 extends Comparable<T1>, T2 extends Comparable<T2>, T3 extends Comparable<T3>, T4> T4 put(Map<T1, Map<T2, Map<T3, T4>>> map, T1 t1, T2 t2, T3 t3, T4 t4) {\n if (Debug.errorOnNull(\"String_Node_Str\", map, t1, t2, t3, t4)) {\n return null;\n }\n Map<T2, Map<T3, T4>> innerMap = map.get(t...
"public void serializeVideo() {\n String content = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n AssessmentItem item = new AssessmentItem();\n ItemBody helper = new ItemBody(item);\n new AssessmentHtmlBuilder().appendHtml...
"private void handleBlockReward(BlockBreakEvent event, Configuration config, ItemTree tree, String description) {\n Player player = event.getPlayer();\n Block block = event.getBlock();\n ItemQuery retrieveKey = ItemQuery.fromAny(block);\n if (config == null) {\n if (hasDebugger())\n debugg...
"public boolean onCommand(CommandSender sender, Command cmd, String cmdLabel, String[] args) {\n if (args.length < 1) {\n sender.sendMessage(ChatColor.RED + \"String_Node_Str\");\n return true;\n }\n if (args[0].equalsIgnoreCase(\"String_Node_Str\") && !(sender instanceof Player)) {\n save...
"public void showImage(Image image) {\n pushEvent(Events.CLEAR_EDITOR_EVENT);\n if (!canViewImage(image)) {\n showError(\"String_Node_Str\", Constants.HAVENT_ACCESS);\n return;\n }\n if (!fileManager.isFilePresent(image.getFullPath())) {\n showError(\"String_Node_Str\", Constants.IMAGE_...
"private static String getNewVariableNameFromReturnType(final ITypeName returnType) {\n return String.format(\"String_Node_Str\", getTypeIdentifier(returnType));\n}\n"
"public static String format(Object o, String format) {\n if (o == null) {\n return \"String_Node_Str\";\n }\n if (o instanceof Date) {\n DateFormat df = decode(format, Context.getDateFormat(), new SimpleDateFormat(format));\n return df.format((Date) o);\n }\n if (o instanceof Map) {...
"boolean executeRunnableJob(JobStatus job) {\n synchronized (mLock) {\n if (!mAvailable) {\n Slog.e(TAG, \"String_Node_Str\");\n return false;\n }\n mRunningJob = job;\n final boolean isDeadlineExpired = job.hasDeadlineConstraint() && (job.getLatestRunTimeElapsed() <...
"public List<? extends Host> discoverExternalCluster(AddExternalClusterCmd cmd) throws IllegalArgumentException, DiscoveryException, InvalidParameterValueException {\n Long dcId = cmd.getZoneId();\n Long podId = cmd.getPodId();\n String clusterName = cmd.getClusterName();\n String url = cmd.getUrl();\n S...
"protected void prepareXLabels() {\n StringBuffer a = new StringBuffer();\n int max = (int) Math.round(mCurrentData.getXValAverageLength() + mXLabels.getSpaceBetweenLabels());\n for (int i = 0; i < max; i++) {\n a.append(\"String_Node_Str\");\n }\n mXLabels.mXLabelWidth = Utils.calcTextWidth(mXLab...
"protected void frameUpdateTitle() {\n if (logger.isLoggable(Level.FINEST)) {\n logger.finest(\"String_Node_Str\");\n }\n if (frame != null) {\n frame.setTitle(getTitle());\n }\n}\n"
"private void printLBs(String resultString) {\n Cluster cluster = getClusterObjectFromString(resultString);\n if (cluster == null) {\n System.out.println(\"String_Node_Str\");\n return;\n }\n Member[] members = new Member[cluster.getMember().size()];\n members = cluster.getMember().toArray(...
"public static HttpServletRequest getRealRequest(HttpServletRequest request) {\n HttpSession session = request.getSession();\n if (session.getAttribute(\"String_Node_Str\") != null) {\n log.info(\"String_Node_Str\");\n RequestInfo requestInfo = (RequestInfo) session.getAttribute(\"String_Node_Str\")...
"private boolean haveSufficientBuffer(boolean rebuffering, long rendererPositionUs, long bufferedPositionUs) {\n return bufferedPositionUs == C.TIME_END_OF_SOURCE || loadControl.shouldStartPlayback(bufferedPositionUs - rendererPositionUs, 1f, rebuffering);\n}\n"
"public boolean onLongClick(View v) {\n String url = mPreferences.getString(PreferenceConstants.SAVE_URL, null);\n if (url != null) {\n newTab(true, url);\n Toast.makeText(mContext, R.string.deleted_tab, Toast.LENGTH_SHORT).show();\n }\n mEditPrefs.putString(PreferenceConstants.SAVE_URL, null)...
"public Object execute(InvocationContext context) throws Exception {\n String methodName = \"String_Node_Str\";\n String classOperationName = OpentracingService.getClassOperationName(context.getMethod());\n String methodOperationName = OpentracingService.getMethodOperationName(context.getMethod());\n if (Tr...
"public final String getAttribute(String name) {\n String normalName = this.normalizeAttributeName(name);\n if (normalName != null && normalName.length() > 0) {\n synchronized (this) {\n Map<String, String> attributes = this.attributes;\n return attributes == null ? null : (String) at...
"public boolean applies(GameEvent event, Ability source, Game game) {\n UUID sourceControllerId = game.getControllerId(event.getSourceId());\n UUID targetControllerId = game.getControllerId(event.getTargetId());\n UUID controllerId = source.getControllerId();\n boolean weControlSource = controllerId == sour...
"public void removeMapping(Long mappingId) {\n SchemaMapping mapping = findMapping(mappingId);\n if (mapping == null) {\n return;\n }\n String schemaName = mapping.getSchemaName();\n SchemaType schemaType = mapping.getSchemaType();\n try {\n schemaType.getSchemaClass().asSubclass(Abstrac...
"public ImmutableMetaDatabase getMetaDatabaseByIdentifier(String schemaDbName) {\n return dbsByIdentifier.get(schemaDbName);\n}\n"
"public List<String> getFilenameList(final int location) {\n final List<PlaylistItem> subItems = items.subList(location, items.size());\n final List<String> list = new ArrayList<String>();\n for (final PlaylistItem item : subItems) {\n list.add(item.filename);\n }\n return list;\n}\n"
"protected void loadBackgroundImage(final URL imageURL) {\n Image image = null;\n String url = imageURL.toString();\n try {\n SSLCertificate.setCertificate();\n URLConnection con = imageURL.openConnection();\n con.setRequestProperty(\"String_Node_Str\", UserAgentContext.DEFAULT_USER_AGENT)...
"public boolean isOwner(EntityLivingBase entityIn) {\n if (entityIn != null) {\n if (this.servitude == EntityGem.SERVE_HUMAN) {\n if (entityIn instanceof EntityPlayer) {\n EntityPlayer playerIn = (EntityPlayer) entityIn;\n if (playerIn.getUniqueID().equals(this.getOwne...
"protected Short convertObjectToShort(Object sourceObject) throws ConversionException {\n if (sourceObject instanceof String && ((String) sourceObject).length() > 0 && ((String) sourceObject).charAt(0) == PLUS) {\n return super.convertObjectToShort(((String) sourceObject).substring(1));\n }\n return sup...
"public void showItem(int index) {\n osis = \"String_Node_Str\";\n if (items == null || items.size() < 2) {\n showView(R.id.items, false);\n showView(R.id.book, true);\n showView(R.id.chapter, true);\n openOsis(this.index > index ? osis_prev : osis_next);\n } else if (index >= 0 && ...
"public SopremoModule asElementaryOperators() {\n final SopremoModule sopremoModule = new SopremoModule(this.getName(), 2, 1);\n JsonStream input = sopremoModule.getInput(0);\n JsonStream nullInput = sopremoModule.getInput(1);\n int n = this.numberOfPartitions;\n Partitioning partitioning = new Partition...
"public void onButtonClicked(ButtonEvent event) {\n if (gameSettings.gameType.equals(GameType.Type.OBJ)) {\n gameSettings.maxScore--;\n if (gameSettings.maxScore < 1) {\n gameSettings.maxScore = 1;\n }\n } else {\n gameSettings.maxScore -= 10;\n if (gameSettings.maxSc...
"public static CharGroup findWordInTree(Node node, final String s) {\n int index = 0;\n final StringBuilder checker = DBG ? new StringBuilder() : null;\n CharGroup currentGroup;\n final int codePointCountInS = s.codePointCount(0, s.length());\n do {\n int indexOfGroup = findIndexOfChar(node, codeP...
"public void setData(Object featureCollection) throws IOException {\n System.out.println(\"String_Node_Str\");\n this.sectionData = (SectionFeatureCollection) featureCollection;\n sectionList = new ArrayList<SectionFeature>();\n DateTime dtSearchStart = null;\n DateTime dtSearchEnd = null;\n altMin = ...
"public RenderedImage create(ParameterBlock args, RenderingHints hints) {\n ImagingListener listener = ImageUtil.getImagingListener(hints);\n try {\n String fileName = (String) args.getObjectParameter(0);\n SeekableStream src = null;\n try {\n src = new FileSeekableStream(fileName)...
"public void testGetDiscussionTopics() {\n List<DiscussionTopic> topics = discussionTopicMapper.getDiscussionTopics();\n Assert.assertEquals(4, topics.size());\n DiscussionTopic firstTopic = topics.get(0);\n Assert.assertEquals(\"String_Node_Str\", firstTopic.getDiscussionTopicSlug());\n}\n"
"public org.hl7.fhir.dstu2.model.Patient.PatientLinkComponent convertPatientLinkComponent(org.hl7.fhir.dstu3.model.Patient.PatientLinkComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Patient.PatientLinkComponent tgt = new org.hl7.fhir.dstu2...
"private void detachHead() throws IOException {\n final String head = db.getFullBranch();\n final ObjectId id = db.resolve(Constants.HEAD);\n if (!ObjectId.isId(head) && id != null) {\n final LockFile lf;\n lf = new LockFile(new File(db.getDirectory(), Constants.HEAD), db.getFS());\n if (!...
"public boolean isBlocked(short x, short y) {\n return blockedGrid.get(getIdx(x, y));\n}\n"
"private static void newDate(Calendar n) {\n nowDate = n;\n if (fw != null) {\n try {\n fw.close();\n out.close();\n } catch (IOException e) {\n System.err.println(\"String_Node_Str\");\n }\n }\n try {\n file = new File(path + \"String_Node_Str\" ...
"public Map<String, Long> getTokensByUUID(String uuid) throws CoreTokenException {\n Collection<Entry> entries;\n Filter filter = adapter.buildFilter().and().userId(uuid).build();\n entries = adapter.query().withFilter(filter).returnTheseAttributes(CoreTokenField.TOKEN_ID, CoreTokenField.EXPIRY_DATE).executeRa...
"public static void shutdown() {\n synchronized (initLock) {\n if (defaultInstance.get() != null) {\n getDefaultInstance().shutdown();\n defaultInstance.set(null);\n }\n }\n}\n"
"private void initRegistrarConnection(SipAccountID accountID) throws IllegalArgumentException {\n String registrarAddressStr = accountID.getAccountPropertyString(ProtocolProviderFactory.SERVER_ADDRESS);\n if (registrarAddressStr == null) {\n String userID = accountID.getAccountPropertyString(ProtocolProvid...
"public void connect(ID remote, IConnectContext joinContext) throws ContainerConnectException {\n try {\n getSharedObjectManager().addSharedObject(presenceHelperID, presenceHelper, null);\n super.connect(remote, joinContext);\n } catch (final ContainerConnectException e) {\n disconnect();\n ...
"public Object fromSuperColumnThriftRow(Class clazz, EntityMetadata m, ThriftRow tr, List<String> relationNames, boolean isWrapReq) throws Exception {\n Object entity = clazz.newInstance();\n Map<String, Set<String>> foreignKeysMap = new HashMap<String, Set<String>>();\n PropertyAccessorHelper.setId(entity, m,...
"private void setupVolumeMessages() throws NoSuchElementException, MetadataException, ExecutionException {\n if (this.allocInfo.getBootSet().getMachine() instanceof BlockStorageImageInfo) {\n final ServiceConfiguration sc = Topology.lookup(Storage.class, this.cluster.getConfiguration().lookupPartition());\n ...
"public void setSpacerImage(final boolean everyoneElseHasImages) {\n if (hasLegitImage) {\n return;\n }\n removeSpacerImage();\n if (everyoneElseHasImages) {\n spacerImage = Gtk2.gtk_image_new_from_file(transparentIcon.getAbsolutePath());\n Gtk2.gtk_image_menu_item_set_image(_native, sp...
"protected void buildProperties(IContent content, LayoutContext context) {\n IStyle style = content.getComputedStyle();\n boxStyle = new BoxStyle();\n Color color = PropertyUtil.getColor(style.getProperty(IStyle.STYLE_BACKGROUND_COLOR));\n if (color != null) {\n boxStyle.setBackgroundColor(color);\n ...
"private AstNode newInstrumentationNode(final int lineNr) {\n final ExpressionStatement instrumentationNode = new ExpressionStatement();\n final UnaryExpression inc = new UnaryExpression();\n inc.setIsPostfix(true);\n inc.setOperator(Token.INC);\n final ElementGet outer = new ElementGet();\n final Ele...
"public static IDataSetPopulator getCartesianJointDataSetPopulator(IResultIterator left, IResultIterator right, JointResultMetadata meta, IJoinConditionMatcher jcm, int joinType, DataEngineSession session) throws DataException {\n IMatchResultObjectSeeker seeker = new CartesianResultObjectSeeker(jcm);\n return ne...
"public Credentials extractCredentials(String line, boolean isBase64Encoded) {\n String[] part = line.split(\"String_Node_Str\");\n Credentials credentials = new Credentials();\n credentials.setUsername(part[0]);\n String password;\n if (isBase64Encoded) {\n password = new String(Base64.getDecoder...
"private Collection<URL> getScripts(FileModel userRulesFileModel) {\n String userRulesPath = userRulesFileModel == null ? null : userRulesFileModel.getFilePath();\n List<URL> scripts = scanner.scan(GROOVY_RULES_EXTENSION);\n if (userRulesPath == null) {\n return scripts;\n }\n final List<URL> resu...
"public InputStream inputStream() {\n return new BytesInputStream();\n}\n"
"public void receiveDone(ID from, File aFile, Exception e) {\n final IUser user = getUserForID(from);\n String nick = Messages.EclipseCollabSharedObject_UNKNOWN_USERNAME;\n if (user != null) {\n nick = user.getNickname();\n }\n showRawLine(from, NLS.bind(Messages.EclipseCollabSharedObject_FILE_TRA...
"protected void doTask(final Task task) throws Exception {\n Transaction txn = Transaction.open(Transaction.CLOUD_DB);\n try {\n if (task.getType() != Task.Type.DATA) {\n super.doTask(task);\n return;\n }\n final byte[] data = task.getData();\n Version ver = Reque...
"public static void withCartHavingCartDiscountedLineItem(final BlockingSphereClient client, final RelativeCartDiscountValue relativeCartDiscountValue, final Consumer<Cart> consumer) {\n withTaxedProduct(client, product -> {\n withCustomer(client, (customer) -> {\n CartDiscountFixtures.withCartDisco...
"private static Boolean checkDeprecated(List<Object> metaData) {\n Boolean deprecated = false;\n for (Object meta : metaData) {\n JSONObject j = (JSONObject) meta;\n if (((String) j.get(\"String_Node_Str\")).compareTo(\"String_Node_Str\") == 0) {\n if ((j.get(\"String_Node_Str\")) != null...
"public void test_mark_dangerous_char2() throws IOException {\n RemountBytes boundary = RemountBytes.create(\"String_Node_Str\");\n String str = \"String_Node_Str\";\n str += \"String_Node_Str\";\n InputStream ins = Lang.ins(str);\n BufferRing br = new BufferRing(ins, 3, 5);\n String s;\n MarkMode ...
"public boolean isValid() {\n fIsTracepoints = fTracepointsActivateButton.getSelection();\n fIsSysCalls = fSysCallsActivateButton.getSelection();\n fIsDynamicProbe = fProbeActivateButton.getSelection();\n fIsDynamicFunctionProbe = fFunctionActivateButton.getSelection();\n fIsAllTracepoints = false;\n ...
"public static void hideChildViews(View groupView, boolean animate) {\n final ViewGroup childContainer = (ViewGroup) groupView.findViewById(R.id.layout_child_container);\n if (childContainer == null) {\n return;\n }\n if (childContainer.getVisibility() != View.GONE) {\n if (animate) {\n ...
"public List<InputSplit> getSplits(JobContext jobContext) throws IOException, InterruptedException {\n List<InputSplit> inputSplits = new ArrayList<InputSplit>();\n ImportViewArgs importViewArgs;\n try {\n importViewArgs = new ImportViewArgs(jobContext.getConfiguration());\n } catch (ArgsException e)...
"public static void sendEmail(Context context, EPerson eperson, List collections, boolean test) throws IOException, MessagingException, SQLException {\n Locale supportedLocale = I18nUtil.getEPersonLocale(eperson);\n ResourceBundle labels = ResourceBundle.getBundle(\"String_Node_Str\", supportedLocale);\n Date ...
"public final boolean zoomIn() {\n if (bStepFixed) {\n return false;\n if (ChartUtil.mathEqual(0, ((Number) oStep).doubleValue()))\n return false;\n if ((iType & NUMERICAL) == NUMERICAL) {\n if ((iType & LOGARITHMIC) == LOGARITHMIC) {\n final double dStep = asDouble(oStep).doubl...
"public void readFields(DataInput in) throws IOException {\n int schemaLen = in.readInt();\n byte[] schemaBytes = new byte[schemaLen];\n in.readFully(schemaBytes, 0, schemaLen);\n Schema schema;\n if (schemaCache.containsKey(schemaBytes)) {\n schema = schemaCache.get(schemaBytes);\n } else {\n ...
"protected List<TdColumn> extractColumns(DatabaseMetaData dbMetaData, IMetadataConnection metadataConnection, String databaseType, String catalogName, String schemaName, String tableName) {\n MappingTypeRetriever mappingTypeRetriever = null;\n columnIndex = 0;\n List<TdColumn> metadataColumns = new ArrayList<T...
"public void writeRAVsInformations() {\n if (_numberOfRAVs > 0) {\n StringBuffer header = new StringBuffer(\"String_Node_Str\");\n int count = _RAVsValues.split(\"String_Node_Str\").length;\n for (int i = 0; i < count; i++) {\n header = header + \"String_Node_Str\" + i + \"String_Node...
"public void handle(Message<Buffer> message) {\n try {\n boolean tenantMatch = tenantMatch(message);\n if (tenantMatch) {\n Buffer in = message.body();\n PublishMessage pm = (PublishMessage) decoder.dec(in);\n handlePublishMessageReceived(pm);\n }\n } catch (T...
"private void addMinMaxBinding(ICubeQueryDefinition parent) throws BirtException {\n List<IBinding> bs = parent.getBindings();\n Axis xAxis = (Axis) ((ChartWithAxes) cm).getAxes().get(0);\n SeriesDefinition sdValue = (SeriesDefinition) ((ChartWithAxes) cm).getOrthogonalAxes(xAxis, true)[0].getSeriesDefinitions...
"public void initGoingToNextTile() {\n grid.movableLeft(pos, this);\n grid.movableEntered(this.nextPos, this);\n this.pos = this.nextPos;\n this.nextPos = null;\n this.progress = 0;\n this.action = EAction.WALKING;\n this.state = EMovableState.EXECUTING_ACTION;\n this.progressIncrease = getProgr...
"protected void onProcessElement(ProcessorManager processorManager, Element element) {\n DatabaseDefinition managerWriter = new DatabaseDefinition(processorManager, element);\n if (validator.validate(processorManager, managerWriter)) {\n processorManager.addFlowManagerWriter(managerWriter);\n }\n}\n"
"public void reposition(T e) {\n if (e == null) {\n return;\n }\n synchronized (queueLock) {\n int insertionIndex = ListUtils.getInsertionEndIndex(queue, newDelayInMillis, randomAccessQueue);\n queue.reposition(e, insertionIndex, true);\n queueLock.signalAll();\n }\n}\n"
"public void saveFilteredImg() {\n try {\n LOGGER.info(\"String_Node_Str\");\n activeFilterImageView.setFitHeight(80);\n activeFilterImageView.setPreserveRatio(false);\n activeFilterImageView = null;\n saveFilteredButton.setVisible(false);\n File outputfile = null;\n ...
"public boolean onItemUse(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int sideHit, float f1, float f2, float f3) {\n if (!world.isRemote && PlayerHelper.hasEditPermission(((EntityPlayerMP) player), x, y, z)) {\n TileEntity tile = world.getTileEntity(x, y, z);\n if (tile inst...
"public void handleFree(DownloadLink downloadLink) throws Exception, PluginException {\n requestFileInformation(downloadLink);\n String addedLink = downloadLink.getDownloadURL();\n br.getPage(addedLink);\n PluginForHost recplug = JDUtilities.getPluginForHost(\"String_Node_Str\");\n jd.plugins.hoster.Dire...
"public void testMapMaxSize() throws Exception {\n Config c = new XmlConfigBuilder().build();\n MapConfig mapConfig = new MapConfig();\n mapConfig.setEvictionPolicy(\"String_Node_Str\");\n mapConfig.setMaxSize(3);\n c.getMapMapConfigs().put(\"String_Node_Str\", mapConfig);\n HazelcastInstance h = Haze...
"public void setLocation(int x, int y) {\n layer.setTranslation((x + 0.5f) * AtlantisTiles.TERRAIN_WIDTH, (y + 0.5f) * AtlantisTiles.TERRAIN_HEIGHT);\n}\n"
"public static long convertStringToNanoseconds(String timeString) {\n long returnedNumber = 0L;\n try {\n timeString = timeString.replace(\"String_Node_Str\", \"String_Node_Str\");\n int dotPosition = timeString.indexOf(\"String_Node_Str\");\n if (dotPosition == 0) {\n timeString =...
"public NavigationResult next(UIContext context) throws Exception {\n ResourceCollection resourceCollection = new ResourceCollection();\n for (JavaClass klass : targets.getValue()) {\n resourceCollection.addToCollection(klass);\n }\n UIContext uiContext = context.getUIContext();\n uiContext.setAtt...
"public DNDTreeViewModelAdaper.DNDNodeInfo putPositioner(boolean xShifted, boolean insertBelow, String key) {\n DNDTreeViewModelAdaper.DNDNodeInfo relativeNode = getDNDNodeInfo(key);\n if (relativeNode == null) {\n return null;\n }\n if (insertBelow && xShifted) {\n TreeNode treeNode = open(re...
"public void writeExpression(MethodWriter writer) {\n if (this.type.isArrayType()) {\n int len = this.arguments.size();\n if (len == 1) {\n this.arguments.getFirstValue().writeExpression(writer);\n writer.writeNewArray(this.type, 1);\n return;\n }\n Argume...
"public float getFloat(String name, float defaultValue) {\n String value = getString(name);\n if (value == null) {\n return defaultValue;\n }\n return PApplet.parseFloat(value, defaultValue);\n}\n"
"public Collection<ParameterEnum<?>> getParameters() {\n final Set<ParameterEnum<?>> params = new HashSet<ParameterEnum<?>>();\n params.addAll(Arrays.asList(new ParameterEnum<?>[] { ExtractParameters.Extract.REDUCER_COUNT, ExtractParameters.Extract.OUTPUT_DATA_TYPE_ID, ExtractParameters.Extract.DATA_NAMESPACE_URI...
"public static ErrorType getByCode(int code) {\n for (ErrorType type : values()) {\n if (type.code == code) {\n return type;\n }\n }\n}\n"
"public String sendQueryRequest(File QueryFile) throws IOException {\n try {\n XmlObject query = XmlObject.Factory.parse(QueryFile);\n if (!Validation.validate(query, schemaFile)) {\n throw new XmlException(\"String_Node_Str\");\n } else {\n String ResponseRoutingKey = UUID...
"private static void updateReqList() {\n DefaultListModel model = new DefaultListModel();\n if (currentPerk != null && currentPerk.getRequirements() != null) {\n ArrayList<Requirement> temp = currentPerk.getRequirements();\n for (Requirement req : temp) {\n model.addElement(req.name);\n ...
"protected List<Object> findByRelationQuery(EntityMetadata m, String columnName, Object columnValue, Class clazz, CassandraDataHandler dataHandler) {\n CqlResult result = null;\n CQLTranslator translator = new CQLTranslator();\n String selectQuery = translator.SELECTALL_QUERY;\n selectQuery = StringUtils.re...
"public Object visitClassDeclNode(ClassDeclNode node, LinkedList args) {\n Object classDeclObj = args.get(0);\n if (classDeclObj instanceof ClassDecl) {\n ClassDecl classDecl = (ClassDecl) classDeclObj;\n if (classDecl.category == CG_INTERFACE) {\n int classPublic = classDecl.getModifiers...
"public synchronized static void setViolationMessageRenderer(final ViolationMessageRenderer renderer) {\n Preconditions.checkNotNull(renderer, \"String_Node_Str\");\n final Application app = Application.get();\n app.setMetaData(violationMessageRendererKey, renderer);\n}\n"
"private void unfilterView(boolean restoring) {\n refreshNavigatorContents(RepositoryNodeFilterHelper.filterRemovedNavigatorContents(getNavigatorContentService().getVisibleExtensionIds()), restoring);\n}\n"
"public void callActivityOnCreate(Activity activity, Bundle icicle) {\n lookupActivityInPlugin(activity);\n if (currentPlugin != null) {\n Context baseContext = activity.getBaseContext();\n PluginContext pluginContext = new PluginContext(baseContext, currentPlugin);\n try {\n try {...
"public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object value, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n Marshaller marshaller = marshalRecord.getMarshaller();\n value = xmlCompositeCollectionMapp...
"public boolean execute(ExecutionContext executionContext) throws ProcessExecutionException, InterruptedException {\n try {\n SingleMassArgs args = (SingleMassArgs) this.getProcessArgs();\n args.validateKmers(args.getKmin(), args.getKmax());\n this.createSupportDirectories();\n for (int k...
"public void noteStartJobLocked(String name, long elapsedRealtimeMs) {\n StopwatchTimer t = mJobStats.startObject(name);\n if (t != null) {\n t.startRunningLocked(elapsedRealtimeMs);\n }\n}\n"