content
stringlengths
40
137k
"public static String getTypeString(int type) throws OdaException {\n Integer typeInteger = Integer.valueOf(type);\n if (typeIntStringPair.containsKey(typeInteger))\n return typeIntStringPair.get(typeInteger).toString();\n throw new OdaException();\n}\n"
"public Insets getPaddingAndBorder(int height, Border border, Insets margin, int fontSize, Properties properties, boolean isButton, int valign) {\n Insets insets = null;\n Insets borderMargin = margin;\n if (border != null) {\n if (border instanceof CompoundBorder) {\n Insets marginInside = C...
"public List<?> getResultList() {\n log.info(\"String_Node_Str\" + query);\n List results = null;\n try {\n EntityMetadata m = kunderaQuery.getEntityMetadata();\n Client client = persistenceDelegeator.getClient(m);\n List<EntitySaveGraph> graphs = persistenceDelegeator.getGraph(m.getEntity...
"protected void go(RP rp) throws Exception {\n pendingManager = new PendingManager();\n pendingManager.rp = rp;\n ndx = 0;\n int w = 0;\n while (w < win && w < count) {\n sender();\n w += 1;\n }\n}\n"
"public void handleMessage(Message msg) {\n if (DebugFlags.WEB_VIEW) {\n Log.v(LOGTAG, msg.what < REMEMBER_PASSWORD || msg.what > SHOW_RECT_MSG_ID ? Integer.toString(msg.what) : HandlerDebugString[msg.what - REMEMBER_PASSWORD]);\n }\n if (mWebViewCore == null) {\n return;\n }\n switch(msg.w...
"public void testImportsForNoTypes() {\n Set<TypeMirror> types = ImmutableSet.of();\n TypeSimplifier typeSimplifier = new TypeSimplifier(typeUtil, \"String_Node_Str\", types, baseWithoutContainedTypes());\n assertEquals(ImmutableSet.of(), typeSimplifier.typesToImport());\n}\n"
"public String handleStyleImage(String uri, boolean isBackground) {\n ReportDesignHandle design = (ReportDesignHandle) runnable.getDesignHandle();\n URL url = design.findResource(uri, IResourceLocator.IMAGE, reportContext.getAppContext());\n if (url == null) {\n return uri;\n }\n uri = url.toExter...
"public Block[][][] buildChunk() {\n Block[][][] chunk = new Block[16][256][16];\n for (int x = 0; x < 16; x++) {\n for (int y = 0; y < 256; y++) {\n for (int z = 0; z < 16; z++) {\n if ((y > 0 && y <= 16) || (y > 48 && y <= 64) || (y > 96 && y <= 112) || (y > 144 && y <= 160))\n ...
"private void sendPingToDevice(String deviceId, String userId, String roomId) {\n if ((null == userId) || (null == roomId)) {\n return;\n }\n if (TextUtils.isEmpty(deviceId)) {\n deviceId = \"String_Node_Str\";\n }\n HashMap<String, Long> lastTsByRoom = mLastNewDeviceMessageTsByUserDeviceRo...
"void setTrain(int id, int majors, int minors, boolean ignoreMinors, int multiplyMajors, int multiplyMinors) {\n trainMaxMajors[id] = majors;\n trainMaxMinors[id] = minors;\n trainIgnoreMinors[id] = ignoreMinors;\n for (int j = 0; j < nbVertexes; j++) {\n if (vertexMajor[j]) {\n vertexValu...
"public Object caseModelElementChangeLeftTarget(ModelElementChangeLeftTarget object) {\n if (!object.isRemote()) {\n EObject leftElement = object.getLeftElement();\n View leftElementNotation = leftSemantic2notationMap.get(leftElement);\n if (leftElementNotation == null) {\n return nul...
"public static void removePipe(Pipe<?> pipe) {\n if (!isValid(pipe)) {\n return;\n }\n World world = pipe.container.getWorldObj();\n if (world == null) {\n return;\n }\n int x = pipe.container.xCoord;\n int y = pipe.container.yCoord;\n int z = pipe.container.zCoord;\n if (lastRe...
"public boolean applies(UUID sourceId, Ability source, UUID affectedControllerId, Game game) {\n if (affectedControllerId.equals(source.getControllerId())) {\n if (getTargetPointer().getFirst(game, source) == null) {\n this.discard();\n return false;\n }\n if (sourceId.equa...
"public boolean progress() {\n if (System.currentTimeMillis() - time >= interval) {\n time = System.currentTimeMillis();\n if (progress < height) {\n moveEarth();\n removeTimers.put(player, System.currentTimeMillis());\n } else {\n if (removeTimers.contains(playe...
"private CtfTmfEventField[] parseFields(EventDefinition eventDef) {\n List<CtfTmfEventField> fields = new ArrayList<CtfTmfEventField>();\n StructDefinition structFields = eventDef.getFields();\n HashMap<String, Definition> definitions = structFields.getDefinitions();\n String curFieldName = null;\n Defin...
"public CtMethod toMethod(String name, CtClass declaring, ClassMap map) throws CannotCompileException {\n CtMethod method = new CtMethod(null, declaring);\n method.copy(this, false, map);\n if (isConstructor()) {\n MethodInfo minfo = method.getMethodInfo2();\n CodeAttribute ca = minfo.getCodeAttr...
"public void setUp() {\n underTest = new ProvisionCompleteHandler();\n MockitoAnnotations.initMocks(this);\n resourceSet = new HashSet<>();\n resourceSet.add(new Resource(ResourceType.CLOUDFORMATION_STACK, \"String_Node_Str\", new Stack()));\n event = createEvent();\n}\n"
"public void onFinished() {\n refreshTitle();\n setProgressBarIndeterminateVisibility(false);\n infoText.setVisibility(realtimeList.getCount() > 0 ? View.GONE : View.VISIBLE);\n if (realtimeList.itemsAddedWithoutNotify > 0) {\n realtimeList.itemsAddedWithoutNotify = 0;\n realtimeList.notifyDat...
"public static void handleOnRender(DataContent content, ExecutionContext context) {\n try {\n ReportItemDesign dataItemDesign = (ReportItemDesign) content.getGenerateBy();\n IDataItemInstance dataItem = new DataItemInstance(content, context);\n if (handleJS(dataItem, dataItemDesign.getOnRender()...
"public void fillDataSetDescription() {\n EDataType dataType = numericalDataPropertiesWidget.getDataType();\n DataDescription dataDescription = new DataDescription(dataType == EDataType.FLOAT ? EDataClass.REAL_NUMBER : EDataClass.NATURAL_NUMBER, dataType, numericalDataPropertiesWidget.getNumericalProperties());\n...
"protected void outputImg(Element ele, HashMap cssStyles, IContent content) {\n String src = ele.getAttribute(\"String_Node_Str\");\n if (src != null) {\n IImageContent image = new ImageContent(content);\n addChild(content, image);\n handleStyle(ele, cssStyles, image);\n if (!FileUtil....
"public static void showChildViews(ExpandableListAdapter mAdapter, LinearLayout mLinearLayout, int groupPosition, View groupView, boolean animate) {\n int childCount = Math.min(mAdapter.getChildrenCount(groupPosition), STATS_CHILD_MAX_ITEMS);\n if (childCount == 0) {\n return;\n }\n final ViewGroup c...
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n registerReceiver(disposedReceiver, new IntentFilter(DISPOSED_ACTION));\n Pair<Intent, Integer> intentRequestPair;\n RxGallery.Request request = getIntent().getParcelableExtra(EXTRA_REQUEST);\n switch(request.get...
"public int run(String[] args) throws Exception {\n addInputOption();\n addOutputOption();\n addOption(DefaultOptionCreator.overwriteOption().create());\n addOption(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n addOption(\"String_Node_Str\", \"String_Node_Str\", \...
"private VerticalCRS parseVertCS(final Element parent) throws ParseException {\n final Element element = parent.pullElement(WKTKeywords.Vert_CS);\n final String name = element.pullString(\"String_Node_Str\");\n final VerticalDatum datum = parseVertDatum(element);\n final Unit<Length> linearUnit = parseUnit(...
"public static String typeName(Object varName) {\n if (varName == null) {\n return \"String_Node_Str\";\n } else {\n String name = varName.getClass().getName();\n if (name.lastIndexOf(\"String_Node_Str\") >= 0) {\n name = name.substring(name.lastIndexOf(\"String_Node_Str\") + 1);\n...
"private void processingEnd(final int numEntries) {\n System.out.printf(\"String_Node_Str\", numEntries);\n final int avgQualScore = (int) (sumQualScores / numQualScoresSampled);\n final String likelyEncoding;\n if (!qualityScoresFound) {\n likelyEncoding = \"String_Node_Str\";\n } else if (avgQua...
"public int setWhite() {\n if (localIndex == -1) {\n throw new NoSuchElementException(\"String_Node_Str\");\n } else if (currentNode == null || getIndex() >= barcode.treeSize() || localIndex < currentNode.whiteSpace) {\n return getWhiteIndex();\n } else if (getIndex() != barcode.treeSize() - 1) {...
"private void writeInjectMethod(JavaWriter jw, TypeElement element, AnnotatedFragment fragment) throws IOException, ProcessingException {\n Set<ArgumentAnnotatedField> allArguments = fragment.getAll();\n String fragmentType = supportAnnotations ? \"String_Node_Str\" + element.getSimpleName().toString() : element....
"public boolean onPartShiftActivate(EntityPlayer player, Vec3 pos) {\n ItemStack is = player.inventory.getCurrentItem();\n if (is != null && is.getItem() instanceof IMemoryCard) {\n IMemoryCard mc = (IMemoryCard) is.getItem();\n NBTTagCompound data = new NBTTagCompound();\n long newFreq = fre...
"public void refreshAllChildNodes(RepositoryNode rootNode) {\n if (rootNode != null) {\n rootNode.setInitialized(false);\n if (rootNode.getContentType() != null && !rootNode.getContentType().equals(ERepositoryObjectType.METADATA))\n rootNode.getChildren().clear();\n if (rootNode.getPa...
"public CharSequence render(ZDoc doc) {\n Tag html = tag(\"String_Node_Str\");\n Tag head = tag(\"String_Node_Str\");\n html.add(head);\n head.add(tag(\"String_Node_Str\").attr(\"String_Node_Str\", \"String_Node_Str\").attr(\"String_Node_Str\", \"String_Node_Str\"));\n if (!Strings.isBlank(doc.getTitle()...
"public void onFocus(FocusEvent event) {\n focusHint();\n prevText = getText();\n isFocused = true;\n}\n"
"public ListenableFuture<Object[]> getContentsAndDeserialize(ByteString fingerprint, DeserializationContext deserializationContext) throws IOException {\n ListenableFuture<Object[]> contents = nestedSetCache.contentsForFingerprint(fingerprint);\n if (contents != null) {\n return contents;\n }\n Liste...
"public Boolean apply(Game game, Permanent permanent) {\n if (!permanent.getCardType().contains(CardType.ENCHANTMENT)) {\n permanent.getCardType().add(CardType.ENCHANTMENT);\n }\n return false;\n}\n"
"public boolean step() {\n CoreRegistry.put(WorldGeneratorPluginLibrary.class, new WorldGeneratorPluginLibrary(CoreRegistry.get(ModuleManager.class).getEnvironment(), CoreRegistry.get(ReflectFactory.class), CoreRegistry.get(CopyStrategyLibrary.class)));\n StorageManager storageManager = CoreRegistry.put(StorageMa...
"private void receiveMessage(final Message message) {\n final String messageBody = message.getBody();\n if ((Type.error != message.getType()) && Empty.not(messageBody)) {\n final Delay delay = DelayHelper.getDelay(message);\n final String color = ColorHelper.getColor(message.getFrom().getJID());\n ...
"public void run() {\n Log.v(LOG_TAG, \"String_Node_Str\");\n animationDisplayIdx = (animationDisplayIdx + 1) % nAnimationFrames;\n Message msg = Message.obtain();\n msg.what = NetworkProtocol.NETWORK_RET_ANIMATION;\n msg.obj = animationFrames[animationDisplayIdx];\n returnMsgHandler.sendMessage(msg);...
"public void selectionChanged(SelectionChangedEvent event) {\n IStructuredSelection selection = (IStructuredSelection) event.getSelection();\n TalendPropertyTabDescriptor descriptor = (TalendPropertyTabDescriptor) selection.getFirstElement();\n if (descriptor == null) {\n return;\n }\n if (current...
"public void resolveTypes(MarkerList markers, IContext context) {\n for (int i = 0; i < this.genericCount; i++) {\n this.generics[i] = this.generics[i].resolve(markers, context, TypePosition.TYPE);\n }\n}\n"
"private URL getImageUrl(ImageSize size) {\n String hostUrl = ServerUtils.getAppspotHostUrl();\n try {\n return new URL(hostUrl + \"String_Node_Str\" + (size == ImageSize.thumb ? \"String_Node_Str\" : \"String_Node_Str\") + getSecret() + \"String_Node_Str\" + KeyFactory.keyToString(id));\n } catch (Malf...
"public boolean add(E obj) {\n if (size == maxSize) {\n return false;\n objects[add] = obj;\n add++;\n size++;\n if (add == maxSize) {\n add = 0;\n }\n return true;\n}\n"
"protected void applyLayoutInternal(InternalNode[] entitiesToLayout, InternalRelationship[] relationshipsToConsider, double boundsX, double boundsY, double boundsWidth, double boundsHeight) {\n BundleDependencyContentResult contentResult = this.contentProvider.getContentResult();\n Set<IBundle> rootBundles = cont...
"public static synchronized void handleApplicationDeployment(Application application, ApplicationClusterContext[] appClusterContexts) {\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + application.getUniqueIdentifier());\n }\n ApplicationHolder.persistApplication(application);\n for (A...
"private void init(View rootView) {\n getActivity().setTitle(R.string.nav_stayapply);\n mAccountPrefs = getActivity().getSharedPreferences(getString(R.string.PREFS_ACCOUNT), MODE_PRIVATE);\n mDefaultStatusPrefs = getActivity().getSharedPreferences(getString(R.string.PREFS_DEFAULTSTATUS), MODE_PRIVATE);\n mD...
"private Object[] filterOutDuplicatedElems(List<XSDElementDeclaration> xsdElementDeclarations) {\n List<XSDElementDeclaration> list = new ArrayList<XSDElementDeclaration>();\n for (XSDElementDeclaration el : (XSDElementDeclaration[]) xsdElementDeclarations.toArray(new XSDElementDeclaration[xsdElementDeclarations....
"private void save() {\n String userName = nameTxt.getText().trim();\n if (userName.equals(\"String_Node_Str\")) {\n GuiUtils.showErrorMessage(this, \"String_Node_Str\");\n return;\n }\n try {\n BaseUser user = new BaseUser();\n user.setName(userName);\n if (setPassword(us...
"private int filterFeedbackResponseCommentResults(FeedbackResponseCommentSearchResultBundle frCommentSearchResults, List<InstructorAttributes> instructors, int totalResultsSize) {\n Iterator<Entry<String, List<FeedbackResponseAttributes>>> iterFr = frCommentSearchResults.responses.entrySet().iterator();\n while (...
"public void T_setFloat_2() throws IOException {\n IColumn column = new PrimitiveColumn(ColumnType.FLOAT, \"String_Node_Str\");\n column.add(ColumnType.FLOAT, new FloatObj((float) 100), 0);\n column.add(ColumnType.FLOAT, new FloatObj((float) 200), 1);\n column.add(ColumnType.FLOAT, new FloatObj((float) 255)...
"public Builder withId(final String id) {\n this.bId = StringUtils.isBlank(id) ? null : id;\n return this;\n}\n"
"public Long getId() {\n return id.getValue();\n}\n"
"public void registerRecordPerspective(RecordPerspective recordPerspective) {\n if (recordPerspective.getPerspectiveID() == null)\n throw new IllegalStateException(\"String_Node_Str\" + recordPerspective);\n if (!recordPerspective.getIdType().equals(dataDomain.getRecordIDType()))\n throw new Illegal...
"public boolean upgradeVirtualMachine(Long vmId, Long newServiceOfferingId, Map<String, String> customParameters) throws ResourceUnavailableException, ConcurrentOperationException, ManagementServerException, VirtualMachineMigrationException {\n VMInstanceVO vmInstance = _vmInstanceDao.findById(vmId);\n if (vmInst...
"void init(ChannelPipeline pipeline) {\n pipeline.addLast(\"String_Node_Str\", new HttpResponseEncoder());\n pipeline.addLast(\"String_Node_Str\", new HttpRequestDecoder());\n pipeline.addLast(\"String_Node_Str\", new HttpObjectAggregator(65536));\n pipeline.addLast(\"String_Node_Str\", new WebSocketServerP...
"public void validateVo(EntityManager em, UserVo vo) throws InvalidVoException {\n if (vo == null) {\n throw new InvalidVoException(\"String_Node_Str\");\n }\n if (vo.getFirstName() == null || vo.getFirstName().isEmpty()) {\n throw new InvalidVoException(\"String_Node_Str\");\n }\n if (vo.g...
"private void onAddEmptyColumn(AddNewColumnEvent event) {\n if (preview != null || templateColumn != null)\n return;\n int index;\n if (event.getObjectId() <= 0) {\n index = -1;\n } else {\n BrickColumnManager brickColumnManager = stratomex.getBrickColumnManager();\n BrickColumn ...
"public void failure(RetrofitError error) {\n if (mAdapter == null || mAdapter.isEmpty()) {\n mMultiView.setErrorText(R.id.errorMessage, ApiClient.getErrorCode(error));\n mMultiView.setViewState(MultiStateView.VIEW_STATE_ERROR);\n } else {\n SnackBar.show(NotificationActivity.this, ApiClient....
"public boolean isHandled() {\n return handled;\n}\n"
"private V getResult() {\n if (defaultValue != null) {\n return defaultValue;\n }\n if (deserializedValue != null) {\n return deserializedValue;\n } else {\n if (valueData != null) {\n deserializedValue = serializationService.toObject(valueData);\n }\n return de...
"public FloatCContainer log(int iBase) {\n float[] fArTarget = new float[container.length];\n float fTmp;\n for (int index = 0; index < fArContainer.length; index++) {\n fTmp = fArContainer[index];\n fArTarget[index] = (float) Math.log(fTmp) / (float) Math.log(iBase);\n if (fArTarget[index...
"public List<PortConfig> deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {\n Gson jsonp = s_gBuilder.create();\n List<PortConfig> pcs = jsonp.fromJson(json, listType);\n return pcs;\n}\n"
"public static void createBootImageObjects(Vector<String> typeNames, String bootImageTypeNamesFile) throws IllegalAccessException {\n Callbacks.notifyBootImage(typeNames.elements());\n long startTime = 0;\n long stopTime = 0;\n if (verbose >= 1)\n say(\"String_Node_Str\");\n if (profile)\n ...
"private ItemStack findNextColor(ItemStack is, ItemStack anchor, int scrollOffset) {\n ItemStack newColor = null;\n IMEInventory<IAEItemStack> inv = AEApi.instance().registries().cell().getCellInventory(is, StorageChannel.ITEMS);\n if (inv != null) {\n IItemList<IAEItemStack> itemList = inv.getAvailable...
"public Sequence sequenceLength(String region) {\n Sequence sequence = sequence(region);\n sequence.dna = \"String_Node_Str\";\n return sequence;\n}\n"
"public boolean canLeaveThePage() {\n if (isDirty()) {\n MessageDialog prefDialog = new MessageDialog(UIUtil.getDefaultShell(), Messages.getString(\"String_Node_Str\"), null, Messages.getString(\"String_Node_Str\"), MessageDialog.INFORMATION, new String[] { Messages.getString(\"String_Node_Str\"), Messages.ge...
"public void testDitaKeyspaceConstruction() throws Exception {\n Element resourceElement = null;\n URI resourceUri = null;\n DitaKeySpace keySpace;\n KeyAccessOptions keyAccessOptions = new KeyAccessOptions();\n DitaKeyDefinitionContext keydefContext = dlmService.registerRootMap(rootMap);\n assertNotN...
"public void fillProperties(Form formElNodeForm, FormElement fe, Object formElementProperty, PropertyDescription propertySpec, DataAdapterList dal, WebFormComponent component, Object componentNode, String level) {\n IPropertyType<?> type = propertySpec.getType();\n if (propertySpec.isArray() && formElementPropert...
"public void doSave(final IProgressMonitor monitor) {\n if (!isDirty()) {\n return;\n }\n updateRunJobContext();\n designerEditor.getProcess().getProperty().eAdapters().remove(dirtyListener);\n IRepositoryService service = CorePlugin.getDefault().getRepositoryService();\n IProxyRepositoryFactor...
"public void widgetSelected(SelectionEvent e) {\n remainDBTypeList.clear();\n remainDBTypeList.addAll(allDBTypeList);\n for (PatternComponent patternComponent : tempPatternComponents) {\n String language = ((RegularExpressionImpl) patternComponent).getExpression().getLanguage();\n String language...
"public List<Extension> extract() throws IOException, InterruptedException {\n File tempDir = File.createTempFile(\"String_Node_Str\", \"String_Node_Str\");\n tempDir.delete();\n tempDir.mkdirs();\n StandardJavaFileManager fileManager = null;\n try {\n File srcdir = new File(tempDir, \"String_Node...
"public IValue withType(IType arrayType, ITypeContext typeContext, MarkerList markers, IContext context) {\n if (!arrayType.isArrayType()) {\n IClass iclass = arrayType.getTheClass();\n if (iclass == Types.OBJECT_CLASS || iclass == null) {\n return this;\n }\n if (iclass.getAnn...
"public ArtifactSet link(TreeLogger logger, LinkerContext context, ArtifactSet artifacts, boolean onePermutation) throws UnableToCompleteException {\n if (onePermutation) {\n ArtifactSet toReturn = new ArtifactSet(artifacts);\n for (CompilationResult compilation : toReturn.find(CompilationResult.class)...
"public void expandLobbyUp(int amount) {\n l2.setY(Math.min(arena.getWorld().getMaxHeight(), l2.getY() + amount));\n set(RegionPoint.L2, l2);\n}\n"
"public String getCommandLine() {\n try {\n return nativeWindowsProcess.getCommandLine();\n } catch (WinpException exc) {\n System.out.println(exc.getLocalizedMessage());\n return \"String_Node_Str\";\n }\n}\n"
"public void testName002Negative() throws Exception {\n boolean exception = false;\n String msg = null;\n String src = \"String_Node_Str\";\n String tmpdir = System.getenv(\"String_Node_Str\");\n try {\n Class[] jClasses = new Class[] { Name002.class };\n Generator gen = new Generator(new J...
"public void map(ImmutableBytesWritable row, Result values, Context context) throws IOException {\n Preconditions.checkState(values != null, \"String_Node_Str\");\n String currentFamilyName = null;\n String currentQualifierName = null;\n String currentRowKey = null;\n Configuration config = context.getCo...
"public static String RToSqlUdf(String RExp) {\n return RToSqlUdf(RExp, null, null);\n}\n"
"public ValueAxis getDomainAxisForDataset(int index) {\n int upper = Math.max(getDatasetCount(), getRendererCount());\n if (index < 0 || index >= upper) {\n throw new IllegalArgumentException(\"String_Node_Str\" + index + \"String_Node_Str\");\n }\n ValueAxis valueAxis;\n List axisIndices = (List)...
"public DynRealm save(final DynRealm dynRealm) {\n DynRealm merged = entityManager().merge(dynRealm);\n clearDynMembers(merged);\n merged.getDynMemberships().stream().map(memb -> jpaAnySearchDAO().search(SearchCondConverter.convert(memb.getFIQLCond()), memb.getAnyType().getKind())).forEachOrdered(matching -> {...
"private boolean evalTypePredicate(Node ttlAst, NameResolver nameResolver) {\n TypeI[] params = evalTypeParams(ttlAst, nameResolver);\n String name = getCallName(ttlAst);\n Keywords keyword = nameToKeyword(name);\n TypeI type = params[0];\n switch(keyword) {\n case EQ:\n return type.isE...
"public void testSimpleAdd() throws Exception {\n TestUtils.assertMemoryLeak(() -> {\n int N = 100000;\n try (SymbolMapWriter writer = new SymbolMapWriter(configuration, \"String_Node_Str\", 4, Numbers.ceilPow2(N / 2))) {\n Rnd rnd = new Rnd();\n long prev = -1L;\n for ...
"public void initializeUI(UIBuilder builder) throws Exception {\n JavaCompilerFacet javaCompilerFacet = getJavaCompilerFacet(builder.getUIContext());\n sourceVersion.setDefaultValue(javaCompilerFacet.getSourceCompilerVersion());\n targetVersion.setDefaultValue(javaCompilerFacet.getTargetCompilerVersion());\n ...
"private void sendPack() throws IOException {\n final boolean thin = options.contains(OPTION_THIN_PACK);\n final boolean progress = !options.contains(OPTION_NO_PROGRESS);\n final boolean sideband = options.contains(OPTION_SIDE_BAND) || options.contains(OPTION_SIDE_BAND_64K);\n ProgressMonitor pm = NullProgr...
"public void setModelMatrix2d(double left, double right, double bottom, double top) {\n AffineTransform3d XMW = new AffineTransform3d();\n double w = right - left;\n double h = top - bottom;\n XMW.A.m00 = 2 / w;\n XMW.A.m11 = 2 / h;\n XMW.p.set(-(left + right) / w, -(top + bottom) / h, 0);\n setMod...
"public void setUp() throws MojoExecutionException, MojoFailureException {\n builder = new Library();\n if (directory != null) {\n builder.setDirectory(directory);\n }\n super.setUp();\n if (outputFile == null) {\n if (output == null) {\n outputFile = new File(build.getDirectory(...
"private void buildCashStream() {\n stream = new CashStream();\n TimePoint ref = DateRoller.NEXT_BUZ_DAY.roll(timestamp);\n TimePoint payday = DateRoller.MOD_NEXT_BUZ_DAY.roll(ref.plus(maturity));\n if (payday.minus(ref).getDay() <= 0)\n payday = DateRoller.NEXT_BUZ_DAY.roll(ref.plus(maturity));\n ...
"final void startActivityLocked(ActivityRecord r, boolean newTask, boolean doResume, boolean keepCurTransition, Bundle options) {\n TaskRecord rTask = r.task;\n final int taskId = rTask.taskId;\n if (!r.mLaunchTaskBehind && (taskForIdLocked(taskId) == null || newTask)) {\n insertTaskAtTop(rTask, r);\n ...
"public List evaluateList(Evaluator evaluator) {\n final Member member = memberCalc.evaluateMember(evaluator);\n List result = new ArrayList();\n int depth = depthCalc.evaluateInteger(evaluator);\n final SchemaReader schemaReader = evaluator.getSchemaReader();\n if (depth < 0) {\n depth = -1;\n ...
"public void outputInstructionStack(PrintWriter pw) {\n pw.println(\"String_Node_Str\");\n ListIterator stackIter = instructionStack.listIterator(instructionStack.size());\n boolean topElement = true;\n while (stackIter.hasPrevious()) {\n TemplateElement stackEl = (TemplateElement) stackIter.previous...
"public IValue checkArguments(MarkerList markers, ICodePosition position, IContext context, IValue instance, IArguments arguments, ITypeContext typeContext) {\n int len = arguments.size();\n if ((this.modifiers & Modifiers.PREFIX) == Modifiers.PREFIX) {\n IValue argument = arguments.getFirstValue();\n ...
"private static Map<String, String> parse(String line, String body) {\n String[] fields = body.split(\"String_Node_Str\");\n Map<String, String> attributes = new LinkedHashMap<String, String>();\n for (String field : fields) {\n String[] nameValPair = field.split(\"String_Node_Str\");\n if (nameV...
"public void testResolveItem4MissItemFile() throws Exception {\n ImportBasicHandler basicHandler = new ImportBasicHandler();\n ImportItem ImportItem = new ImportItem(processPropPath1);\n ImportItem.setItemName(processPropPath1.lastSegment());\n Property property = mock(Property.class);\n itemRecord.setPr...
"private Node createElement(Node parent, XPathFragment fragment, NamespaceResolver namespaceResolver, Node value) {\n String elementName = fragment.getXPath();\n Document document = parent.getOwnerDocument();\n if ((document == null) && (parent.getNodeType() == Node.DOCUMENT_NODE)) {\n document = (Docum...
"public Format[] getSupportedOutputFormats(Format input) {\n if (input == null)\n return supportedOutputFormats;\n }\n size = ((VideoFormat) supportedOutputFormats[0]).getSize();\n if (size != null) {\n return supportedOutputFormats;\n }\n size = ((VideoFormat) input).getSize();\n ret...
"public static void main(String[] args) {\n Group group = new Group();\n group.close();\n group.commit();\n TableBase a = group.getTable(\"String_Node_Str\");\n long tableCount = group.getTableCount();\n String firstTableName = group.getTableName(0);\n if (group.hasTable(\"String_Node_Str\")) {\n ...
"public EasyJsonObject action(Sender sender, int command, EasyJsonObject requestObject) throws SQLException {\n String id = requestObject.getString(\"String_Node_Str\");\n String hashedId = SHA256.encrypt(id);\n String data = requestObject.getString(\"String_Node_Str\");\n File file = new File(\"String_Node...
"public int executeCommand(CommandContext context) {\n if (context.getArgumentCount() == 0) {\n ServiceComponent[] sc = (ServiceComponent[]) registry.getAllComponents(ServiceComponent.class);\n for (int i = 0; i < sc.length; i++) {\n context.out.printf(\"String_Node_Str\", sc[i].getName(), s...
"private boolean getChildrenVisibility(final InMemoryTreeNode<T> node) {\n boolean visibility;\n final List<InMemoryTreeNode<T>> children = node.getChildren();\n if (children.isEmpty()) {\n visibility = visibleByDefault;\n }\n return visibility;\n}\n"
"public ODataResponse handleRequest(final ODataRequest suppliedRequest) throws ODataException {\n ODataRequest request;\n String mimeHeaderContentId = suppliedRequest.getRequestHeaderValue(BatchConstants.MIME_HEADER_CONTENT_ID.toLowerCase(Locale.ENGLISH));\n String requestHeaderContentId = suppliedRequest.getR...
"public void setIcon(String iconStyle) {\n if (currentStyle != null) {\n icon.removeStyleName(currentStyle);\n }\n currentStyle = iconStyle;\n icon.addStyleName(iconStyle);\n}\n"