idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,390,732 | public SecurityGroupMembership unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SecurityGroupMembership securityGroupMembership = new SecurityGroupMembership();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<... | int originalDepth = context.getCurrentDepth(); |
1,849,841 | public void processOpts() {<NEW_LINE>super.processOpts();<NEW_LINE>supportingFiles.add(new SupportingFile("ApiException.mustache", toSrcPath(invokerPackage, srcBasePath), "ApiException.php"));<NEW_LINE>supportingFiles.add(new SupportingFile("Configuration.mustache", toSrcPath(invokerPackage, srcBasePath), "Configuratio... | (".travis.yml", "", ".travis.yml")); |
302,557 | final DescribeOrganizationConfigurationResult executeDescribeOrganizationConfiguration(DescribeOrganizationConfigurationRequest describeOrganizationConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeOrganizationConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequest... | invoke(request, responseHandler, executionContext); |
101,834 | public void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, int position) {<NEW_LINE>if (holder.getItemViewType() == TRACK_INFO_VIEW_TYPE) {<NEW_LINE>TrackViewHolder trackViewHolder = (TrackViewHolder) holder;<NEW_LINE>int listPosition = mapToListPosition(position);<NEW_LINE>boolean currentlyRecordingTrack = ... | getGpxTitle(info.getFileName()); |
1,583,254 | public void emitPackagesIndex(APIDiff apiDiff, int indexType) {<NEW_LINE>// Add all the names of packages to a new list, to be sorted later<NEW_LINE>// Index[]<NEW_LINE>packageNames = new ArrayList();<NEW_LINE>boolean hasRemovals = false;<NEW_LINE>if (apiDiff.packagesRemoved.size() != 0)<NEW_LINE>hasRemovals = true;<NE... | ) (iter.next()); |
1,266,651 | public void process(Element element, EComponentWithViewSupportHolder holder) throws Exception {<NEW_LINE>String methodName = element.getSimpleName().toString();<NEW_LINE>ExecutableElement executableElement = (ExecutableElement) element;<NEW_LINE>List<? extends VariableElement> parameters = executableElement.getParamete... | idRef, viewPagerParameterType, hasAddOnPageChangeListenerMethod()); |
1,760,624 | public static // }<NEW_LINE>void generateJLRF_GetLong(ClassWriter cw, String classname) {<NEW_LINE>FieldVisitor fv = cw.visitField(ACC_PUBLIC + ACC_STATIC, jlrfGetLongMember, "Ljava/lang/reflect/Method;", null, null);<NEW_LINE>fv.visitEnd();<NEW_LINE>MethodVisitor mv = cw.visitMethod(ACC_PRIVATE + ACC_STATIC, jlrfGetLo... | GETSTATIC, classname, jlrfGetLongMember, "Ljava/lang/reflect/Method;"); |
1,090,250 | public RulePriorityPair unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>RulePriorityPair rulePriorityPair = new RulePriorityPair();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth... | XMLEvent xmlEvent = context.nextEvent(); |
1,578,090 | public int onDrawFrame(final int textureId, final FloatBuffer cubeBuffer, final FloatBuffer textureBuffer) {<NEW_LINE>if (!mIsInitialized) {<NEW_LINE>return OpenGLUtils.NOT_INIT;<NEW_LINE>}<NEW_LINE>GLES20.glUseProgram(mGLProgId);<NEW_LINE>runPendingOnDrawTasks();<NEW_LINE>GLES20.glEnableVertexAttribArray(mGLPositionIn... | GLES20.glActiveTexture(GLES20.GL_TEXTURE0); |
985,595 | public void processAfters(XmlParser.Node ordering) {<NEW_LINE>// Process the <after> elements, look for an <others/> clause and all of the <name/> clauses<NEW_LINE>XmlParser.Node after = ordering.get("after");<NEW_LINE>if (after == null)<NEW_LINE>return;<NEW_LINE>Iterator<?> iter = after.iterator();<NEW_LINE>XmlParser.... | "Duplicate <other> clause detected in " + _xml.getURI()); |
1,127,468 | public static String buildString() {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("Applicaiton Scoped Bean: " + ApplicationScopedState.toString(<MASK><NEW_LINE>sb.append("Request Scoped Bean: " + RequestScopedState.toString() + System.lineSeparator());<NEW_LINE>sb.append("Session Scoped Bean: " +... | ) + System.lineSeparator()); |
1,172,462 | public void marshall(M3u8Settings m3u8Settings, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (m3u8Settings == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(m3u8Settings.getAudioFramesPerPes(), AUDIOFRAMES... | m3u8Settings.getEcmPid(), ECMPID_BINDING); |
244,261 | private static Megaphone buildNotificationsMegaphone(@NonNull Context context) {<NEW_LINE>return new Megaphone.Builder(Event.NOTIFICATIONS, Megaphone.Style.BASIC).setTitle(R.string.NotificationsMegaphone_turn_on_notifications).setBody(R.string.NotificationsMegaphone_never_miss_a_message).setImage(R.drawable.megaphone_n... | (AppSettingsActivity.notifications(context)); |
1,765,610 | public Expression convert(org.eclipse.jdt.internal.compiler.ast.SwitchExpression expression) {<NEW_LINE>if (!this.ast.isPreviewEnabled()) {<NEW_LINE>return createFakeNullLiteral(expression);<NEW_LINE>}<NEW_LINE>SwitchExpression switchExpression = new SwitchExpression(this.ast);<NEW_LINE>if (this.resolveBindings) {<NEW_... | = convert(statements[i]); |
1,095,136 | public AwsXrayEncryptionConfigDetails unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsXrayEncryptionConfigDetails awsXrayEncryptionConfigDetails = new AwsXrayEncryptionConfigDetails();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe... | int originalDepth = context.getCurrentDepth(); |
1,295,122 | public void flip(final long rangeStart, final long rangeEnd) {<NEW_LINE>if (rangeStart >= 0 && rangeEnd >= 0 && rangeStart >= rangeEnd) {<NEW_LINE>// both numbers in positive range, and start is beyond end, nothing to do.<NEW_LINE>return;<NEW_LINE>} else if (rangeStart < 0 && rangeEnd < 0 && rangeStart >= rangeEnd) {<N... | shStart = LongUtils.rightShiftHighPart(rangeStart); |
1,238,317 | private void createCheck(MPaySelectionLine line) throws Exception {<NEW_LINE>// Try to find one<NEW_LINE>for (int i = 0; i < paySelectionChecks.size(); i++) {<NEW_LINE>MPaySelectionCheck check = (MPaySelectionCheck) paySelectionChecks.get(i);<NEW_LINE>// Add to existing<NEW_LINE>if (check.getC_BPartner_ID() == line.get... | int C_BPartner_ID = check.getC_BPartner_ID(); |
705,727 | public void read(org.apache.thrift.protocol.TProtocol prot, Image struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>struct.width = iprot.readI32();<NEW_LINE>struct.setWidthIsSet(true);<NEW_LINE>struct.heigh... | .title = iprot.readString(); |
1,827,394 | final GetDashboardResult executeGetDashboard(GetDashboardRequest getDashboardRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDashboardRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetDashboard"); |
281,200 | public static void partialReduceDoubleMax(double[] inputArray, double[] outputArray, int gidx) {<NEW_LINE>int localIdx = OpenCLIntrinsics.get_local_id(0);<NEW_LINE>int localGroupSize = OpenCLIntrinsics.get_local_size(0);<NEW_LINE>int groupID = OpenCLIntrinsics.get_group_id(0);<NEW_LINE>double[] localArray = (double[]) ... | newUninitializedArray(double.class, LOCAL_WORK_GROUP_SIZE); |
1,248,100 | private static void attachPartitionCheckFilesMatchVarLenColumn(FilesFacade ff, Path path, long partitionSize) {<NEW_LINE>int pathLen = path.length();<NEW_LINE>path.put(FILE_SUFFIX_I).$();<NEW_LINE>if (ff.exists(path)) {<NEW_LINE>int typeSize = 4;<NEW_LINE>long <MASK><NEW_LINE>if (fileSize < partitionSize * typeSize) {<... | fileSize = ff.length(path); |
429,960 | private void initStartIndexAndLevel(PartialPath path) throws MetadataException {<NEW_LINE><MASK><NEW_LINE>Deque<IMNode> ancestors = new ArrayDeque<>();<NEW_LINE>ancestors.push(startNode);<NEW_LINE>startLevel = 0;<NEW_LINE>while (parent != null) {<NEW_LINE>startLevel++;<NEW_LINE>traverseContext.addLast(parent);<NEW_LINE... | IMNode parent = startNode.getParent(); |
965,055 | public void onChildDraw(Canvas c, RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, float dX, float dY, int actionState, boolean isCurrentlyActive) {<NEW_LINE>if (actionState == ItemTouchHelper.ACTION_STATE_SWIPE && viewHolder instanceof MapMarkerItemViewHolder) {<NEW_LINE>OsmandApplication app = mapActivi... | getLeft() + (int) marginSides; |
1,645,017 | public void collect(MonitoringDataCollector collector) {<NEW_LINE>Map<String, Set<String>> collected = new HashMap<>();<NEW_LINE>Map<String, List<HealthCheckResponse>> readinessResponsesByAppName = collectChecks(collector, readiness, collected);<NEW_LINE>Map<String, List<HealthCheckResponse>> livenessResponsesByAppName... | (appName, emptyList())); |
629,163 | public void marshall(CreateAccountStatus createAccountStatus, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createAccountStatus == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createAccountStatus.getId()... | createAccountStatus.getAccountName(), ACCOUNTNAME_BINDING); |
746,109 | protected JComponent createEditorPanel(DataTypeSelectionEditor dtEditor) {<NEW_LINE>setTitle("Create Relative Pointer");<NEW_LINE>updatedPanel = new JPanel();<NEW_LINE>updatedPanel.setBorder(BorderFactory.createEmptyBorder(5, 10, 10, 0));<NEW_LINE>updatedPanel.setLayout(new VerticalLayout(5));<NEW_LINE>JPanel dataTypeP... | (Box.createHorizontalStrut(5)); |
1,474,741 | private static void registerCodeTemplates(LayerBuilder b, String mimeType) {<NEW_LINE>// NOI18N<NEW_LINE>instanceFile(b, "Editors/" + mimeType + "/CodeTemplateProcessorFactories", null, GsfCodeTemplateProcessor.Factory.<MASK><NEW_LINE>// NOI18N<NEW_LINE>instanceFile(b, "Editors/" + mimeType + "/CodeTemplateFilterFactor... | class, null).write(); |
338,118 | public void registerFinishedItem(Item item) {<NEW_LINE>synchronized (runningItems) {<NEW_LINE>lastFinishedItem = item;<NEW_LINE>runningItems.remove(new IndentityHashCodeWrapper(item));<NEW_LINE>if (item instanceof BuildExecutionSupport.ActionItem) {<NEW_LINE>BuildExecutionSupport.ActionItem ai = (BuildExecutionSupport.... | list = historyItems.get(action); |
432,378 | public StockMoveLine compute(StockMoveLine stockMoveLine, StockMove stockMove) throws AxelorException {<NEW_LINE>BigDecimal unitPriceUntaxed = BigDecimal.ZERO;<NEW_LINE>BigDecimal companyPurchasePrice = BigDecimal.ZERO;<NEW_LINE>if (stockMoveLine.getProduct() != null && stockMove != null) {<NEW_LINE>if ((stockMove.getT... | stockMoveLine, stockMove.getToStockLocation()); |
953,317 | private void addHolderNameAndId() {<NEW_LINE>Tuple2<InputTextField, InputTextField> tuple = addInputTextFieldInputTextField(gridPane, ++gridRow, Res.get("payment.account.owner")<MASK><NEW_LINE>holderNameInputTextField = tuple.first;<NEW_LINE>holderNameInputTextField.setMinWidth(250);<NEW_LINE>holderNameInputTextField.t... | , BankUtil.getHolderIdLabel("")); |
1,120,220 | public void markDirtied(@Nonnull ProperTextRange yPositions) {<NEW_LINE>ProperTextRange dirtyYPositions = getUI().getDirtyYPositions();<NEW_LINE>if (dirtyYPositions != DesktopEditorErrorPanelUI.WHOLE_DOCUMENT) {<NEW_LINE>int start = Math.max(0, yPositions.getStartOffset() - myEditor.getLineHeight());<NEW_LINE>int end =... | ) + myEditor.getLineHeight()); |
1,181,919 | private static void insertTabletWithAlignedTimeseriesMethod2() throws IoTDBConnectionException, StatementExecutionException {<NEW_LINE>// The schema of measurements of one device<NEW_LINE>// only measurementId and data type in MeasurementSchema take effects in Tablet<NEW_LINE>List<MeasurementSchema> schemaList = new Ar... | long[] timestamps = tablet.timestamps; |
564,344 | public static final Model convertGeoPredicates(Model model, boolean isRemoveGeoPredicates) {<NEW_LINE>Model outputModel = ModelFactory.createDefaultModel();<NEW_LINE>outputModel.add(model);<NEW_LINE>outputModel.setNsPrefixes(model.getNsPrefixMap());<NEW_LINE>if (outputModel.containsResource(SpatialExtension.GEO_LAT_PRO... | null, SpatialExtension.GEO_LAT_PROP, null); |
1,191,324 | public double simulateEnvironment() {<NEW_LINE>double currentTemperature = getTemperature();<NEW_LINE>double heatCapacity = heatCapacitor.getHeatCapacity();<NEW_LINE>heatCapacitor.handleHeat(getActiveSolars() * MekanismConfig.general.evaporationSolarMultiplier.get() * heatCapacity);<NEW_LINE>if (Math.abs(currentTempera... | heatCapacitor.handleHeat(heatCapacity * incr); |
854,427 | private void handleColorCommand(Command command) {<NEW_LINE>if (command instanceof HSBType) {<NEW_LINE>setColor((HSBType) command);<NEW_LINE>setBrightness(((HSBType) command).getBrightness());<NEW_LINE>} else if (command instanceof OnOffType) {<NEW_LINE>setState(((OnOffType) command));<NEW_LINE>} else if (command insta... | HUNDRED.intValue()))); |
1,028,559 | public long handle(Emulator<?> emulator) {<NEW_LINE>RegisterContext context = emulator.getContext();<NEW_LINE>UnidbgPointer clazz = context.getPointerArg(1);<NEW_LINE>UnidbgPointer <MASK><NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("CallStaticVoidMethod clazz=" + clazz + ", jmethodID=" + jmethodID);<NEW_LIN... | jmethodID = context.getPointerArg(2); |
1,531,325 | public static BufferedImage applyExplicitOutline(BufferedImage baseImage, BufferedImage sMaskImage) {<NEW_LINE>// check to make sure the mask and the image are the same size.<NEW_LINE>BufferedImage[] images = scaleImagesToSameSize(baseImage, sMaskImage);<NEW_LINE>baseImage = images[0];<NEW_LINE>sMaskImage = images[1];<... | ] srcBand = new int[baseWidth]; |
258,112 | public TupleDescriptor registerOlapTable(Table table, TableName tableName, List<String> partitions) {<NEW_LINE>TableRef ref = new TableRef(tableName, null, partitions == null ? null : new PartitionNames(false, partitions));<NEW_LINE>BaseTableRef tableRef = new <MASK><NEW_LINE>TupleDescriptor result = globalState.descTb... | BaseTableRef(ref, table, tableName); |
241,284 | public KeyPairInfo unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>KeyPairInfo keyPairInfo = new KeyPairInfo();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<NEW_LINE>whil... | ().unmarshall(context)); |
799,992 | private void updateColumnSelector() {<NEW_LINE>boolean showDisplayExpression = showDisplayExpression();<NEW_LINE>if (!showDisplayExpression && (columnSelector == null))<NEW_LINE>return;<NEW_LINE>TypeHelper type = getSelectedType();<NEW_LINE>if ((type != null) && Collection.class.isAssignableFrom(FormUtils.typeToClass(t... | setItems(Collections.EMPTY_LIST, available); |
1,176,944 | private void persistResults(List<QueryResult> crawlResults) throws IOException, SaveException {<NEW_LINE>DatabaseMerger merger = new DatabaseMerger(importFormatPreferences.getKeywordSeparator());<NEW_LINE>BibDatabase newStudyResultEntries = new BibDatabase();<NEW_LINE>for (QueryResult result : crawlResults) {<NEW_LINE>... | merger.merge(existingQueryEntries, queryResultEntries); |
1,296,905 | protected ScanIteration<byte[]> doScan(long cursorId, ScanOptions options) {<NEW_LINE>if (isQueueing() || isPipelined()) {<NEW_LINE>throw new UnsupportedOperationException("'SCAN' cannot be called in pipeline / transaction mode.");<NEW_LINE>}<NEW_LINE>ScanParams params = JedisConverters.toScanParams(options);<NEW_LINE>... | getBytes(), params, type); |
980,527 | private void generateGroups(final StringBuilder sb, final CharSequence[] scope, final List<Token> tokens, final String outerStruct, final String outermostStruct) {<NEW_LINE>for (int i = 0, size = tokens.size(); i < size; ++i) {<NEW_LINE>final Token groupToken = tokens.get(i);<NEW_LINE>if (groupToken.signal() != Signal.... | collectFields(tokens, i, fields); |
571,051 | public RestAction<Invite> expand() {<NEW_LINE>if (this.expanded)<NEW_LINE>return new CompletedRestAction<>(getJDA(), this);<NEW_LINE>if (this.type != Invite.InviteType.GUILD)<NEW_LINE>throw new IllegalStateException("Only guild invites can be expanded");<NEW_LINE>final net.dv8tion.jda.api.entities.Guild guild = this.ap... | = this.api.getEntityBuilder(); |
1,697,735 | protected void doColorPicking(ColorPickerInfo pickerInfo) {<NEW_LINE>ObjectColorPicker picker = pickerInfo.getPicker();<NEW_LINE>picker.getRenderTarget().bind();<NEW_LINE>// Set background color (to Object3D.UNPICKABLE to prevent any conflicts)<NEW_LINE>GLES20.glClearColor(1.0f, 1.0f, 1.0f, 1.0f);<NEW_LINE>// Clear buf... | GLES20.glDisable(GLES20.GL_DEPTH_TEST); |
1,544,015 | public void marshall(Statistics statistics, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (statistics == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(statistics.getCount(), COUNT_BINDING);<NEW_LINE>protoc... | statistics.getCountNull(), COUNTNULL_BINDING); |
94,223 | private void addFactoryMethods(TypeSpec.Builder factory, FactoryDescriptor descriptor, ImmutableSet<TypeVariableName> factoryTypeVariables) {<NEW_LINE>for (FactoryMethodDescriptor methodDescriptor : descriptor.methodDescriptors()) {<NEW_LINE>MethodSpec.Builder method = methodBuilder(methodDescriptor.name()).addTypeVari... | ), args.build()); |
1,429,506 | public static StringBuilder escapeStringCharacters(int length, @Nonnull String str, @Nullable String additionalChars, boolean escapeSlash, @Nonnull @NonNls StringBuilder buffer) {<NEW_LINE>char prev = 0;<NEW_LINE>for (int idx = 0; idx < length; idx++) {<NEW_LINE>char ch = str.charAt(idx);<NEW_LINE>switch(ch) {<NEW_LINE... | (Integer.toHexString(ch)); |
1,363,497 | private boolean projectVertices(Model model, int localX, int localY, int localZ, final int vertexOrientation) {<NEW_LINE>final int vertexCount = model.getVerticesCount();<NEW_LINE>Perspective.modelToCanvas(client, vertexCount, localX, localY, localZ, vertexOrientation, model.getVerticesX(), model.getVerticesZ(), model.... | Math.min(croppedY1, y); |
1,500,963 | public Optional<T> decryprt(final String input) throws PwmUnrecoverableException {<NEW_LINE>if (StringUtil.isEmpty(input)) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>final DomainSecureService domainSecureService = pwmRequestContext<MASK><NEW_LINE>final int delimiterIndex = input.indexOf(DELIMITER);<NEW_LIN... | .getPwmDomain().getSecureService(); |
1,740,856 | public void filter(ContainerRequestContext request) {<NEW_LINE>String path = request.getUriInfo().getRequestUri().getPath();<NEW_LINE>// disabled page is always visible<NEW_LINE>if (path.equals(DISABLED_LOCATION)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// authenticator over a secure connection bypasses the form login<N... | , ImmutableSet.of(TRINO_FORM_LOGIN)); |
250,674 | public Object fromKV(byte[] key, byte[] value) {<NEW_LINE>String[] keyParts = new String(key).split(MetricUtils.DELIM);<NEW_LINE>if (keyParts.length >= 4) {<NEW_LINE>this.clusterName = keyParts[0];<NEW_LINE>this.topologyId = keyParts[1];<NEW_LINE>this.metaType = Integer.valueOf(keyParts[2]);<NEW_LINE>this.id = Long.val... | this.host = valueParts[4]; |
1,029,037 | public static JetConfig locateAndGetJetConfig(@Nullable Properties properties) {<NEW_LINE>validateSuffixInSystemProperty(SYSPROP_JET_CONFIG);<NEW_LINE>XmlJetConfigLocator xmlConfigLocator = new XmlJetConfigLocator();<NEW_LINE>YamlJetConfigLocator yamlConfigLocator = new YamlJetConfigLocator();<NEW_LINE>JetConfig config... | setProperties(properties).build(); |
427,628 | protected void updateTitle() {<NEW_LINE>// different naming for global and local sheets<NEW_LINE>Mode ourMode = WindowManager.getDefault().findMode(this);<NEW_LINE>String nodeTitle = null;<NEW_LINE>// Fix a bug #12890, copy the nodes to prevent race condition.<NEW_LINE>List<Node> copyNodes = new ArrayList<Node>(Arrays.... | (globalPropertiesFormat.format(titleParams)); |
65,442 | public void run(RegressionEnvironment env) {<NEW_LINE>env.advanceTime(0);<NEW_LINE>String[] fields = new String[] { "theString" };<NEW_LINE>String epl = "create variable long SIZE = 1000;\n" + "@name('s0') select irstream * from SupportBean#expr_batch(newest_timestamp - oldest_timestamp > SIZE);\n";<NEW_LINE><MASK><NEW... | env.compileDeployAddListenerMileZero(epl, "s0"); |
865,603 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>MageObject sourceObject = source.getSourceObject(game);<NEW_LINE>if (controller != null && sourceObject != null && controller.getLibrary().hasCards()) {<NEW_LINE>Library library = controller... | card.getId(), null); |
707,452 | protected void consumeSingleStaticImportDeclarationName() {<NEW_LINE>// SingleTypeImportDeclarationName ::= 'import' 'static' Name<NEW_LINE>ImportReference impt;<NEW_LINE>int length;<NEW_LINE>char[][] tokens = new char[length = this.identifierLengthStack[this.identifierLengthPtr--]][];<NEW_LINE>this.identifierPtr -= le... | 1, tokens, 0, length); |
178,185 | public double assignProbabilitiesToInstances(Relation<? extends NumberVector> relation, List<? extends BetulaClusterModel> models, WritableDataStore<double[]> probClusterIGivenX) {<NEW_LINE>final int k = models.size();<NEW_LINE>double emSum = 0.;<NEW_LINE>for (DBIDIter iditer = relation.iterDBIDs(); iditer.valid(); idi... | probClusterIGivenX.put(iditer, probs); |
1,647,786 | public void translateToParent(Translatable t) {<NEW_LINE>// t.performScale(widthScale);<NEW_LINE>if (t instanceof PrecisionRectangle) {<NEW_LINE>PrecisionRectangle r = (PrecisionRectangle) t;<NEW_LINE>r.setPreciseX(r.preciseX() * widthScale);<NEW_LINE>r.setPreciseY(r.preciseY() * heigthScale);<NEW_LINE>r.setPreciseWidt... | t.toString() + " not supported in AspectRatioScale"); |
277,011 | static Stream<ExprAclLine> generateCrossZoneCallsFromExternal(Zone fromZone, Zone toZone, Collection<Vsys> sharedGateways, Collection<Vsys> virtualSystems) {<NEW_LINE>Vsys vsys = fromZone.getVsys();<NEW_LINE>// sanity check<NEW_LINE>assert fromZone.getVsys() == toZone.getVsys();<NEW_LINE>Stream<ExprAclLine> vsysLines =... | Stream.concat(vsysLines, sgLines); |
227,641 | protected void beforeDetachNic(VmNicInventory nicInventory, Completion completion) {<NEW_LINE>Map data = new HashMap();<NEW_LINE>data.put(Param.VR_NIC.toString(), nicInventory);<NEW_LINE>data.put(Param.VR.toString(), vr);<NEW_LINE>ApplianceVmVO appvm = Q.New(ApplianceVmVO.class).eq(ApplianceVmVO_.uuid, nicInventory.get... | , appvm.getStatus())); |
1,213,501 | public boolean onMessage(Message<?> message) {<NEW_LINE>Message<?> modifiedMessage;<NEW_LINE>if (message instanceof ErrorMessage) {<NEW_LINE>Map<String, Object> headers = new HashMap<String, Object>(message.getHeaders());<NEW_LINE>headers.put(IpHeaders.CONNECTION_ID, getConnectionId());<NEW_LINE>if (headers.get(IpHeade... | logger.debug("Message discarded; no listener: " + message); |
392,539 | public void releaseShareLock() {<NEW_LINE>if (!_multithreaded) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean debug = <MASK><NEW_LINE>synchronized (_readWriteLock) {<NEW_LINE>//<NEW_LINE>// If the current thread is already holding the exclusive lock,<NEW_LINE>// we simply release the share lock without decrementing<NEW... | logger.isLoggable(Logger.FINEST); |
497,626 | public okhttp3.Call connectDeleteNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api/v1/nodes/{name}/proxy/{path}".replaceAll("\\{" + "name... | localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); |
1,807,253 | public SessionKeysAbpV11 unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SessionKeysAbpV11 sessionKeysAbpV11 = new SessionKeysAbpV11();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori... | class).unmarshall(context)); |
1,553,541 | public void actionPerformed(ActionEvent e) {<NEW_LINE>Logger.getLogger(SortButton.class.getName()).info("Sort requested");<NEW_LINE>state++;<NEW_LINE>state = state % 3;<NEW_LINE>Logger.getLogger(SortButton.class.getName()).info("State is: " + String.valueOf(state));<NEW_LINE>JButton b = (JButton) e.getSource();<NEW_LIN... | class).getString("ACS_SortButtonSortZAA11yDesc")); |
1,847,288 | public static <T extends CssNode> List<T> clone(Class<T> clazz, List<T> nodes) {<NEW_LINE>// Push a fake context that will contain the cloned node<NEW_LINE>List<CssNode> topContext = new ArrayList<CssNode>();<NEW_LINE>final List<CssProperty> topProperties = new ArrayList<CssProperty>();<NEW_LINE>final List<CssSelector>... | >(toIterate.size()); |
1,653,471 | public IntArray computeIndices(float[] points, int offset, int count, boolean sorted, boolean yDown) {<NEW_LINE>if (count > 32767)<NEW_LINE>throw new IllegalArgumentException("count must be <= " + 32767);<NEW_LINE>int end = offset + count;<NEW_LINE>if (!sorted) {<NEW_LINE>if (sortedPoints == null || sortedPoints.length... | y = points[i + 1]; |
615,496 | public Response<T> execute() throws IOException {<NEW_LINE>circuitBreaker.acquirePermission();<NEW_LINE>final StopWatch stopWatch = StopWatch.start();<NEW_LINE>try {<NEW_LINE>final Response<T<MASK><NEW_LINE>if (responseSuccess.test(response)) {<NEW_LINE>circuitBreaker.onResult(stopWatch.stop().toNanos(), TimeUnit.NANOS... | > response = call.execute(); |
1,817,056 | private void registerNoteTooltipProvider(ModeController modeController) {<NEW_LINE>modeController.addToolTipProvider(NOTE_TOOLTIP, new ITooltipProvider() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String getTooltip(final ModeController modeController, NodeModel node, Component view) {<NEW_LINE>return getTooltip(mod... | data, e.getLocalizedMessage()); |
859,542 | public void marshall(EnvironmentTemplateVersion environmentTemplateVersion, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (environmentTemplateVersion == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK>... | environmentTemplateVersion.getArn(), ARN_BINDING); |
612,981 | private List<SourceQuery> filterQueryType(List<SourceQuery> sourceQueries) {<NEW_LINE>if (explain) {<NEW_LINE>return sourceQueries;<NEW_LINE>}<NEW_LINE>ImmutableList.Builder<SourceQuery> selected = ImmutableList.builder();<NEW_LINE>for (SourceQuery sourceQuery : sourceQueries) {<NEW_LINE>try {<NEW_LINE>Statement contro... | "LimitWithoutOrderByChecker Skipped %s", sourceQuery.getName()); |
1,423,173 | final // LIDB1673.2.1.5<NEW_LINE>// LIDB1673.2.1.5<NEW_LINE>void // LIDB1673.2.1.5<NEW_LINE>resumeGlobalTx(// LIDB1673.2.1.5<NEW_LINE>Transaction control, int action) throws CSIException {<NEW_LINE>try {<NEW_LINE>txCtrl.resumeGlobalTx(control, action);<NEW_LINE>// d165585 Begins<NEW_LINE>if (// d527372<NEW_LINE>// PQ74... | + 4) : idStr) : "NoTx"; |
177,587 | public void uploadExecutableFlow(final ExecutableFlow flow) throws ExecutorManagerException {<NEW_LINE>final String useExecutorParam = flow.getExecutionOptions().getFlowParameters().get(ExecutionOptions.USE_EXECUTOR);<NEW_LINE>final String executorId = StringUtils.isNotEmpty(useExecutorParam) ? useExecutorParam : null;... | parseInt(flowPriorityParam) : ExecutionOptions.DEFAULT_FLOW_PRIORITY; |
599,262 | public void init() {<NEW_LINE>MatrixMeta matrixMeta = context.getMatrixMetaManager().getMatrixMeta(matrixId);<NEW_LINE>Map<Integer, PartitionMeta> partMetas = matrixMeta.getPartitionMetas();<NEW_LINE>String sourceClass = matrixMeta.getAttribute(AngelConf.ANGEL_PS_PARTITION_SOURCE_CLASS, AngelConf.DEFAULT_ANGEL_PS_PARTI... | LOG.fatal("Init value class failed ", e); |
1,373,656 | private K putIfAbsent(K key, boolean[] modified) {<NEW_LINE>K k = (K) maskNull(key);<NEW_LINE>int h = hash(k.hashCode());<NEW_LINE>Entry[] tab = getTable();<NEW_LINE>int i = indexFor(h, tab.length);<NEW_LINE>Entry<K, V> e = tab[i];<NEW_LINE>while (e != null) {<NEW_LINE>if (e.hash == h) {<NEW_LINE>K refedKey = e.get();<... | resize(tab.length * 2); |
400,769 | public Request<PutInsightRuleRequest> marshall(PutInsightRuleRequest putInsightRuleRequest) {<NEW_LINE>if (putInsightRuleRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<PutInsightRuleRequest> request = new DefaultRequest<PutInsightRuleReq... | (putInsightRuleRequest.getRuleDefinition())); |
1,601,808 | public Spec read(String specText, String contextPath) {<NEW_LINE>if (specText == null) {<NEW_LINE>throw new IllegalArgumentException("specText argument should not be null");<NEW_LINE>}<NEW_LINE>specText = specText.trim();<NEW_LINE>if (specText.isEmpty()) {<NEW_LINE>throw new IllegalArgumentException("specText should no... | specProcessor.process(reader, contextPath); |
1,805,156 | private void visit(BindingInput bindingInput) {<NEW_LINE>Map<MessagePart, SOAPMessageBase> partMap = new HashMap<MessagePart, SOAPMessageBase>();<NEW_LINE>List<SOAPHeader> soapHeaders = bindingInput.getExtensibilityElements(SOAPHeader.class);<NEW_LINE>for (SOAPHeader header : soapHeaders) {<NEW_LINE>header.accept(this)... | bindingInput.getExtensibilityElements(SOAPBody.class); |
100,642 | public List<Map<String, Object>> findChildrenCategories(String catInode, String filter) throws DotDataException, DotSecurityException, PortalException, SystemException {<NEW_LINE>WebContext ctx = WebContextFactory.get();<NEW_LINE>HttpServletRequest request = ctx.getHttpServletRequest();<NEW_LINE>// Retrieving the curre... | getChildren(cat, user, respectFrontendRoles); |
1,574,300 | public String toDefaultValue(Schema p) {<NEW_LINE>if (ModelUtils.isDateSchema(p)) {<NEW_LINE>// TODO<NEW_LINE>} else if (ModelUtils.isDateTimeSchema(p)) {<NEW_LINE>// TODO<NEW_LINE>} else if (ModelUtils.isNumberSchema(p)) {<NEW_LINE>if (p.getDefault() != null) {<NEW_LINE>return "@" + p.getDefault().toString();<NEW_LINE... | ) p.getDefault() + "\""; |
1,408,033 | private static String interval(long interval, int repeat) {<NEW_LINE>StringBuilder buff = new StringBuilder();<NEW_LINE>buff.append("run every ");<NEW_LINE>TimeUnit[] units = { TimeUnit.HOURS, TimeUnit.MINUTES, TimeUnit.SECONDS };<NEW_LINE>long[] values = { TimeUnit.HOURS.toMillis(1L), TimeUnit.MINUTES.toMillis(1L), Ti... | value = interval / values[i]; |
787,839 | public GUIDListResponse publishAssetContext(String serverName, String userId, String entityType, String guid) {<NEW_LINE>String methodName = "publishAssetContext";<NEW_LINE>GUIDListResponse response = new GUIDListResponse();<NEW_LINE>AuditLog auditLog = null;<NEW_LINE>try {<NEW_LINE>AssetContextHandler assetContextHand... | restExceptionHandler.capturePropertyServerException(response, e); |
10,216 | private Mono<Response<Flux<ByteBuffer>>> restartWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot b... | error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); |
761,374 | public static ExtensionElement parseExtensionElement(XMLStreamReader xtr) throws Exception {<NEW_LINE>ExtensionElement extensionElement = new ExtensionElement();<NEW_LINE>extensionElement.setName(xtr.getLocalName());<NEW_LINE>addXMLLocation(extensionElement, xtr);<NEW_LINE>if (StringUtils.isNotEmpty(xtr.getNamespaceURI... | setNamespacePrefix(xtr.getPrefix()); |
813,132 | public void build(@NotNull TeaVMBuildTarget target, @NotNull DirtyFilesHolder<BuildRootDescriptor, TeaVMBuildTarget> holder, @NotNull BuildOutputConsumer outputConsumer, @NotNull CompileContext context) {<NEW_LINE>if (assistant == null) {<NEW_LINE>context.processMessage(new CompilerMessage("TeaVM", BuildMessage.Kind.WA... | RemoteBuildStrategy(buildService) : createInProcessBuilder(); |
1,470,927 | public <Response extends ResponseCommand> boolean serializeHeader(Response response) throws SerializationException {<NEW_LINE>if (response instanceof RpcResponseCommand) {<NEW_LINE>RpcInternalContext.getContext().getStopWatch().tick();<NEW_LINE>Object responseObject = ((RpcResponseCommand) response).getResponseObject()... | traceId + ", rpcId=" + rpcId, e); |
1,791,967 | public JComponent createDateComponent(final DateOption option) {<NEW_LINE>class OptionValueUpdater implements ActionListener, PropertyChangeListener {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void actionPerformed(ActionEvent e) {<NEW_LINE>option.setValue(((JXDatePicker) e.getSource()).getDate());<NEW_LINE>}<NEW_LIN... | setDate(option.getValue()); |
106,491 | public static String randomKeyLengthString() {<NEW_LINE>String result = new String();<NEW_LINE>try {<NEW_LINE>byte[] byteArray = new byte[16];<NEW_LINE>SecureRandom <MASK><NEW_LINE>psn1.setSeed(psn1.nextLong());<NEW_LINE>psn1.nextBytes(byteArray);<NEW_LINE>result = new String(byteArray, Charset.forName("US-ASCII"));<NE... | psn1 = SecureRandom.getInstance("SHA1PRNG"); |
485,928 | public final void register(@Nonnull Disposable parent, @Nonnull Disposable child) {<NEW_LINE>if (parent == child)<NEW_LINE>throw new IllegalArgumentException("Cannot register to itself: " + parent);<NEW_LINE>synchronized (treeLock) {<NEW_LINE>Object wasDisposed = getDisposalInfo(parent);<NEW_LINE>if (wasDisposed != nul... | parentNode = createNodeFor(parent, null); |
824,241 | private Reader fillInfoToSqlFile(final String userName, final String password, final String[] regxNames, final String regxValue) throws IOException {<NEW_LINE>final BufferedReader reader = new BufferedReader(Resources.getResourceAsReader(dataBaseProperties.getInitScript()));<NEW_LINE>final StringBuilder builder = new S... | append(System.lineSeparator()); |
1,390,940 | public boolean step() {<NEW_LINE>// TODO: These shouldn't be done here, nor so strongly tied to the world renderer<NEW_LINE>LocalPlayer localPlayer = new LocalPlayer();<NEW_LINE>localPlayer.setRecordAndReplayClasses(context.get(DirectionAndOriginPosRecorderList.class), context.get(RecordAndReplayCurrentStatus.class));<... | class, worldRenderer.getActiveCamera()); |
44,726 | public static void main(String[] args) {<NEW_LINE>Exercise18 exercise18 = new Exercise18();<NEW_LINE>// Graph with girth = 3<NEW_LINE>Graph graph1 = new Graph(6);<NEW_LINE>graph1.addEdge(2, 3);<NEW_LINE>graph1.addEdge(0, 1);<NEW_LINE>graph1.addEdge(3, 1);<NEW_LINE>graph1.addEdge(5, 3);<NEW_LINE><MASK><NEW_LINE>graph1.a... | graph1.addEdge(2, 0); |
1,729,277 | public LocalVariable visitLocalVariableDeclaratorResource(LocalVariableDeclaratorResource lvdr) throws CompileException {<NEW_LINE>// final {VariableModifierNoFinal} R Identifier = Expression<NEW_LINE>IType lvType = UnitCompiler.<MASK><NEW_LINE>LocalVariable result = new LocalVariable(true, lvType);<NEW_LINE>result.set... | this.getType(lvdr.type); |
509,101 | public void process() {<NEW_LINE>current.clearDisplayableView();<NEW_LINE>layout.removeAllViews();<NEW_LINE>layout.addView(current.getDisplayableView());<NEW_LINE>invalidateOptionsMenu();<NEW_LINE>ActionBar actionBar = Objects.requireNonNull(getSupportActionBar());<NEW_LINE>LinearLayout.LayoutParams layoutParams = (Lin... | String title = current.getTitle(); |
1,493,447 | int recalculateEmbeddingsWithOutdatedCalculator() {<NEW_LINE>var currentCalculator = feignClient.getStatus().getCalculatorVersion();<NEW_LINE>log.info("Embeddings migration for calculator version {}", currentCalculator);<NEW_LINE>var toMigrate = embeddingService.getWithImgAndCalculatorNotEq(currentCalculator);<NEW_LINE... | , img.getContent())); |
44,876 | public PluginBundle install(MavenPluginBundle mavenPluginBundle, List<SPluginInformation> plugins, boolean strictDependencyChecking) throws Exception {<NEW_LINE>PluginBundleVersionIdentifier pluginBundleVersionIdentifier = mavenPluginBundle.getPluginVersionIdentifier();<NEW_LINE>MavenXpp3Reader mavenreader = new MavenX... | resolve(pluginBundleVersionIdentifier.getFileName()); |
1,066,548 | final CreateInsightResult executeCreateInsight(CreateInsightRequest createInsightRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createInsightRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | false), new CreateInsightResultJsonUnmarshaller()); |
1,309,989 | private JsonSchemaProperty computeSchemaForProperty(List<MongoPersistentProperty> path) {<NEW_LINE>String stringPath = path.stream().map(MongoPersistentProperty::getName).collect(Collectors.joining("."));<NEW_LINE>MongoPersistentProperty property = CollectionUtils.lastElement(path);<NEW_LINE>boolean required = isRequir... | 0])), required)); |
324,302 | public void registerView(Object forDSTypeOrViewID, UISWTViewBuilderCore builder) {<NEW_LINE>boolean skipWarning = false;<NEW_LINE>if (forDSTypeOrViewID == null) {<NEW_LINE>forDSTypeOrViewID = UISWTInstance.VIEW_MAIN;<NEW_LINE>} else if (forDSTypeOrViewID instanceof String) {<NEW_LINE>// Legacy convert. Older plugins re... | l.setViewRegistered(forDSTypeOrViewID, builder); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.