content stringlengths 40 137k |
|---|
"public void setDefaultTemplatePreference() {\n String defaultRootDir = UIUtil.getFragmentDirectory();\n File templateFolder = new File(defaultRootDir, \"String_Node_Str\");\n PreferenceFactory.getInstance().getPreferences(this).setDefault(TEMPLATE_PREFERENCE, templateFolder.getAbsolutePath());\n}\n"
|
"private static void addGroups(String userName, String[] groupNames) throws ApplicationException {\n if (userName == null) {\n throw new ApplicationException(ResourceUtil.getString(\"String_Node_Str\"));\n }\n if (groupNames == null || groupNames.length < 1) {\n throw new ApplicationException(Res... |
"private void refreshRange() {\n if (range == null) {\n range = new Range(min, max);\n } else {\n range.trimBounds(min, max);\n }\n if ((Float) min > upperBound || (Float) max < upperBound || lowerBound.equals(upperBound)) {\n upperBound = (Float) max;\n }\n range = new Range(lowe... |
"public static int add(ItemStack item, Inventory inventory) {\n if (item.getAmount() < 1) {\n return 0;\n }\n int amountLeft = item.getAmount();\n int maxStackSize = item.getMaxStackSize();\n for (int currentSlot = 0; currentSlot < inventory.getSize() && amountLeft > 0; currentSlot++) {\n I... |
"protected void initialize() {\n ftpUsernameText.setText(getConnection().getUsername());\n ftpPasswordText.setText(getConnection().getPassword());\n ftpPortText.setText(getConnection().getPort());\n ftpHostText.setText(getConnection().getHost());\n encodeCombo.setText(getConnection().getEcoding());\n ... |
"public void run() {\n while (!stop) {\n try {\n message = read();\n if (message.getPayloadType() == CastChannel.CastMessage.PayloadType.STRING) {\n LOG.debug(\"String_Node_Str\", message.getPayloadUtf8());\n final String jsonMSG = message.getPayloadUtf8().r... |
"public void onClientTick(ClientTickEvent e) {\n if (e.phase != Phase.START)\n return;\n if ((keyOpenCompendium.isPressed() || Keyboard.getEventKeyState() && Keyboard.getEventKey() == keyOpenCompendium.getKeyCode()) && (mc.inGameHasFocus || mc.currentScreen instanceof GuiContainer)) {\n if (canOpenC... |
"private static void applyFilter(Bitmap source, Bitmap result, FilterType type) {\n GPUImage gpuImage = new GPUImage(context);\n gpuImage.setImage(source);\n gpuImage.setFilter(type.getFilter());\n try {\n Bitmap filtered = gpuImage.getBitmapWithFilterApplied();\n int[] pixels = new int[filter... |
"public boolean needsTaskCommit(TaskAttemptContext context) throws IOException {\n int numReduceTasks = context.getNumReduceTasks();\n TaskAttemptID taskAttemptID = context.getTaskAttemptID();\n return taskAttemptID.isMap() && numReduceTasks != 0 ? false : true;\n}\n"
|
"public Object intercept(Object receiver, Method method, Object[] parameters, MethodProxy methodProxy) throws Throwable {\n if (methodHandlingEnabled && stackDepth.get() == 0 && !method.getDeclaringClass().equals(Object.class)) {\n scenarioMethodHandler.handleMethod(receiver, method, parameters);\n }\n ... |
"private Object handleChild(Object child, int maxDepth) throws Exception {\n if (child instanceof OTID && (maxDepth == -1 || maxDepth > 0)) {\n CopyEntry itemCopyEntry = getCopyEntry((OTID) child);\n if (itemCopyEntry == null) {\n OTDataObject itemObj = otDb.getOTDataObject(root, (OTID) chil... |
"private void globalScalingAction(ActionEvent event) {\n JCheckBoxMenuItem item = (JCheckBoxMenuItem) event.getSource();\n if (heatTrellis.plateViewers.isEmpty()) {\n heatMapModel.setGlobalScaling(item.isSelected());\n return;\n Object[] options = { \"String_Node_Str\", \"String_Node_Str\" };\n ... |
"public boolean isRequired() {\n return true;\n}\n"
|
"private static MultipleAlignment seedFromReference(List<AFPChain> afpList, List<Atom[]> atomArrays, int ref) throws StructureAlignmentException, StructureException {\n int size = atomArrays.size();\n int length = 0;\n if (ref == 0)\n length = afpList.get(1).getCa1Length();\n else\n length = a... |
"private void checkPage() {\n String projectName = projectText.getText();\n setErrorMessage(null);\n try {\n if (!myDirectory.exists()) {\n setErrorMessage(NLS.bind(UIText.GitCreateGeneralProjectPage_DirNotExistMessage, myDirectory.getPath()));\n return;\n }\n if (!my... |
"public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);\n getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);\n int orientation = newConfig.orientation;\n if (... |
"public void put(final String key, final String val) {\n value.get().put(key, fromNullable(val).or(\"String_Node_Str\"));\n}\n"
|
"private void doFiltering(boolean filtering, boolean restoring) {\n RepositoryNodeFilterHelper.filter(this.getActionSite(), filtering, isPerspectiveFiltering, restoring);\n}\n"
|
"public Collection<PsiElement> getItems(CSharpTypeDeclaration typeDeclaration) {\n Collection<PsiElement> allMembers = OverrideUtil.getAllMembers(typeDeclaration, typeDeclaration.getResolveScope(), DotNetGenericExtractor.EMPTY, false, true);\n boolean isInterface = typeDeclaration.isInterface();\n List<PsiElem... |
"private void interceptMessageAndCheckIntegrityIfNecessary(I id, M2 message) {\n if (debugConfig.shouldCheckMessageIntegrity() && !debugConfig.isMessageCorrect(vertexId, id, message) && numMessageViolationsLogged < NUM_VIOLATIONS_TO_LOG) {\n msgIntegrityViolationWrapper.addMsgWrapper(vertexId, id, message);\n... |
"protected void setAttribute(final short tag, final Object value, final boolean isUnsignedArray) {\n if (value == null) {\n if (this.mAttributes != null) {\n this.mAttributes = this.mAttributes.remove(tag);\n }\n } else {\n final SAMBinaryTagAndValue tmp;\n if (!isUnsignedAr... |
"private void initComponentProperties() {\n IComponentIdentifier compId = getNode().getCompIdentifier();\n if (compId != null) {\n Map<String, String> componentProperties = compId.getComponentPropertiesMap();\n if (componentProperties != null) {\n for (String key : componentProperties.key... |
"public boolean handle(TemplatePlanContext context, AbstractNodeTemplate nodeTemplate, List<String> selectionStrategies) {\n String inputFieldName = nodeTemplate.getId() + \"String_Node_Str\";\n context.addStringValueToPlanRequest(inputFieldName);\n String nodeInstanceVarName = this.findInstanceVar(context, no... |
"public static FormRecord updateAndWriteRecord(Context context, CommCarePlatform platform, FormRecord oldRecord, String newStatus, SqlStorage<FormRecord> storage) throws InvalidStructureException, IOException, XmlPullParserException, UnfullfilledRequirementsException {\n Pair<FormRecord, String> recordUpdates = repa... |
"public boolean onInterceptTouchEvent(MotionEvent ev) {\n final int action = MotionEventCompat.getActionMasked(ev);\n if (!mCanSlide || !mIsSlidingEnabled || (mIsUnableToDrag && action != MotionEvent.ACTION_DOWN)) {\n mDragHelper.cancel();\n return super.onInterceptTouchEvent(ev);\n }\n if (ac... |
"private boolean isRightAligned(int week) {\n return week <= 1;\n}\n"
|
"public void remove() {\n super.remove();\n for (int i = affectedBlocks.size() - 1; i > -1; i--) {\n final TempBlock tblock = affectedBlocks.get(i);\n tblock.revertBlock();\n if (TEMP_LAVA_BLOCKS.values().contains(tblock)) {\n affectedBlocks.remove(tblock);\n TEMP_LAVA_B... |
"public Function2D build(Instances instances) {\n List<Attribute> attributes = instances.getAttributes();\n int size1 = 0;\n Attribute f1 = attributes.get(attIndex1);\n if (f1.getType() == Attribute.Type.BINNED) {\n size1 = ((BinnedAttribute) f1).getNumBins();\n } else if (f1.getType() == Attribut... |
"public int compare(Object o1, Object o2) {\n if (o1.getClass().isInstance(o2))\n return 0;\n Class[] classes = new Class[] { FieldDeclaration.class, TypeDeclaration.class, MethodDeclaration.class, Initializer.class };\n for (int i = 0; i < classes.length; i++) if (classes[i].isInstance(o1))\n fo... |
"public void attackAI(AgentGoalTarget target) {\n for (int i = 0; i < 3; i++) {\n if (x > target.getX())\n xSpeed = -1;\n if (x < target.getX())\n xSpeed = 1;\n if (y > target.getY())\n ySpeed = -1;\n if (y < target.getY())\n ySpeed = 1;\n ... |
"final public String getParameterValue(String name, NamedObj container) throws IllegalActionException {\n if (name.contains(\"String_Node_Str\")) {\n name = processCode(name);\n }\n StringTokenizer tokenizer = new StringTokenizer(name, \"String_Node_Str\");\n String attributeName = tokenizer.nextToke... |
"private void processEditMetadataOne(Context context, HttpServletRequest request, HttpServletResponse response, SubmissionInfo subInfo) throws ServletException, IOException, SQLException, AuthorizeException {\n String buttonPressed = UIUtil.getSubmitButton(request, \"String_Node_Str\");\n if (buttonPressed.equals... |
"private int hash(Object o) {\n return ((useIdentity ? System.identityHashCode(o) : o.hashCode()) & 0x7FFFFFFF) % initialHash.length;\n}\n"
|
"public String getTimeBegin(int stNum) {\n if (profileData != null && profileList.containsKey((Integer) stNum)) {\n return df.toDateTimeStringISO(profileList.get(stNum).getTime());\n } else {\n return ERROR_NULL_DATE;\n }\n}\n"
|
"public void writeOne(Address address, T op) throws IOException {\n byte[] addressAsBytes = address.toKey(idService);\n byte[] rowKey = ArrayUtils.addAll(uniqueCubeName, addressAsBytes);\n if (DebugHack.isEnabled()) {\n DebugHack.log(\"String_Node_Str\" + new String(tableName) + \"String_Node_Str\" + ne... |
"public void showSuggestionList(MVVObject sug) {\n try {\n mvvList = sug.getResultList();\n final MVVSuggestion sugestion = (MVVSuggestion) mvvList.get(0);\n final MVVDelegate delegate = this;\n new Thread(new Runnable() {\n public void run() {\n (new MVVJsoupPar... |
"public ForgottenPasswordKeyDaoInterface getForgottenPasswordKeyDao() {\n if (forgottenPasswordKeyDao == null) {\n forgottenPasswordKeyDao = new SqlForgottenPasswordKeyDao(new SimpleDeleteBehavior<ForgottenPasswordKeyEntity>());\n }\n return forgottenPasswordKeyDao;\n}\n"
|
"public void run() {\n Thread.currentThread().setUncaughtExceptionHandler((UncaughtExceptionHandler) this);\n try {\n ListenerRegistry.getInstance().fireEvent(new Hertz());\n } catch (EventFailedException e) {\n } catch (Exception t) {\n LOG.error(t);\n Logs.extreme().error(t, t);\n ... |
"public UIWidget deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {\n JsonObject jsonObject = json.getAsJsonObject();\n String type = jsonObject.get(\"String_Node_Str\").getAsString();\n ClassMetadata<? extends UIWidget, ?> elementMetadata = nuiManager.g... |
"public IContextInformation[] computeContextInformation(ITextViewer viewer, int offset) {\n ArrayList proposals = new ArrayList();\n ArrayList proposers = new ArrayList();\n if (viewer.getDocument() instanceof ICFEFileDocument) {\n proposers = ((ICFEFileDocument) viewer.getDocument()).getContentAssistMa... |
"public EndPoint getEndPointForTalkingTo(Node node) {\n if (node.getLocal())\n return myListenEp.toMsg();\n return getPublicEndPoint();\n}\n"
|
"public void testCp() throws IOException, StructureException {\n Structure structure = cache.getStructure(\"String_Node_Str\");\n String first = (\"String_Node_Str\");\n String second = (\"String_Node_Str\");\n int y = 0;\n for (int i = 0; i < second.length(); i++) if (second.charAt(i) == '-' || Characte... |
"public SoundSource setLooping(boolean looping) {\n alSourcei(this.getSourceId(), AL_LOOPING, looping ? AL_TRUE : AL_FALSE);\n OpenALException.checkState(\"String_Node_Str\");\n return this;\n}\n"
|
"private void writeTableRow(int algorithmIndex, String problem) throws IOException {\n fileWriter_.write(\"String_Node_Str\" + experiment_.getAlgorithmNameList()[algorithmIndex] + \"String_Node_Str\");\n for (int i = 0; i < experiment_.getAlgorithmNameList().length; i++) {\n if (i != algorithmIndex) {\n ... |
"public IProgressMonitor poweron(String instanceId) throws IOException {\n String instanceUrl = getInstanceUrl(instanceId);\n HttpPut put = new HttpPut(MessageFormat.format(\"String_Node_Str\", instanceUrl));\n try {\n execute(put);\n return new ProgressMonitor(instanceUrl, Collections.singleton(... |
"private static void assertDesignPrivileges(User user, UserDatabase database) {\n if (!database.isAllowedDesign(user)) {\n throw new UnauthorizedAccessException(\"String_Node_Str\" + database.getId() + \"String_Node_Str\");\n }\n}\n"
|
"public void setUp() throws Exception {\n super.setUp();\n bot = new SWTBot();\n keyboard = new Keyboard();\n bot.shell(\"String_Node_Str\").activate();\n bot.tabItem(\"String_Node_Str\").activate();\n bot.checkBox(\"String_Node_Str\").select();\n bot.checkBox(\"String_Node_Str\").select();\n bo... |
"public ImageStore discoverImageStore(AddImageStoreCmd cmd) throws IllegalArgumentException, DiscoveryException, InvalidParameterValueException {\n String providerName = cmd.getProviderName();\n DataStoreProvider storeProvider = _dataStoreProviderMgr.getDataStoreProvider(providerName);\n if (storeProvider == n... |
"protected ISynchAsynchConnection createConnection(ID remoteSpace, Object data) throws ConnectionCreateException {\n trace(\"String_Node_Str\" + remoteSpace + \"String_Node_Str\" + data);\n final ISynchAsynchConnection conn = new HttpClient(receiver);\n return conn;\n}\n"
|
"private void unlockFailedInt(long offset, int lowId) throws IllegalMonitorStateException {\n long currentValue = readInt(offset);\n long holderId = currentValue & INT_LOCK_MASK;\n if (holderId == lowId) {\n currentValue -= 1 << 24;\n writeOrderedInt(offset, (int) currentValue);\n } else if (c... |
"public static void loadClasses() {\n try {\n ActivationFunctions.initFunctionSet();\n setupSaveDirectory();\n fitnessFunctions = new ArrayList<String>();\n aggregationOverrides = new ArrayList<Statistic>();\n boolean loadFrom = !Parameters.parameters.stringParameter(\"String_Node_... |
"public ResourceTO create(final HttpServletResponse response, final ResourceTO resourceTO) throws SyncopeClientCompositeErrorException, NotFoundException {\n LOG.debug(\"String_Node_Str\", resourceTO);\n SyncopeClientCompositeErrorException scce = new SyncopeClientCompositeErrorException(HttpStatus.BAD_REQUEST);\... |
"public static boolean hasDeathTpPlus() {\n return deathTpPlusPlugin != null && deathTpPlusPlugin.isEnabled();\n}\n"
|
"private void genElement(String defPath, HierarchicalTableGenerator gen, List<Row> rows, ElementDefinition element, List<ElementDefinition> all, List<StructureDefinition> profiles, boolean showMissing, String profileBaseFileName, Boolean extensions, boolean snapshot, String corePath) throws IOException {\n Structure... |
"public static void reset() {\n expected.reset();\n complete.reset();\n latch = new CountDownLatch(1);\n Lock lock = taskLock;\n lock.lock();\n try {\n taskLock = new ReentrantLock();\n available = taskLock.newCondition();\n } finally {\n lock.unlock();\n }\n}\n"
|
"public void export(ISet set, String sFileName, boolean bExportBucketInternal) {\n IVirtualArray contentVA = null;\n IVirtualArray storageVA = null;\n Collection<AGLEventListener> views = GeneralManager.get().getViewGLCanvasManager().getAllGLEventListeners();\n for (AGLEventListener view : views) {\n ... |
"public void startRequest(MRCRequest rq) {\n try {\n final renameRequest rqArgs = (renameRequest) rq.getRequestArgs();\n final VolumeManager vMan = master.getVolumeManager();\n final FileAccessManager faMan = master.getFileAccessManager();\n validateContext(rq);\n final Path sp = n... |
"public void run() {\n Project project = new ObjcProject(path);\n project.readProject();\n com.away1994.tsp.feature.plantuml.classes.ClassesDiagram diagram = project.getClassesDiagram();\n try {\n String out = output != null ? output : \"String_Node_Str\" + file.getName() + \"String_Node_Str\";\n ... |
"public void writeToPacket(DatagramPacket packet) {\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n DataOutputStream dos = new DataOutputStream(bos);\n try {\n writeData(dos);\n packet.setData(bos.toByteArray());\n packet.setLength(bos.size());\n } catch (IOException e) {\n... |
"public static int getLatestVersion() {\n return VERSION_4_2_3;\n}\n"
|
"public Computation<VerificationResult> cloneComputation() {\n ValidityRegionsComputation computation = new ValidityRegionsComputation(odeSystem, precisionConfiguration, originalSimulationSpace, initialSpace, property, iterationLimit);\n computation.currentIteration = this.currentIteration;\n computation.spawn... |
"public void handleEvent(Event event) {\n fbException = false;\n if (event.type == CustomPreviewTable.MOUSE_RIGHT_CLICK_TYPE) {\n if (getDataServiceProvider().getBoundDataSet() != null || getDataServiceProvider().getReportDataSet() != null) {\n if (event.widget instanceof Button) {\n ... |
"public List<Object[]> executeQuery(DataManager connection, List<ModelElement> analysedElements, String where) throws SQLException {\n getDataFromTable().clear();\n try {\n beginQuery();\n } catch (Exception e1) {\n log.error(e1.getMessage(), e1);\n return getDataFromTable();\n }\n D... |
"public void fillPackage(CarriagePackage Package) throws CarriageMotionException {\n Directions SupportDirection = null;\n for (Directions Direction : Directions.values()) {\n if (!SideClosed[Direction.ordinal()]) {\n SupportDirection = Direction;\n break;\n }\n }\n if (S... |
"protected void updateMessagesList() {\n final int oldMessagesCount = messagesAdapter.getAllItems().size();\n (new BaseAsyncTask<Void, Void, Boolean>() {\n public Boolean performInBackground(Void... params) throws Exception {\n combinationMessagesList = createCombinationMessagesList();\n ... |
"public void activateBehavior(BehaviorState behaviorState) {\n if (Level > 0) {\n Behavior = behaviorState;\n MPet.sendMessageToOwner(MyPetUtil.setColors(MyPetLanguage.getString(\"String_Node_Str\")).replace(\"String_Node_Str\", MPet.Name).replace(\"String_Node_Str\", Behavior.name()));\n if (Be... |
"public final void stopParsing() {\n try {\n context.stop();\n } finally {\n try {\n context.stop();\n } finally {\n output.appender.reset();\n input.stop();\n }\n }\n}\n"
|
"void addFilter(ApplicationFilterConfig filterConfig) {\n boolean add = true;\n String filterName = filterConfig.getFilterName();\n for (int i = 0; i < n; i++) {\n ApplicationFilterConfig afc = filters[i];\n if (afc != null && filterName.equals(afc.getFilterName())) {\n add = false;\n ... |
"public void createFieldEditors(Composite composite) {\n pcalParamEditor = new StringFieldEditor(IPreferenceConstants.PCAL_CAL_PARAMS, \"String_Node_Str\", composite);\n addEditor(pcalParamEditor);\n}\n"
|
"public CarvableVariation getVariation(ItemStack stack) {\n return carverHelper.getVariation(blockMeta + (stack.getItemDamage() / 8));\n}\n"
|
"private void deliverNewIntents(ActivityClientRecord r, List<ReferrerIntent> intents) {\n final int N = intents.size();\n for (int i = 0; i < N; i++) {\n ReferrerIntent intent = intents.get(i);\n intent.setExtrasClassLoader(r.activity.getClassLoader());\n intent.prepareToEnterProcess();\n ... |
"private void maybeAddFunction(Function fn, JSModule module) {\n String name = fn.getName();\n FunctionState fs = getOrCreateFunctionState(name);\n if (fs.hasExistingFunctionDefinition()) {\n fs.setInline(false);\n return;\n }\n Node fnNode = fn.getFunctionNode();\n if (enforceMaxSizeAft... |
"public static boolean containsEnchantments(Item book) {\n if (book == null || book.getType() != ItemType.EnchantedBook) {\n return false;\n }\n return verifyTags(book, \"String_Node_Str\", LIST, false);\n}\n"
|
"public void init() {\n beforeRMActionExecutionDelegate = getPolicyComponent().registerClassPolicy(BeforeRMActionExecution.class);\n onRMActionExecutionDelegate = getPolicyComponent().registerClassPolicy(OnRMActionExecution.class);\n}\n"
|
"public void setFocus() {\n if (viewState == VIEW_EXPANDED) {\n if (expandedStyle.focus()) {\n repaint();\n } else {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n}\n"
|
"public void attachSnackbarToActivity() {\n Snackbar snackbar = Snackbar.make(getActivity().findViewById(R.id.patientDashboardContentFrame), getString(R.string.snackbar_no_internet_connection), Snackbar.LENGTH_INDEFINITE);\n View view = snackbar.getView();\n TextView tv = (TextView) view.findViewById(android.s... |
"public static Set<Pokemon> getMiddleEvolutions(RomHandler baseRom) {\n List<Pokemon> allPokes = baseRom.getPokemon();\n Set<Pokemon> middleEvolutions = new TreeSet<Pokemon>();\n for (Pokemon pkmn : allPokes) {\n if (pkmn != null) {\n if (pkmn.evolutionsTo.size() == 1 && pkmn.evolutionsFrom.s... |
"public T readRecord(final T target) throws IOException, InterruptedException {\n T record = null;\n if (this.executingThread == null) {\n this.executingThread = Thread.currentThread();\n }\n if (this.executingThread.isInterrupted()) {\n throw new InterruptedException();\n }\n while (tru... |
"public void run() {\n runing = true;\n LOGGER.info(\"String_Node_Str\");\n Map<String, FactoryBeanInvokeInfo> failedBeans;\n FailOverInterceptor interceptor = proxyFactoryBean.getFailOverInterceptor();\n while (proxyFactoryBean.hasFactoryBeanFailed() && !close) {\n failedBeans = proxyFactoryBean.... |
"public static String encodeCell(String cell) {\n String result;\n result = cell.replace(\"String_Node_Str\", \"String_Node_Str\");\n return result;\n}\n"
|
"private void extractClone() {\n CompilationUnit sourceCompilationUnit = null;\n ICompilationUnit sourceICompilationUnit = null;\n TypeDeclaration sourceTypeDeclaration = null;\n ASTRewrite sourceRewriter = null;\n AST ast = null;\n Document document = null;\n IFile file = null;\n ITypeBinding c... |
"public void perform(GraphRewrite event, EvaluationContext context) {\n VarStack varStack = org.jboss.windup.config.runner.VarStack.instance(event);\n XmlMetaFacetModel xmlFacetModel = Iteration.getCurrentPayload(varStack, XmlMetaFacetModel.class, \"String_Node_Str\");\n typeSearchResults.add(xmlFacetModel);\n... |
"private void removeNotificationChildren() {\n ArrayList<ExpandableNotificationRow> toRemove = new ArrayList<>();\n for (int i = 0; i < mStackScroller.getChildCount(); i++) {\n View view = mStackScroller.getChildAt(i);\n if (!(view instanceof ExpandableNotificationRow)) {\n continue;\n ... |
"public UploadStatus processRequest(Context context, RequestParams params) {\n final String requestId = params.getString(\"String_Node_Str\", null);\n final String uri = params.getString(\"String_Node_Str\", null);\n final String optionsAsString = params.getString(\"String_Node_Str\", null);\n final int max... |
"public static void checkJavaProjectLib(Collection<String> jarsNeeded) {\n File libDir = getJavaProjectLibFolder();\n if ((libDir != null) && (libDir.isDirectory())) {\n Set<String> jarsNeedRetrieve = new HashSet<String>(jarsNeeded);\n for (File externalLib : libDir.listFiles(FilesUtils.getAcceptJAR... |
"public void uploadFiles(String id, String data) {\n SlaveBrowser browser = capturedBrowsers.getBrowser(id);\n Collection<FileData> filesData = gson.fromJson(data, new TypeToken<Collection<FileData>>() {\n }.getType());\n LinkedHashSet<FileInfo> filesUploaded = new LinkedHashSet<FileInfo>();\n for (FileD... |
"private void startCase(IContent content) {\n Span span = (Span) design2ExcelSpan.get(content.getGenerateBy());\n engine.addContainerStyle(content.getComputedStyle(), span, lb.getListSize(span.getCol()) - 1);\n}\n"
|
"public void adjustCosts(Ability ability, Game game) {\n if (this.isTransformed()) {\n card.getSecondCardFace().adjustCosts(ability, game);\n } else {\n card.adjustCosts(ability, game);\n }\n}\n"
|
"public void testEqualsObject() {\n IAtsWorkDefinition obj = new WorkDefinition(\"String_Node_Str\");\n Assert.assertTrue(obj.equals(obj));\n IAtsWorkDefinition obj2 = new WorkDefinition(\"String_Node_Str\");\n Assert.assertTrue(obj.equals(obj2));\n Assert.assertFalse(obj.equals(null));\n Assert.asser... |
"public void shutdown() {\n synchronized (lifecycleLock) {\n fireLifecycleEvent(SHUTTING_DOWN);\n FactoryImpl.shutdown(factory);\n fireLifecycleEvent(SHUTDOWN);\n }\n}\n"
|
"private void _simpleSearch() throws DBConnectionException, DBExecutionException {\n SearchResultsFrame searchResultsFrame = new SearchResultsFrame(_containerModel, _sourceFrame, _configuration);\n SearchResultBuffer searchResultBuffer = new SearchResultBuffer();\n searchResultBuffer.addObserver(searchResultsF... |
"public void encode(IoSession session, Object message, ProtocolEncoderOutput out) throws Exception {\n String value = message.toString();\n ByteBuffer buf = ByteBuffer.allocate(value.length()).setAutoExpand(true);\n buf.putString(value, ENCODER);\n buf.flip();\n out.write(buf);\n}\n"
|
"private void write(ExecutableElement m) throws IOException {\n StringBuffer buf = new StringBuffer();\n for (VariableElement p : m.getParameters()) {\n if (buf.length() > 0)\n buf.append(',');\n buf.append(p.getSimpleName());\n }\n TypeElement t = (TypeElement) m.getEnclosingElemen... |
"private void writeCherryPickCommit(final Merger m, final CodeReviewCommit n) throws IOException {\n final StringBuilder msgbuf = new StringBuilder();\n msgbuf.append(n.getFullMessage());\n if (msgbuf.length() == 0) {\n msgbuf.append(\"String_Node_Str\");\n }\n if (msgbuf.charAt(msgbuf.length() - ... |
"public String getHomeActivityPackageName() {\n if (mPm == null)\n return null;\n if (RecentsDebugFlags.Static.EnableSystemServicesProxy)\n return null;\n ArrayList<ResolveInfo> homeActivities = new ArrayList<>();\n ComponentName defaultHomeActivity = mPm.getHomeActivities(homeActivities);\n ... |
"private void initialize(final ARXResult result, final DataRegistry registry, final DataManager manager, final Data outputGeneralized, final Data outputMicroaggregated, final ARXNode node, final DataDefinition definition, final ARXConfiguration config) {\n registry.updateOutput(node, this);\n this.setRegistry(reg... |
"public void resourceChanged(IResourceChangeEvent event) {\n if (!ProxyRepositoryFactory.getInstance().isFullLogonFinished())\n return;\n IResourceDelta delta = event.getDelta();\n try {\n if (delta != null) {\n delta.accept(visitor);\n }\n } catch (CoreException e) {\n ... |
"public IValue withType(IType type, ITypeContext typeContext, MarkerList markers, IContext context) {\n if (type == Types.INT) {\n return this;\n }\n if (type.isSuperTypeOf(Types.INT)) {\n return new BoxedValue(this, Types.INT.boxMethod);\n }\n if (type.getTheClass().getAnnotation(INT_CONVE... |
"public String getValidRowsStatement() {\n IndicatorDefinition indicatorDefinition = this.indicator.getIndicatorDefinition();\n if (indicatorDefinition instanceof UDIndicatorDefinition) {\n EList<TdExpression> list = ((UDIndicatorDefinition) indicatorDefinition).getViewValidRowsExpression();\n retur... |
"private Distance computeDistances() {\n Distance distance = new Distance(maxStateId + 1);\n for (Integer s : finalStates) {\n distance.setDistance(s, 0);\n }\n boolean changed;\n do {\n changed = false;\n for (Integer s : getStates()) {\n for (SAFAInputMove<P, S> tr : get... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.