idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
947,823
final SetIpAddressTypeResult executeSetIpAddressType(SetIpAddressTypeRequest setIpAddressTypeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(setIpAddressTypeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,541,395
public StagingData retrieveStagingData(@NonNull final ImmutableList<I_C_Flatrate_Term> commissionTermRecords) {<NEW_LINE>// 1. load the actual records<NEW_LINE>//<NEW_LINE>// C_Flatrate_Term<NEW_LINE>final ImmutableMap<Integer, I_C_Flatrate_Term> //<NEW_LINE>id2TermRecord = Maps.uniqueIndex(commissionTermRecords, I_C_F...
(commissionTermRecord.getBill_BPartner_ID()));
1,512,561
public FeedResponse handle(HttpRequest request, RouteMetricSet.ProgressCallback callback, int numThreads) {<NEW_LINE>MessagePropertyProcessor.PropertySetter properties = getPropertyProcessor().buildPropertySetter(request);<NEW_LINE>String route = properties.getRoute().toString();<NEW_LINE>FeedResponse response = new Fe...
(response, getSharedSender(route));
1,552,822
private void initSearchActions() {<NEW_LINE>myResultsList.addMouseListener(new MouseAdapter() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void mouseClicked(MouseEvent e) {<NEW_LINE>onMouseClicked(e);<NEW_LINE>}<NEW_LINE>});<NEW_LINE>DumbAwareAction.create(e -> RunAnythingUtil.jumpNextGroup(true, myResultsList)).regi...
) ? index : index - 1);
222,045
public void refreshContent(Entry e, Highlight highlight) {<NEW_LINE>Object[] extraData = (Object[]) e.getData();<NEW_LINE>ScaleMeasurement measurement = (ScaleMeasurement) extraData[0];<NEW_LINE>ScaleMeasurement prevMeasurement = (ScaleMeasurement) extraData[1];<NEW_LINE>FloatMeasurementView measurementView = (FloatMea...
length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
1,684,139
private void showFilterMenu() {<NEW_LINE>List<Notification.Type> notificationsList = Notification.Type.Companion.getAsList();<NEW_LINE>List<String> list = new ArrayList<>();<NEW_LINE>for (Notification.Type type : notificationsList) {<NEW_LINE>list.add(getNotificationText(type));<NEW_LINE>}<NEW_LINE>ArrayAdapter<String>...
(notificationsList.get(i));
1,725,068
final ExportCertificateResult executeExportCertificate(ExportCertificateRequest exportCertificateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(exportCertificateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
invoke(request, responseHandler, executionContext);
226,021
private void coloredMap() {<NEW_LINE>// tile size<NEW_LINE>int size = 1;<NEW_LINE>int W = (getAppWidth() + 200) / size;<NEW_LINE>int H = (getAppHeight() + 200) / size;<NEW_LINE>Grid<HeightMapGenerator.HeightData> map = new Grid<>(HeightMapGenerator.HeightData.class, W, H, new CustomHeightMapGenerator(W, H));<NEW_LINE>A...
, interpolator.EASE_OUT()));
1,703,553
public String updateTranslation(HttpServletRequest request, HttpServletResponse response, Model model, @ModelAttribute(value = "entityForm") EntityForm entityForm, BindingResult result) throws Exception {<NEW_LINE>final TranslationForm form = getTranslationForm(entityForm);<NEW_LINE>adminRemoteSecurityService.securityC...
getCeilingEntity(), getSectionCustomCriteria());
1,247,196
public int notifyStarted(@NonNull MediaFormat format) {<NEW_LINE>synchronized (mControllerLock) {<NEW_LINE>if (mMediaMuxerStarted) {<NEW_LINE>throw new IllegalStateException("Trying to start but muxer started already");<NEW_LINE>}<NEW_LINE>int track = mMediaMuxer.addTrack(format);<NEW_LINE>LOG.w("notifyStarted:", "Assi...
w("notifyStarted:", "All encoders have started.", "Starting muxer and dispatching onEncodingStart().");
1,553,202
public J.ForLoop visitForLoop(J.ForLoop forLoop, ExecutionContext ctx) {<NEW_LINE>J.ForLoop elem = super.visitForLoop(forLoop, ctx);<NEW_LINE>boolean hasAllowableBodyType = needBracesStyle.getAllowEmptyLoopBody() ? elem.getBody() instanceof J.Block || elem.getBody() instanceof J.Empty : elem.getBody() instanceof J.Bloc...
buildBlock(elem.getBody());
186,390
public static TablesExtRecord convertToTablesExtRecord(TableRule newTableRule, String tableSchema, String tableName, boolean isGsi, boolean isAutoPartition) {<NEW_LINE>TablesExtRecord record = new TablesExtRecord();<NEW_LINE>record.tableSchema = tableSchema;<NEW_LINE>record.tableName = tableName;<NEW_LINE>record.newTab...
.dbNamePattern = newTableRule.getDbNamePattern();
421,508
final UpdateGatewayResult executeUpdateGateway(UpdateGatewayRequest updateGatewayRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateGatewayRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,134,306
private static void extractAcceptedFile(ArchiveInputStream input, File file) throws AnalysisException {<NEW_LINE>LOGGER.debug("Extracting '{}'", file.getPath());<NEW_LINE>final File parent = file.getParentFile();<NEW_LINE>if (!parent.isDirectory() && !parent.mkdirs()) {<NEW_LINE>final String msg = String.format(<MASK><...
"Unable to build directory '%s'.", parent.getAbsolutePath());
1,050,709
public List<Fix> run(CompilationInfo info, String diagnosticKey, int offset, TreePath treePath, Data<Void> data) {<NEW_LINE>List<Fix> result = new ArrayList<Fix>();<NEW_LINE>Element ex = info.getTrees().getElement(treePath);<NEW_LINE>if (treePath.getLeaf().getKind() == Kind.METHOD && ex != null && ex.getKind() == Eleme...
desiredAccess.add(Modifier.PUBLIC);
1,548,880
public Void execute(CommandContext commandContext) {<NEW_LINE>// check that the new process definition is just another version of the same<NEW_LINE>// process definition that the process instance is using<NEW_LINE>ExecutionEntityManager executionManager = commandContext.getExecutionEntityManager();<NEW_LINE>ExecutionEn...
currentProcessDefinition.getKey(), processDefinitionVersion);
89,883
// end main()<NEW_LINE>public boolean trainClassifier(String path) throws IOException {<NEW_LINE>// build dataset of training data featurized<NEW_LINE>Pair<GeneralDataset<String, String>, List<String[]>> dataInfo = readAndReturnTrainingExamples(path);<NEW_LINE>GeneralDataset<String, String> train = dataInfo.first();<NE...
> lineInfos = dataInfo.second();
244,317
private void enableLiveUpdates(boolean enable) {<NEW_LINE>if (!Algorithms.isEmpty(adapter.mapsList)) {<NEW_LINE>AlarmManager alarmMgr = (AlarmManager) app.getSystemService(Context.ALARM_SERVICE);<NEW_LINE>List<LocalIndexInfo> mapsToUpdate = getMapsToUpdate(adapter.mapsList, settings);<NEW_LINE>for (LocalIndexInfo li : ...
updateFrequencyPreference = preferenceUpdateFrequency(fileName, settings);
510,180
public void run(ExportMessagesCommand command, Consumer<SimpleMessageChunk> chunkCollector) {<NEW_LINE>boolean isFirstChunk = true;<NEW_LINE>int totalCount = 0;<NEW_LINE>while (true) {<NEW_LINE>List<SearchResult.Hit<Map, Void>> hits = search(command);<NEW_LINE>if (hits.isEmpty()) {<NEW_LINE>publishChunk(chunkCollector,...
limit().getAsInt());
897,934
public List<BakedQuad> modifyQuads(BlockState object, List<BakedQuad> quads) {<NEW_LINE>float lowerHeight = slopePosition / (float) totalLength;<NEW_LINE>float upperHeight <MASK><NEW_LINE>double lowerV = 16 * lowerHeight;<NEW_LINE>double upperV = 16 * upperHeight;<NEW_LINE>TextureAtlasSprite tas = quads.get(0).a();<NEW...
= (slopePosition + 1F) / totalLength;
123,476
public Iterator<Tuple2<T, U>> call(Integer v1, Iterator<Tuple2<T, U>> iter) throws Exception {<NEW_LINE>long thisRngSeed = baseRngSeed + v1;<NEW_LINE>Random r = new Random(thisRngSeed);<NEW_LINE>List<Integer> list = new ArrayList<>();<NEW_LINE>for (int i = 0; i < numSplits; i++) {<NEW_LINE>list.add(i);<NEW_LINE>}<NEW_L...
Collections.shuffle(list, r);
1,272,512
public void onBindViewHolder(@NonNull ViewHolder viewHolder, int position) {<NEW_LINE>final Room searchResult = getItem(position);<NEW_LINE>viewHolder.binding.name.setText(searchResult.getName());<NEW_LINE>final String description = searchResult.getDescription();<NEW_LINE>final String language = searchResult.getLanguag...
binding.description.setText(description);
629,174
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {<NEW_LINE>String mname = method.getName();<NEW_LINE>if (mname.equals("toString")) {<NEW_LINE>return "SpunPhadhail<" + ph + ">";<NEW_LINE>} else if (mname.equals("lock")) {<NEW_LINE>return Locks.event();<NEW_LINE>} else if (mname.equals("...
0], (Phadhail) proxy);
1,478,805
private Object pushNewFile(final String groupName, final String path, final String fileHash, final String hashRef, final File file, final Connection connection) {<NEW_LINE>final String groupNameLC = groupName.toLowerCase();<NEW_LINE>final String pathLC = path.toLowerCase();<NEW_LINE>final <MASK><NEW_LINE>try (final Fil...
UpsertDelegate upsertDelegate = UpsertDelegate.newInstance();
1,531,840
private Mono<Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String clusterName, ClusterResourceInner body, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cann...
error(new IllegalArgumentException("Parameter body is required and cannot be null."));
754,102
protected List<File> pickBundles(File[] files) {<NEW_LINE>ArrayList<File> jars = new ArrayList<>();<NEW_LINE>boolean foundVersion = false;<NEW_LINE>if (files != null) {<NEW_LINE>Arrays.sort(files);<NEW_LINE>for (File file : files) {<NEW_LINE>String name = file.getName().toLowerCase();<NEW_LINE>// Avoid loading the wron...
"dse" : "cassandra"), version));
706,366
public void main() {<NEW_LINE>RVec4 srcColor = new RVec4("srcColor");<NEW_LINE>srcColor.assign(texture2D(uTexture, vTextureCoord));<NEW_LINE>switch(mMode) {<NEW_LINE>case LIGHTNESS:<NEW_LINE><MASK><NEW_LINE>least.assign(min(srcColor.g(), min(srcColor.r(), srcColor.b())));<NEW_LINE>RFloat most = new RFloat("most");<NEW_...
RFloat least = new RFloat("least");
670,369
public int findShortestSubArray(int[] nums) {<NEW_LINE>Map<Integer, Integer> count = new HashMap<>();<NEW_LINE>Map<Integer, Integer> left = new HashMap<>();<NEW_LINE>Map<Integer, Integer> <MASK><NEW_LINE>for (int i = 0; i < nums.length; i++) {<NEW_LINE>count.put(nums[i], count.getOrDefault(nums[i], 0) + 1);<NEW_LINE>if...
right = new HashMap<>();
1,510,101
final GetJobOutputResult executeGetJobOutput(GetJobOutputRequest getJobOutputRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getJobOutputRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
(super.beforeMarshalling(getJobOutputRequest));
1,699,208
private DBWHandlerConfiguration parseNetworkHandlerConfig(@Nullable DataSourceDescriptor dataSource, @Nullable DBWNetworkProfile profile, @NotNull Map.Entry<String, Map<String, Object>> handlerObject) {<NEW_LINE><MASK><NEW_LINE>Map<String, Object> handlerCfg = handlerObject.getValue();<NEW_LINE>NetworkHandlerDescriptor...
String handlerId = handlerObject.getKey();
1,365,544
public boolean incrementToken() throws IOException {<NEW_LINE>if (tokens.isEmpty() == false) {<NEW_LINE>assert current != null;<NEW_LINE>DelimitedToken token = tokens.removeFirst();<NEW_LINE>// keep all other attributes untouched<NEW_LINE>restoreState(current);<NEW_LINE>termAtt.setEmpty().append(token.charSequence());<...
DelimitedToken token = tokens.removeFirst();
983,907
public void instanceCodegen(CodegenInstanceAux instance, CodegenClassScope classScope, CodegenCtor factoryCtor, List<CodegenTypedParam> factoryMembers) {<NEW_LINE>instance.getMethods().addMethod(SelectExprProcessor.EPTYPE, "getSelectExprProcessor", Collections.emptyList(), this.getClass(), classScope, methodNode -> met...
().methodReturn(MEMBER_EXPREVALCONTEXT));
1,633,151
public static GetIoTCloudConnectorGatewayResponse unmarshall(GetIoTCloudConnectorGatewayResponse getIoTCloudConnectorGatewayResponse, UnmarshallerContext _ctx) {<NEW_LINE>getIoTCloudConnectorGatewayResponse.setRequestId(_ctx.stringValue("GetIoTCloudConnectorGatewayResponse.RequestId"));<NEW_LINE>getIoTCloudConnectorGat...
("GetIoTCloudConnectorGatewayResponse.ForwardingUnitIds[" + i + "]"));
567,286
final BatchGetJobsResult executeBatchGetJobs(BatchGetJobsRequest batchGetJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchGetJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
endClientExecution(awsRequestMetrics, request, response);
1,528,397
public static Map<String, Object> expand(Map<String, Object> flatMap) {<NEW_LINE>Map<String, Object> <MASK><NEW_LINE>for (String key : flatMap.keySet()) {<NEW_LINE>String[] splitKey = key.split("/");<NEW_LINE>Object value = flatMap.get(key);<NEW_LINE>// In this case, we have a composite key i.e. A/B/C which needs to be...
expandedMap = new HashMap<>();
190,518
public void run(MessageReply reply) {<NEW_LINE>if (!reply.isSuccess()) {<NEW_LINE>completion.fail(reply.getError());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>KVMHostAsyncHttpCallReply hreply = reply.castReply();<NEW_LINE>CreateVlanBridgeResponse rsp = hreply.toResponse(CreateVlanBridgeResponse.class);<NEW_LINE>if (!rsp.isS...
cmd.getBridgeName())));
1,265,231
public boolean onCreateOptionsMenu(final Menu menu) {<NEW_LINE>super.onCreateOptionsMenu(menu);<NEW_LINE>getMenuInflater().inflate(R.menu.main_activity_menu, menu);<NEW_LINE>// setup the video blocker notification icon which will be displayed in the tool bar<NEW_LINE>videoBlockerPlugin.setupIconForToolBar(menu);<NEW_LI...
appcompat.R.id.search_src_text);
564,756
public void draw(Graphics2D graphics) {<NEW_LINE>if (features != null) {<NEW_LINE>Map<Double, float[]> spectralInfoSubMap = features.subMap(cs.getMin(Axis.X) / 1000.0, cs.getMax(Axis.X) / 1000.0);<NEW_LINE>double currentMaxSpectralEnergy = 0;<NEW_LINE>for (Map.Entry<Double, float[]> column : spectralInfoSubMap.entrySet...
Math.max(0, greyValue);
1,716,230
private boolean canMoveModerately(Reference initialization, Reference reference) {<NEW_LINE>// Check if declaration can be inlined without passing<NEW_LINE>// any side-effect causing nodes.<NEW_LINE>Iterator<Node> it;<NEW_LINE>if (NodeUtil.isNameDeclaration(initialization.getParent())) {<NEW_LINE>it = // NAME<NEW_LINE>...
getGrandparent().isExprResult());
1,529,957
public void updateConversationRead(final String currentId, final boolean isGroup) {<NEW_LINE>if (getActivity() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>this.getActivity().runOnUiThread(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>try {<NEW_LINE>Message message = null;<NEW_L...
findViewById(R.id.unreadSmsCount);
612,392
private static void processSensorRxMessage(SensorRxMessage sensorRx) {<NEW_LINE>if (sensorRx == null)<NEW_LINE>return;<NEW_LINE>// TODO, is this accurate or needed?<NEW_LINE>int sensor_battery_level = 0;<NEW_LINE>if (sensorRx.status == TransmitterStatus.BRICKED) {<NEW_LINE>// will give message "EMPTY"<NEW_LINE>sensor_b...
getTransmitterID(), sensorRx.timestamp);
41,206
public List<String> onTabComplete(CMDSender sender, Arguments arguments) {<NEW_LINE>Optional<String> <MASK><NEW_LINE>List<String> options = new ArrayList<>();<NEW_LINE>if (gotAlias.isPresent()) {<NEW_LINE>subcommandsLoop: for (Subcommand subcommand : subcommands) {<NEW_LINE>if (sender.isMissingPermissionsFor(subcommand...
gotAlias = arguments.get(0);
522,620
protected double computePrefWidth(double height) {<NEW_LINE>final Side side = getEffectiveSide();<NEW_LINE>if (side.isVertical()) {<NEW_LINE>// we need to first auto range as this may/will effect tick marks<NEW_LINE>Object range = autoRange(height);<NEW_LINE>// calculate max tick label width<NEW_LINE>double maxLabelWid...
? getTickLength() : 0 : 0;
382,586
public void reset() {<NEW_LINE>for (int i = 0; i < best_ref_mv_sb.length; i++) {<NEW_LINE>best_ref_mv_sb[i].setZero();<NEW_LINE>}<NEW_LINE>for (int i = 0; i < mode_mv_sb.length; i++) {<NEW_LINE>for (int j = 0; j < mode_mv_sb[i].length; j++) {<NEW_LINE>mode_mv_sb[i<MASK><NEW_LINE>}<NEW_LINE>}<NEW_LINE>best_ref_mv.setZer...
][j].setZero();
1,705,286
private void checkAggregateShareRatio() {<NEW_LINE>if (max_aggregate_share_ratio > 0) {<NEW_LINE>// don't do anything if we are in the process of deleting torrents - in particular we<NEW_LINE>// want to avoid resuming a download that is about to be deleted along with others<NEW_LINE>// that contribute to the same ratio...
RSC_PAUSE : TagFeatureRunState.RSC_STOP, dms);
807,387
private void checkAggregationFunction(Map<String, Integer> columnToIds, Set<CallOperator> aggregatedColumnsInQueryOutput, Map<Long, MaterializedIndexMeta> candidateIndexIdToMeta, boolean disableSPJGMV, boolean isSPJQuery) {<NEW_LINE>Iterator<Map.Entry<Long, MaterializedIndexMeta>> iterator = candidateIndexIdToMeta.entr...
keyColumnsToExprList(columnToIds, candidateIndexMeta, indexAggColumnExprList);
644,176
public final void mDOUBLE_QUOTE_STRING(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {<NEW_LINE>int _ttype;<NEW_LINE>Token _token = null;<NEW_LINE>int _begin = text.length();<NEW_LINE>_ttype = DOUBLE_QUOTE_STRING;<NEW_LINE>int _saveIndex;<NEW_LINE>char delimiter = '\0';<NE...
.length() - _begin));
1,743,431
private void checkOverlapPrivateIpRange(long podId, String startIp, String endIp) {<NEW_LINE>HostPodVO pod = _podDao.findById(podId);<NEW_LINE>if (pod == null) {<NEW_LINE>throw new CloudRuntimeException("Cannot find pod " + podId);<NEW_LINE>}<NEW_LINE>final String[] existingPodIpRanges = pod.getDescription().split(",")...
+ ":" + existingPodIpRange[1]);
1,760,093
private State mapToState(double value, String itemName) {<NEW_LINE>if (itemRegistry != null) {<NEW_LINE>try {<NEW_LINE>Item item = itemRegistry.getItem(itemName);<NEW_LINE>if (item instanceof SwitchItem && !(item instanceof DimmerItem)) {<NEW_LINE>return value == 0.0d ? OnOffType.OFF : OnOffType.ON;<NEW_LINE>} else if ...
logger.debug("Could not find item '{}' in registry", itemName);
427,576
protected void calculatePostCombatActions(Game game) {<NEW_LINE>if (!getNextAction(game)) {<NEW_LINE>currentScore = <MASK><NEW_LINE>Game sim = createSimulation(game);<NEW_LINE>SimulationNode.resetCount();<NEW_LINE>root = new SimulationNode(null, sim, playerId);<NEW_LINE>logger.debug("simulating post combat actions ----...
GameStateEvaluator.evaluate(playerId, game);
646,232
public static Comment fromCursor(final Cursor cursor) {<NEW_LINE>Comment comment = new Comment();<NEW_LINE>comment.date = cursor.getString(cursor.getColumnIndex(DatabaseConstants.COMMENT_DATE));<NEW_LINE>comment.sharedDate = cursor.getString(cursor.getColumnIndex(DatabaseConstants.COMMENT_SHAREDDATE));<NEW_LINE>comment...
.getColumnIndex(DatabaseConstants.COMMENT_USERID));
1,355,153
private Process createProcess(InstanceProperties ip) {<NEW_LINE>org.netbeans.api.extexecution.base.ProcessBuilder builder = org.netbeans.api.extexecution.base.ProcessBuilder.getLocal();<NEW_LINE>setupEnvironment(ip, builder.getEnvironment());<NEW_LINE>builder = setupBinary(ip, builder);<NEW_LINE>if (builder == null) {<...
= new File(rootDir, "bin");
275,214
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c0,c1".split(",");<NEW_LINE>String epl = "@Name('s0') select a.theString as c0, b.theString as c1 from pattern [every (a=SupportBean(intPrimitive>0) and b=SupportBean(intPrimitive<0))]";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>...
sendSupportBean(env, "E5", 2);
279,946
private void handleInvoices(final I_C_Printing_Queue queueItem, final I_C_Invoice invoice) {<NEW_LINE>queueItem.setBill_BPartner_ID(invoice.getC_BPartner_ID());<NEW_LINE>queueItem.setBill_User_ID(invoice.getAD_User_ID());<NEW_LINE>queueItem.setBill_Location_ID(invoice.getC_BPartner_Location_ID());<NEW_LINE>queueItem.se...
), queueItem.getCopies());
141,707
protected Map<Volume, StoragePool> buildMapUsingUserInformation(VirtualMachineProfile profile, Host targetHost, Map<Long, Long> userDefinedVolumeToStoragePoolMap) {<NEW_LINE>Map<Volume, StoragePool> volumeToPoolObjectMap = new HashMap<>();<NEW_LINE>if (MapUtils.isEmpty(userDefinedVolumeToStoragePoolMap)) {<NEW_LINE>ret...
findById(volume.getPoolId());
989,904
public StringBuilder notifyHook(String url, String id, String action, String streamName, String category, String vodName, String vodId, String metadata) {<NEW_LINE>StringBuilder response = null;<NEW_LINE>logger.info("Running notify hook url:{} stream id: {} action:{} vod name:{} vod id:{}", url, id, action, vodName, vo...
variables = new HashMap<>();
194,434
public J visitUnary(J.Unary unary, ExecutionContext ctx) {<NEW_LINE>if (unary.getOperator() == J.Unary.Type.Not && unary.getExpression() instanceof J.Parentheses) {<NEW_LINE>J.Parentheses<?> expr = (J.Parentheses<?>) unary.getExpression();<NEW_LINE>if (expr.getTree() instanceof J.Binary) {<NEW_LINE>J.Binary binary = (J...
withPrefix(unary.getPrefix());
985,929
private static List<BlockPos> findBlockCandidatesInTaxicabArea(FabricClientCommandSource source, ClientBlockPredicate blockMatcher, int radius) {<NEW_LINE>World world <MASK><NEW_LINE>assert world != null;<NEW_LINE>BlockPos senderPos = new BlockPos(source.getPosition());<NEW_LINE>ChunkPos chunkPos = new ChunkPos(senderP...
= MinecraftClient.getInstance().world;
279,388
public boolean updateCurrentState() {<NEW_LINE>// TODO avoid updating one layout model by multiple designers<NEW_LINE>if (logTestCode()) {<NEW_LINE>// NOI18N<NEW_LINE>testCode.add("// > UPDATE CURRENT STATE");<NEW_LINE>}<NEW_LINE>Object changeMark = layoutModel.getChangeMark();<NEW_LINE>List<LayoutComponent> updatedCon...
equals(layoutModel.getChangeMark());
1,264,541
public void onClick(View arg0) {<NEW_LINE>switch(arg0.getId()) {<NEW_LINE>case (R.id.bLogin):<NEW_LINE>String unsanitizeName = username.getText().toString();<NEW_LINE>String unsanitizePass = password.getText().toString();<NEW_LINE>String sanitizeName = unsanitizeName.replace("OR", " ");<NEW_LINE>sanitizeName = sanitize...
sanitizePass.replace("DROP", " ");
1,309,327
public static void execWithErrorMessage(Project project, Action<ExecSpec> execSpecAction) {<NEW_LINE>List<String> <MASK><NEW_LINE>ByteArrayOutputStream output = new ByteArrayOutputStream();<NEW_LINE>ExecResult execResult = project.exec(execSpec -> {<NEW_LINE>execSpecAction.execute(execSpec);<NEW_LINE>execSpec.setIgnore...
commandLine = new ArrayList<>();
1,259,975
public static void vertical11(Kernel1D_S32 kernel, GrayS32 src, GrayS32 dst, int divisor, @Nullable GrowArray<DogArray_I32> workspaces) {<NEW_LINE>final int[] dataSrc = src.data;<NEW_LINE>final int[] dataDst = dst.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k...
k5 = kernel.data[4];
389,885
public boolean removeMessageDestination(WildflyMessageDestination destination) throws IOException {<NEW_LINE>try {<NEW_LINE>WildflyDeploymentFactory.WildFlyClassLoader cl = WildflyDeploymentFactory.getInstance().getWildFlyClassLoader(ip);<NEW_LINE>LinkedHashMap<Object, Object> values = new LinkedHashMap<>();<NEW_LINE>v...
put(SUBSYSTEM, getMessagingSubsystem());
800,714
private UnionDataSchema parseUnion(UnionDeclarationContext union, boolean withinTypref) throws ParseException {<NEW_LINE>UnionDataSchema schema = new UnionDataSchema();<NEW_LINE>List<UnionMemberDeclarationContext> members = union.typeParams.members;<NEW_LINE>List<UnionDataSchema.Member> unionMembers = new ArrayList<>(m...
setDoc(alias.doc.value);
1,709,856
private void refreshStatistics2DB(ZkCluster zkCluster) {<NEW_LINE>log.info("start refresh statistics by zkClusterKey:{}", zkCluster.getZkClusterKey());<NEW_LINE>Date start = new Date();<NEW_LINE>StatisticsModel statisticsModel = initStatisticsModel();<NEW_LINE>List<Callable<Boolean>> <MASK><NEW_LINE>try {<NEW_LINE>if (...
callableList = getStatCallableList(zkCluster, statisticsModel);
1,518,602
public Table executionDisplay(@ShellOption(help = "the job execution id") long id) {<NEW_LINE>JobExecutionResource jobExecutionResource = jobOperations().jobExecution(id);<NEW_LINE>TableModelBuilder<Object> modelBuilder = new TableModelBuilder<>();<NEW_LINE>modelBuilder.addRow().addValue("Key ").addValue("Value ");<NEW...
addValue(jobExecutionResource.getTaskExecutionId());
1,643,573
public void marshall(SearchPlaceIndexForTextSummary searchPlaceIndexForTextSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (searchPlaceIndexForTextSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.mar...
e.getMessage(), e);
334,295
public synchronized void open() throws IOException {<NEW_LINE>HugeConfig config = this.config();<NEW_LINE>String hosts = config.get(HbaseOptions.HBASE_HOSTS);<NEW_LINE>int port = config.get(HbaseOptions.HBASE_PORT);<NEW_LINE>String znodeParent = config.get(HbaseOptions.HBASE_ZNODE_PARENT);<NEW_LINE>boolean isEnableKerb...
config.get(HbaseOptions.HBASE_KERBEROS_KEYTAB);
1,798,021
public static ListSkillGroupStatesResponse unmarshall(ListSkillGroupStatesResponse listSkillGroupStatesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listSkillGroupStatesResponse.setRequestId(_ctx.stringValue("ListSkillGroupStatesResponse.RequestId"));<NEW_LINE>listSkillGroupStatesResponse.setHttpStatusCode(_ctx.intege...
(_ctx.stringValue("ListSkillGroupStatesResponse.Code"));
933,097
protected void configureGroup(ResourceGroup group, ResourceGroupSpec match) {<NEW_LINE>if (match.getSoftMemoryLimit().isPresent()) {<NEW_LINE>group.setSoftMemoryLimit(match.getSoftMemoryLimit().get());<NEW_LINE>} else {<NEW_LINE>synchronized (generalPoolMemoryFraction) {<NEW_LINE>double fraction = match.getSoftMemoryLi...
setMaxQueuedQueries(match.getMaxQueued());
890,856
final Cluster executePauseCluster(PauseClusterRequest pauseClusterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(pauseClusterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<N...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,814,793
public void reverseDraftIssue(@NonNull final I_PP_Order_Qty candidate) {<NEW_LINE>if (candidate.isProcessed()) {<NEW_LINE>throw new HUException("Cannot reverse candidate because it's already processed: " + candidate);<NEW_LINE>}<NEW_LINE>final I_M_HU huToIssue = candidate.getM_HU();<NEW_LINE>final IContextAware <MASK><...
contextProvider = InterfaceWrapperHelper.getContextAware(candidate);
450,473
public static WKTReader extract(String geometryLiteral) throws DatatypeFormatException {<NEW_LINE>WKTTextSRS wktTextSRS = new WKTTextSRS(geometryLiteral);<NEW_LINE>String srsURI = wktTextSRS.srsURI;<NEW_LINE>String wktText = wktTextSRS.wktText;<NEW_LINE>String goemetryType = "point";<NEW_LINE>String dimension = "";<NEW...
goemetryType, dimension, coordinates, srsURI);
463,122
final StartSentimentDetectionJobResult executeStartSentimentDetectionJob(StartSentimentDetectionJobRequest startSentimentDetectionJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startSentimentDetectionJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,464,260
public Object execute(VirtualFrame frame) {<NEW_LINE>JSDynamicObject functionObject = JSFrameUtil.getFunctionObject(frame);<NEW_LINE>ResolveElementArgs args = (ResolveElementArgs) getArgs.getValue(functionObject);<NEW_LINE>if (args.alreadyCalled) {<NEW_LINE>return Undefined.instance;<NEW_LINE>}<NEW_LINE>args.alreadyCal...
value = valueNode.execute(frame);
983,741
public void testGetString() throws Exception {<NEW_LINE>byte[] bytes = new byte[] { 0x41, 0x42, 0x43, 0x44, 0x00, 0x45, 0x46, 0x47 };<NEW_LINE>RandomAccessReader reader = createReader(bytes);<NEW_LINE>assertEquals("", reader.getString(0, 0, Charsets.UTF_8));<NEW_LINE>assertEquals("A", reader.getString(0, 1, Charsets.UT...
, 5, Charsets.UTF_8));
1,261,472
public static void horizontal11(Kernel1D_S32 kernel, GrayS32 image, GrayS32 dest) {<NEW_LINE>final int[] dataSrc = image.data;<NEW_LINE>final int[] dataDst = dest.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int k4 = kernel....
int width = image.getWidth();
1,367,701
public static GetMetaCategoryResponse unmarshall(GetMetaCategoryResponse getMetaCategoryResponse, UnmarshallerContext _ctx) {<NEW_LINE>getMetaCategoryResponse.setRequestId(_ctx.stringValue("GetMetaCategoryResponse.RequestId"));<NEW_LINE>getMetaCategoryResponse.setErrorCode(_ctx.stringValue("GetMetaCategoryResponse.Erro...
("GetMetaCategoryResponse.Data.DataEntityList[" + i + "].ParentCategoryId"));
11,009
private String base64Encode(String userInfo) {<NEW_LINE>ClassLoader loader = getClass().getClassLoader();<NEW_LINE>try {<NEW_LINE>Method getEncoderMethod = loader.loadClass<MASK><NEW_LINE>Method encodeMethod = loader.loadClass("java.util.Base64$Encoder").getMethod("encodeToString", byte[].class);<NEW_LINE>Object encode...
("java.util.Base64").getMethod("getEncoder");
1,334,966
public static <L, T1, T2, T3, T4, T5, T6, T7> For7Either<L, T1, T2, T3, T4, T5, T6, T7> For(Either<L, T1> ts1, Either<L, T2> ts2, Either<L, T3> ts3, Either<L, T4> ts4, Either<L, T5> ts5, Either<L, T6> ts6, Either<L, T7> ts7) {<NEW_LINE>Objects.requireNonNull(ts1, "ts1 is null");<NEW_LINE>Objects.requireNonNull(ts2, "ts...
Objects.requireNonNull(ts7, "ts7 is null");
1,335,868
public int compare(final RuleViolation r1, final RuleViolation r2) {<NEW_LINE>int cmp = r1.getFilename().compareTo(r2.getFilename());<NEW_LINE>if (cmp == 0) {<NEW_LINE>cmp = r1.getBeginLine<MASK><NEW_LINE>if (cmp == 0) {<NEW_LINE>cmp = compare(r1.getDescription(), r2.getDescription());<NEW_LINE>if (cmp == 0) {<NEW_LINE...
() - r2.getBeginLine();
126,765
public static // d632906<NEW_LINE>// d632906<NEW_LINE>ScheduleExpression // d632906<NEW_LINE>copyBase(ScheduleExpression schedule) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())<NEW_LINE>Tr.debug(tc, "copy copyBase: " + Util.identity(schedule));<NEW_LINE>// 'schedule' could be a subclass of...
year(schedule.getYear());
747,706
protected void loadFromStreamToKit(StyledDocument doc, InputStream stream, EditorKit kit) throws IOException, BadLocationException {<NEW_LINE>if (guardedEditor == null) {<NEW_LINE>guardedEditor = new BIGES();<NEW_LINE>GuardedSectionsFactory gFactory = GuardedSectionsFactory.find(((DataEditorSupport.Env) env).getMimeTyp...
loadFromStreamToKit(doc, stream, kit);
407,245
public static String usage() {<NEW_LINE>StringWriter sb = new StringWriter();<NEW_LINE>PrintWriter out = new PrintWriter(sb);<NEW_LINE>out.println("Usage: " + CMD + " config initial-token --server SERVER --realm REALM [--delete | TOKEN] [ARGUMENTS]");<NEW_LINE>out.println();<NEW_LINE>out.println("Command to configure a...
+ OS_ARCH.envVar("TOKEN"));
383,501
protected void layoutGrid(PrintElementIndex parentElementIndex, List<JRPrintElement> elements) {<NEW_LINE>boolean createXCuts = (xCuts == null);<NEW_LINE>xCuts = createXCuts ? new CutsInfo() : xCuts;<NEW_LINE>yCuts = nature.isIgnoreLastRow() ? new CutsInfo(0) : new CutsInfo(height);<NEW_LINE>if (// FIXMEXLS left and ri...
= new Grid(rowCount, colCount);
1,493,780
protected void initializeHistogramsAndCachedValues() {<NEW_LINE>int maxTokens = 0;<NEW_LINE>int totalTokens = 0;<NEW_LINE>int seqLen;<NEW_LINE>for (int doc = 0; doc < data.size(); doc++) {<NEW_LINE>FeatureSequence fs = (FeatureSequence) data.get(doc).instance.getData();<NEW_LINE>seqLen = fs.getLength();<NEW_LINE>if (se...
[numTopics][maxTokens + 1];
361,146
public final Logic_factorContext logic_factor() throws RecognitionException {<NEW_LINE>Logic_factorContext _localctx = new <MASK><NEW_LINE>enterRule(_localctx, 18, RULE_logic_factor);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(147);<NEW_LINE>_localctx.arithmetic ...
Logic_factorContext(_ctx, getState());
1,332,779
public void onLoadFinished(Loader<QueryDeparturesResult> loader, @Nullable QueryDeparturesResult departures) {<NEW_LINE>if (departures != null && departures.status == OK && departures.stationDepartures.size() > 0) {<NEW_LINE>for (StationDepartures s : departures.stationDepartures) {<NEW_LINE>adapter.addAll(s.departures...
showErrorView(progressBar, list, errorLayout);
940,707
public void onActivityResult(final JavaFileStorage.FileStorageSetupActivity setupAct, int requestCode, int resultCode, Intent data) {<NEW_LINE>logDebug("ActivityResult: " + requestCode + "/" + resultCode);<NEW_LINE>switch(requestCode) {<NEW_LINE>case REQUEST_SIGN_IN:<NEW_LINE>Activity activity = (Activity) setupAct;<NE...
Activity) setupAct).finish();
633,637
public static List<CachableRenderStatement> computeFluidOutlineToCache(@Nonnull CollidableComponent component, @Nonnull Fluid fluid, double scaleFactor, float outlineWidth) {<NEW_LINE>Map<Fluid, List<CachableRenderStatement>> cache0 = cache.get(component);<NEW_LINE>if (cache0 == null) {<NEW_LINE>cache0 = new HashMap<Fl...
)) == 1 ? width : scaleFactor;
1,731,915
public IdToken create(ClientDetails clientDetails, UaaUser uaaUser, UserAuthenticationData userAuthenticationData) throws IdTokenCreationException {<NEW_LINE>Date expiryDate = tokenValidityResolver.resolve(clientDetails.getClientId());<NEW_LINE><MASK><NEW_LINE>String givenName = getIfScopeContainsProfile(uaaUser.getGiv...
Date issuedAt = timeService.getCurrentDate();
1,046,611
public CreateDirectConnectGatewayAssociationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateDirectConnectGatewayAssociationResult createDirectConnectGatewayAssociationResult = new CreateDirectConnectGatewayAssociationResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = c...
int originalDepth = context.getCurrentDepth();
920,783
public Dialog createDialog(Activity activity, Bundle args) {<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(mapActivity);<NEW_LINE>builder.setTitle(R.string.gps_status);<NEW_LINE>LinearLayout ll = new LinearLayout(activity);<NEW_LINE>final ListView lv = new ListView(activity);<NEW_LINE>final int dp24 = ...
AlertDialog dlg = builder.create();
1,411,615
public static synchronized PhysicalPlan convertFromString(String str) {<NEW_LINE>String[] <MASK><NEW_LINE>switch(words[0]) {<NEW_LINE>case "2":<NEW_LINE>return new MeasurementMNodePlan(words[1], "".equals(words[2]) ? null : words[2], Long.parseLong(words[words.length - 2]), Integer.parseInt(words[words.length - 1]), ne...
words = str.split(",");
548,795
final ListAnomalyGroupSummariesResult executeListAnomalyGroupSummaries(ListAnomalyGroupSummariesRequest listAnomalyGroupSummariesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAnomalyGroupSummariesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
(super.beforeMarshalling(listAnomalyGroupSummariesRequest));
469,345
public String createBeforeSysLabelStart(LogicalVertex logicalVertex, String tag) {<NEW_LINE>if (vertexBeforeLabelList.containsKey(logicalVertex.getId())) {<NEW_LINE>return vertexBeforeLabelList.get(logicalVertex.getId());<NEW_LINE>} else {<NEW_LINE>String labelName = generateLabel(tag);<NEW_LINE>int labelId = getSysLab...
getBeforeRequirementList().add(labelStartBuilder);
194,434
public J visitUnary(J.Unary unary, ExecutionContext ctx) {<NEW_LINE>if (unary.getOperator() == J.Unary.Type.Not && unary.getExpression() instanceof J.Parentheses) {<NEW_LINE>J.Parentheses<?> expr = (J.Parentheses<?>) unary.getExpression();<NEW_LINE>if (expr.getTree() instanceof J.Binary) {<NEW_LINE>J.Binary binary = (J...
withPrefix(unary.getPrefix());
309,153
public void generateBindPose() {<NEW_LINE>VertexBuffer pos = getBuffer(Type.Position);<NEW_LINE>if (pos == null || getBuffer(Type.BoneIndex) == null) {<NEW_LINE>// ignore, this mesh doesn't have positional data<NEW_LINE>// or it doesn't have bone-vertex assignments, so it's not animated<NEW_LINE>return;<NEW_LINE>}<NEW_...
tangents.setUsage(Usage.Stream);
1,132,958
private void initWallet() {<NEW_LINE>log.info("Init wallet");<NEW_LINE><MASK><NEW_LINE>Runnable walletPasswordHandler = () -> {<NEW_LINE>log.info("Wallet password required");<NEW_LINE>bisqSetupListeners.forEach(BisqSetupListener::onRequestWalletPassword);<NEW_LINE>if (p2pNetworkReady.get())<NEW_LINE>p2PNetworkSetup.set...
bisqSetupListeners.forEach(BisqSetupListener::onInitWallet);
1,361,432
private static List<List<Object>> parseExcelData(BridgeInfo info, List<CellRangeAddress> cellRangeAddresses) {<NEW_LINE>List<List<Object>> <MASK><NEW_LINE>List<BridgeInfo.ClassInfo> classInfo = info.getClassInfo();<NEW_LINE>int clzLen = classInfo.size();<NEW_LINE>int firstRow = 1, lastRow = 1;<NEW_LINE>for (int i = 0; ...
result = new ArrayList<>();