idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
669,227
private void addOrCopyConfiguration(boolean copy) {<NEW_LINE>final Map<FlightConfigurationId, FlightConfiguration> newConfigs = new LinkedHashMap<>();<NEW_LINE>// create or copy configuration<NEW_LINE>if (copy) {<NEW_LINE>List<FlightConfigurationId> oldIds = getSelectedConfigurationIds();<NEW_LINE>if (oldIds == null ||...
), config.getValue());
1,254,300
public Mono<Connection> datasourceCreate(DatasourceConfiguration datasourceConfiguration) {<NEW_LINE>try {<NEW_LINE>Class.forName("net.snowflake.client.jdbc.SnowflakeDriver");<NEW_LINE>} catch (ClassNotFoundException ex) {<NEW_LINE>System.err.println("Driver not found");<NEW_LINE>return Mono.error(new AppsmithPluginExc...
2).getValue()));
1,379,077
protected void validateAdditionalParameters(ConsumerDetails consumerDetails, Map<String, String> oauthParams) {<NEW_LINE>super.validateAdditionalParameters(consumerDetails, oauthParams);<NEW_LINE>String token = oauthParams.get(OAuthConsumerParameter.oauth_token.toString());<NEW_LINE>if (token == null) {<NEW_LINE>throw ...
OAuthConsumerParameter.oauth_verifier.toString());
1,393,924
public void invokeAction(String command, Lookup context) throws IllegalArgumentException {<NEW_LINE>if (COMMAND_DELETE.equals(command)) {<NEW_LINE>DefaultProjectOperations.performDefaultDeleteOperation(project);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (ActionProvider.COMMAND_PRIME.equals(command)) {<NEW_LINE>// delegat...
gp = NbGradleProject.get(project);
384,149
private static ByteBuffer pack(ByteBuffer buffer, Object value) {<NEW_LINE>if (value instanceof String)<NEW_LINE>return packBinary(buffer, (String) value);<NEW_LINE>if (value instanceof Map)<NEW_LINE>return packMap(buffer, (Map<String, Object>) value);<NEW_LINE>if (value instanceof SerializableData)<NEW_LINE>return pac...
(buffer, (double) value);
496,926
protected void iterate() throws LibrecException {<NEW_LINE>for (MatrixEntry matrixEntry : trainMatrix) {<NEW_LINE>// user userIdx<NEW_LINE>int userId = matrixEntry.row();<NEW_LINE>// item itemIdx<NEW_LINE>int itemId = matrixEntry.column();<NEW_LINE>// real rating on item itemIdx rated by user userIdx<NEW_LINE>double re...
= err * itemFactorValue - regularization * userFactorValue;
1,756,640
public void actionPerformed(AnActionEvent e) {<NEW_LINE>super.actionPerformed(e);<NEW_LINE>DataContext dataContext = e.getDataContext();<NEW_LINE>final Project project = dataContext.getData(CommonDataKeys.PROJECT);<NEW_LINE>if (project == null)<NEW_LINE>return;<NEW_LINE>final BookmarkInContextInfo info = new BookmarkIn...
bookmarks.setMnemonic(bookmark, c);
184,007
public static Metadata readFrom(StreamInput in) throws IOException {<NEW_LINE>Builder builder = new Builder();<NEW_LINE>builder.version = in.readLong();<NEW_LINE>builder.clusterUUID = in.readString();<NEW_LINE>builder.clusterUUIDCommitted = in.readBoolean();<NEW_LINE>builder.coordinationMetadata(new CoordinationMetadat...
.transientSettings(readSettingsFromStream(in));
1,169,300
public TransferResult<CFValue, CFStore> visitNumericalAddition(NumericalAdditionNode n, TransferInput<CFValue, CFStore> in) {<NEW_LINE>// type of leftNode + rightNode is glb(t, s) where<NEW_LINE>// t = minusOffset(type(leftNode), rightNode) and<NEW_LINE>// s = minusOffset(type(rightNode), leftNode)<NEW_LINE>UBQualifi...
glb = glb.glb(l);
1,455,133
protected <RESULT extends SearchLog> RESULT createEntity(Map<String, Object> source, Class<? extends RESULT> entityType) {<NEW_LINE>try {<NEW_LINE>final RESULT result = entityType.newInstance();<NEW_LINE>result.setAccessType(DfTypeUtil.toString(source.get("accessType")));<NEW_LINE>result.setClientIp(DfTypeUtil.toString...
source.get("queryTime")));
182,712
public long measure(FlexNodeAPI node, float width, FlexMeasureMode widthMode, float height, FlexMeasureMode heightMode) {<NEW_LINE>TextNode reactCSSNode = (TextNode) node;<NEW_LINE>Layout layout = null;<NEW_LINE>boolean exception = false;<NEW_LINE>try {<NEW_LINE>layout = reactCSSNode.createLayout(width, widthMode);<NEW...
FlexOutput.make(width, height);
339,982
public void advancePosition(int advance) {<NEW_LINE>// Bits 0..95 = position<NEW_LINE>if (extendedPosition) {<NEW_LINE>long[] parts = new long[3];<NEW_LINE>parts[0] = tweak[0] & 0xFFFFFFFFL;<NEW_LINE>parts[1] = (tweak[0] >>> 32) & 0xFFFFFFFFL;<NEW_LINE>parts[2] = tweak[1] & 0xFFFFFFFFL;<NEW_LINE>long carry = advance;<N...
(parts[0] & 0xFFFFFFFFL);
1,496,759
private Range<Integer> findRangeOfElementsToMove(@Nonnull PsiElement[] elements, int startOffset, int endOffset) {<NEW_LINE>int startIndex = elements.length;<NEW_LINE>int endIndex = -1;<NEW_LINE>if (startOffset == endOffset) {<NEW_LINE>for (int i = 0; i < elements.length; i++) {<NEW_LINE>if (elements[i].getTextRange()....
TextRange range = psiElement.getTextRange();
524,717
private static void cosignSign(JReleaserContext context) throws SigningException {<NEW_LINE>Signing signing = context.getModel().getSigning();<NEW_LINE>Cosign cosign = new Cosign(context, signing.getCosign().getVersion());<NEW_LINE>try {<NEW_LINE>if (!cosign.setup()) {<NEW_LINE>context.getLogger().warn(RB.$("tool_unava...
privateKeyFile = cosign.generateKeyPair(password);
1,042,152
public KinesisFirehoseInputUpdate unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>KinesisFirehoseInputUpdate kinesisFirehoseInputUpdate = new KinesisFirehoseInputUpdate();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LI...
String currentParentElement = context.getCurrentParentElement();
327,723
public com.amazonaws.services.codecommit.model.MaximumItemsToCompareExceededException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codecommit.model.MaximumItemsToCompareExceededException maximumItemsToCompareExceededException = new com.amazonaws.services.code...
JsonToken token = context.getCurrentToken();
1,167,477
private CloseableReference<Bitmap> createRainbowBitmap() {<NEW_LINE>final int w = 256;<NEW_LINE>final int h = 256;<NEW_LINE>mOriginalBitmap = mPlatformBitmapFactory.createBitmap(w, h, Bitmap.Config.ARGB_8888);<NEW_LINE>final int[] colors = new int[w * h];<NEW_LINE>for (int i = 0; i < w; i++) {<NEW_LINE>for (int j = 0; ...
{ hue, saturation, value });
1,558,110
public void marshall(Deployment deployment, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (deployment == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(deployment.getId(), ID_BINDING);<NEW_LINE>protocolMars...
deployment.getStatus(), STATUS_BINDING);
1,027,218
public void onMatch(RelOptRuleCall call) {<NEW_LINE>Aggregate aggRel = call.rel(0);<NEW_LINE>Union union = call.rel(1);<NEW_LINE>if (!union.all) {<NEW_LINE>// This transformation is only valid for UNION ALL.<NEW_LINE>// Consider t1(i) with rows (5), (5) and t2(i) with<NEW_LINE>// rows (5), (10), and the query<NEW_LINE>...
transformTo(relBuilder.build());
1,513,692
public void save(OutputStream stream) throws IOException {<NEW_LINE>try {<NEW_LINE>AttributesImpl attrs = new AttributesImpl();<NEW_LINE>StreamResult result = new StreamResult(stream);<NEW_LINE>TransformerHandler handler = createHandler(result);<NEW_LINE>handler.startDocument();<NEW_LINE>addAttribute("name", getProject...
).toString(), attrs);
1,170,361
public BatchDetachFromIndexResponse unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BatchDetachFromIndexResponse batchDetachFromIndexResponse = new BatchDetachFromIndexResponse();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1...
String currentParentElement = context.getCurrentParentElement();
1,805,398
protected /*<NEW_LINE>* Create standard payment terms<NEW_LINE>*/<NEW_LINE>void createPaymentTerms() {<NEW_LINE>StringBuffer sqlCmd;<NEW_LINE>int no;<NEW_LINE>// Payment Term<NEW_LINE>int C_PaymentTerm_ID = <MASK><NEW_LINE>sqlCmd = new StringBuffer("INSERT INTO C_PaymentTerm ");<NEW_LINE>sqlCmd.append("(C_PaymentTerm_I...
getNextID(getAD_Client_ID(), "C_PaymentTerm");
1,134,664
protected void computeView(Instance instance, Heap heap) {<NEW_LINE>FieldAccessor fa <MASK><NEW_LINE>Image image = null;<NEW_LINE>JLabel label = null;<NEW_LINE>try {<NEW_LINE>image = ImageBuilder.buildImageInternal(instance, heap);<NEW_LINE>} catch (InvalidFieldException ex) {<NEW_LINE>LOGGER.log(Level.FINE, "Unable to...
= new FieldAccessor(heap, BUILDERS);
768,917
public ExplainabilityInfo unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ExplainabilityInfo explainabilityInfo = new ExplainabilityInfo();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
class).unmarshall(context));
780,583
public static DescribeCloudDriveServiceResponse unmarshall(DescribeCloudDriveServiceResponse describeCloudDriveServiceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeCloudDriveServiceResponse.setRequestId(_ctx.stringValue("DescribeCloudDriveServiceResponse.RequestId"));<NEW_LINE>describeCloudDriveServiceResponse...
("DescribeCloudDriveServiceResponse.CloudDriveServices[" + i + "].MaxSize"));
427,263
private Result canSetStateDownPermanently(NodeInfo nodeInfo, ClusterState clusterState, String newDescription) {<NEW_LINE><MASK><NEW_LINE>if (oldWantedState.getState() != State.UP && !oldWantedState.getDescription().equals(newDescription)) {<NEW_LINE>// Refuse to override whatever an operator or unknown entity is doing...
NodeState oldWantedState = nodeInfo.getUserWantedState();
1,437,730
public static void startMethod(@Advice.This Criteria criteria, @Advice.Origin("#m") String name, @Advice.Local("otelCallDepth") CallDepth callDepth, @Advice.Local("otelHibernateOperation") HibernateOperation hibernateOperation, @Advice.Local("otelContext") Context context, @Advice.Local("otelScope") Scope scope) {<NEW_...
"Criteria." + name, entityName, sessionInfo);
98,225
protected void applyFilters(HistoricVariableInstanceQuery query) {<NEW_LINE>if (processInstanceId != null) {<NEW_LINE>query.processInstanceId(processInstanceId);<NEW_LINE>}<NEW_LINE>if (processDefinitionId != null) {<NEW_LINE>query.processDefinitionId(processDefinitionId);<NEW_LINE>}<NEW_LINE>if (processDefinitionKey !...
tenantIds.size()]));
506,941
static void updateRuntimeData(Path runtimeDataPath, @Nonnull Collection<NodeInterfacePair> deactivateIfaces, @Nonnull Collection<NodeInterfacePair> restoreIfaces) {<NEW_LINE>if (deactivateIfaces.isEmpty() && restoreIfaces.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>SnapshotRuntimeData runtimeData = SnapshotRuntim...
, BatfishObjectMapper.writeString(updatedRuntimeData));
1,392,953
public static ValidationOverrides fromXml(String xmlForm) {<NEW_LINE>if (xmlForm.isEmpty())<NEW_LINE>return ValidationOverrides.empty;<NEW_LINE>// Assume valid structure is ensured by schema validation<NEW_LINE>Element root = XML.getDocument(xmlForm).getDocumentElement();<NEW_LINE>List<ValidationOverrides.Allow> overri...
Allow(id, until)));
271,150
public void run() {<NEW_LINE>try {<NEW_LINE>if (hbMissCounter == 0) {<NEW_LINE>LOG.<MASK><NEW_LINE>proxy.taskExecutorHeartbeat(taskId);<NEW_LINE>numFailedHBAttempts = 0;<NEW_LINE>hbMissCounter = numHbToMiss;<NEW_LINE>} else {<NEW_LINE>LOG.debug("[" + taskId + "] Skipping heartbeat for Testing !!");<NEW_LINE>hbMissCount...
debug("[" + taskId + "] Sending Ping !!");
31,151
private void stripTaxes(PortfolioTransaction deliveryT, ReadOnlyPortfolio readOnlyPortfolio) {<NEW_LINE>boolean isInbound = deliveryT.getType() == PortfolioTransaction.Type.DELIVERY_INBOUND;<NEW_LINE>Money taxes = deliveryT.getUnitSum(Unit.Type.TAX);<NEW_LINE>PortfolioTransaction copy = new PortfolioTransaction();<NEW_...
setCurrencyCode(deliveryT.getCurrencyCode());
675,638
private // We may have to analyze exports to get to them, as is done by some icon aggregator packages.<NEW_LINE>void findFontFiles(@NotNull Project project, @NotNull String packageName, @NotNull WorkItem item) {<NEW_LINE>if (packageName.isEmpty() || FontPreviewProcessor.UNSUPPORTED_PACKAGES.get(packageName) != null) {<...
(DartFileType.INSTANCE, scope));
1,172,223
public void run() {<NEW_LINE>if (isFinishing()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Object target = mUidsList.remove(uid);<NEW_LINE>if (target == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int bigBgUid = -1;<NEW_LINE>if (mSmallVideoViewAdapter != null) {<NEW_LINE>bigBgUid = mSmallVideoViewAdapter.getExceptedUid();...
& 0xFFFFFFFFL) + " " + mLayoutType);
981,344
private void checkForFirstLaunch() {<NEW_LINE>if (PrefUtils.getBoolPref(this, PrefUtils.PREF_FIRST_LAUNCH, true)) {<NEW_LINE>// Create the welcome note<NEW_LINE>try {<NEW_LINE>Note welcomeNote = mNotesBucket.newObject("welcome-android");<NEW_LINE>welcomeNote.setCreationDate(Calendar.getInstance());<NEW_LINE>welcomeNote...
Editor editor = preferences.edit();
1,530,954
public static String createMethodExpression(StringBuffer sb, String mark, String elContext, String attrValue, boolean isELinput, Class c, TagAttributeInfo tai, String jspCtxt) {<NEW_LINE>sb.append("new org.apache.jasper.el.JspMethodExpression(");<NEW_LINE>sb.append(quote(mark));<NEW_LINE>sb.append(',');<NEW_LINE>sb.app...
toJavaSourceTypeFromTld(p[i]));
498,148
private void limit_1rps_concurrent() {<NEW_LINE>RateLimiterConfig config = RateLimiterConfig.custom().limitForPeriod(1).limitRefreshPeriod(Duration.ofSeconds(1)).timeoutDuration(Duration.ofMillis(50)).build();<NEW_LINE>RateLimiterRegistry registry = RateLimiterRegistry.of(config);<NEW_LINE>RateLimiter limiter = registr...
thenAccept(System.out::println);
1,168,186
public Bridge create() {<NEW_LINE>// Cordova initialization<NEW_LINE>ConfigXmlParser parser = new ConfigXmlParser();<NEW_LINE>parser.parse(activity.getApplicationContext());<NEW_LINE><MASK><NEW_LINE>preferences.setPreferencesBundle(activity.getIntent().getExtras());<NEW_LINE>List<PluginEntry> pluginEntries = parser.get...
CordovaPreferences preferences = parser.getPreferences();
384,160
public Response create(@Context SecurityContext sc, @Valid HotfixBean hotfixBean) throws Exception {<NEW_LINE>authorizer.authorize(sc, new Resource(hotfixBean.getEnv_name(), Resource.Type.ENV), Role.OPERATOR);<NEW_LINE>String hotfixId = CommonUtils.getBase64UUID();<NEW_LINE>hotfixBean.setId(hotfixId);<NEW_LINE>hotfixBe...
getUserPrincipal().getName());
1,246,199
public void run() {<NEW_LINE>Datastream datastream = _datastreamGroup.getDatastreams().get(0);<NEW_LINE>String bootstrapValue = KafkaConnectionString.valueOf(datastream.getSource().getConnectionString()).getBrokers().stream().map(KafkaBrokerAddress::toString).collect(Collectors.joining(KafkaConnectionString.BROKER_LIST...
= new HashSet<>(_subscribedPartitions);
302,813
private void loadNode61() {<NEW_LINE>UaMethodNode node = new UaMethodNode(this.context, Identifiers.CertificateGroupFolderType_DefaultApplicationGroup_TrustList_Read, new QualifiedName(0, "Read"), new LocalizedText("en", "Read"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), true, true);<NEW_LINE>...
.expanded(), true));
782,115
public static QrSegment makeAlphanumeric(String text) {<NEW_LINE>Objects.requireNonNull(text);<NEW_LINE>if (!ALPHANUMERIC_REGEX.matcher(text).matches())<NEW_LINE>throw new IllegalArgumentException("String contains unencodable characters in alphanumeric mode");<NEW_LINE>BitBuffer bb = new BitBuffer();<NEW_LINE>int i;<NE...
text.length(), bb);
413,394
public Block load() {<NEW_LINE>checkState(originalBlock != null, "Already loaded");<NEW_LINE>int positionCount = originalBlock.getPositionCount();<NEW_LINE>long[<MASK><NEW_LINE>boolean mayHaveNulls = originalBlock.mayHaveNull();<NEW_LINE>boolean[] valueIsNull = mayHaveNulls ? new boolean[positionCount] : null;<NEW_LINE...
] values = new long[positionCount];
342,501
public void beforePush(GitRepository scratchClone, MessageInfo messageInfo, boolean skipPush, List<? extends Change<?>> originChanges) throws ValidationException, RepoException {<NEW_LINE>if (skipPush || prBranchToUpdate == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String configProjectName = ghHost.getProjectNameFro...
api.getReference(configProjectName, completeRef);
107,816
public void initSubDevices() {<NEW_LINE>ModelFactory factory = ModelFactory.eINSTANCE;<NEW_LINE>for (int i = 0; i < 4; i++) {<NEW_LINE>DigitalSensorIO4 sensor = factory.createDigitalSensorIO4();<NEW_LINE>sensor.setUid(getUid());<NEW_LINE>String genericDeviceId = String.valueOf(i);<NEW_LINE>String subId = "in" + generic...
"{} addSubDevice {}", LoggerConstants.TFINIT, subId);
300,880
public SdkFileEntry[] generateSourceFiles(ServiceModel serviceModel) throws Exception {<NEW_LINE>// for c++, the way serialization works, we want to remove all required fields so we can do a value has been set<NEW_LINE>// check on all fields.<NEW_LINE>serviceModel.getShapes().values().stream().filter(hasMembers -> hasM...
.add(generateARNSourceFile(serviceModel));
59,794
private void invokeAnalogs(int hash, float value, boolean isAxis) {<NEW_LINE>ArrayList<Mapping> <MASK><NEW_LINE>if (maps == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!isAxis) {<NEW_LINE>value *= frameTPF;<NEW_LINE>}<NEW_LINE>int size = maps.size();<NEW_LINE>for (int i = size - 1; i >= 0; i--) {<NEW_LINE>Mapping ...
maps = bindings.get(hash);
1,819,937
public static Perfetto.Data.Builder enumerate(Perfetto.Data.Builder data) {<NEW_LINE>ImmutableListMultimap<String, CounterInfo> counters = data.getCounters(CounterInfo.Type.Global);<NEW_LINE>CounterInfo battCap = onlyOne(counters.get("batt.capacity_pct"));<NEW_LINE>CounterInfo battCharge = onlyOne(counters.get("batt.ch...
qe, battCap, battCharge, battCurrent);
825,681
final DeleteUserResult executeDeleteUser(DeleteUserRequest deleteUserRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteUserRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<DeleteUserRequest> request = nu...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,688,866
public void fetchColumnsInfo(GenericMetaObject fkObject, @NotNull JDBCResultSet dbResult) {<NEW_LINE>pkColumnName = GenericUtils.safeGetStringTrimmed(fkObject, dbResult, JDBCConstants.PKCOLUMN_NAME);<NEW_LINE>fkTableCatalog = GenericUtils.safeGetStringTrimmed(fkObject, dbResult, JDBCConstants.FKTABLE_CAT);<NEW_LINE>fkT...
fkObject, dbResult, JDBCConstants.PK_NAME);
868,724
public void calc(ComContext context) {<NEW_LINE>Tuple2<DenseVector, double[]> grad = context.getObj(OptimVariable.grad);<NEW_LINE>Tuple2<DenseVector, double[]> dir = context.getObj(OptimVariable.dir);<NEW_LINE>Tuple2<DenseVector[], DenseVector[]> hessian = context.getObj(OptimVariable.sKyK);<NEW_LINE>int size = grad.f0...
[0] = gradarr[size];
226,601
private void maybeOpen() throws SAXException {<NEW_LINE>assert !(lineOpen && !listOpen);<NEW_LINE>if (!listOpen) {<NEW_LINE>attrs.clear();<NEW_LINE>attrs.addAttribute("class", "source");<NEW_LINE>if (lineOffset > 0) {<NEW_LINE>attrs.addAttribute("start", Integer.toString(1 + lineOffset));<NEW_LINE>}<NEW_LINE><MASK><NEW...
emitter.startElement("ol", attrs);
1,030,111
public Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String resourceName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.cl...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
1,661,320
private static void unbindCollection(Map<String, Object> result, Object src, Class<?> srcClazz, String name, Annotation[] annotations) {<NEW_LINE>if (src == null) {<NEW_LINE>directUnbind(result, src, srcClazz, name, annotations);<NEW_LINE>} else {<NEW_LINE>Collection<?> c <MASK><NEW_LINE>if (Map.class.isAssignableFrom(...
= (Collection<?>) src;
1,415,999
public PCollection<Row> expand(PCollection<T> input) {<NEW_LINE>final Map<UUID, Schema> renamedSchemasMap = Maps.newHashMap();<NEW_LINE>final Map<UUID, BitSet> nestedFieldRenamedMap = Maps.newHashMap();<NEW_LINE>List<RenamePair> resolvedRenames = renames.stream().map(r -> r.resolve(input.getSchema())).<MASK><NEW_LINE>r...
collect(Collectors.toList());
1,476,042
protected void processParameters(EComponentWithViewSupportHolder holder, JMethod listenerMethod, JInvocation itemSelectedCall, List<? extends VariableElement> parameters) {<NEW_LINE>AbstractJClass narrowAdapterViewClass = getClasses().ADAPTER_VIEW.narrow(getCodeModel().wildcard());<NEW_LINE>JVar onItemClickParentParam ...
invoke(activityRef, getMethodName());
475,837
public void focus(float mx, float my) {<NEW_LINE>mx *= getWidth();<NEW_LINE>my *= getHeight();<NEW_LINE>int x = (int) (mx - mFocusMarkerContainer.getWidth() / 2);<NEW_LINE>int y = (int) (my - <MASK><NEW_LINE>mFocusMarkerContainer.setTranslationX(x);<NEW_LINE>mFocusMarkerContainer.setTranslationY(y);<NEW_LINE>mFocusMark...
mFocusMarkerContainer.getWidth() / 2);
933,454
public static void annotateBytecodeInAar(ZipFile inputZip, ZipOutputStream zipOS, MethodParamAnnotations nonnullParams, MethodReturnAnnotations nullableReturns, boolean stripJarSignatures, boolean debug) throws IOException {<NEW_LINE>BytecodeAnnotator.debug = debug;<NEW_LINE>LOG(debug, "DEBUG", "nullableReturns: " + nu...
debug, "DEBUG", "nonnullParams: " + nonnullParams);
1,428,213
long appendMembershipChangeEvent(final long leadershipTermId, final long timestamp, final int leaderMemberId, final int clusterSize, final ChangeType changeType, final int memberId, final String clusterMembers) {<NEW_LINE>final int fragmentedLength = computeMembershipChangeEventFragmentedLength(clusterMembers);<NEW_LIN...
(memberId).clusterMembers(clusterMembers);
1,586,217
private static int extractErrorPositionForPostgresql(Connection con, Statement stmt, Throwable ex, String sql) {<NEW_LINE>if (ex == null) {<NEW_LINE>return -1;<NEW_LINE>}<NEW_LINE>Class exceptionClass = ex.getClass();<NEW_LINE>if (exceptionClass.getName().equals("org.postgresql.util.PSQLException")) {<NEW_LINE>try {<NE...
Level.FINE, "Caught PostgreSQL exception, that is not subclass of PSQLException", ex);
1,295,119
private static ScriptNode translateScript(NodeFactory nodeFactory, JSContext context, Environment env, Source source, boolean isParentStrict, boolean isEval, boolean evalInFunction, DirectEvalContext directEval, String prologue, String epilogue, TruffleString[] argumentNames) {<NEW_LINE>Scope parentScope = directEval <...
== null ? null : directEval.scope;
1,454,625
private void configureRequestTracingService() {<NEW_LINE>if (enableRequestTracing) {<NEW_LINE>preBootCommands.add(new BootCommand("set", "configs.config.server-config.request-tracing-service-configuration.enabled=true"));<NEW_LINE>preBootCommands.add(new BootCommand("set", "configs.config.server-config.request-tracing-...
Long.toString(requestTracingThresholdValue)));
497,016
private int findOffset(IFile file, int line, int column) {<NEW_LINE>int[] lineOffsets = getResFileToContent().computeIfAbsent(file, f -> {<NEW_LINE>try {<NEW_LINE>String content = getFileContent();<NEW_LINE>ArrayList<Integer> lineOffsetList = new ArrayList<>();<NEW_LINE>lineOffsetList.add(0);<NEW_LINE>for (int index = ...
line - 1] + column - 1;
624,195
private boolean registerTomcat(File nbLocation, File tomcatLocation) throws IOException {<NEW_LINE>File javaExe = JavaUtils.getExecutable(new File(System.getProperty("java.home")));<NEW_LINE>String[] cp = { "platform/core/core.jar", "platform/core/core-base.jar", "platform/lib/boot.jar", "platform/lib/org-openide-modul...
= new ArrayList<String>();
910,036
private void disconnectClientWithSameClientId(@NotNull final ClientConnection clientConnection, @NotNull final ChannelHandlerContext ctx, @NotNull final CONNECT msg) {<NEW_LINE>if (clientConnection.getClientState().disconnected()) {<NEW_LINE>log.debug("Disconnecting client with same client identifier '{}' failed. " + "...
), t.getMessage());
1,252,572
default MapDataPacket preparePacket(int mapId, int minX, int minY, int width, int height) {<NEW_LINE>byte[] colors;<NEW_LINE>if (minX == 0 && minY == 0 && width == WIDTH && height == HEIGHT) {<NEW_LINE>colors = toMapColors();<NEW_LINE>} else {<NEW_LINE>colors = new byte[width * height];<NEW_LINE>final byte[] mapColors ...
(byte) minY, colors));
158,311
public DenseSparseMatrix merge(DenseSparseMatrix[] inputs) {<NEW_LINE>int denseLength = <MASK><NEW_LINE>int sparseLength = inputs[0].getDimension2Size();<NEW_LINE>int[] totalLengths = new int[inputs[0].getDimension1Size()];<NEW_LINE>for (int i = 0; i < inputs.length; i++) {<NEW_LINE>for (int j = 0; j < totalLengths.len...
inputs[0].getDimension1Size();
595,576
public static RealmList<Attachment> parseFileMessage(Stanza packet) {<NEW_LINE>RealmList<Attachment> <MASK><NEW_LINE>// parsing data references<NEW_LINE>List<RefMedia> refMediaList = ReferencesManager.getMediaFromReferences(packet);<NEW_LINE>if (!refMediaList.isEmpty()) {<NEW_LINE>for (RefMedia media : refMediaList) {<...
attachments = new RealmList<>();
1,601,762
private void split_new() {<NEW_LINE>LocalDefs defs = G.v().<MASK><NEW_LINE>PatchingChain<Unit> units = stmtBody.getUnits();<NEW_LINE>Stmt[] stmts = new Stmt[units.size()];<NEW_LINE>units.toArray(stmts);<NEW_LINE>for (Stmt stmt : stmts) {<NEW_LINE>if (stmt instanceof InvokeStmt) {<NEW_LINE>InvokeStmt invoke = (InvokeStm...
soot_toolkits_scalar_LocalDefsFactory().newLocalDefs(stmtBody);
566,839
private static I32 inlineConvertValueToHash(J9JavaVMPointer vm, UDATA objectPointer) throws CorruptDataException {<NEW_LINE>final U32 MUL1 = new U32(0x85ebca6b);<NEW_LINE>final U32 MUL2 = new U32(0xc2b2ae35);<NEW_LINE>U32 <MASK><NEW_LINE>UDATA shiftedAddress = objectPointer.div(ObjectModel.getObjectAlignmentInBytes());...
hashValue = getSalt(vm, objectPointer);
1,002,633
protected void refreshDisplayView() {<NEW_LINE>String est = estimated.getDisplayString();<NEW_LINE>if (!TextUtils.isEmpty(est))<NEW_LINE>est = activity.getString(R.string.TEA_timer_est, est);<NEW_LINE>String elap = elapsed.getDisplayString();<NEW_LINE>if (!TextUtils.isEmpty(elap))<NEW_LINE>elap = activity.getString(R.s...
setText(R.string.TEA_timer_controls);
1,681,446
public void marshall(MonitoringExecutionSummary monitoringExecutionSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (monitoringExecutionSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(monito...
monitoringExecutionSummary.getLastModifiedTime(), LASTMODIFIEDTIME_BINDING);
157,520
private okhttp3.Call patchClusterCustomObjectScaleValidateBeforeCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException {<NEW_LINE>// verify the required parameter 'group' is set<NEW_LINE>if (group ==...
dryRun, fieldManager, force, _callback);
1,224,227
protected void readRepo() throws XmlPullParserException, IOException {<NEW_LINE>parser.require(<MASK><NEW_LINE>Repository repository = new Repository();<NEW_LINE>repository.isPartial = "true".equals(parser.getAttributeValue(NS, "partial"));<NEW_LINE>repository.partialUrl = parser.getAttributeValue(NS, "partial-url");<N...
XmlPullParser.START_TAG, NS, "repository");
144,562
public void paint(Graphics g) {<NEW_LINE>// Calling BufferStrategy.show() here sometimes throws<NEW_LINE>// NullPointerException or IllegalStateException,<NEW_LINE>// but otherwise seems to work fine.<NEW_LINE>try {<NEW_LINE>if (canvas.getWidth() <= 0 || canvas.getHeight() <= 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>B...
while (strategy.contentsRestored());
621,958
public void init() {<NEW_LINE>ViewGroup.LayoutParams frameLayoutParams = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.<MASK><NEW_LINE>mFrameLayout = new FrameLayout(this);<NEW_LINE>mFrameLayout.setLayoutParams(frameLayoutParams);<NEW_LINE>Cocos2dxRenderer renderer = this.addSurfaceView();<NEW_LINE>this.addDebugInf...
MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
10,309
public void load(DatabaseLayout databaseLayout, boolean validateDatabaseExistence, boolean validateLogsExistence, DecompressionSelector selector, ThrowingSupplier<InputStream, IOException> streamSupplier, String inputName) throws IOException, IncorrectFormat {<NEW_LINE><MASK><NEW_LINE>Path transactionLogsDirectory = da...
Path databaseDestination = databaseLayout.databaseDirectory();
354,283
public static ListApplicationOrderSKUTagsResponse unmarshall(ListApplicationOrderSKUTagsResponse listApplicationOrderSKUTagsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listApplicationOrderSKUTagsResponse.setRequestId(_ctx.stringValue("ListApplicationOrderSKUTagsResponse.RequestId"));<NEW_LINE>listApplicationOrderSKU...
(_ctx.integerValue("ListApplicationOrderSKUTagsResponse.TotalCount"));
1,247,055
private void addJoin_(MultiPathImpl dst, Point2D center, Point2D fromPt, Point2D toPt, boolean bStartPath, boolean bFinishAtToPt) {<NEW_LINE>generateCircleTemplate_();<NEW_LINE>Point2D v_1 = new Point2D();<NEW_LINE>v_1.sub(fromPt, center);<NEW_LINE>v_1.scale(m_abs_distance_reversed);<NEW_LINE>Point2D v_2 = new Point2D(...
(double) m_circle_template.size();
1,380,794
private void createDependencyDeclarationTab(@NotNull TabFolder folder) {<NEW_LINE>Composite container = new Composite(folder, SWT.NONE);<NEW_LINE>container.setLayout(new GridLayout(1, true));<NEW_LINE>container.setLayoutData(new GridData(GridData.FILL_BOTH));<NEW_LINE>GridData gd = new GridData(GridData.FILL_BOTH);<NEW...
item.setText(UIConnectionMessages.dialog_edit_driver_edit_maven_raw);
345,291
State run(MutableTransactionState ctx, TransactionStateMachineSPI spi, String statement, MapValue params, List<Bookmark> bookmarks, Duration txTimeout, AccessMode accessMode, Map<String, Object> txMetadata) throws KernelException {<NEW_LINE>beginTransaction(ctx, spi, bookmarks, txTimeout, accessMode, txMetadata, Kernel...
] fieldNames = result.fieldNames();
1,784,143
static Geometry pointMinusPolyline_(Point point, Polyline polyline, double tolerance, ProgressTracker progress_tracker) {<NEW_LINE>Point2D pt = point.getXY();<NEW_LINE><MASK><NEW_LINE>double tolerance_cluster = tolerance * Math.sqrt(2.0) * 1.00001;<NEW_LINE>double tolerance_cluster_sq = tolerance_cluster * tolerance_cl...
SegmentIterator seg_iter = polyline.querySegmentIterator();
1,283,251
void addAbsMem(Instruction instruction, int operand) {<NEW_LINE>encoderFlags |= EncoderFlags.DISPL;<NEW_LINE>int opKind = instruction.getOpKind(operand);<NEW_LINE>if (opKind == OpKind.MEMORY) {<NEW_LINE>if (instruction.getMemoryBase() != Register.NONE || instruction.getMemoryIndex() != Register.NONE) {<NEW_LINE>setErro...
.format("Operand %d: 64-bit abs address is only available in 64-bit mode", operand));
594,115
public OMixedIndexRIDContainer deserializeFromByteBufferObject(ByteBuffer buffer, OWALChanges walChanges, int offset) {<NEW_LINE>offset += OIntegerSerializer.INT_SIZE;<NEW_LINE>final long fileId = walChanges.getLongValue(buffer, offset);<NEW_LINE>offset += OLongSerializer.LONG_SIZE;<NEW_LINE>final int embeddedSize = wa...
getObjectSizeInByteBuffer(buffer, walChanges, offset);
167,406
public ListAccountAssociationsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListAccountAssociationsResult listAccountAssociationsResult = new ListAccountAssociationsResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
int originalDepth = context.getCurrentDepth();
686,150
public void and(final ImmutableRoaringBitmap array) {<NEW_LINE>int pos1 = 0, pos2 = 0, intersectionSize = 0;<NEW_LINE>final int length1 = highLowContainer.size(), length2 <MASK><NEW_LINE>while (pos1 < length1 && pos2 < length2) {<NEW_LINE>final char s1 = highLowContainer.getKeyAtIndex(pos1);<NEW_LINE>final char s2 = ar...
= array.highLowContainer.size();
1,740,071
protected boolean someToSuccess(HttpExchange exchange) {<NEW_LINE>RequestState current = requestState.get();<NEW_LINE>switch(current) {<NEW_LINE>case COMMIT:<NEW_LINE>case CONTENT:<NEW_LINE>{<NEW_LINE>// Mark atomically the request as completed, with respect<NEW_LINE>// to concurrency between request success and reques...
terminateRequest(exchange, null, result);
1,244,686
public static Map<String, GitBranch> refsToBranches(Collection<Ref> allRefs, String prefix, GitClassFactory factory) {<NEW_LINE>Map<String, GitBranch> branches = new <MASK><NEW_LINE>// try to find the head first - it usually is the active remote branch<NEW_LINE>Ref head = null;<NEW_LINE>for (final Ref ref : allRefs) {<...
LinkedHashMap<String, GitBranch>();
548,824
protected boolean cleanupIpResources(long ipId, long userId, Account caller) {<NEW_LINE>boolean success = true;<NEW_LINE>// Revoke all firewall rules for the ip<NEW_LINE>try {<NEW_LINE>s_logger.debug("Revoking all " + Purpose.Firewall + "rules as a part of public IP id=" + ipId + " release...");<NEW_LINE>if (!_firewall...
warn("Unable to revoke all the firewall rules for ip id=" + ipId + " as a part of ip release");
1,076,091
private void meetingStarted(MeetingStarted message) {<NEW_LINE>Meeting m = getMeeting(message.meetingId);<NEW_LINE>if (m != null) {<NEW_LINE>if (m.getStartTime() == 0) {<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>m.setStartTime(now);<NEW_LINE>Map<String, Object> logData = new HashMap<>();<NEW_LINE>logData...
logData.put("description", "Meeting has restarted.");
1,731,544
public AttachDeviceResponse handleResponse(final HttpResponse response) throws IOException {<NEW_LINE>switch(response.getStatusLine().getStatusCode()) {<NEW_LINE>case HttpStatus.SC_INTERNAL_SERVER_ERROR:<NEW_LINE>final XmlMapper mapper = new XmlMapper();<NEW_LINE>try {<NEW_LINE>error.set(mapper.readValue(response.getEn...
, attr.getVal()));
1,006,686
public Dataset createDataset(Dataset dataset, UserInfo userInfo) {<NEW_LINE>// Check entity already exists<NEW_LINE>checkDatasetAlreadyExist(dataset);<NEW_LINE>try (var session = modelDBHibernateUtil.getSessionFactory().openSession()) {<NEW_LINE>var datasetEntity = RdbmsUtils.generateDatasetEntity(dataset);<NEW_LINE>va...
var resourceVisibility = dataset.getVisibility();
865,516
protected List<OrderEDI> convertToOrderEDIs(final List<Object> orders) {<NEW_LINE>final List<OrderEDI> <MASK><NEW_LINE>final OrderEDI orderEDI = new OrderEDI(new H000());<NEW_LINE>ediDocuments.add(orderEDI);<NEW_LINE>final Document ordersDocument = (Document) orders.get(0);<NEW_LINE>for (final Xbest4H order : ordersDoc...
ediDocuments = new ArrayList<>();
1,372,157
protected ViewHolder onCreateCustomItemViewHolder(@NonNull ViewGroup viewGroup, int type) {<NEW_LINE>View view;<NEW_LINE>Context context = viewGroup.getContext();<NEW_LINE>if (type == ITEM_TYPE_LIST_HEADER) {<NEW_LINE>ImageView iv = new ImageView(context);<NEW_LINE>iv.setImageResource(R.mipmap.example_image2);<NEW_LINE...
setText(R.string.sticky_section_decoration_section_bottom_tip);
370,784
private static void load(AbstractDistributedJobCommand command, List<URIStatus> pool, int batchSize, AlluxioURI filePath, int replication, Set<String> workerSet, Set<String> excludedWorkerSet, Set<String> localityIds, Set<String> excludedLocalityIds, boolean directCache, boolean printOut) throws IOException, AlluxioExc...
"Ignored load because: %s is in incomplete status", uriStatus.getPath());
46,451
public void announcementGet(String columns, final Response.Listener<List<Announcement>> responseListener, final Response.ErrorListener errorListener) {<NEW_LINE>Object postBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String path = "/announcement".replaceAll("\\{format\\}", "json");<NEW_LINE>// query ...
HttpEntity httpEntity = localVarBuilder.build();
379,974
private void createNutchIndexData() throws IOException, URISyntaxException {<NEW_LINE>log.info("creating nutch index files ... ");<NEW_LINE>JobConf job <MASK><NEW_LINE>Utils.shareUrls(URLS_DIR_NAME, options, job);<NEW_LINE>Utils.shareDict(options, job);<NEW_LINE>setNutchOptions(job);<NEW_LINE>Path fsegments = new Path(...
= new JobConf(NutchData.class);
1,401,477
/* Build call for throttlingBlacklistGet */<NEW_LINE>private com.squareup.okhttp.Call throttlingBlacklistGetCall(String accept, String ifNoneMatch, String ifModifiedSince, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiE...
HashMap<String, String>();
480,976
private void analyzeMethod(Method m, ClassContext classContext) throws CFGBuilderException, DataflowAnalysisException {<NEW_LINE>ConstantPoolGen cpg = classContext.getConstantPoolGen();<NEW_LINE>CFG cfg = classContext.getCFG(m);<NEW_LINE>for (Iterator<Location> i = cfg.locationIterator(); i.hasNext(); ) {<NEW_LINE>Loca...
JavaClass clz = classContext.getJavaClass();
268,290
public static DeleteUserResponse unmarshall(DeleteUserResponse deleteUserResponse, UnmarshallerContext _ctx) {<NEW_LINE>deleteUserResponse.setRequestId(_ctx.stringValue("DeleteUserResponse.RequestId"));<NEW_LINE>deleteUserResponse.setCode(_ctx.stringValue("DeleteUserResponse.Code"));<NEW_LINE>deleteUserResponse.setData...
("DeleteUserResponse.Errors[" + i + "].Field"));