idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,471,375 | public static // All Three Normal or All Three Bitmap<NEW_LINE>void allThreeNormal(FastFixedHashTable thisThreadSetAggregates, int[] curColumnOneAttributes, int[] curColumnTwoAttributes, int[] curColumnThreeAttributes, AggregationOp[] aggregationOps, boolean[] singleNextArray, int startIndex, int endIndex, boolean useI... | rowNumInCol], curColumnThreeAttributes[rowNumInCol]); |
972,626 | final DescribeReservedNodesResult executeDescribeReservedNodes(DescribeReservedNodesRequest describeReservedNodesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeReservedNodesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | endClientExecution(awsRequestMetrics, request, response); |
445,968 | public PublishSchemaResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PublishSchemaResult publishSchemaResult = new PublishSchemaResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonTok... | int originalDepth = context.getCurrentDepth(); |
37,110 | public static Document sign(SignatureUtilTransferObject dto, String canonicalizationMethodType) throws GeneralSecurityException, MarshalException, XMLSignatureException {<NEW_LINE>Document doc = dto.getDocumentToBeSigned();<NEW_LINE>String keyName = dto.getKeyName();<NEW_LINE>KeyPair keyPair = dto.getKeyPair();<NEW_LIN... | PublicKey publicKey = keyPair.getPublic(); |
313,617 | private void appendFromBaseTable(DbSqlContext ctx, SqlJoinType joinType) {<NEW_LINE>String alias = ctx.getTableAliasManyWhere(prefix);<NEW_LINE>String <MASK><NEW_LINE>if (nodeBeanProp instanceof STreePropertyAssocOne) {<NEW_LINE>nodeBeanProp.addJoin(joinType, parentAlias, alias, ctx);<NEW_LINE>if (softDelete) {<NEW_LIN... | parentAlias = ctx.getTableAliasManyWhere(parentPrefix); |
1,284,492 | private static // also check if it is a valid type of property<NEW_LINE>String convert2PropName(String argProp) throws Exception {<NEW_LINE>// System.out.println("argProp: " + argProp);<NEW_LINE>if (!argProp.startsWith("--")) {<NEW_LINE>throw new Exception("argument: " + argProp + " does not start with --");<NEW_LINE>}... | Exception("argument: " + argProp + " not valid"); |
327,563 | protected void findLocalScaleSpaceMax(PyramidFloat<T> ss, int layerID) {<NEW_LINE>int index0 = spaceIndex;<NEW_LINE>int index1 = (spaceIndex + 1) % 3;<NEW_LINE>int index2 = (spaceIndex + 2) % 3;<NEW_LINE>List<Point2D_I16> candidates = maximums[index1];<NEW_LINE>ImageBorder_F32 inten0 = FactoryImageBorderAlgs.value(inte... | ss.scale[layerID + 1]; |
353,562 | private static String makeMessage(Throwable e, Class<?> type, Class<?>[] argTypes) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>String name = null == type ? "unknown" : type.getName();<NEW_LINE>sb.append("Fail to born or cast to '").append(name).append('\'');<NEW_LINE>if (null != argTypes && argTypes.len... | (argType).append(')'); |
161,481 | void buildDialog() {<NEW_LINE>int i;<NEW_LINE>int idx;<NEW_LINE>for (i = 0; ; i++) {<NEW_LINE>einfos[i] = elm.getEditInfo(i);<NEW_LINE>if (einfos[i] == null)<NEW_LINE>break;<NEW_LINE>EditInfo ei = einfos[i];<NEW_LINE>if (!ei.canCreateAdjustable())<NEW_LINE>continue;<NEW_LINE>Adjustable adj = findAdjustable(i);<NEW_LINE... | idx = vp.getWidgetIndex(hp); |
1,684,349 | protected Result deleteVoD(String id) {<NEW_LINE>boolean success = false;<NEW_LINE>String message = "";<NEW_LINE>ApplicationContext appContext = getAppContext();<NEW_LINE>if (appContext != null) {<NEW_LINE>File videoFile = null;<NEW_LINE>VoD voD = getDataStore().getVoD(id);<NEW_LINE>if (voD != null) {<NEW_LINE>try {<NE... | deleteIfExists(previewFile.toPath()); |
1,050,842 | public Map<String, Object> populate(Map<String, Object> json, Map<String, Object> context) {<NEW_LINE>if (!Beans.get(AppProductionService.class).isApp("production")) {<NEW_LINE>return super.populate(json, context);<NEW_LINE>}<NEW_LINE>Object productFromView = json.get("product");<NEW_LINE>Object qtyFromView = json.get(... | (BigDecimal) qtyFromView, toProduceManufOrderId)); |
915,321 | U32 decodeUTF8CharN(U8Pointer input, U16 result, UDATA bytesRemaining) throws CorruptDataException {<NEW_LINE>U8 c;<NEW_LINE>U8Pointer cursor = input;<NEW_LINE>if (bytesRemaining.longValue() < 1) {<NEW_LINE>return new U32(0);<NEW_LINE>}<NEW_LINE>c = cursor.at(0);<NEW_LINE>cursor = cursor.add(1);<NEW_LINE>if (c.eq(0x0))... | cursor = cursor.add(1); |
42,056 | protected void configureService(ServiceBusClientBuilder.ServiceBusReceiverClientBuilder builder) {<NEW_LINE>Assert.notNull(receiverClientProperties.getEntityType(), "Entity type cannot be null.");<NEW_LINE>Assert.notNull(receiverClientProperties.getEntityName(), "Entity name cannot be null.");<NEW_LINE>if (ServiceBusEn... | ).to(builder::subQueue); |
1,546,676 | public void run() {<NEW_LINE>dataRangeLbl.setText((lastIndex - lastSize + 1) + " ~ " + lastIndex);<NEW_LINE>if (lastIndex <= LIMIT_PER_PAGE) {<NEW_LINE>leftBtn.setEnabled(false);<NEW_LINE>}<NEW_LINE>rightBtn.setEnabled(true);<NEW_LINE>if (TagConstants.GROUP_SERVICE.equals(tagGroup)) {<NEW_LINE>Pack p = revList.get(0);<... | revList.size() - 1); |
942,160 | protected final void updateOrientation() {<NEW_LINE>if (!container.isDisplayable()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (Boolean.FALSE.equals(container.getClientProperty(TabbedContainer.PROP_MANAGE_TAB_POSITION))) {<NEW_LINE>// The client has specified that it does not want automatic management<NEW_LINE>// of the... | Rectangle containerBounds = container.getBounds(); |
927,904 | public void startPlayer(final MethodCall call, final Result result) {<NEW_LINE>Integer _codec = call.argument("codec");<NEW_LINE>t_CODEC codec = t_CODEC.values()[(_codec != null) ? _codec : 0];<NEW_LINE>byte[] dataBuffer = call.argument("fromDataBuffer");<NEW_LINE>Integer _blockSize = 4096;<NEW_LINE>if (call.argument("... | _numChannels = call.argument("numChannels"); |
837,124 | public void dump() {<NEW_LINE>if (isEnabled()) {<NEW_LINE>read();<NEW_LINE>if (LOGGER.isDebugEnabled()) {<NEW_LINE>try {<NEW_LINE>if (sent.isUsed() || received.isUsed() || sendBufferErrors.isUsed() || receiveBufferErrors.isUsed()) {<NEW_LINE>String eol = StringUtil.lineSeparator();<NEW_LINE>String head = " " + tag;<N... | (head).append(noPorts); |
80,121 | protected RelationPlan visitTable(Table node, Void context) {<NEW_LINE>Query namedQuery = analysis.getNamedQuery(node);<NEW_LINE>Scope scope = analysis.getScope(node);<NEW_LINE>if (namedQuery != null) {<NEW_LINE>RelationPlan subPlan = process(namedQuery, null);<NEW_LINE>// Add implicit coercions if view query produces ... | , analysis.getColumn(field)); |
1,515,646 | private void search() {<NEW_LINE>if (disposable != null) {<NEW_LINE>disposable.dispose();<NEW_LINE>}<NEW_LINE>chip.setVisibility((getArguments().getLong(ARG_FEED, 0) == 0) ? <MASK><NEW_LINE>disposable = Observable.fromCallable(this::performSearch).subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread()).s... | View.GONE : View.VISIBLE); |
1,065,853 | private void createGenericSignatureForMsgSend(SootMethod annotatedMethod, SootMethod m, List<Type> paramTypes, boolean extensions) {<NEW_LINE>SignatureTag tag = (SignatureTag) annotatedMethod.getTag(SignatureTag.class.getSimpleName());<NEW_LINE>if (tag != null) {<NEW_LINE>SootMethodType type = new SootMethodType(annota... | paramTypes.get(0))); |
172,477 | public void onSignIn(final String username, String password) {<NEW_LINE>showProgress();<NEW_LINE>Provider provider = Inject.provider();<NEW_LINE>subscription = provider.observeLogin(username, password).observeOn(AndroidSchedulers.mainThread()).subscribe(new Observer<Login.Status>() {<NEW_LINE><NEW_LINE>@Override<NEW_LI... | usageAnalytics().trackLogin(username); |
1,496,618 | public static void locateString(String searchString, TerminatingConsumer<Address> foundLocationConsumer, Program program, List<MemoryBlock> blocks, AddressSetView set, TaskMonitor monitor) throws CancelledException {<NEW_LINE>monitor.setMessage("Finding \"" + searchString + "\".");<NEW_LINE>int length = searchString.le... | Address endAddress = memoryBlock.getEnd(); |
767,208 | final GetEmailIdentityResult executeGetEmailIdentity(GetEmailIdentityRequest getEmailIdentityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getEmailIdentityRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
136,517 | public void run(CompilationController info) throws Exception {<NEW_LINE>info.toPhase(Phase.RESOLVED);<NEW_LINE>final Element element = WhereUsedPanel.this.element.resolveElement(info);<NEW_LINE>panel.initialize(element, info);<NEW_LINE>if ((element.getKind().equals(ElementKind.LOCAL_VARIABLE) || element.getKind().equal... | add(panel, BorderLayout.CENTER); |
982,244 | private static void runTransposeMapAndObjectArray(RegressionEnvironment env, EventRepresentationChoice representation) {<NEW_LINE>String[] fields = "p0,p1".split(",");<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String schema = representation.getAnnotationTextWJsonProvided(MyLocalJsonProvidedMySchema.... | [] { "E1", 1 }); |
455,832 | public void marshall(InstanceTypeConfig instanceTypeConfig, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (instanceTypeConfig == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(instanceTypeConfig.getInstance... | instanceTypeConfig.getBidPriceAsPercentageOfOnDemandPrice(), BIDPRICEASPERCENTAGEOFONDEMANDPRICE_BINDING); |
285,531 | private Document ticketToDoc(TicketModel ticket) {<NEW_LINE>Document doc = new Document();<NEW_LINE>// repository and document ids for Lucene querying<NEW_LINE>toDocField(doc, Lucene.rid, StringUtils.getSHA1(ticket.repository));<NEW_LINE>toDocField(doc, Lucene.did, StringUtils.getSHA1(ticket.repository + ticket.number)... | ticket.priority.getValue()); |
63,615 | final Cluster executeModifyClusterIamRoles(ModifyClusterIamRolesRequest modifyClusterIamRolesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyClusterIamRolesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | invoke(request, responseHandler, executionContext); |
1,691,269 | final GetPermissionPolicyResult executeGetPermissionPolicy(GetPermissionPolicyRequest getPermissionPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getPermissionPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,635,765 | public void createPartControl(Composite parent) {<NEW_LINE>parent.setLayout(UIUtil.formLayout(0, 0));<NEW_LINE>parent.setBackground(ColorUtil.getInstance().getColor(SWT.COLOR_WHITE));<NEW_LINE>canvas = new FigureCanvas(parent);<NEW_LINE>canvas.setScrollBarVisibility(FigureCanvas.NEVER);<NEW_LINE>canvas.setBackground(Co... | trace.setPointStyle(PointStyle.NONE); |
1,151,022 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>jPanel1 = new javax.swing.JPanel();<NEW_LINE>jLabel1 = new javax.swing.JLabel();<NEW_LINE>userAgentInput = new javax.swing.JTextField();<NEW_LINE>jLabel2 = new javax.swing.JLabel()... | .GridLayout(0, 2)); |
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... | request, this.response, "putGroupReview"); |
1,073,767 | public static void process(GrayS16 src, final int kerA, final int kerB, GrayS16 derivX, GrayS16 derivY) {<NEW_LINE>final short[] data = src.data;<NEW_LINE>final short[] imgX = derivX.data;<NEW_LINE>final short[] imgY = derivY.data;<NEW_LINE>final int width = src.getWidth();<NEW_LINE>final int height = src.getHeight() -... | ) * kerB + v - w); |
213,243 | public void parseScope(Element scopeElement, ScopeImpl parentScope) {<NEW_LINE>// Not yet supported on process level (PVM additions needed):<NEW_LINE>// parseProperties(processElement);<NEW_LINE>// filter activities that must be parsed separately<NEW_LINE>List<Element> activityElements = new ArrayList<>(scopeElement.el... | parseIntermediateCatchEvents(scopeElement, parentScope, intermediateCatchEvents); |
442,063 | private void verifyAggregations(QuerySpecification node, Scope sourceScope, Optional<Scope> orderByScope, List<Expression> groupByExpressions, List<Expression> outputExpressions, List<Expression> orderByExpressions) {<NEW_LINE>checkState(orderByExpressions.isEmpty() || <MASK><NEW_LINE>if (analysis.isAggregation(node)) ... | orderByScope.isPresent(), "non-empty orderByExpressions list without orderByScope provided"); |
1,641,769 | protected PropertyChangeListener createPropertyChangeListener() {<NEW_LINE><MASK><NEW_LINE>return e -> {<NEW_LINE>superListener.propertyChange(e);<NEW_LINE>switch(e.getPropertyName()) {<NEW_LINE>case FlatClientProperties.SCROLL_BAR_SHOW_BUTTONS:<NEW_LINE>JScrollBar vsb = scrollpane.getVerticalScrollBar();<NEW_LINE>JScr... | PropertyChangeListener superListener = super.createPropertyChangeListener(); |
560,653 | public void run() {<NEW_LINE>try {<NEW_LINE>log.info("Running {}", getName());<NEW_LINE>// Create the update lambda.<NEW_LINE>Universe.UniverseUpdater updater = universe -> {<NEW_LINE>// If this universe is not being edited, fail the request.<NEW_LINE>UniverseDefinitionTaskParams universeDetails = universe.getUniverseD... | + taskParams().universeUUID + " is not being edited."; |
679,054 | public static void openObjectEditor(@NotNull EntityDiagram diagram, @NotNull ERDObject object) {<NEW_LINE>Object dbObject = object.getObject();<NEW_LINE>if (dbObject instanceof DBSObject) {<NEW_LINE>UIUtils.runUIJob("Open object editor", monitor -> {<NEW_LINE>if (!(dbObject instanceof DBSEntity) && OPEN_OBJECT_PROPERTI... | showError("Object open", "Can't open property view", e); |
1,289,683 | // State and error message updates to tasks are done in this method instead of waitForSubTasks<NEW_LINE>// because nobody is waiting for the parent task.<NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>Throwable t = null;<NEW_LINE>TaskType taskType = taskInfo.getTaskType();<NEW_LINE>taskStartTime = Instant.now... | writeTaskWaitMetric(taskType, taskScheduledTime, taskStartTime); |
968,255 | // Copy pixel data from one PixelBuffer location to another<NEW_LINE>public void copyRect(Rect rect, Point move_by_delta) {<NEW_LINE>Raster srcData;<NEW_LINE>WritableRaster dstData;<NEW_LINE>Rect drect, srect;<NEW_LINE>drect = new Rect(rect.tl, rect.br);<NEW_LINE>if (!drect.enclosed_by(getRect())) {<NEW_LINE>String msg... | drect.intersect(getRect()); |
1,426,065 | public JobDetails unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>JobDetails jobDetails = new JobDetails();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>Jso... | class).unmarshall(context)); |
1,823,165 | protected void appendDocumentHeader(HTMLConversionContext conversionContext, Document document, Element documentRoot) throws Docx4JException {<NEW_LINE>Element headEl = document.createElement("head");<NEW_LINE>Element meta = document.createElement("meta");<NEW_LINE>Element element = null;<NEW_LINE>StringBuilder buffer ... | meta.setAttribute("content", "text/html; charset=utf-8"); |
1,325,878 | private Channel buildChannel(List<Article> articles) {<NEW_LINE>Channel channel = new Channel("rss_2.0");<NEW_LINE>channel.setLink("http://localhost:8080/spring-mvc-simple/rss");<NEW_LINE>channel.setTitle("Article Feed");<NEW_LINE>channel.setDescription("Article Feed Description");<NEW_LINE>channel.setPubDate(new Date(... | setAuthor(article.getAuthor()); |
187,300 | private ComponentPreset extractNoseCone() {<NEW_LINE>TypedPropertyMap props = new TypedPropertyMap();<NEW_LINE>try {<NEW_LINE>props.put(ComponentPreset.TYPE, ComponentPreset.Type.NOSE_CONE);<NEW_LINE>props.put(ComponentPreset.AFT_OUTER_DIAMETER, ncAftDia.getValue());<NEW_LINE>props.put(ComponentPreset.<MASK><NEW_LINE>p... | AFT_SHOULDER_DIAMETER, ncAftShoulderDia.getValue()); |
173,896 | protected final void executeTask() {<NEW_LINE>final CompletableFuture<R> promise = new CompletableFuture<>();<NEW_LINE>responseStream = sendRequest();<NEW_LINE>responseStream.then(stream -> {<NEW_LINE>// Start the timeout now that the request has actually been sent<NEW_LINE>ethContext.getScheduler(<MASK><NEW_LINE>strea... | ).failAfterTimeout(promise, timeout); |
869,871 | // //<NEW_LINE>// MOUSE MOTION LISTENER<NEW_LINE>@Override<NEW_LINE>public void mouseDragged(MouseEvent e) {<NEW_LINE>if (SwingUtilities.isLeftMouseButton(e)) {<NEW_LINE>Point imagePosition = getScaledImagePosition();<NEW_LINE>int x = (int) ((e.getX() - imagePosition.x) / scale.getScale() - dragOffsetX);<NEW_LINE>int y... | firePropertyChange(PROPERTY_GRID_OFFSET_X, oldOffsetX, gridOffsetX); |
1,394,968 | public boolean onTouch(View view, MotionEvent motionEvent) {<NEW_LINE>// How long to hold your finger in place to trigger the app menu.<NEW_LINE>final int LONG_PRESS_DELAY = 250;<NEW_LINE>if (motionEvent.getAction() == MotionEvent.ACTION_DOWN) {<NEW_LINE>startTime = motionEvent.getEventTime();<NEW_LINE>return false;<NE... | view.setVisibility(View.INVISIBLE); |
369,443 | private void pushLaunchPopup() {<NEW_LINE>Config config = context.get(Config.class);<NEW_LINE>TelemetryConfig telemetryConfig = config.getTelemetryConfig();<NEW_LINE>TranslationSystem translationSystem = <MASK><NEW_LINE>TelemetryLogstashAppender appender = TelemetryUtils.fetchTelemetryLogstashAppender();<NEW_LINE>if (!... | context.get(TranslationSystem.class); |
359,929 | public void complete(LineReader reader, ParsedLine commandLine, final List<Candidate> candidates) {<NEW_LINE>assert commandLine != null;<NEW_LINE>assert candidates != null;<NEW_LINE>String buffer = commandLine.word().substring(0, commandLine.wordCursor());<NEW_LINE>Path current;<NEW_LINE>String curBuf;<NEW_LINE>String ... | getUserDir().resolve(curBuf); |
864,898 | public static String generate(List<String> headers, List<AsciiTableAlignment> alignments, List<? extends List<String>> cells) {<NEW_LINE>int colCount = alignments.size();<NEW_LINE>int rowCount = cells.size();<NEW_LINE>ArgChecker.isTrue(headers.size() == colCount, "Number of headers {} must match number of alignments {}... | (colIdx).length()); |
955,138 | Method doLookup(Klass klass, String key, boolean publicOnly, boolean isStatic, int arity) throws ArityException {<NEW_LINE>String methodName;<NEW_LINE>String signature = null;<NEW_LINE>int separatorIndex = key.indexOf(METHOD_SELECTION_SEPARATOR);<NEW_LINE>if (separatorIndex >= 0) {<NEW_LINE>methodName = key.substring(0... | maxOverallArity = max(maxOverallArity, matchArity); |
817,057 | private void initializeHeader() {<NEW_LINE>String[] jwtParts = JsonTokenUtil.splitTokenString(this.tokenString);<NEW_LINE>String jwtHeaderSegment = jwtParts[0];<NEW_LINE>JsonParser parser = new JsonParser();<NEW_LINE>JsonObject jHeader = parser.parse(JsonTokenUtil.fromBase64ToJsonString(jwtHeaderSegment)).getAsJsonObje... | jHeader.get(HeaderConstants.X509_URL); |
1,391,008 | public void write(JSONSerializer serializer, Object object, Object fieldName, Type fieldType, int features) throws IOException {<NEW_LINE>SerializeWriter out = serializer.out;<NEW_LINE>if (object == null) {<NEW_LINE>out.writeNull();<NEW_LINE>} else {<NEW_LINE>if (fieldType == null) {<NEW_LINE>fieldType = object.getClas... | String format = serializer.getDateFormatPattern(); |
1,455,875 | public boolean extractResourceToFile(String inPrefix, String inFile, File outDir, String outFile) {<NEW_LINE>InputStream aIS;<NEW_LINE>FileOutputStream aFileOS;<NEW_LINE>String content = inPrefix + "/" + inFile;<NEW_LINE>try {<NEW_LINE>content = runningWindows ? content.replace("\\", "/") : content;<NEW_LINE>if (!conte... | InputStream) clsRef.getResourceAsStream(content); |
1,035,758 | private ExecutableNode planExecution(ExpressionContext expression) {<NEW_LINE>switch(expression.getType()) {<NEW_LINE>case LITERAL:<NEW_LINE>return new ConstantExecutionNode(expression.getLiteral());<NEW_LINE>case IDENTIFIER:<NEW_LINE>String columnName = expression.getIdentifier();<NEW_LINE>ColumnExecutionNode columnEx... | String functionName = function.getFunctionName(); |
572,651 | private <PSI> Boolean handleFindFailed(PSI target, Image img, boolean isExists) {<NEW_LINE>log(lvl, "handleFindFailed: %s", target);<NEW_LINE>Boolean state = null;<NEW_LINE>ObserveEvent evt = null;<NEW_LINE>FindFailedResponse response = findFailedResponse;<NEW_LINE>if (FindFailedResponse.HANDLE.equals(response)) {<NEW_... | target, img, this, 0); |
1,799,068 | protected Field createEntityField(Datasource datasource, MetaProperty property) {<NEW_LINE>Lookup lookup = property.getAnnotatedElement().getAnnotation(Lookup.class);<NEW_LINE>if (lookup != null && lookup.type() == LookupType.DROPDOWN) {<NEW_LINE>DataComponents dataComponents = AppBeans.get(DataComponents.class);<NEW_L... | metaClass.getName() + " e"); |
708,617 | private static void notifyError(Context context, String key, Severity severity, String description, String displayName, int startOffset, int endOffset, Sanitize sanitizing) {<NEW_LINE>LOG.<MASK><NEW_LINE>LOG.log(Level.FINEST, "key : {0}\n", key);<NEW_LINE>LOG.log(Level.FINEST, "description : {0}\n", description... | log(Level.FINEST, "---------------------------------------------------"); |
772,041 | private void scanSingleBlock() {<NEW_LINE>BlockPos size = box.size();<NEW_LINE>if (templateScannedBlocks == null || blueprintScannedData == null) {<NEW_LINE>boxIterator = new BoxIterator(box, EnumAxisOrder.XZY.getMinToMaxOrder(), true);<NEW_LINE>templateScannedBlocks = new BitSet<MASK><NEW_LINE>blueprintScannedData = n... | (Snapshot.getDataSize(size)); |
1,705,269 | void deleteFromHosts() throws CommandException {<NEW_LINE>SFTPClient sftpClient = null;<NEW_LINE>try {<NEW_LINE>List<String> files = getListOfInstallFiles(getInstallDir());<NEW_LINE>for (String host : hosts) {<NEW_LINE>sshLauncher.init(getRemoteUser(), host, getRemotePort(), sshpassword, sshkeyfile, sshkeypassphrase, l... | sftpClient.rmdir(getInstallDir()); |
1,253,450 | public void change(Event event, @Nullable Object[] delta, ChangeMode mode) {<NEW_LINE>if (delta == null && mode != ChangeMode.DELETE)<NEW_LINE>return;<NEW_LINE>EnchantmentType et = mode != ChangeMode.DELETE ? (EnchantmentType) delta[0] : null;<NEW_LINE>if (event instanceof PrepareItemEnchantEvent) {<NEW_LINE>PrepareIte... | getOffers()[i] = eo; |
1,413,972 | public static void drawLine(int x1, int y1, int x2, int y2, BiConsumer<Integer, Integer> drawPixel) {<NEW_LINE>int currentX = x1;<NEW_LINE>int currentY = y1;<NEW_LINE>int dx = Math.abs(x2 - x1);<NEW_LINE>int dy = Math.abs(y2 - y1);<NEW_LINE>int error = (dx > dy ? dx : -dy) / 2;<NEW_LINE>while (true) {<NEW_LINE>drawPixe... | y1 < y2 ? 1 : -1; |
1,052,187 | public void loadReplicationStrategy(Properties ctx) {<NEW_LINE>MReplicationStrategy.getByOrgAndRole(ctx, orgId, roleId, null).stream().filter(replicationStrategy -> replicationStrategy != null).forEach(replicationStrategy -> {<NEW_LINE>for (X_AD_ReplicationTable rplTable : replicationStrategy.getReplicationTables()) {<... | modelValidationEngine.addDocValidate(tableName, this); |
195,249 | public void testCriteriaQuery_Byte(TestExecutionContext testExecCtx, TestExecutionResources testExecResources, Object managedComponentObject) throws Throwable {<NEW_LINE>final String testName = getTestName();<NEW_LINE>// Verify parameters<NEW_LINE>if (testExecCtx == null || testExecResources == null) {<NEW_LINE>Assert.... | cb.createQuery(Entity0002.class); |
775,847 | public static Chunk cloneChunk(Chunk chunk) {<NEW_LINE>ObjectFactory jslFactory = objectFactoryMap.get(chunk.getClass().<MASK><NEW_LINE>Chunk newChunk = jslFactory.createChunk();<NEW_LINE>newChunk.setItemCount(chunk.getItemCount());<NEW_LINE>newChunk.setRetryLimit(chunk.getRetryLimit());<NEW_LINE>newChunk.setSkipLimit(... | getPackage().getName()); |
585,834 | public void start() {<NEW_LINE>if (current != null) {<NEW_LINE>current.show();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Form hi = new Form("Hi World", BoxLayout.y());<NEW_LINE>Button checkIfDetectionAvailable = new Button("Check if GPS Detection Available");<NEW_LINE>checkIfDetectionAvailable.addActionListener(e -> {<NEW_L... | Button isGPSEnabled = new Button("GPS Status"); |
57,165 | final AssociateConnectionWithLagResult executeAssociateConnectionWithLag(AssociateConnectionWithLagRequest associateConnectionWithLagRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateConnectionWithLagRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
292,640 | void assignBatchWork() {<NEW_LINE>if (hasEnoughTasksForNextBatch()) {<NEW_LINE>if (batchWorkRequests.tryAcquire(1)) {<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>int len = Math.min(<MASK><NEW_LINE>List<TaskHolder<ID, T>> holders = new ArrayList<>(len);<NEW_LINE>while (holders.size() < len && !processingOrd... | maxBatchingSize, processingOrder.size()); |
637,153 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>Card lastCreatureCard = null;<NEW_LINE>for (Card card : controller.getGraveyard().getCards(game)) {<NEW_LINE>if (card.isCreature(game)) {<NEW_LINE>lastCrea... | getInstance(), Duration.EndOfTurn); |
1,739,434 | public void contextInitialized(ServletContextEvent event) {<NEW_LINE>ServletContext servletContext = event.getServletContext();<NEW_LINE>String contextName = servletContext.getContextPath().replaceAll("/", "");<NEW_LINE>if ("".equals(contextName)) {<NEW_LINE>contextName = "root";<NEW_LINE>}<NEW_LINE>System.out.printf("... | servletContext.getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE); |
600,857 | protected void swap(int a, int b) {<NEW_LINE>if (results[a] != results[b]) {<NEW_LINE>super.swap(a, b);<NEW_LINE>String tmp = sortedClassNames[a];<NEW_LINE>sortedClassNames[a] = sortedClassNames[b];<NEW_LINE>sortedClassNames[b] = tmp;<NEW_LINE>int tmpI = sortedClassIds[a];<NEW_LINE>sortedClassIds<MASK><NEW_LINE>sortedC... | [a] = sortedClassIds[b]; |
191,243 | final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | (super.beforeMarshalling(listTagsForResourceRequest)); |
955,990 | public ListIAMPolicyAssignmentsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListIAMPolicyAssignmentsResult listIAMPolicyAssignmentsResult = new ListIAMPolicyAssignmentsResult();<NEW_LINE>listIAMPolicyAssignmentsResult.setStatus(context.<MASK><NEW_LINE>int originalDepth = context.getCur... | getHttpResponse().getStatusCode()); |
132,617 | public void testResourceMethodLinkUsedInInvocationForCTS(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String ServerUri = "http://justforcts.test:6789/resource/";<NEW_LINE>final String linkName = "link";<NEW_LINE>Client client = ClientBuilder.newClient();<NEW_LINE>client.register(new ClientRequestFilter() {<... | link = response.getLink(linkName); |
247,064 | public void testProducerRecordTopic() {<NEW_LINE>String topicIn = ProducerRecordBean.CHANNEL_IN;<NEW_LINE>String expectedTopicOut = ProducerRecordBean.PRODUCER_RECORD_TOPIC;<NEW_LINE>String unexpectedTopicOut = ProducerRecordBean.CONFIGURED_TOPIC;<NEW_LINE>String keyOut = ProducerRecordBean.PRODUCER_RECORD_KEY;<NEW_LIN... | readRecords(1, KafkaTestConstants.DEFAULT_KAFKA_TIMEOUT); |
929,107 | private static String translateState(final DiffNode.State state, final Object base, final Object modified) {<NEW_LINE>if (state == DiffNode.State.IGNORED) {<NEW_LINE>return "has been ignored";<NEW_LINE>} else if (state == DiffNode.State.CHANGED) {<NEW_LINE>return String.format("has changed from [ %s ] to [ %s ]", Strin... | , Strings.toSingleLineString(modified)); |
1,537,257 | public static void main(String[] args) throws Exception {<NEW_LINE>if (args.length > 3 || args.length < 2 || (args.length == 3 && !args[0].equals("--train"))) {<NEW_LINE>System.err.println("Usage:");<NEW_LINE>System.err.println("java HierarchicalClassifierTrainer [--train] <questionLang> <corpusLang>\n");<NEW_LINE>Syst... | System.out.println("Classifier saved."); |
1,605,956 | public static List<ContentletSearch> query(String query, int limit, String sort, User user, String tmDate) {<NEW_LINE>List<ContentletSearch> ret = null;<NEW_LINE>try {<NEW_LINE>if (tmDate != null && query.contains("+live:true")) {<NEW_LINE>// with timemachine on!<NEW_LINE>// as we need to load contentlets anyway to sor... | = new ArrayList<ContentletSearch>(); |
1,188,870 | public static List<Suggestion> requestHint(String query, int queryPosition, AutoCompleteSupport sender, int senderCursorPosition, @Nullable HintProvider provider) {<NEW_LINE>DomainModelBuilder builder = AppBeans.get(DomainModelWithCaptionsBuilder.NAME);<NEW_LINE>DomainModel domainModel = builder.produce();<NEW_LINE>if ... | result = new ArrayList<>(); |
1,829,103 | public void waitForNodesHavingSystemStateVersionEqualToOrAbove(int version, int nodeCount, int timeout) throws InterruptedException {<NEW_LINE>long maxTime = System.currentTimeMillis() + timeout;<NEW_LINE>synchronized (monitor) {<NEW_LINE>while (true) {<NEW_LINE>int ackedNodes = 0;<NEW_LINE>for (NodeInfo node : cluster... | version + " within timeout of " + timeout + " milliseconds."); |
1,698,595 | public static void main(final String[] args) {<NEW_LINE>final String s = "4CEvsI8FRczRBo_ApRCkwfEbFLn1pIFXg39QGMgj5RHM6HpIMJq67QX3M5iQYr_LyI_5aGDaa_bYbRgJ9XnQjpmq6QkOoGWAoEaihRqhV3kItLFHjRtqauUR";<NEW_LINE>final BinSearch bs = new BinSearch(<MASK><NEW_LINE>for (int i = 0; i + 6 <= s.length(); i = i + 6) {<NEW_LINE>Syst... | s.getBytes(), 6); |
59,524 | public DeleteMembersResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteMembersResult deleteMembersResult = new DeleteMembersResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context... | String currentParentElement = context.getCurrentParentElement(); |
196,418 | public BigDecimal decimalValue() {<NEW_LINE>if (numberSale > 0 && !numberExp) {<NEW_LINE>int len = bufPos;<NEW_LINE>if (len < 20) {<NEW_LINE>long unscaleVal = 0;<NEW_LINE>boolean negative = false;<NEW_LINE>int i = 0;<NEW_LINE>char first = text.charAt(mark);<NEW_LINE>if (first == '+') {<NEW_LINE>i++;<NEW_LINE>} else if ... | text.charAt(mark + i); |
586,913 | private MetaInfo parseResponse(MetaInfoResponse response) {<NEW_LINE>if (response == null)<NEW_LINE>return null;<NEW_LINE>String subject = response.getSubject();<NEW_LINE>if (Strings.isNullOrEmpty(subject))<NEW_LINE>return null;<NEW_LINE>ClientType clientType = parseClientType(response);<NEW_LINE>if (clientType == null... | MetaInfo(subject, clientType, clusterInfo); |
635,950 | private void addNewDeferConstructor(final CtClass clazz) throws CannotCompileException {<NEW_LINE>final CtClass superClass;<NEW_LINE>try {<NEW_LINE>superClass = clazz.getSuperclass();<NEW_LINE>} catch (NotFoundException e1) {<NEW_LINE>throw new IllegalArgumentException("Internal error: Failed to get superclass for " + ... | ClassPool classPool = clazz.getClassPool(); |
1,501,524 | public V execute(Command<V> command) throws Exception {<NEW_LINE>for (int i = 0; n == -1 || i <= n; i++) {<NEW_LINE>if (destroyed.get()) {<NEW_LINE>logger.info("[execute][destroyed return null]{}", this);<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (i >= 1) {<NEW_LINE>logger.info("[execute][retry]{}, {}", i, command);... | .getMessage()), e); |
512,859 | protected void onPostExecute(Boolean created) {<NEW_LINE>// add a toast - now following or unfollowed<NEW_LINE>// true = followed<NEW_LINE>// false = unfollowed<NEW_LINE>if (created != null) {<NEW_LINE>if (created) {<NEW_LINE>Toast.makeText(context, getResources().getString(R.string.followed_user), <MASK><NEW_LINE>} el... | Toast.LENGTH_SHORT).show(); |
230,280 | private List<Column> buildQueryColumns(DataFetchingEnvironment environment) {<NEW_LINE>List<SelectedField> valuesFields = environment.getSelectionSet().getFields("values");<NEW_LINE>if (valuesFields.isEmpty()) {<NEW_LINE>return ImmutableList.of();<NEW_LINE>}<NEW_LINE>// While convoluted, it's technically valid to refer... | table, selectedField.getName()); |
1,313,450 | public boolean onPrepareOptionsMenu(Menu menu) {<NEW_LINE>MenuItem closeIssue = menu.findItem(R.id.closeIssue);<NEW_LINE>MenuItem lockIssue = menu.findItem(R.id.lockIssue);<NEW_LINE>MenuItem milestone = menu.findItem(R.id.milestone);<NEW_LINE>MenuItem labels = menu.findItem(R.id.labels);<NEW_LINE>MenuItem assignees = m... | labels.setVisible(isCollaborator || isRepoOwner); |
1,048,291 | private void restartModuleIfRequired() {<NEW_LINE>Context context = getActivity();<NEW_LINE>if (context == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean dnsCryptRunning = ModulesAux.isDnsCryptSavedStateRunning();<NEW_LINE>boolean torRunning = ModulesAux.isTorSavedStateRunning();<NEW_LINE>boolean itpdRunning = Mo... | sharedPreferences.getBoolean("pref_common_tor_route_all", false); |
1,023,495 | public void undeploy(Archive<?> archive) throws DeploymentException {<NEW_LINE>if (isRemoteMode()) {<NEW_LINE>log.infof("Skipped undeployment of '%s' as we are in remote mode!", archive.getName());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Field containerField = Reflections.findDeclaredField(UndertowJaxrsServer.class, "cont... | "Deployment '%s' not found", archive.getName()); |
1,834,064 | protected String parseInnerMessage(boolean ui, Message message, Date timestamp, String parentMessageId) {<NEW_LINE>if (message.getType() == Message.Type.error)<NEW_LINE>return null;<NEW_LINE>final org.jxmpp.jid.Jid from = message.getFrom();<NEW_LINE>final Resourcepart resource = from.getResourceOrNull();<NEW_LINE>Strin... | ).equals(Type.groupchat); |
836,303 | private SingularityDeployResult checkLbRevertToActiveTasks(SingularityRequest request, SingularityDeploy deploy, SingularityPendingDeploy pendingDeploy, SingularityDeployProgress updatedProgress, DeployState acceptanceHookDeployState, Collection<SingularityTaskId> deployActiveTasks, Collection<SingularityTaskId> otherA... | getDeployMarker().getDeployId()); |
1,472,914 | public void marshall(ProductViewSummary productViewSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (productViewSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(productViewSummary.getId(), ID... | productViewSummary.getName(), NAME_BINDING); |
1,232,605 | public AccountUsage unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AccountUsage accountUsage = new AccountUsage();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE... | String currentParentElement = context.getCurrentParentElement(); |
226,923 | public void marshall(AwsEcrContainerAggregation awsEcrContainerAggregation, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (awsEcrContainerAggregation == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(awsEcr... | awsEcrContainerAggregation.getResourceIds(), RESOURCEIDS_BINDING); |
1,550,211 | public void assertTopicOffsetAdvancesTo(long newOffset, Duration timeout, String topicName, int partitionId, String consumerGroupId) throws InterruptedException {<NEW_LINE>try (KafkaConsumer<?, ?> kafka = getKafkaTopicOffsetConsumer(consumerGroupId)) {<NEW_LINE>TopicPartition topicPartition;<NEW_LINE>if (partitionId ==... | = new TopicPartition(topicName, partitionId); |
1,399,528 | public Order mergeCart(Customer customer, WebRequest request) {<NEW_LINE>Customer anonymousCustomer = customerStateRequestProcessor.getAnonymousCustomer(request);<NEW_LINE>MergeCartResponse mergeCartResponse;<NEW_LINE>try {<NEW_LINE>Order cart = orderService.findCartForCustomer(anonymousCustomer);<NEW_LINE>mergeCartRes... | mergeCartService.mergeCart(customer, cart); |
1,822,623 | public void marshall(ChannelMessage channelMessage, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (channelMessage == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMarshaller.marshal... | channelMessage.getChannelArn(), CHANNELARN_BINDING); |
1,195,359 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>// View rootView = inflater.inflate(R.layout.fragment_main, container, false);<NEW_LINE>FragmentMainBinding binding = DataBindingUtil.inflate(inflater, R.layout.fragment_main, container, false);<NEW_LINE>binding... | openUri("detail/sub", getContext()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.