idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
79,957 | protected void validateCidrs() {<NEW_LINE>if (getSourceCidrList() != null) {<NEW_LINE>String guestCidr = _networkService.getNetwork(getNetworkId()).getCidr();<NEW_LINE>for (String cidr : getSourceCidrList()) {<NEW_LINE><MASK><NEW_LINE>isValidIpCidr(cidr, "Source");<NEW_LINE>if (cidr.equals(NetUtils.ALL_IP4_CIDRS)) {<NE... | cidr = StringUtils.trim(cidr); |
822,863 | public Set<FileObject> extend(WebModule webModule) {<NEW_LINE>CreateSpringConfig createSpringConfig = new CreateSpringConfig(webModule);<NEW_LINE>FileObject webInf = webModule.getWebInf();<NEW_LINE>if (webInf == null) {<NEW_LINE>try {<NEW_LINE>FileObject documentBase = webModule.getDocumentBase();<NEW_LINE>if (document... | Collections.<FileObject>emptySet(); |
1,060,416 | public void init() {<NEW_LINE>root.getChildren().remove(dialog);<NEW_LINE>centerButton.setOnAction(action -> {<NEW_LINE>dialog.setTransitionType(DialogTransition.CENTER);<NEW_LINE>dialog.show((StackPane) context.getRegisteredObject(CONTENT_PANE));<NEW_LINE>});<NEW_LINE>topButton.setOnAction(action -> {<NEW_LINE>dialog.... | + " sed do eiusmod tempor incididunt ut labore et dolore magna" + " aliqua. Utenim ad minim veniam, quis nostrud exercitation" + " ullamco laboris nisi ut aliquip ex ea commodo consequat.")); |
1,790,560 | protected Void doInBackground(CheckDirection... params) {<NEW_LINE>final CheckDirection direction = params[0];<NEW_LINE>try {<NEW_LINE>if (cancelled()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>clearCertificateErrorNotifications(direction);<NEW_LINE>checkServerSettings(direction);<NEW_LINE>if (cancelled()) {<NEW_LINE... | "" : afe.getMessage()); |
1,551,975 | public static void vertical9(Kernel1D_S32 kernel, GrayS16 src, GrayI16 dst) {<NEW_LINE>final short[] dataSrc = src.data;<NEW_LINE>final short[] dataDst = dst.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int k4 = kernel.data[... | k9 = kernel.data[8]; |
1,834,035 | public static List<RegressionExecution> executions() {<NEW_LINE>List<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new EPLSubselectUnfilteredExpression());<NEW_LINE>execs.add(new EPLSubselectUnfilteredUnlimitedStream());<NEW_LINE>execs.add(new EPLSubselectUnfilteredLengthWindow());<NEW_LINE>execs.a... | .add(new EPLSubselectCustomFunction()); |
335,734 | private static File createKeystore(byte[] ca, byte[] cert, byte[] key, String password) throws IOException, InterruptedException {<NEW_LINE>File caFile = File.createTempFile(AbstractKafkaClientProperties.class.getName(), ".crt");<NEW_LINE>caFile.deleteOnExit();<NEW_LINE>Files.write(caFile.toPath(), ca);<NEW_LINE>File c... | certFile.toPath(), cert); |
1,305,676 | private void rescue(JMethod method) {<NEW_LINE>if (method == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (liveFieldsAndMethods.add(method)) {<NEW_LINE>membersToRescueIfTypeIsInstantiated.remove(method);<NEW_LINE>if (dependencyRecorder != null) {<NEW_LINE>curMethodStack.add(method);<NEW_LINE><MASK><NEW_LINE>}<NEW_LI... | dependencyRecorder.methodIsLiveBecause(method, curMethodStack); |
1,719,982 | public int[] constructArray(int n, int k) {<NEW_LINE>List<Integer> <MASK><NEW_LINE>int maxSoFar = 1;<NEW_LINE>list.add(1);<NEW_LINE>boolean plus = true;<NEW_LINE>while (k > 0) {<NEW_LINE>if (plus) {<NEW_LINE>plus = false;<NEW_LINE>int num = list.get(list.size() - 1) + k;<NEW_LINE>maxSoFar = Math.max(maxSoFar, num);<NEW... | list = new ArrayList<>(); |
1,665,909 | private void confirmRemove(@NonNull final DownloadItem downloadItem, @NonNull final List<File> downloadedFiles) {<NEW_LINE>OsmandApplication app = context.getMyApplication();<NEW_LINE>AlertDialog.Builder confirm = new AlertDialog.Builder(context);<NEW_LINE>String message;<NEW_LINE>if (downloadedFiles.size() > 1) {<NEW_... | OsmandRegions regions = app.getRegions(); |
918,894 | public ResponseEntity<Object> login(@RequestBody Map<String, String> requestBody) {<NEW_LINE>if (requestBody == null || !requestBody.containsKey(APP_ID) || !requestBody.containsKey("password")) {<NEW_LINE>return ResponseEntity.badRequest().build();<NEW_LINE>}<NEW_LINE>String <MASK><NEW_LINE>String password = requestBod... | appId = requestBody.get("appId"); |
937,168 | private // object.<NEW_LINE>void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {<NEW_LINE>in.defaultReadObject();<NEW_LINE>byte[] ec = new byte[Constants.EYE_CATCHER_LENGTH];<NEW_LINE>// d164415 start<NEW_LINE>int bytesRead = 0;<NEW_LINE>for (int offset = 0; offset < Constants.EYE_... | (PortableFinderEnumerator) in.readObject(); |
293,472 | public Object visit(Object context1, NewOperatorExpression expr, boolean strict) {<NEW_LINE>ExecutionContext context = (ExecutionContext) context1;<NEW_LINE>Object ref = expr.getExpr().<MASK><NEW_LINE>Object memberExpr = getValue(context, ref);<NEW_LINE>Object[] args = new Object[expr.getArgumentExpressions().size()];<... | accept(context, this, strict); |
1,530,083 | public OverrideAction unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>OverrideAction overrideAction = new OverrideAction();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<... | String currentParentElement = context.getCurrentParentElement(); |
1,435,413 | public void selectionChanged(@NotNull FileEditorManagerEvent event) {<NEW_LINE>Project project = event.getManager().getProject();<NEW_LINE>if (!BuckProjectSettingsProvider.getInstance(project).isAutoFormatOnBlur()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>FileEditor newFileEditor = event.getNewEditor();<NEW_LINE>FileEdit... | (project).getPsiFile(document); |
1,602,151 | public Builder mergeCollapsedCCProcessedDependencies(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph value) {<NEW_LINE>if (collapsedCCProcessedDependenciesBuilder_ == null) {<NEW_LINE>if (((bitField0_ & 0x00002000) != 0) && collapsedCCProcessedDependencies_ != null && collapsedCCProcessedDependencies_ != edu.st... | mergeFrom(value).buildPartial(); |
1,756,292 | public static void drawAttributeAllocateButton(Canvas canvas, RectF targetFrame, ResizingBehavior resizing) {<NEW_LINE>// General Declarations<NEW_LINE>Paint paint = CacheForAttributeAllocateButton.paint;<NEW_LINE>// Local Colors<NEW_LINE>int fillColor75 = Color.argb(255, 135, 129, 144);<NEW_LINE>// Resize to Target Fr... | bezierPath.lineTo(0f, 15f); |
754,235 | public void read(org.apache.thrift.protocol.TProtocol iprot, updateBlobReplication_result struct) throws org.apache.thrift.TException {<NEW_LINE>org.<MASK><NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == org.apache.thrift.protocol... | apache.thrift.protocol.TField schemeField; |
713,619 | public void addEvent(ProfileEvent event) {<NEW_LINE>// parse<NEW_LINE>String eventUid = event.getUid();<NEW_LINE>long dispatchTime = event.getRawLogTime() - event.getRawLogTime() % MINUTE_MS;<NEW_LINE>String dispatchKey = eventUid + "." + dispatchTime;<NEW_LINE>//<NEW_LINE>DispatchProfile dispatchProfile = this.profile... | profileCache.put(dispatchKey, newDispatchProfile); |
773,210 | final ListFunctionsResult executeListFunctions(ListFunctionsRequest listFunctionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listFunctionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | invoke(request, responseHandler, executionContext); |
710,766 | public T linkFrom(BatchOperator<?>... inputs) {<NEW_LINE>checkOpSize(2, inputs);<NEW_LINE>try {<NEW_LINE>BroadcastVariableModelSource modelSource = new BroadcastVariableModelSource(BROADCAST_MODEL_TABLE_NAME);<NEW_LINE>RecommMapper mapper = new RecommMapper(this.recommKernelBuilder, this.recommType, inputs[0].getSchema... | .getDataSet().rebalance(); |
973,321 | private Set<Local> searchForArrayObject(IrMethod method) {<NEW_LINE>final Set<Local> arrays = new HashSet<>();<NEW_LINE>for (Stmt stmt : method.stmts) {<NEW_LINE>if (stmt.st == Stmt.ST.ASSIGN) {<NEW_LINE>// create an array<NEW_LINE>if (stmt.getOp1().vt == Value.VT.LOCAL) {<NEW_LINE>Local local = (Local) stmt.getOp1();<... | (Local) stmt.getOp1(); |
121,449 | public static void sendCooldown(GeyserSession session) {<NEW_LINE>if (DEFAULT_SHOW_COOLDOWN == CooldownType.DISABLED)<NEW_LINE>return;<NEW_LINE>CooldownType sessionPreference = session.getPreferencesCache().getCooldownPreference();<NEW_LINE>if (sessionPreference == CooldownType.DISABLED)<NEW_LINE>return;<NEW_LINE>// 0.... | .getWorldCache().markTitleTimesAsIncorrect(); |
471,867 | public void calc(ComContext context) {<NEW_LINE>Iterable<Tuple3<Double, Double, Vector>> labledVectors = context.getObj(OptimVariable.trainData);<NEW_LINE>// get iterative coefficient from static memory.<NEW_LINE>Tuple2<DenseVector, Double> state = context.getObj(OptimVariable.currentCoef);<NEW_LINE>int size = state.f0... | = new double[size + 1]; |
291,859 | public void actionPerformed(ActionEvent e) {<NEW_LINE>if (e.getSource() == expandButton) {<NEW_LINE>DefaultMutableTreeNode currentSelectedNodeInMC = (DefaultMutableTreeNode) this.moduleToRunTreeNodes.getLastSelectedPathComponent();<NEW_LINE>JMeterTreeNode nodeToExpandInTestPlanTree = null;<NEW_LINE>if (currentSelectedN... | getJTree().setSelectionPath(treePath); |
1,226,301 | protected void updateJobInfo(Set<Table> usedTables, List<Column> columns, QueryStats queryStats, JobState state, QueryError error, List<List<Object>> outputPreview, boolean postUpdate) {<NEW_LINE>if ((usedTables != null) && (usedTables.size() > 0)) {<NEW_LINE>job.getTablesUsed().addAll(usedTables);<NEW_LINE>}<NEW_LINE>... | error.getErrorLocation(), failureInfo); |
1,427,348 | public Boolean delete(Integer id, String operator) {<NEW_LINE>LOGGER.info("begin to delete sink by id={}", id);<NEW_LINE>Preconditions.checkNotNull(id, ErrorCodeEnum.ID_IS_EMPTY.getMessage());<NEW_LINE>StreamSinkEntity entity = sinkMapper.selectByPrimaryKey(id);<NEW_LINE>Preconditions.checkNotNull(entity, ErrorCodeEnum... | rowCount = sinkMapper.updateByPrimaryKeySelective(entity); |
1,844,657 | public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create context ContextOne start SupportBean_S0 end SupportBean_S1", path);<NEW_LINE>String eplCreate = namedWindow ? "@public context ContextOne create window MyInfra#keepall as (pkey0 s... | env, path, 3, "context ContextOne select pkey0, count(*) as thecnt from MyInfra output snapshot when terminated"); |
341,764 | public void write(org.apache.thrift.protocol.TProtocol prot, TExternalCompaction struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet optionals = new java.util.BitSet();<NEW_LINE>if (struct.is... | struct.updates.size()); |
1,116,811 | private void startEnterRoom() {<NEW_LINE>if (TextUtils.isEmpty(mEditInputUserId.getText().toString().trim()) || TextUtils.isEmpty(mEditInputRoomId.getText().toString().trim())) {<NEW_LINE>Toast.makeText(VoiceChatRoomEnterActivity.this, getString(R.string.voicechatroom_room_input_error_tip), Toast.LENGTH_LONG).show();<N... | VoiceChatRoomEnterActivity.this, VoiceChatRoomAnchorActivity.class); |
279,503 | public void trigger(CommandContext commandContext, PlanItemInstanceEntity planItemInstanceEntity) {<NEW_LINE>RepetitionRule repetitionRule = ExpressionUtil.getRepetitionRule(planItemInstanceEntity);<NEW_LINE>if (repetitionRule != null && ExpressionUtil.evaluateRepetitionRule(commandContext, planItemInstanceEntity, plan... | getExpressionManager().createExpression(signalRef); |
1,297,945 | public boolean supportsLanguage(Language language) {<NEW_LINE>try {<NEW_LINE>List<Class<? extends Rule>> <MASK><NEW_LINE>UserConfig config = new UserConfig();<NEW_LINE>List<Rule> relevantRules = new ArrayList<>(// empty UserConfig has to be added to prevent null pointer exception<NEW_LINE>language.// empty UserConfig h... | relevantRuleClasses = new ArrayList<>(); |
1,301,682 | public void drawBackground(@Nonnull PoseStack matrix, int mouseX, int mouseY, float partialTicks) {<NEW_LINE>super.drawBackground(<MASK><NEW_LINE>matrix.pushPose();<NEW_LINE>// TODO: Figure out why we need a translation of 1 to fix the text intersecting for the dictionary but it works just fine<NEW_LINE>// for the QIO ... | matrix, mouseX, mouseY, partialTicks); |
175,049 | public void propertyChange(PropertyChangeEvent evt) {<NEW_LINE><MASK><NEW_LINE>if (o != null && o instanceof Range) {<NEW_LINE>double x1 = ((Range) o).getLower();<NEW_LINE>double x2 = ((Range) o).getUpper();<NEW_LINE>if (Math.abs(x1 - x2) < DateUtil.MILLIS_PER_FIVE_MINUTE) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (x1 ... | Object o = evt.getNewValue(); |
1,135,222 | private static void tryAssertionOutputRateEventsAll(RegressionEnvironment env) {<NEW_LINE>String[] fields = new String[] { "cnt" };<NEW_LINE>// varargs: sends 2 events<NEW_LINE>sendSupportBeans(env, "E1", "E2");<NEW_LINE>env.assertListenerNotInvoked("s0");<NEW_LINE>sendSupportBeans(env, "E3");<NEW_LINE>env.assertPropsN... | new Object[] { 11L }); |
504,101 | private ServiceVirtualMachine createServiceVM(DataCenter zone, Account owner, VirtualMachineTemplate template, ServiceOffering serviceOffering, String name, ServiceInstance siObj, Network left, Network right) {<NEW_LINE>long id = _vmDao.getNextInSequence(Long.class, "id");<NEW_LINE>DataCenterDeployment plan = new DataC... | owner.getId(), "SRV"); |
1,626,580 | final DeleteVpnConnectionRouteResult executeDeleteVpnConnectionRoute(DeleteVpnConnectionRouteRequest deleteVpnConnectionRouteRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteVpnConnectionRouteRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,030,016 | public Object run() {<NEW_LINE>final RequestContext ctx = RequestContext.getCurrentContext();<NEW_LINE>logger.info("in zuul filter " + ctx.getRequest().getRequestURI());<NEW_LINE>byte[] encoded;<NEW_LINE>try {<NEW_LINE>encoded = Base64.getEncoder().encode("fooClientIdPassword:secret".getBytes("UTF-8"));<NEW_LINE>ctx.ad... | "Basic " + new String(encoded)); |
1,583,476 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* com.fasterxml.jackson.databind.JsonDeserializer#deserialize(com.fasterxml<NEW_LINE>* .jackson. core.JsonParser,<NEW_LINE>* com.fasterxml.jackson.databind.DeserializationContext)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>@SuppressWarnings("deprecation")<NEW... | deviceToken = node.get("deviceToken"); |
81,955 | private Vector[] merge(int matrixId, int[] rowIds, Collection<Response> responses) {<NEW_LINE>Map<Integer, List<ServerRow>> rowIdToserverRows = new HashMap<>(rowIds.length);<NEW_LINE>int valueNum = responses.size();<NEW_LINE>for (Response response : responses) {<NEW_LINE>ServerRow[] serverRows = ((GetRowsSplitResponse)... | .setRowId(rowIds[i]); |
123,535 | private void mergeRegularEarlyExit(FixedNode next, AbstractBeginNode exitBranchBegin, LoopExitNode oldExit, LoopBeginNode mainLoopBegin, StructuredGraph graph, EconomicMap<Node, Node> new2OldPhis, LoopEx loop) {<NEW_LINE>AbstractMergeNode merge = ((EndNode) next).merge();<NEW_LINE>assert merge instanceof MergeNode : "C... | assert exitBranchBegin.next() == null; |
846,823 | private <T> Optional<T> internalGet(byte[] key, Function<byte[], T> trieRetriever, Function<byte[], T> cacheTransformer) {<NEW_LINE>ByteArrayWrapper wrapper = new ByteArrayWrapper(key);<NEW_LINE>ByteArrayWrapper accountWrapper = getAccountWrapper(wrapper);<NEW_LINE>Map<ByteArrayWrapper, byte[]> accountItems = cache.get... | (cacheTransformer.apply(cacheItem)); |
209,272 | private void createKeyValuePairLayout(String key, LinearLayout topLayout) {<NEW_LINE>LinearLayout linearLayout = new LinearLayout(getActivity());<NEW_LINE>linearLayout.setOrientation(LinearLayout.HORIZONTAL);<NEW_LINE>TextView keyTextView = new TextView(getActivity());<NEW_LINE>keyTextView.setTag("key" + key);<NEW_LINE... | WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT); |
56,158 | private void loadNode996() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SessionDiagnosticsObjectType_SessionSecurityDiagnostics_SecurityPolicyUri, new QualifiedName(0, "SecurityPolicyUri"), new LocalizedText("en", "SecurityPolicyUri"), LocalizedText.NULL_VALUE, UInte... | .expanded(), false)); |
353,445 | private void readSchemesFromProviders(@Nonnull Map<String, E> result) {<NEW_LINE>assert myProvider != null;<NEW_LINE>for (String subPath : myProvider.listSubFiles(myFileSpec, myRoamingType)) {<NEW_LINE>try {<NEW_LINE>Element element = loadElementOrNull(myProvider.loadContent(getFileFullPath(subPath), myRoamingType));<N... | subPath, scheme.getName()); |
1,417,760 | protected void encodePanel(FacesContext context, AutoComplete ac) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String styleClass = ac.getPanelStyleClass();<NEW_LINE>styleClass = styleClass == null ? AutoComplete.PANEL_CLASS : AutoComplete.PANEL_CLASS + " " + styleClass;<NE... | writeAttribute("tabindex", "-1", null); |
1,001,181 | public static <II extends ImageGray<II>> void harder(GrayF32 image) {<NEW_LINE>// SURF works off of integral images<NEW_LINE>Class<II> integralType = GIntegralImageOps.getIntegralType(GrayF32.class);<NEW_LINE>// define the feature detection algorithm<NEW_LINE>ConfigFastHessian config = new ConfigFastHessian();<NEW_LINE... | p.scale * BoofDefaults.SURF_SCALE_TO_RADIUS); |
1,386,326 | private void configureLogging(Level logLevel, File logFile) throws IOException {<NEW_LINE>configuredLogLevel = logLevel;<NEW_LINE>System.setProperty("java.util.logging.SimpleFormatter.format", "[%1$tF %1$tT] %4$s [%2$s] %5$s%6$s%n");<NEW_LINE>java.util.logging.Logger liquibaseLogger = java.util.logging.Logger.getLogger... | logging.Logger.getLogger(""); |
1,688,912 | private void handleNewJobLogPart() {<NEW_LINE>// Ensure a publisher has been injected, otherwise do not send job log event to be published<NEW_LINE>if (getBatchEventsPublisher() != null) {<NEW_LINE>String logContent = null;<NEW_LINE>try {<NEW_LINE>// get the content of the job log part<NEW_LINE>logContent = new String(... | getCause() : e) }); |
1,096,106 | void findLdapDnMemberOfList(LdapTemplate ldapTemplate, String ldapDn, List<String> resultDnList, List<String> dnIgnoreList) {<NEW_LINE>if (dnIgnoreList.contains(ldapDn)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>AndFilter filter = new AndFilter();<NEW_LINE>filter.and(new EqualsFilter<MASK><NEW_LINE>List<Object> groupList ... | (getMemberKey(), ldapDn)); |
680,954 | public void showEmblemsDialog(CardsView cards, BigCard bigCard, UUID gameId) {<NEW_LINE>int w = 720;<NEW_LINE>int h = 550;<NEW_LINE>int height = getHeight();<NEW_LINE>int width = getWidth();<NEW_LINE>int x = ((width - w) / 2);<NEW_LINE>int y = ((height - h) / 2);<NEW_LINE>DlgParams params = new DlgParams();<NEW_LINE>pa... | DialogContainer(MTGDialogs.EMBLEMS, params); |
1,723,387 | public void buildStages(Stage primaryStage, ResourceBundle resourceBundle) throws Exception {<NEW_LINE>int width = 800, height = 459;<NEW_LINE>window = primaryStage;<NEW_LINE>Parent root = FXMLLoader.load(getClass().getResource("/main.fxml"), resourceBundle);<NEW_LINE>window.setTitle("LibRec V2.0");<NEW_LINE>mainScene ... | .getResource("/evaluator.fxml"), resourceBundle); |
796,260 | void performRequestAsyncNoCatch(Request request, ResponseListener listener) throws IOException {<NEW_LINE>Map<String, String> requestParams = new HashMap<>(request.getParameters());<NEW_LINE>// ignore is a special parameter supported by the clients, shouldn't be sent to es<NEW_LINE>String ignoreString = requestParams.r... | (Integer.valueOf(ignoreCode)); |
775,985 | private static void sortNodes(DBNNode[] children) {<NEW_LINE>final DBPPreferenceStore prefStore = DBWorkbench<MASK><NEW_LINE>// Sort children is we have this feature on in preferences<NEW_LINE>// and if children are not folders<NEW_LINE>if (children.length > 0) {<NEW_LINE>DBNNode firstChild = children[0];<NEW_LINE>bool... | .getPlatform().getPreferenceStore(); |
806,763 | private void addToDisplay(final POI pPOI) {<NEW_LINE>final Marker marker = new Marker(mMapView);<NEW_LINE>marker.setTitle(pPOI.mTitle);<NEW_LINE>marker.setPosition(pPOI.mGeoPoint);<NEW_LINE>marker.setIcon(mBitmapDrawable);<NEW_LINE>mMapView.getOverlays().add(marker);<NEW_LINE>if (pPOI.mSpeechBalloon) {<NEW_LINE><MASK><... | final SpeechBalloonOverlay speechBalloonOverlay = new SpeechBalloonOverlay(); |
350,284 | public IndexStatistics unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>IndexStatistics indexStatistics = new IndexStatistics();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep... | ().unmarshall(context)); |
1,558,487 | protected void onLayout(boolean changed, int l, int t, int r, int b) {<NEW_LINE>final int paddingLeft = getPaddingLeft();<NEW_LINE>final int paddingTop = getPaddingTop();<NEW_LINE>final int slidingTop = getSlidingTop();<NEW_LINE>final int childCount = getChildCount();<NEW_LINE>if (mFirstLayout) {<NEW_LINE>switch(mSlide... | ) (mSlideRange * mSlideOffset) : paddingTop; |
160,473 | protected void installDefaults(AbstractButton b) {<NEW_LINE>super.installDefaults(b);<NEW_LINE>if (!defaults_initialized) {<NEW_LINE>String prefix = getPropertyPrefix();<NEW_LINE>minimumWidth = UIManager.getInt(prefix + "minimumWidth");<NEW_LINE>iconTextGap = FlatUIUtils.getUIInt(prefix + "iconTextGap", 4);<NEW_LINE>ba... | shadowColor = UIManager.getColor("Button.shadowColor"); |
18,701 | // this method is not meant to be in the public API<NEW_LINE>protected CompilationUnitDeclaration[] buildUnits(CompilationUnit[] sourceUnits) {<NEW_LINE>// //////////////////////////////////////////////////////////////////////////<NEW_LINE>// This code is largely inspired from JDT's<NEW_LINE>// CompilationUnitResolver.... | this.parser.getMethodBodies(unit); |
1,125,324 | // </editor-fold>//GEN-END:initComponents<NEW_LINE>@Messages({ "TagOptionsPanel.TagNameDialog.tagNameAlreadyExists.message=Tag name must be unique. A tag with this name already exists.", "TagOptionsPanel.TagNameDialog.tagNameAlreadyExists.title=Duplicate Tag Name" })<NEW_LINE>private void newTagNameButtonActionPerforme... | OptionsPanelController.PROP_CHANGED, null, null); |
1,794,892 | private static void doConversion(final StoredConfiguration existingConfig, final StoredConfigKey key, final StoredConfigurationModifier modifier) {<NEW_LINE>final StoredValue storedValue = existingConfig.readStoredValue(key).orElseThrow();<NEW_LINE>final boolean ad2003Enabled = ValueTypeConverter.valueToBoolean(storedV... | valueMetaData = existingConfig.readMetaData(key); |
1,496,882 | protected void doAction() {<NEW_LINE>try {<NEW_LINE>KeyStoreHistory history = kseFrame.getActiveKeyStoreHistory();<NEW_LINE>KeyStoreState currentState = history.getCurrentState();<NEW_LINE>String alias = kseFrame.getSelectedEntryAlias();<NEW_LINE>Password password = getEntryPassword(alias, currentState);<NEW_LINE>if (p... | DSignJwt(frame, keyPairType, privateKey); |
820,886 | private StringBuilder addFileOption(StringBuilder uriString, String optionName, String filename) throws IOException, CommandException {<NEW_LINE>File f = SmartFile.sanitize(new File(filename));<NEW_LINE>logger.log(Level.FINER, "FILE PARAM: {0} = {1}", new Object[] { optionName, f });<NEW_LINE>final boolean uploadThisFi... | addStringOption(uriString, optionName, pathToPass); |
1,771,760 | final CreateActionTargetResult executeCreateActionTarget(CreateActionTargetRequest createActionTargetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createActionTargetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateActionTarget"); |
640,731 | public void create(Properties ctx, TransformerHandler document) throws SAXException {<NEW_LINE>int reportViewId = Env.getContextAsInt(ctx, "AD_ReportView_ID");<NEW_LINE>PackOut packOut = (PackOut) ctx.get("PackOutProcess");<NEW_LINE>if (packOut == null) {<NEW_LINE>packOut = new PackOut();<NEW_LINE>packOut.setLocalConte... | MReportView.get(ctx, reportViewId); |
1,319,423 | public static GalenActionDumpArguments parse(String[] args) {<NEW_LINE>args = ArgumentsUtils.processSystemProperties(args);<NEW_LINE>Options options = new Options();<NEW_LINE>options.addOption("u", "url", true, "Initial test url");<NEW_LINE>options.addOption("s", "size", true, "Browser window size");<NEW_LINE>options.a... | (cmd.getOptionValue("u")); |
1,226,579 | private void validateJvmOptions(String jvmOptions) {<NEW_LINE>if (jvmOptions == null || jvmOptions.isEmpty())<NEW_LINE>return;<NEW_LINE>String[] <MASK><NEW_LINE>List<String> invalidOptions = Arrays.stream(optionList).filter(option -> !option.isEmpty()).filter(option -> !Pattern.matches(validPattern.pattern(), option)).... | optionList = jvmOptions.split(" "); |
791,630 | final GetShardIteratorResult executeGetShardIterator(GetShardIteratorRequest getShardIteratorRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getShardIteratorRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
408,867 | public <T extends IBaseResource> T parseResource(Class<T> theResourceType, Reader theReader) throws DataFormatException {<NEW_LINE>if (theResourceType != null) {<NEW_LINE>myContext.getResourceDefinition(theResourceType);<NEW_LINE>}<NEW_LINE>// Actually do the parse<NEW_LINE>T retVal = doParseResource(theResourceType, t... | IIdType resourceId = resource.getIdElement(); |
661,582 | final GetConfigResult executeGetConfig(GetConfigRequest getConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getConfigRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
816,060 | /* Update BigQuery Table Object Supplied */<NEW_LINE>private void updateBigQueryTable(TableId tableId, TableRow row, Set<String> ignoreFields) {<NEW_LINE>TableId tableLock = getTableLock(tableId);<NEW_LINE>synchronized (tableLock) {<NEW_LINE>Table table = this.tableCache.get(tableId);<NEW_LINE>Map<String, StandardSQLTy... | row, table, inputSchema, ignoreFields); |
1,130,897 | @Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@Operation(description = "Review group membership and take action to either extend and/or delete existing members.")<NEW_LINE>public void putGroupReview(@Parameter(description = "name of the domain", required = true) @PathPara... | domainName, groupName, auditRef, group); |
1,541,490 | private boolean init(String funcString) {<NEW_LINE>int leftBracket = funcString.indexOf("(");<NEW_LINE>int rightBracket = funcString.lastIndexOf(")");<NEW_LINE>// see if there even is a comma<NEW_LINE>int comma = funcString.indexOf(",");<NEW_LINE>if (leftBracket > 1 && rightBracket > leftBracket + 1 && comma > leftBrac... | = new Expression(rightExpressionString, parser); |
358,800 | public VerifySoftwareTokenResult verifySoftwareToken(VerifySoftwareTokenRequest verifySoftwareTokenRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(verifySoftwareTokenRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionCont... | new JsonResponseHandler<VerifySoftwareTokenResult>(unmarshaller); |
1,339,562 | public char[][] listPackages(char[] moduleName) {<NEW_LINE>switch(LookupStrategy.get(moduleName)) {<NEW_LINE>case Named:<NEW_LINE>IPackageFragmentRoot[] packageRoots = findModuleContext(moduleName);<NEW_LINE>Set<String> packages = new HashSet<>();<NEW_LINE>if (packageRoots != null) {<NEW_LINE>for (IPackageFragmentRoot ... | char[][]::new); |
1,707,658 | protected Object handleBlockException(Invocation inv, SentinelResource annotation, BlockException ex) throws Throwable {<NEW_LINE>// Execute block handler if configured.<NEW_LINE>Method blockHandlerMethod = extractBlockHandlerMethod(inv, annotation.blockHandler(), annotation.blockHandlerClass());<NEW_LINE>if (blockHand... | ] originArgs = inv.getArgs(); |
1,163,172 | private static BlockEntry readEntry(SliceInput data, BlockEntry previousEntry) {<NEW_LINE>requireNonNull(data, "data is null");<NEW_LINE>// read entry header<NEW_LINE>int sharedKeyLength = VariableLengthQuantity.readVariableLengthInt(data);<NEW_LINE>int nonSharedKeyLength = VariableLengthQuantity.readVariableLengthInt(... | valueLength = VariableLengthQuantity.readVariableLengthInt(data); |
1,051,887 | final DescribeReservedNodeOfferingsResult executeDescribeReservedNodeOfferings(DescribeReservedNodeOfferingsRequest describeReservedNodeOfferingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeReservedNodeOfferingsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeReservedNodeOfferings"); |
1,177,771 | private boolean createTableData(MTable mTable) {<NEW_LINE>boolean success = true;<NEW_LINE>int count = 0;<NEW_LINE>int errors = 0;<NEW_LINE>long start = System.currentTimeMillis();<NEW_LINE>// Get Table Data<NEW_LINE>String sql = "SELECT * FROM " + mTable.getTableName();<NEW_LINE>PreparedStatement pstmt = null;<NEW_LIN... | Level.SEVERE, sql, e); |
1,656,470 | protected void onFragmentCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>if (savedInstanceState == null) {<NEW_LINE>issueState = (IssueState) getArguments().getSerializable(BundleConstant.EXTRA);<NEW_LINE>}<NEW_LINE>getPresenter().onSetPullType(getIssuesType());<NEW_LINE>recycler.setEmptyVie... | getPresenter().getPreviousTotal()); |
1,827,192 | public HtmlResponse upload(final UploadForm form) {<NEW_LINE>validate(form, messages -> {<NEW_LINE>}, () -> uploadpage(form.dictId));<NEW_LINE>verifyToken(() <MASK><NEW_LINE>return stemmerOverrideService.getStemmerOverrideFile(form.dictId).map(file -> {<NEW_LINE>try (InputStream inputStream = form.stemmerOverrideFile.g... | -> uploadpage(form.dictId)); |
1,345,054 | private void init(Context context, @Nullable AttributeSet attrs) {<NEW_LINE>TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.DoKitItemView);<NEW_LINE>int layout = a.getInt(R.styleable.DoKitItemView_itemLayout, R.layout.view_dokit_item_view);<NEW_LINE>int icon = a.getResourceId(R.styleable.DoKitItemView_... | getString(R.styleable.DoKitItemView_itemText); |
901,584 | private void layout(Context context, AttributeSet attrs) {<NEW_LINE>inflate(context, R.layout.fastscroller, this);<NEW_LINE>setClipChildren(false);<NEW_LINE>setOrientation(HORIZONTAL);<NEW_LINE>mBubbleView = (TextView) findViewById(R.id.fastscroll_bubble);<NEW_LINE>mHandleView = (ImageView) findViewById(R.id.fastscroll... | R.styleable.FastScrollRecyclerView_bubbleTextColor, textColor); |
857,622 | public void newEntity(String template) {<NEW_LINE>preview.closePreview();<NEW_LINE>originalElement = null;<NEW_LINE>editedEntity = CustomElementCompiler.getInstance().genEntityFromTemplate(template, errorhandler);<NEW_LINE>if (editedEntity instanceof CustomElement) {<NEW_LINE>codepane.setCode(((CustomElement) editedEnt... | ).getProgramName() + "!"); |
245,636 | public void applyDefinitions(Configuration config) {<NEW_LINE>config.set(BENCHMARK_CLIENT_THREADS, 0);<NEW_LINE>config.set(BENCHMARK_RESPONSE_TIMEOUT, 30, TimeUnit.SECONDS);<NEW_LINE>config.set(CoapConfig.MAX_RESOURCE_BODY_SIZE, DEFAULT_MAX_RESOURCE_SIZE);<NEW_LINE>config.set(CoapConfig.MAX_MESSAGE_SIZE, DEFAULT_BLOCK_... | set(TcpConfig.TCP_WORKER_THREADS, 2); |
1,141,050 | private void addTab(String url, String content) throws Exception {<NEW_LINE>int ix = url.startsWith("file:") ? url.lastIndexOf(File.separatorChar) : url.lastIndexOf('/');<NEW_LINE>if (ix == -1) {<NEW_LINE>ix = url.lastIndexOf('/');<NEW_LINE>}<NEW_LINE>String title = url.substring(ix + 1);<NEW_LINE>metrics.getSection(DE... | String xmlString = writer.toString(); |
423,795 | private void flushBatch() throws IOException, InterruptedException {<NEW_LINE>if (batch.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>// Group values KV<tableName, writeRequest> by tableName<NEW_LINE>// Note: The original order of arrival is lost reading the map entries.<NEW_LINE>Map<String, List<Wri... | requestItems(writesPerTable).build(); |
1,368,386 | public static DescribeVodDomainConfigsResponse unmarshall(DescribeVodDomainConfigsResponse describeVodDomainConfigsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeVodDomainConfigsResponse.setRequestId(_ctx.stringValue("DescribeVodDomainConfigsResponse.RequestId"));<NEW_LINE>List<DomainConfig> domainConfigs = new... | ("DescribeVodDomainConfigsResponse.DomainConfigs[" + i + "].FunctionName")); |
1,497,700 | public void IREM(int rhsValue) {<NEW_LINE>IntegerValue right = env.topFrame().operandStack.popBv32();<NEW_LINE>IntegerValue left = env.topFrame().operandStack.popBv32();<NEW_LINE>if (zeroViolation(right, rhsValue))<NEW_LINE>return;<NEW_LINE>int left_concrete_value = left.getConcreteValue().intValue();<NEW_LINE>int righ... | .getConcreteValue().intValue(); |
936,454 | public GenericTableColumn createTableColumnImpl(@NotNull DBRProgressMonitor monitor, JDBCResultSet dbResult, @NotNull GenericTableBase table, String columnName, String typeName, int valueType, int sourceType, int ordinalPos, long columnSize, long charLength, Integer scale, Integer precision, int radix, boolean notNull,... | remarks, defaultValue, autoIncrement, autoGenerated); |
518,178 | private void doAction(final MyAction action) {<NEW_LINE>LOG.debug("doAction: START " + action.name());<NEW_LINE>final MyExitAction[] exitActions;<NEW_LINE>List<Runnable> toBeCalled = null;<NEW_LINE>synchronized (myLock) {<NEW_LINE>final MyState oldState = myState;<NEW_LINE>myState = myState.transition(action);<NEW_LINE... | ", newState: " + myState.name()); |
1,183,928 | private void validate(ParseState state) {<NEW_LINE><MASK><NEW_LINE>if (command == null) {<NEW_LINE>List<String> unparsedInput = state.getUnparsedInput();<NEW_LINE>if (unparsedInput.isEmpty()) {<NEW_LINE>throw new ParseCommandMissingException();<NEW_LINE>} else {<NEW_LINE>throw new ParseCommandUnrecognizedException(unpa... | CommandMetadata command = state.getCommand(); |
883,656 | public List<PartitionUpdateParam> split() {<NEW_LINE>long[] nodeIds = nodeId2Neighbors<MASK><NEW_LINE>Arrays.sort(nodeIds);<NEW_LINE>List<PartitionUpdateParam> partParams = new ArrayList<>();<NEW_LINE>List<PartitionKey> partitions = PSAgentContext.get().getMatrixMetaManager().getPartitions(matrixId);<NEW_LINE>if (!RowU... | .keySet().toLongArray(); |
742,161 | public void marshall(InsightSummary insightSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (insightSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(insightSummary.getInsightId(), INSIGHTID_B... | insightSummary.getLastUpdateTime(), LASTUPDATETIME_BINDING); |
1,845,745 | private static void readGuide(Document packageDocument, EpubReader epubReader, Book book, Resources resources) {<NEW_LINE>Element guideElement = DOMUtil.getFirstElementByTagNameNS(packageDocument.getDocumentElement(<MASK><NEW_LINE>if (guideElement == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Guide guide = book.getGu... | ), NAMESPACE_OPF, OPFTags.guide); |
1,460,541 | private Optional<TableToSweep> logDecision(Optional<TableToSweep> chosenTable, Map<TableReference, Double> scores, SweepPriorityOverrideConfig sweepPriorityOverrideConfig) {<NEW_LINE>if (!log.isDebugEnabled()) {<NEW_LINE>return chosenTable;<NEW_LINE>}<NEW_LINE>String safeTableNamesToScore = scores.entrySet().stream().s... | )).toString() : "no table"; |
1,037,104 | private CheckStatusResponse checkStatus(Node seedNode) {<NEW_LINE>if (config.isUseAsyncServer()) {<NEW_LINE>AsyncMetaClient client = (AsyncMetaClient) getAsyncClient(seedNode);<NEW_LINE>if (client == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>return SyncClientAdaptor.checkStatus(client, getStartUp... | logger.warn("Error occurs when check status on node : {}", seedNode); |
837,485 | protected HttpResponse addConnectionHeader(final HttpRequest request, final HttpResponse response) {<NEW_LINE>ConnectionOptions connectionOptions = response.getConnectionOptions();<NEW_LINE>HttpResponse responseWithConnectionHeader = response.clone();<NEW_LINE>if (connectionOptions != null && (connectionOptions.getSupp... | , KEEP_ALIVE.toString())); |
641,856 | public void createParamEditLayout() {<NEW_LINE>if (paramEditComponentLayout == null) {<NEW_LINE>paramEditComponentLayout = uiComponents.create(HBoxLayout.class);<NEW_LINE>paramEditComponentLayout.setSpacing(true);<NEW_LINE>paramEditComponentLayout.setWidthFull();<NEW_LINE>}<NEW_LINE>paramEditComponent = condition.getPa... | uiComponents.create(HBoxLayout.class); |
1,065,229 | public TextEdit rewriteAST(IDocument document, Map options) {<NEW_LINE>TextEdit result = new MultiTextEdit();<NEW_LINE>final CompilationUnit rootNode = getRootNode();<NEW_LINE>if (rootNode != null) {<NEW_LINE>TargetSourceRangeComputer xsrComputer = new TargetSourceRangeComputer() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE... | RecoveryScannerData) rootNode.getStatementsRecoveryData()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.