content stringlengths 40 137k |
|---|
"public Plan.Result<Integer> mutate(Keyspace keyspace) {\n synchronized (System.class) {\n CassandraCoordinator coordinator = new CassandraCoordinator(keyspace);\n CassandraSubject subject = new CassandraSubject(keyspace);\n Planner<Integer> planner = new CassandraPlanner(keyspace, getResources(... |
"public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {\n if (qName.equals(\"String_Node_Str\")) {\n } else if (qName.equals(\"String_Node_Str\")) {\n String includeFileName = attributes.getValue(\"String_Node_Str\");\n try {\n UR... |
"public static void main(String[] args) {\n Cell a = Cell.parseCif(new File(\"String_Node_Str\"));\n a.getNigliReducedCell();\n for (int i = 0; i < a.getNumSites(); i++) {\n if (a.getAtomsInSphereSorted(a.getSite(i).getCoords(), .8).size() > 1) {\n System.out.println(\"String_Node_Str\");\n ... |
"private final void doFail(Throwable failure) {\n while ((failure instanceof ExecutionException) && (failure.getCause() != null)) {\n failure = failure.getCause();\n }\n if (Callback.Checked.class.isAssignableFrom(this.callback.getClass())) {\n try {\n this.LOG.trace(EventRecord.here(t... |
"public Object getDefaultValue(String name) {\n ReportDesignHandle report = (ReportDesignHandle) runnable.getDesignHandle();\n ScalarParameterHandle parameter = (ScalarParameterHandle) report.findParameter(name);\n if (parameter == null) {\n return null;\n }\n usingParameterValues();\n String e... |
"private void readPreview() throws IOException {\n previewData.clear();\n final String location = comboLocation.getText();\n final char separator = separators[selectedSeparator];\n final char delimiter = delimiters[selectedDelimiter];\n final char escape = escapes[selectedEscape];\n final boolean cont... |
"private void validateAndCreateUserAndBlog() {\n if (mSystemService.getActiveNetworkInfo() == null) {\n AlertUtils.showAlert(getActivity(), R.string.no_network_title, R.string.no_network_message);\n return;\n }\n if (!isUserDataValid()) {\n return;\n }\n if (View.VISIBLE == mProgress... |
"<KB, KBI, MKBI extends MetaBytesInterop<KB, ? super KBI>, RV, VB extends RV, VBI, MVBI extends MetaBytesInterop<RV, ? super VBI>> Object replace(ThreadLocalCopies copies, SegmentState segmentState, MKBI metaKeyInterop, KBI keyInterop, KB key, long keySize, InstanceOrBytesToInstance<KB, K> toKey, GetValueInterops<VB, V... |
"private static PrimitiveMobsSpawnEntry registerSpawnNormal(PrimitiveMobsSpawnEntry entry, BiomeDictionary.Type[]... array) {\n if (PrimitiveMobsEntities.enabledEntities.containsKey(entry.entityClass) && !PrimitiveMobsEntities.enabledEntities.get(entry.entityClass))\n return entry;\n SPAWNS.add(entry);\n ... |
"public static Object computeForType(Class<?> type) {\n if (type.isArray()) {\n return Array.newInstance(type.getComponentType(), 0);\n }\n if (type != void.class && type.isPrimitive()) {\n return defaultValueForPrimitiveType(type);\n }\n return computeForWrapperType(type);\n}\n"
|
"public void testPBES2ConformanceTestBlowfish() throws Exception {\n byte[] data = Base64.decode(\"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\" + ... |
"public void handleTransfer(final int size, final byte[] chunk) {\n if (size != 0) {\n if (chunkBuffer != null) {\n logger.loadContext();\n logger.warn(\"String_Node_Str\", \"String_Node_Str\", String.valueOf(chunkCapacity), \"String_Node_Str\", String.valueOf(chunkBuffer.size()));\n ... |
"public void handleQueue(final org.w3c.dom.Node node) {\n final Node attName = node.getAttributes().getNamedItem(\"String_Node_Str\");\n final String name = getTextContent(attName);\n final QueueConfig qConfig = new QueueConfig();\n qConfig.setName(name);\n for (org.w3c.dom.Node n : new IterableNodeList(... |
"protected Expr replaceColNameExpr(ColNameExpr expr) {\n if (expr.getTab() != null) {\n if (expr.getSchema() != null) {\n TableUniqueName t = new TableUniqueName(expr.getSchema(), expr.getTab());\n if (tabAliasColumns.containsKey(t)) {\n return new ColNameExpr(vc, expr.get... |
"private void initUI(View rootView) {\n drawerListView = (ListView) rootView.findViewById(R.id.navigation_listview);\n logoutButton = (ImageButton) rootView.findViewById(R.id.logout_imagebutton);\n fullnameTextView = (TextView) rootView.findViewById(R.id.fullname_textview);\n}\n"
|
"protected void setUp() throws Exception {\n super.setUp();\n action = (ShowArtifactAction) getActionProxy(\"String_Node_Str\").getAction();\n metadataResolver = new TestMetadataResolver();\n MetadataRepository repo = mock(MetadataRepository.class);\n RepositorySession repositorySession = mock(Repository... |
"public boolean sendPush(RemoteFileDesc file) {\n LOG.trace(\"String_Node_Str\");\n if (file.isReplyToMulticast()) {\n byte[] addr = RouterService.getNonForcedAddress();\n int port = RouterService.getNonForcedPort();\n if (NetworkUtils.isValidAddress(addr) && NetworkUtils.isValidPort(port)) {... |
"private Node createTreeView() {\n final TreeItem<String> treeRoot = new TreeItem<>(\"String_Node_Str\");\n TreeItem<String> status = new TreeItem<>(\"String_Node_Str\");\n treeRoot.getChildren().addAll(Arrays.asList(status));\n status.getChildren().addAll(Arrays.asList(new TreeItem<String>(\"String_Node_St... |
"private void createDelimiterGroup() {\n Group delimiterGroup = new Group(composite, SWT.SHADOW_ETCHED_IN);\n delimiterGroup.setText(\"String_Node_Str\");\n delimiterGroup.setLayout(new RowLayout());\n final Button[] delimiterButtons = new Button[6];\n delimiterButtons[0] = new Button(delimiterGroup, SWT... |
"public void addImageData(IImageContent image, IStyle style, HyperlinkDef link, BookmarkDef bookmark) {\n XlsContainer container = getCurrentContainer();\n ContainerSizeInfo parentSizeInfo = container.getSizeInfo();\n ColumnsInfo imageColumnsInfo = LayoutUtil.createImage(image, parentSizeInfo.getWidth());\n ... |
"public Response create(final TaskTO taskTO) {\n TaskTO createdTask;\n if (taskTO instanceof SyncTaskTO || taskTO instanceof SchedTaskTO) {\n createdTask = taskController.createSchedTaskInternal((SchedTaskTO) taskTO);\n } else {\n throw new BadRequestException();\n }\n TaskType taskType = g... |
"public void addKeepOpenVars(Collection<Var> v) {\n this.keepOpenVars.addAll(v);\n}\n"
|
"private void handleCallRequestPdu(String sourceAddress, String targetAddress, RpcCallRequestPdu pdu) {\n try {\n RpcServerCall call = new RpcServerCallImpl(this, sourceAddress, targetAddress, pdu);\n List<RpcServiceEndpoint> endpoints = new ArrayList<RpcServiceEndpoint>();\n synchronized (_serv... |
"public boolean performFinish() {\n Pattern pattern = PatternFactory.eINSTANCE.createPattern();\n String name = AbstractWizardPage.getConnectionParams().getName();\n pattern.setName(name);\n TaggedValueHelper.setAuthor(pattern, AbstractWizardPage.getConnectionParams().getAuthor());\n TaggedValueHelper.se... |
"public final void testConnection() {\n final HttpClient client = createClient();\n final HttpResponse response = client.execute(HttpRequest.of(HttpMethod.GET, \"String_Node_Str\")).toCompletableFuture().join();\n client.close();\n final String body = new String(response.getResponseBody().get());\n asser... |
"public void addLine(String line) {\n Matcher matcher;\n matcher = vertexPattern.matcher(line);\n if (matcher.matches()) {\n int id = Integer.parseInt(matcher.group(1));\n if (vertexIdMap.containsKey(id)) {\n throw new IllegalArgumentException(\"String_Node_Str\" + id);\n }\n ... |
"private void doOpenBoxAssessment(UserRequest ureq) {\n if (boxAssessmentCtrl != null)\n return;\n List<CheckListAssessmentRow> rows = model.getObjects();\n boxAssessmentCtrl = new CheckboxAssessmentController(ureq, getWindowControl(), checkboxList, rows, courseOres, userCourseEnv, courseNode);\n lis... |
"protected void matchClassesAndMetaData(Collection automapDescriptors) {\n super.matchClassesAndMetaData(automapDescriptors);\n DescriptorStringHolder[] descriptorHolders = this.buildMetaDataDescriptorStringHolders(automapDescriptors);\n TableStringHolder[] tableHolders = this.buildTableStringHolders();\n S... |
"public void onAnimationEnd(Animator animation) {\n if (finishCallback != null) {\n finishCallback.run();\n }\n inView.setAlpha(1f);\n if (outView != null) {\n outView.setAlpha(1f);\n }\n}\n"
|
"public void infectionSet(double infection) {\n double previousinfection = this.infectionGet();\n this.infection = this.limitDouble(infection, 0D, 100D);\n if ((previousinfection != 0 && this.infection == 0) || (previousinfection == 0 && this.infection != 0)) {\n VPlayer.save();\n }\n this.infecti... |
"public QueueItem txnPollReserve(long reservedOfferId) {\n QueueItem item = getItemQueue().poll();\n if (item == null) {\n item = txMap.remove(reservedOfferId);\n return item;\n }\n if (store.isEnabled() && item.getData() == null) {\n try {\n load(item);\n } catch (Exc... |
"public void toggleDirectChatRoom(String roomId, String aParticipantUserId, ApiCallback<Void> callback) {\n IMXStore store = getDataHandler().getStore();\n Room room = store.getRoom(roomId);\n if (null != room) {\n HashMap<String, List<String>> params;\n if (null != store.getDirectChatRoomsDict()... |
"private void updateStatusText(TextView txtStatus, PostModel post) {\n if ((PostStatus.fromPost(post) == PostStatus.PUBLISHED) && !post.isLocalDraft() && !post.isLocallyChanged()) {\n txtStatus.setVisibility(View.GONE);\n } else {\n int statusTextResId = 0;\n int statusIconResId = 0;\n ... |
"public void onClick(DialogInterface di, int id) {\n di.dismiss();\n Choice newKeyAlgorithmChoice = (Choice) mAlgorithmSpinner.getSelectedItem();\n int newKeySize = getProperKeyLength(newKeyAlgorithmChoice.getId(), getSelectedKeyLength());\n int flags = 0;\n if (mFlagCertify.isChecked()) {\n flags... |
"public void run() {\n mTouchModeReset = null;\n mTouchMode = TOUCH_MODE_REST;\n child.setPressed(false);\n setPressed(false);\n if (!mDataChanged && isAttachedToWindow()) {\n performClick.run();\n }\n}\n"
|
"public Object clone(Workspace workspace) throws CloneNotSupportedException {\n ArrayAppend newObject = (ArrayAppend) (super.clone(workspace));\n newObject.output.setTypeAtLeast(newObject.input);\n return newObject;\n}\n"
|
"public ProgramController run(Program program, ProgramOptions options) {\n try {\n String flowletName = options.getName();\n int instanceId = Integer.parseInt(options.getArguments().getOption(\"String_Node_Str\", \"String_Node_Str\"));\n Preconditions.checkArgument(instanceId >= 0, \"String_Node... |
"private boolean adjustForIME(final WindowState imeWin) {\n final int dockedSide = getDockSide();\n final boolean dockedTopOrBottom = dockedSide == DOCKED_TOP || dockedSide == DOCKED_BOTTOM;\n final Rect adjustedBounds = mTmpAdjustedBounds;\n if (imeWin == null || !dockedTopOrBottom) {\n return false... |
"public void runAndRenderReport(IViewerReportDesignHandle design, String outputDocName, InputOptions options, Map parameters, OutputStream out, List activeIds, Map displayTexts) throws ReportServiceException {\n if (design == null || design.getDesignObject() == null)\n throw new ReportServiceException(BirtRes... |
"protected String getContextIdForAccessAttempt(Request request) {\n return null;\n}\n"
|
"public Object visitAllocateNode(AllocateNode node, LinkedList args) {\n StringBuffer sb = new StringBuffer();\n String enclosingInstance = (String) node.childReturnValueAt(node.CHILD_INDEX_ENCLOSINGINSTANCE);\n if (!(enclosingInstance.equals(\"String_Node_Str\") || enclosingInstance.equals(\"String_Node_Str\"... |
"public static void registerDivineRPGMob(Class entityClass, String entityName, int ID) {\n LangRegistry.addMob(entityName);\n EntityRegistry.registerModEntity(entityClass, entityName, mobID, DivineRPG.instance, 120, 5, true);\n mobID++;\n}\n"
|
"protected void createInstallDirScript(File directory) {\n File dirScript = new File(directory, getMakeDirectoryName());\n try {\n PrintWriter dirPrint = new PrintWriter(dirScript);\n try {\n dirPrint.print(\"String_Node_Str\");\n dirPrint.print(getInstallDirPath());\n ... |
"public IValue resolve(MarkerList markers, IContext context) {\n if (this.valueCount <= 0) {\n return this;\n }\n IContext combinedContext = new CombiningContext(this, context);\n int len = this.valueCount - 1;\n for (int i = 0; i < len; i++) {\n IValue v1 = this.values[i];\n IValue ... |
"public RemoteWebDriver deenhance(RemoteWebDriver enhancedInstance, Class<? extends Annotation> qualifier) {\n if (enhancedInstance instanceof DroneAugmented) {\n RemoteWebDriver original = (RemoteWebDriver) ((DroneAugmented) enhancedInstance).getWrapped();\n Capabilities capabilities = enhancedInstanc... |
"public JavaClass[] processObjectFactory(JavaClass objectFactoryClass, ArrayList<JavaClass> classes) {\n Collection methods = objectFactoryClass.getMethods();\n Iterator methodsIter = methods.iterator();\n NamespaceInfo namespaceInfo = getNamespaceInfoForPackage(objectFactoryClass.getPackage());\n while (me... |
"protected String readPassphrase(String passphraseProperty) throws ConfigurationException {\n if (!containsKey(passphraseProperty)) {\n log.info(\"String_Node_Str\");\n return null;\n }\n String secretFile = getString(passphraseProperty);\n if (StringUtils.isEmpty(secretFile)) {\n log.w... |
"protected boolean allowAddition(RemoteFileDesc other) {\n return IncompleteFileManager.same(_name, _size, _hash, other.getFileName(), other.getSize(), other.getSHA1Urn());\n}\n"
|
"public void testCreateNewDatasetVersion() throws ClientProtocolException, IOException, URISyntaxException, MLIntegrationBaseTestException {\n CloseableHttpResponse response = uploadDatasetFromCSV(MLIntegrationTestConstants.DATASET_NAME, \"String_Node_Str\", MLIntegrationTestConstants.DIABETES_DATASET_SAMPLE);\n ... |
"protected static String ip2string(byte[] ip) {\n StringBuffer buf = new StringBuffer();\n buf.append(ByteOrder.ubyte2int(ip[3]) + \"String_Node_Str\");\n buf.append(ByteOrder.ubyte2int(ip[2]) + \"String_Node_Str\");\n buf.append(ByteOrder.ubyte2int(ip[1]) + \"String_Node_Str\");\n buf.append(ByteOrder.u... |
"public static void main(String[] args) {\n int maxLength = 1000;\n String inFile = null;\n String outFile = null;\n MultipleAlignmentParser parser;\n StructureAlignment aligner;\n String usage = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\... |
"public void clearState() {\n portals.remove(UNNAMED);\n preparedStatements.remove(UNNAMED);\n}\n"
|
"public Records2JsonConverter addSpecificConverter(Class<? extends SpecificRecordBase> type, Consumer<SpecificRecordBase> consumer) {\n customConvertersMap.put(type, consumer);\n return this;\n}\n"
|
"private void initCustomListeners() {\n localSearchAdapter.setOnRecycleItemClickListener(new SimpleOnRecycleItemClickListener<DialogSearchWrapper>() {\n\n public void onItemClicked(View view, QBChatDialog chatDialog, int position) {\n if (QBDialogType.PRIVATE.equals(chatDialog.getType())) {\n ... |
"public void handleLayoutInflated(LayoutInflatedParam liparam) throws Throwable {\n final RelativeLayout relativeLayout = (RelativeLayout) liparam.view.findViewById(liparam.res.getIdentifier(\"String_Node_Str\", \"String_Node_Str\", Common.PACKAGE_SNAP));\n final RelativeLayout.LayoutParams layoutParams = new Rel... |
"private String createCoverageXml(Map<String, String> geowaveStoreConfig, Boolean equalizeHistogramOverride, String interpolationOverride, Boolean scaleTo8Bit) {\n String coverageXml = null;\n String workspace = geowaveStoreConfig.get(GeoServerConfig.GEOSERVER_WORKSPACE);\n String cvgstoreName = geowaveStoreCo... |
"void dumpSharedUsersLPr(PrintWriter pw, String packageName, ArraySet<String> permissionNames, DumpState dumpState, boolean checkin) {\n boolean printedSomething = false;\n for (SharedUserSetting su : mSharedUsers.values()) {\n if (packageName != null && su != dumpState.getSharedUser()) {\n cont... |
"protected boolean updateVpnCertificate() {\n try {\n JSONObject provider_json = new JSONObject(preferences.getString(Provider.KEY, \"String_Node_Str\"));\n String provider_main_url = provider_json.getString(Provider.API_URL);\n URL new_cert_string_url = new URL(provider_main_url + \"String_Node... |
"public static boolean hasNoEdges(Graph graph) {\n return Iterables.isEmpty(graph.getEdges());\n}\n"
|
"public void defineDataSet(DataSetHandle handle, DataRequestSession session, boolean keepDataSetFilter, boolean disAllowAggregation) throws AdapterException, BirtException {\n if (handle == null) {\n return;\n }\n DataSourceHandle dataSourceHandle = handle.getDataSource();\n if (dataSourceHandle != n... |
"public void shareKeysWithDevice(final IncomingRoomKeyRequest request) {\n if ((null == request) || (null == request.mRequestBody)) {\n return;\n }\n final String userId = request.mUserId;\n mSession.getCrypto().getDeviceList().downloadKeys(Arrays.asList(userId), false, new ApiCallback<MXUsersDevices... |
"private void onTapUpEvent(int prevStart, int prevEnd) {\n final int start = getSelectionStart();\n final int end = getSelectionEnd();\n if (start == end) {\n if (start >= prevStart && start < prevEnd) {\n Selection.setSelection((Spannable) mText, prevStart, prevEnd);\n if (hasSele... |
"protected Control createBody(Composite parent) {\n canvas = new PieChart(parent, SWT.NONE);\n ClientSnapshot snapshot = ClientSnapshot.create(getClient(), Dates.today());\n List<PieChart.Slice> slices = new ArrayList<PieChart.Slice>();\n for (AccountSnapshot a : snapshot.getAccounts()) slices.add(new PieCh... |
"public static void convertShpFile(File rawFile, SpatialDataFolder outputFolder, int level) throws IOException, WikiBrainException {\n if ((level != 0) && (level != 1))\n throw new IllegalArgumentException(\"String_Node_Str\");\n File outputFile;\n Map map = new HashMap();\n List<String> locList = ne... |
"public String getDatasetUrl(String datasetID) throws DatasetServiceException {\n try {\n DatabaseService dbService = MLDatasetServiceValueHolder.getDatabaseService();\n return dbService.getValueSetUri(valueSetId);\n } catch (DatabaseHandlerException e) {\n throw new DatasetServiceException(\... |
"public static double[] shr(double[] a, int n) {\n n &= 63;\n double shiftFact = pwrAsDouble(n);\n double newHigh = Math.floor(a[HIGH] / shiftFact);\n double newLow = Math.floor(a[LOW] / shiftFact);\n return create(newLow, newHigh);\n}\n"
|
"public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) {\n Player player = event.getPlayer();\n String[] split = event.getMessage().split(\"String_Node_Str\");\n String cmdName = split[0].substring(1).toLowerCase();\n String[] realArgs;\n realArgs = new String[split.length - 1];\n ... |
"private void checkIntent() {\n Intent intent = getIntent();\n String action = intent.getAction();\n String type = intent.getType();\n if (Intent.ACTION_VIEW.equals(action) && type != null) {\n Toast.makeText(this, intent.getData().getPath(), Toast.LENGTH_LONG).show();\n GcpReader parser = (ne... |
"public void beginDraw() {\n if (!settingsInited)\n defaultSettings();\n resetMatrix();\n report(\"String_Node_Str\");\n vertexBuffer.rewind();\n colorBuffer.rewind();\n texCoordBuffer.rewind();\n normalBuffer.rewind();\n textureImage = null;\n textureImagePrev = null;\n gl.glEnable... |
"public void focusGained(FocusEvent e) {\n populateTableCombo(false);\n}\n"
|
"protected static Array findFileResources(String type) {\n ApplicationContext ctx = ApplicationContext.getInstance();\n String root = FileRequestHandler.PATH_FILES.toString();\n Path path = FileRequestHandler.PATH_FILES.child(type, true);\n Metadata[] meta;\n String file;\n Array res = new Array();\n ... |
"private double[] convertDataMapToDoubleArray(Map<String, Object> dataMap) {\n double[] data = new double[this.columnNumIndexMap.size()];\n for (Entry<Integer, Integer> entry : this.columnNumIndexMap.entrySet()) {\n double value = 0d;\n Integer columnNum = entry.getKey();\n String columnName ... |
"protected byte[][] exportFullIDs(List<Download> downloads) {\n byte[] hashes = new byte[FULL_ID_SIZE * downloads.size()];\n byte[] states = new byte[downloads.size()];\n for (int i = 0; i < downloads.size(); i++) {\n Download download = downloads.get(i);\n downloadData download_data = (downloadD... |
"public void onStreamDropped(Session session, Stream stream) {\n if (contains(jsEvents, sessionPreface + \"String_Node_Str\") || contains(componentEvents, sessionPreface + \"String_Node_Str\")) {\n WritableMap streamInfo = prepareStreamMap(stream);\n sendEventMap(this.getReactApplicationContext(), sess... |
"private GrillResultSet getResultset(QueryHandle queryHandle) throws GrillException {\n QueryContext ctx = allQueries.get(queryHandle);\n if (ctx == null) {\n return getResultsetFromDAO(queryHandle);\n } else {\n synchronized (ctx) {\n if (ctx.isFinishedQueryPersisted()) {\n ... |
"public void testDecorate() throws Exception {\n CoverageReporterAction reporter = new CoverageReporterAction(null, null, null);\n List<Action> actions = Lists.<Action>newArrayList(new ServerStartupAction(0, null, null, SlaveBrowser.TIMEOUT, null, Collections.<AuthStrategy>emptySet(), false, null, new NullPathPre... |
"public int alphaBeta(Board board, int depth, int ply, int alpha, int beta, boolean nmAllowed) {\n if (!useFixedDepth && --pollForStopInterval == 0) {\n pollForStopInterval = TIME_CHECK_INTERVAL;\n if (System.currentTimeMillis() > (timeStarted + timeForThisMove))\n shouldWeStop = true;\n ... |
"public final int getRecordCount(Interval interval) {\n if (Interval.DEFAULT.equals(interval)) {\n return data.size();\n } else {\n return data.subMap(interval.getStart(), true, interval.getEnd(), true).size();\n }\n}\n"
|
"private double[] computeHorizalByTopBottomValue(IDisplayServer xs, Chart cm, SeriesDefinition[] seda, RunTimeContext rtc, ITextMetrics itm, Label la, LegendData legendData) throws ChartException {\n double dWidth = 0, dHeight = 0;\n double dH, dMaxH = 0, dRowHeight;\n double dRealWidth = 0, dExtraHeight = 0, ... |
"private void parseServer(final XMLExtendedStreamReader reader, final ModelNode parentAddress, final List<ModelNode> list, final Set<String> serverNames) throws XMLStreamException {\n String name = null;\n String group = null;\n Boolean start = null;\n final int count = reader.getAttributeCount();\n for ... |
"public IStatus doAction() {\n try {\n IStructuredSelection selection = (TreeSelection) page.getTreeViewer().getSelection();\n XSDComponent xSDCom = null;\n if (selection.getFirstElement() instanceof Element) {\n TreePath tPath = ((TreeSelection) selection).getPaths()[0];\n ... |
"private boolean _matchLoop(FastLinkedList<NamedObj>.Entry lhsStart, FastLinkedList<NamedObj>.Entry hostStart) {\n FastLinkedList<NamedObj>.Entry lhsChildStart = lhsStart.getNext();\n FastLinkedList<NamedObj>.Entry hostChildStart = hostStart.getNext();\n if (lhsChildStart == null) {\n return _checkDisco... |
"synchronized public Collection<Integer> getLostPackets() {\n if (lostPackets != null)\n return lostPackets;\n lostPackets = new LinkedList<Integer>();\n if (fci != null) {\n for (int i = 0; i < (fci.length / 4); i++) {\n int pid = (0xFF & fci[i * 4 + 0]) << 8 | (0xFF & fci[i * 4 + 1])... |
"public boolean shouldRetry(ConnectionState state) {\n if (this.maxRetryCount > 0 && state.retryCount > this.maxRetryCount) {\n return false;\n }\n if (state.msBeforeRetry <= 0) {\n state.msBeforeRetry = startRetryTime;\n } else if (state.msBeforeRetry < maxDelayInMs) {\n state.msBefore... |
"public static String nodeToString(Node n, boolean omitXMLDeclaration) throws TransformerException {\n StringWriter sw = new StringWriter();\n Transformer transformer = TransformerFactory.newInstance().newTransformer();\n if (omitXMLDeclaration)\n transformer.setOutputProperty(\"String_Node_Str\", \"Str... |
"public Ack call() throws Exception {\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\n connection.setRequestMethod(\"String_Node_Str\");\n connection.setRequestProperty(\"String_Node_Str\", \"String_Node_Str\");\n connection.setRequestProperty(\"String_Node_Str\", \"String_Node_S... |
"public static String createXmlFolder(String folderPath, String packageName) {\n folderPath = generatPackageFileFloder(folderPath + \"String_Node_Str\", packageName);\n File file = new File(folderPath);\n if (!file.exists()) {\n file.mkdirs();\n }\n return folderPath;\n}\n"
|
"public void install(Driver driver, Path extractLocation) throws MojoExecutionException {\n if (extractLocation.toFile().isDirectory() && directoryIsEmpty(extractLocation)) {\n throw new InstallDriversMojoExecutionException(\"String_Node_Str\", mojo, driver);\n }\n try {\n if (directoryContainsSi... |
"public static boolean hasShown(Step step, Activity activity) {\n if (PreferenceManager.getDefaultSharedPreferences(activity.getBaseContext()).getBoolean(QuickPrefsActivity.ENABLE_WALKTHROUGH_SETTING_KEY, true)) {\n DBAccessor dba = new DBAccessor(activity);\n WalkthroughStep ws = dba.getWalkthrough();... |
"public void generateJavaAPIBindings() throws Exception {\n StringBuilder bindings = new StringBuilder();\n Set<String> imports = new TreeSet<String>();\n for (Router<?> router : app().getRouters()) {\n String prefix = router.getPrefix();\n if (prefix.startsWith(\"String_Node_Str\")) {\n ... |
"public List getReferableBindings(String targetLevel, ICubeQueryDefinition cubeDefn, boolean isSort) throws AdapterException {\n try {\n List bindings = cubeDefn.getBindings();\n if (bindings == null)\n return new ArrayList();\n DimLevel target = OlapExpressionUtil.getTargetDimLevel(t... |
"private List<RangerPolicyItem> getPolicyItemListForRes(XXResource xRes, String serviceDefName) {\n List<RangerPolicyItem> policyItems = new ArrayList<RangerPolicyItem>();\n SearchCriteria sc = new SearchCriteria();\n sc.addParam(\"String_Node_Str\", xRes.getId());\n List<VXPermMap> permMapList = xPermMapSe... |
"public static boolean isSolid(Block block) {\n return !Arrays.asList(nonOpaque).contains(block.getTypeId());\n}\n"
|
"public void doImport(TreeObject[] objs, IProgressMonitor monitor) {\n monitor.beginTask(\"String_Node_Str\", IProgressMonitor.UNKNOWN);\n Reader reader = null;\n Arrays.sort(objs, new Comparator<Object>() {\n public int compare(Object o1, Object o2) {\n return ((TreeObject) o1).getType() - (... |
"public void processRequest(IMxRuntimeRequest req, IMxRuntimeResponse resp, String _) {\n long start = System.currentTimeMillis();\n HttpServletRequest request = req.getHttpServletRequest();\n HttpServletResponse response = resp.getHttpServletResponse();\n String method = request.getMethod();\n URL u;\n ... |
"public void initialize() throws IllegalActionException {\n super.initialize();\n for (int i = 0; i <= _order; i++) {\n _estimatedErrorPower[i] = 0.0;\n _estimatedErrorPowerCache[i] = 0.0;\n if (i < _order) {\n _reflectionCoefficientsCache[i] = 0.0;\n }\n }\n ArrayToke... |
"public JsonElement serialize(Date date, Type type, JsonSerializationContext jsonSerializationContext) {\n return date == null ? JsonNull.INSTANCE : new JsonPrimitive(DateFormatUtils.format(date, Constants.DATE_FORMAT, TimeZone.getTimeZone(\"String_Node_Str\")));\n}\n"
|
"public static Indicator adaptToJavaUDI(Indicator indicator) throws Throwable {\n Indicator returnIndicator = getUDIFromMap(indicator);\n if (returnIndicator != null) {\n return returnIndicator;\n }\n UserDefIndicator adaptedUDI = null;\n if (userDefIndSwitch.doSwitch(indicator) != null) {\n ... |
"public void addRootObjectMetaData(RootObjectMetaData rootObjectMetaData) throws RepositoryException {\n getRootObjectCache().add(rootObjectMetaData, true);\n}\n"
|
"public byte[] getClassBytes(TreeLogger logger, String binaryTypeName) throws UnableToCompleteException {\n String msg = \"String_Node_Str\" + binaryTypeName + \"String_Node_Str\";\n logger = logger.branch(TreeLogger.SPAM, msg, null);\n TreeLogger oldLogger = threadLogger.push(logger);\n try {\n Byte... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.