content stringlengths 40 137k |
|---|
"public EditPart createEditPart(EditPart context, Object element) {\n if (element instanceof Diagram) {\n return new DiagramEditPart((Diagram) element);\n }\n if (element instanceof Connection) {\n return new ConnectionEditPart((Connection) element);\n }\n UINode uiNode = (UINode) element;\... |
"protected void endJob() {\n try {\n outputStream.write(writeAppender.getLayout().getFooter().getBytes());\n } catch (Exception e) {\n System.out.println(e);\n }\n logger.removeAppender(writeAppender);\n}\n"
|
"public void onPinMatrixRequest(ExternalSignatureDeviceManager.OnPinMatrixRequest event) {\n TrezorPinDialog pin = new TrezorPinDialog(ExtSigAccountSelectorActivity.this, true);\n pin.setOnPinValid(new PinDialog.OnPinEntered() {\n public void pinEntered(PinDialog dialog, Pin pin) {\n ((ExternalS... |
"public boolean verifyUri(Uri uri) {\n String scheme = uri.getScheme();\n String host = uri.getHost();\n if (SCHME.equals(scheme)) {\n for (String str : HOSTS) {\n if (str.equals(host)) {\n return true;\n }\n }\n }\n return false;\n}\n"
|
"public void gameAppCreatedEventHandler(GameAppCreatedEvent event) {\n LoginShardView.SetLoginShardContext(event.getParent());\n DatabaseConnectionProvider connectionProvider = new DatabaseConnectionProvider(this.getInitParameter(\"String_Node_Str\"), this.getInitParameter(\"String_Node_Str\"), this.getInitParame... |
"public void spawnUnit(float x, float y) {\n for (int i = 0; i < 10; ++i) {\n float angle = MathUtils.randInRange(0, 2 * MathUtils.PI);\n float xVel = MathUtils.randInRange(25.f, 50.f) * FloatMath.cos(angle);\n float yVel = MathUtils.randInRange(25.f, 50.f) * FloatMath.sin(angle);\n parti... |
"private static boolean unexpectedException(Logger logger, String classe, String method, final Throwable error, final Level level) {\n if (error == null) {\n return false;\n }\n if (logger == null && classe != null) {\n final int separator = classe.lastIndexOf('.');\n final String paquet =... |
"public void testSignUpMath() throws NoSuchAlgorithmException {\n String username = \"String_Node_Str\";\n String password = \"String_Node_Str\";\n byte[] salt = new BigInteger(\"String_Node_Str\", 16).toByteArray();\n LeapSRPSession client = new LeapSRPSession(username, password);\n String expected_v = ... |
"private static File createDeploymentJar(Class<?> clz, ApplicationSpecification appSpec) {\n File testAppDir;\n File tmpDir;\n testAppDir = Files.createTempDir();\n File outputDir = new File(testAppDir, \"String_Node_Str\");\n tmpDir = new File(testAppDir, \"String_Node_Str\");\n outputDir.mkdirs();\n... |
"public Textifier visitField(final int access, final String name, final String desc, final String signature, final Object value) {\n buf.setLength(0);\n buf.append('\\n');\n if ((access & Opcodes.ACC_DEPRECATED) != 0) {\n buf.append(tab).append(\"String_Node_Str\");\n }\n buf.append(tab).append(\"... |
"public static void importAPI(String pathToArchive, String currentUser, boolean isDefaultProviderAllowed) throws APIImportException {\n API importedApi = null;\n String prevProvider;\n APIDefinition definitionFromSwagger20 = new APIDefinitionFromSwagger20();\n String pathToJSONFile = pathToArchive + APIImpo... |
"protected StateRepresentation<TState, TTrigger> getRepresentation(TState state) {\n StateRepresentation<TState, TTrigger> result = stateConfiguration.get(state);\n if (result == null) {\n result = new StateRepresentation<>(state);\n stateConfiguration.put(state, result);\n }\n return stateCon... |
"protected void drawCubic(Canvas c, LineDataSet dataSet, List<Entry> entries) {\n Transformer trans = mChart.getTransformer(dataSet.getAxisDependency());\n Entry entryFrom = dataSet.getEntryForXIndex(mMinX);\n Entry entryTo = dataSet.getEntryForXIndex(mMaxX);\n int minx = dataSet.getEntryPosition(entryFrom)... |
"public void setupSelection(GLAutoDrawable drawable) {\n if (!(myViewer instanceof GLViewer)) {\n return;\n }\n GLViewer viewer = (GLViewer) myViewer;\n GL2GL3 gl = (GL2GL3) drawable.getGL();\n myGl = gl;\n myTotalMaxQ = myViewer.numSelectionQueriesNeeded();\n if (myTotalMaxQ == 0) {\n ... |
"private boolean isSource(Vertex<LongWritable, ?, ?> vertex) {\n return vertex.getId().get() == SOURCE_ID.get(getConf());\n}\n"
|
"String getFullAttributeName() {\n String[] array = this.getFullAttribute();\n StringBuffer buf = new StringBuffer();\n for (int i = 0; i < array.length - 1; i++) {\n ret += array[i] + '/';\n }\n ret += array[array.length - 1];\n return ret;\n}\n"
|
"private boolean needDoCap(Method method, Object[] args) {\n if (method.getExceptionTypes().length == 0 || !method.getExceptionTypes()[0].getName().equals(IOException.class.getName())) {\n return false;\n }\n String methodName = method.getName();\n if (queueNameIndex.containsKey(methodName) && (args ... |
"public void update(float deltaTime) {\n int len;\n List<TouchEvent> touchEvents = game.getInput().getTouchEvents();\n List<KeyEvent> keyEvents = game.getInput().getKeyEvents();\n len = keyEvents.size();\n for (int i = 0; i < len; i++) {\n KeyEvent kevent = keyEvents.get(i);\n if (kevent.ke... |
"public void testRemoveObjectL() {\n final int size = map.size();\n final TestEdge ref = graph.edgeRef();\n final TestEdge remove = map.removeWithRef(Ak, ref);\n assertNull(\"String_Node_Str\", remove);\n assertEquals(\"String_Node_Str\", size, map.size());\n final TestEdge remove2 = map.remove(Bk, re... |
"private void readAttribute(XMLStreamReader reader, String classAtt, String typeAtt) throws Exception {\n String id = \"String_Node_Str\";\n String type = \"String_Node_Str\";\n String title = \"String_Node_Str\";\n String defaultStr = \"String_Node_Str\";\n for (int i = 0; i < reader.getAttributeCount()... |
"public void testCentralDifferenceHessianApproximation() {\n AbstractFunction function = new RosenbrockFunction();\n DerivativesApproximation derivativesApproximation = new DerivativesApproximation(function, DerivativesApproximationMethod.CENTRAL_DIFFERENCE);\n RealVector point = new ArrayRealVector(new double... |
"protected HE_Mesh createBase() {\n if (cells == null) {\n return new HE_Mesh();\n }\n if (on == null) {\n return new HE_Mesh();\n }\n if (on.length > cells.size()) {\n return new HE_Mesh();\n }\n final int n = on.length;\n final FastTable<HE_Face> tmpfaces = new FastTable<H... |
"public static void visitList(Manager manager, String pattern, SimonType type, SimonVisitor visitor) throws IOException {\n List<Simon> simons = new ArrayList<Simon>(manager.getSimons(SimonPattern.create(pattern)));\n Collections.sort(simons, new Comparator<Simon>() {\n public int compare(Simon s1, Simon s... |
"public void testOnRouteRequestWhenInternalServerErrorExceptionInDiagnosticMode() throws Exception {\n FilterChain filterChain = Mockito.mock(FilterChain.class);\n Mockito.when(route.getFilterChain()).thenReturn(filterChain);\n InternalServerErrorException internalServerErrorException = new InternalServerError... |
"private void handleFailedBatches() {\n Collection<EventBatch> failed = tracker.getAndRemoveFailedRecords();\n if (failed.isEmpty()) {\n return;\n }\n long failedEvents = 0;\n for (final EventBatch batch : failed) {\n failedEvents += batch.size();\n if (connectorConfig.maxRetries > 0... |
"void notifyRemoved(long offset, K key, V value, final int pos) {\n if (eventListener != SharedMapEventListeners.NOP) {\n tmpBytes.storePositionAndSize(bytes, offset, entrySize);\n eventListener.onRemove(AbstractVanillaSharedHashMap.this, tmpBytes, metaDataBytes, key, value, pos, this);\n }\n}\n"
|
"private void ensurePopulatedImpl() {\n if (this.itemsByName == null) {\n ArrayList<DOMNodeImpl> descendents = this.rootNode.getDescendents(this.nodeFilter, this.nestIntoMatchingNodes);\n this.itemsByIndex = descendents;\n int size = descendents.size();\n Map<String, DOMElementImpl> items... |
"public void resourceChanged(IResourceChangeEvent event) {\n IResourceDelta delta = event.getDelta();\n if (delta != null) {\n OutOfBuildSpecModulesGatheringDeltaVisitor moduleFinder = new OutOfBuildSpecModulesGatheringDeltaVisitor();\n try {\n if (Activator.isSpecManagerInstantiated()) {... |
"private void makeQueryRequest() {\n clearErrorState();\n URL url = null;\n String urlString = remoteQuerySessionManager.getBaseUrl();\n try {\n url = new URL(urlString);\n } catch (MalformedURLException e) {\n enterErrorState(Localization.get(\"String_Node_Str\", urlString));\n }\n i... |
"public void setGlauberState(int Nvalue) {\n System.out.println(\"String_Node_Str\" + Nvalue);\n energyControl = Nvalue;\n double arySum;\n double aryFact;\n double Xx;\n double Xx2;\n AverageEnerg = EnergyConstant + 0.0001 + (10.0 - 0.1 * (double) Nvalue);\n Xx = Math.sqrt(AverageEnerg - Energy... |
"public SufficientStatistics getSufficientStatistics(DataInstance data) {\n CompoundVector vectorSS = this.createCompoundVector();\n this.distributionList.parallelStream().forEach(w -> {\n vectorSS.setVectorByPosition(w.getVariable().getVarID(), w.getSufficientStatistics(data));\n });\n return vector... |
"public void onJsonParseStarted(JsonValue result, long timestamp, UUID session, boolean fromCache) {\n try {\n final HashSet<String> output = new HashSet<String>();\n final ArrayList<RedditSubreddit> toWrite = new ArrayList<RedditSubreddit>();\n final JsonBufferedObject redditListing = result.as... |
"public boolean containsItems() {\n return cs.getUniqueItems() > 0;\n}\n"
|
"private boolean handleBrightness(String channelId, Connection connection, Command command, TPLinkSmartHomeConfiguration configuration) throws IOException {\n HasErrorResponse response = null;\n if (command instanceof OnOffType) {\n response = setOnOffState(connection, (OnOffType) command);\n } else if ... |
"private void setHasLoggingInfo(boolean hasLoggingInfo) {\n mHasLoggingInfo = hasLoggingInfo;\n VoiceInputLoggerCompatUtils.setHasVoiceLoggingInfoCompat(hasLoggingInfo);\n}\n"
|
"public void attachContainerWithTTY() throws Exception {\n File baseDir = new File(Thread.currentThread().getContextClassLoader().getResource(\"String_Node_Str\").getFile());\n String imageId = buildImage(baseDir);\n CreateContainerResponse container = dockerClient.createContainerCmd(imageId).withTty(true).exe... |
"private void openAndCloseStartElement() {\n try {\n String namespaceUri = xPathFragment.getNamespaceURI();\n if (namespaceUri == null) {\n namespaceUri = XMLConstants.EMPTY_STRING;\n }\n contentHandler.startElement(namespaceUri, xPathFragment.getLocalName(), getNameForFragment... |
"private void registerSaveConfigHook(JSONObject config) {\n Runtime.getRuntime().addShutdownHook(new Thread(() -> {\n JSONObject configToSave = ofNullable(config).orElse(new JSONObject());\n configToSave.put(\"String_Node_Str\", userList);\n String configJsonString = toJSONString(configToSave, W... |
"private void zoomOut() {\n int M = communities.size();\n LinkedList<ModEdge>[] newTopology = new LinkedList[M];\n int index = 0;\n nodeCommunities = new Community[M];\n nodeConnectionsWeight = new HashMap[M];\n nodeConnectionsCount = new HashMap[M];\n HashMap<Integer, Community> newInvMap = new Ha... |
"public String getSelectClause() {\n StringBuilder sqlClause = new StringBuilder(\"String_Node_Str\");\n if (selectCriteria.isEmpty()) {\n sqlClause.append(\"String_Node_Str\");\n return sqlClause.toString();\n }\n Iterator<SelectCriterion> it = selectCriteria.iterator();\n while (it.hasNex... |
"public boolean execute(Player player, String... args) {\n if (!PlayerFunctions.isInPlot(player)) {\n PlayerFunctions.sendMessage(player, C.NOT_IN_PLOT);\n return true;\n }\n Plot plot = PlayerFunctions.getCurrentPlot(player);\n boolean hasOwner = plot.hasOwner();\n boolean containsEveryone... |
"public void handleEndTag(HTML.Tag t, int pos) {\n if (t.toString().toUpperCase().equals(\"String_Node_Str\")) {\n System.out.println(\"String_Node_Str\");\n if (script)\n try {\n int scriptEnd = pos;\n InputStreamReader script = new InputStreamReader(input.open... |
"public void onGesturePerformed(GestureOverlayView overlay, Gesture gesture) {\n ArrayList<Prediction> predictions = mLibrary.recognize(gesture);\n if (GestureDefence.this.getEngine().getScene() == GestureDefence.this.sm.GameScreen) {\n if (predictions.size() > 0) {\n Prediction prediction = pre... |
"private static String boxingDescriptor(Wrapper w) {\n return \"String_Node_Str\" + w.basicTypeChar() + \"String_Node_Str\" + w.wrapperSimpleName() + \"String_Node_Str\";\n}\n"
|
"public void testNearCacheEvictionByUsingMapTTLEviction() throws InterruptedException {\n final int maxSizePerNode = 50;\n final int instanceCount = 3;\n final Config cfg = new Config();\n final String mapName = \"String_Node_Str\";\n final NearCacheConfig nearCacheConfig = new NearCacheConfig();\n ne... |
"public boolean ownsLock(Player player, int x, byte y, int z) {\n Coordinate coordinate = new Coordinate(x, y, z);\n Chest chest = locations.get(coordinate);\n return (chest != null) && (chest.owner.toLowerCase().equals(player.getName().toLowerCase()) || chest.isOpen());\n}\n"
|
"public org.hl7.fhir.dstu2.model.Medication.MedicationPackageComponent convertMedicationPackageComponent(org.hl7.fhir.dstu3.model.Medication.MedicationPackageComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Medication.MedicationPackageCompo... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.ultimate_recyclerview_activity);\n toolbar = (Toolbar) findViewById(R.id.tool_bar);\n setSupportActionBar(toolbar);\n getSupportActionBar().setDisplayShowTitleEnabled(false);\n ultimat... |
"public boolean createDQStructure() {\n Shell shell = PlatformUI.getWorkbench().getDisplay().getActiveShell();\n try {\n IProject project = this.createNewProject(DATA_PROFILING, shell);\n IFolder createNewFoler = this.createNewFoler(project, ANALYSIS);\n createNewFoler.setPersistentProperty(F... |
"protected void _hideVertex(String relationName, String vertexName, boolean hide) {\n String propertyString = \"String_Node_Str\" + hide + \"String_Node_Str\";\n if (!hide)\n propertyString = \"String_Node_Str\";\n String moml = \"String_Node_Str\" + relationName + \"String_Node_Str\" + \"String_Node_St... |
"protected void initializeDataSource() {\n super.initializeDataSource();\n ITmfTrace trace = this.getTrace();\n if (trace == null) {\n return;\n }\n Element viewElement = fViewInfo.getViewElement(TmfXmlUiStrings.XY_VIEW);\n if (viewElement == null) {\n return;\n }\n Iterable<String... |
"public StringBuilder getCompletePayloadData() {\n return completePayloadDataBuilder;\n}\n"
|
"public void testUploadServeOnlyFiles() throws Exception {\n MockServer server = new MockServer();\n FileInfo loadInfo = new FileInfo(\"String_Node_Str\", 0, -1, false, false, null);\n String loadInfoContents = \"String_Node_Str\";\n FileInfo serveInfo = new FileInfo(\"String_Node_Str\", 0, false, true, nul... |
"protected void _postParse(MoMLParser parser) {\n double[] minimumLocation = new double[] { Double.MAX_VALUE, Double.MAX_VALUE };\n Iterator topObjects = parser.topObjectsCreated().iterator();\n while (topObjects.hasNext()) {\n NamedObj topObject = (NamedObj) topObjects.next();\n Iterator locatio... |
"private void abortCorrection(boolean force, boolean forever) {\n if (force || TextEntryState.isCorrecting()) {\n if (DEBUG)\n Log.d(TAG, \"String_Node_Str\");\n mHandler.removeMessages(MSG_UPDATE_SUGGESTIONS);\n mHandler.removeMessages(MSG_RESTART_NEW_WORD_SUGGESTIONS);\n fina... |
"private void renderTexture(GL2 gl, Texture texture, float x, float y, float width, float height) {\n texture.enable();\n texture.bind();\n gl.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_TEXTURE_ENV_MODE, GL2.GL_REPLACE);\n gl.glTexParameteri(GL2.GL_TEXTURE_2D, GL2.GL_TEXTURE_WRAP_S, GL2.GL_CLAMP);\n gl.glTexPa... |
"public IMessage onMessage(PacketGetReceivers message, MessageContext ctx) {\n FMLCommonHandler.instance().getWorldThread(ctx.netHandler).addScheduledTask(() -> handle(message, ctx));\n return null;\n}\n"
|
"public int getLayoutDirection() {\n return (mMarginFlags & LAYOUT_DIRECTION_MASK);\n}\n"
|
"public void actionPerformed(ActionEvent e) {\n GUILog gl = Application.getInstance().getGUILog();\n GetMethod gm = null;\n try {\n String response = null;\n Boolean recurse = Utils.getUserYesNoAnswer(\"String_Node_Str\");\n if (recurse == null)\n return;\n String url = V... |
"private String getAppName(long resourceHandleId) {\n if (!runtime.isJdbcPoolMonitoringEnabled() && !runtime.isConnectorPoolMonitoringEnabled()) {\n return null;\n }\n String appName = resourceAppAssociationMap.get(resourceHandleId);\n if (appName == null) {\n try {\n if (ic == null... |
"private void createTableViewerPanel(Composite theParent) {\n Composite tablePanel = new Composite(theParent, SWT.NONE);\n GridLayout gridLayout = new GridLayout();\n tablePanel.setLayout(gridLayout);\n GridData gridData = new GridData(GridData.FILL_BOTH);\n tablePanel.setLayoutData(gridData);\n HEADE... |
"public void onEnable() {\n Plugin = this;\n MyWolfPlayerListener playerListener = new MyWolfPlayerListener();\n getServer().getPluginManager().registerEvents(playerListener, this);\n MyWolfVehicleListener vehicleListener = new MyWolfVehicleListener();\n getServer().getPluginManager().registerEvents(vehi... |
"public static void handleOperation(Operation operation, ViewerAttributeBean bean, Map parameterMap, Map displayTexts) throws Exception {\n if (operation == null || bean == null || parameterMap == null || displayTexts == null)\n return;\n List locs = new ArrayList();\n Map params = new HashMap();\n S... |
"public void actionPerformed(ActionEvent e) {\n GUILog gl = Application.getInstance().getGUILog();\n PostMethod pm = null;\n try {\n dv = new DocumentValidator(doc);\n dv.validateDocument();\n if (dv.isFatal()) {\n dv.printErrors();\n return;\n }\n Docum... |
"private boolean isGroupScalingEnabled(String serviceGroupName) throws ApplicationDefinitionException {\n ServiceGroup serviceGroup = getServiceGroup(serviceGroupName);\n if (serviceGroup == null) {\n handleError(\"String_Node_Str\" + serviceGroupName);\n }\n return nestedGroup.isGroupscalingEnabled(... |
"public int getBufferCapacity(TypedIOPort port) throws IllegalActionException {\n int bufferCapacity = 1;\n Variable firings = (Variable) port.getContainer().getAttribute(\"String_Node_Str\");\n int firingsPerIteration = 1;\n if (firings != null) {\n firingsPerIteration = ((IntToken) firings.getToken... |
"public boolean needReadOnlyJoblet(JobletProcessItem jobletItem) {\n IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();\n IEditorPart[] editors = page.getEditors();\n for (IEditorPart editor : editors) {\n if (editor instanceof AbstractMultiPageTalendEditor) {\n ... |
"public Param createParam(AbstractResource r, AbstractMethod m, final Parameter p) {\n Param wadlParam = new Param();\n wadlParam.setName(p.getSourceName());\n if (p.getAnnotation().annotationType() == FormParam.class) {\n wadlParam.setStyle(ParamStyle.QUERY);\n } else {\n switch(p.getSource()... |
"private void completeJob() {\n if (myLastLink != null)\n ((CraftingLink) myLastLink).markDone();\n AELog.crafting(\"String_Node_Str\");\n isComplete = true;\n}\n"
|
"private static <T extends PropBuilder<T>> PropBuilder<T> copyColumnProperties(PropBuilder<T> builder, org.talend.core.model.metadata.builder.connection.MetadataColumn in) {\n if (in.getId() != null) {\n builder.prop(Talend6SchemaConstants.TALEND6_ID, in.getId());\n }\n if (in.getComment() != null) {\n ... |
"public void onCreate(Vector3 position) {\n this.worldObj.setBlock(position.intX(), position.intY() + 1, position.intZ(), ZhuYaoBase.bJia.blockID, 0, 2);\n ((TileEntityMulti) this.worldObj.getBlockTileEntity(position.intX(), position.intY() + 1, position.intZ())).setMainBlock(position);\n}\n"
|
"private ICommentPO createComment(CommentDTO dto, boolean assignNewUuid) {\n if (dto.getUuid() != null && !assignNewUuid) {\n comment = NodeMaker.createCommentPO(dto.getName(), dto.getUuid());\n } else {\n comment = NodeMaker.createCommentPO(dto.getName());\n }\n return NodeMaker.createComment... |
"public void noInternetConnection() {\n if (_automaticallyConnecting) {\n if (_catcher != null && (_catcher.getNumHosts() < 50)) {\n _catcher.recoverHosts();\n }\n return;\n }\n if (SystemUtils.supportsIdleTime() && SystemUtils.getIdleTime() < 30 * 1000 && !QuestionsHandler.NO_I... |
"protected Answer copyVolumeFromImage(DataObject srcData, DataObject destData) {\n String value = configDao.getValue(Config.CopyVolumeWait.key());\n int _copyvolumewait = NumbersUtil.parseInt(value, Integer.parseInt(Config.CopyVolumeWait.getDefaultValue()));\n if (needCacheStorage(srcData, destData)) {\n ... |
"private boolean getParameterValues(List params) {\n if (params != null && params.size() > 0) {\n InputParameterDialog dialog = new InputParameterDialog(DebugUI.getShell(), params, paramValues);\n if (dialog.open() == Window.OK) {\n paramValues.clear();\n paramValues.putAll(dialog... |
"private static void prepareLevels(QueryDefinition query, TabularHierarchyHandle hierHandle, List metaList, String dimName) throws AdapterException {\n try {\n List levels = hierHandle.getContents(TabularHierarchyHandle.LEVELS_PROP);\n for (int j = 0; j < levels.size(); j++) {\n TabularLevel... |
"protected void initialize() {\n getConnection().setInputModel(false);\n this.treePopulator = new TreePopulator(availableJSONTree);\n if (getConnection().getJSONFilePath() != null) {\n jsonFilePath.setText(getConnection().getJSONFilePath().replace(\"String_Node_Str\", \"String_Node_Str\"));\n che... |
"protected boolean onUpdateTask() {\n super.onUpdateTask();\n if (this.tileEntity instanceof IAutoSentry) {\n if (!this.tileEntity.isValidTarget(this.tileEntity.getTarget())) {\n this.tileEntity.setTarget(null);\n this.tileEntity.cancelRotation();\n return false;\n }... |
"protected boolean calculateEnabled() {\n if (getSelectedObjects().isEmpty()) {\n return false;\n } else {\n Object s = getSelectedObjects().get(0);\n if (s instanceof List && !((List) s).isEmpty()) {\n List selectedarts = (List) s;\n Object object = selectedarts.get(sel... |
"private void sort0(TreeNode<E> node, Comparator<TreeNode<E>> cmpr) {\n if (node.getChildren() == null)\n return;\n if (node instanceof DefaultTreeNode)\n ((TreeNodeChildrenList) node.getChildren()).treeSort(cmpr);\n else\n Collections.sort(node.getChildren(), cmpr);\n for (TreeNode<E> ... |
"public void run() {\n js.executeScript(videoTag + \"String_Node_Str\" + eventType + \"String_Node_Str\");\n try {\n (new WebDriverWait(driver, timeout)).until(new ExpectedCondition<Boolean>() {\n public Boolean apply(WebDriver d) {\n return d.findElement(By.id(\"String_Node_Str\"... |
"public String getNodeDisplayName(Object element) {\n PropertyHandle handle = ((CrosstabPropertyHandleWrapper) element).getModel();\n String propertyName = handle.getPropertyDefn().getName();\n if (propertyName.equals(ICrosstabReportItemConstants.COLUMNS_PROP))\n return Messages.getString(\"String_Node_... |
"private static List<PathNode> setPath(final FlowPathInfoData flowPathInfoData) {\n List<PathNode> pathNodes = new ArrayList<PathNode>();\n org.openkilda.integration.model.response.PathInfoData flowpath = flowPathInfoData.getFlowpath();\n List<org.openkilda.integration.model.response.PathNode> paths = flowpath... |
"private void bindCustomButtons() {\n UIButton add = find(\"String_Node_Str\", UIButton.class);\n if (add != null) {\n add.subscribe(button -> {\n AddServerPopup popup = getManager().pushScreen(AddServerPopup.ASSET_URI, AddServerPopup.class);\n popup.onSuccess(item -> {\n ... |
"public ModelAndView children(HttpServletResponse response, Long roleId) {\n List<SyncopeRole> roles = syncopeRoleDAO.findChildren(roleId);\n List<RoleTO> roleTOs = new ArrayList<RoleTO>(roles.size());\n for (SyncopeRole role : roles) {\n roleTOs.add(roleDataBinder.getRoleTO(role));\n }\n return r... |
"public XlsContainer createCellContainer(IStyle style, XlsContainer parent, int rowSpan) {\n ContainerSizeInfo sizeInfo = parent.getSizeInfo();\n return new XlsCell(engine.createEntry(sizeInfo, style, getParentStyle(parent)), sizeInfo, parent, rowSpan);\n}\n"
|
"public static List<Object[]> testcases() {\n Object[][] array = new Object[][] { { \"String_Node_Str\", \"String_Node_Str\" }, { \"String_Node_Str\", \"String_Node_Str\" }, { \"String_Node_Str\", \"String_Node_Str\" }, { \"String_Node_Str\", \"String_Node_Str\" }, { \"String_Node_Str\", \"String_Node_Str\" }, { \"S... |
"private List<AudioFormat> getIAudioClientSupportedFormats(long iAudioClient) throws HResultException {\n char cbSize = 0;\n List<AudioFormat> supportedFormats = new ArrayList<AudioFormat>();\n for (char nChannels = 1; nChannels <= 2; nChannels++) {\n for (int i = 0; i < Constants.AUDIO_SAMPLE_RATES.len... |
"public void deleteFile(String name) throws IOException {\n if (name.equals(IndexFileNames.SEGMENTS_GEN)) {\n directory.deleteFile(name);\n return;\n }\n AtomicInteger counter = refCounters.get(name);\n if (counter != null && counter.get() > 0) {\n addToFileGC(name);\n } else {\n ... |
"public void onDestroy() {\n DictionaryFactory.close();\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);\n sp.unregisterOnSharedPreferenceChangeListener(this);\n if (mSoundOn) {\n Log.i(TAG, \"String_Node_Str\");\n mAudioManager.unloadSoundEffects();\n }\n mN... |
"public void testClusterStopFailure() throws Exception {\n CookieCache.put(\"String_Node_Str\", \"String_Node_Str\");\n BddErrorMessage errorMsg = new BddErrorMessage();\n errorMsg.setMessage(\"String_Node_Str\");\n ObjectMapper mapper = new ObjectMapper();\n this.buildReqRespWithoutReqBody(\"String_Node... |
"private Actor _selectActor() {\n Iterator it = _unsettled.iterator();\n int max = -1;\n Actor result = null;\n while (it.hasNext()) {\n Actor actor = (Actor) it.next();\n _SequenceInfo info = _sequenceInfos.get(actor);\n int dist = info.distance;\n if (actor == null || dist > ma... |
"public void map(Chunk[] chks, NewChunk[] ncs) {\n int chunkSize = chks[0].len();\n Vec[] B_vecs = B.vecs();\n for (int c = 0; c < ncs.length; c++) {\n for (int r = 0; r < chunkSize; r++) {\n double v = 0;\n for (int i = 0; i < chks.length; i++) {\n v += (chks[i].atd... |
"public void clean() {\n Set<String> set = new LinkedHashSet<String>(getController().getJstTypeSpaceMgr().getTypeSpace().getGroups().keySet());\n Iterator<String> iter = set.iterator();\n while (iter.hasNext()) {\n String group = iter.next();\n cleanGroup(group);\n }\n this.m_groupDepends =... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n PreferenceManager.setDefaultValues(this, R.xml.preferences, false);\n Preferences.getInstance(this).getPreferences().registerOnSharedPreferenceChangeListener(this);\n mConversions = Conversions.getInstance();\n ... |
"private void checkBarMode(int mode, int windowState, BarTransitions transitions) {\n final boolean powerSave = mBatteryController.isPowerSave();\n final boolean anim = !noAnimation && (mScreenOn == null || mScreenOn) && windowState != WINDOW_STATE_HIDDEN && !powerSave;\n if (powerSave && getBarState() == Stat... |
"public Map getProperties() {\n return properties;\n}\n"
|
"public void startCDATA() throws SAXException {\n inCDATA = true;\n if (isLooping) {\n for (int i = 0; i < selectColumns.size(); i++) {\n if (this.asXMLs.get(i)) {\n if (outputTexts[i] && !currentRowHaveValue[i]) {\n currentRow.addTextValue(i, \"String_Node_Str\... |
"public void writePortableData(EntityPlayer player, NBTTagCompound tag) {\n if (!canPlayerAccess(player)) {\n return;\n }\n tag.setByte(\"String_Node_Str\", distance);\n}\n"
|
"private static void checkModuleDefinitionCompleteness(SBOLDocument sbolDocument, ModuleDefinition moduleDefinition) {\n for (URI modelURI : moduleDefinition.getModelURIs()) {\n if (sbolDocument.getModel(modelURI) == null) {\n errors.add(new SBOLValidationException(\"String_Node_Str\", moduleDefini... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.