idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,118,060
private void updateText() {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>if (myShowSettingsBeforeRunCheckBox.isSelected()) {<NEW_LINE>sb.append(ExecutionBundle.message("configuration.edit.before.run"));<NEW_LINE>}<NEW_LINE>List<BeforeRunTask> tasks = myModel.getItems();<NEW_LINE>if (!tasks.isEmpty()) {<NEW...
name = name.substring(4);
1,065,482
private void applyLabels(Commit commit, Set<Changelog.Labeler> labelers) {<NEW_LINE>for (Changelog.Labeler labeler : labelers) {<NEW_LINE>if (isNotBlank(labeler.getTitle())) {<NEW_LINE>if (labeler.getTitle().startsWith(REGEX_PREFIX)) {<NEW_LINE>String regex = labeler.getTitle().substring(REGEX_PREFIX.length());<NEW_LIN...
add(labeler.getLabel());
1,757,045
public LightweightHint show(@Nonnull final Editor editor, @Nonnull Point p, boolean alignToRight, @Nonnull TooltipGroup group, @Nonnull HintHint intInfo) {<NEW_LINE>LightweightHint hint;<NEW_LINE>final JComponent editorComponent = editor.getComponent();<NEW_LINE>TextRange range = myDocumentFragment.getTextRange();<NEW_...
false, true, true, true);
747,056
public void onServiceStateChange(SyncthingService.State currentState) {<NEW_LINE>if (currentState != ACTIVE) {<NEW_LINE>finish();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!mIsCreateMode) {<NEW_LINE>List<Folder> folders = getApi().getFolders();<NEW_LINE>String passedId = <MASK><NEW_LINE>mFolder = null;<NEW_LINE>for (Fol...
getIntent().getStringExtra(EXTRA_FOLDER_ID);
537,253
public void hash(byte[] hpass, byte[] hsalt, byte[] output) {<NEW_LINE>init_key();<NEW_LINE>ekskey(hsalt, hpass);<NEW_LINE>for (int i = 0; i < 64; i++) {<NEW_LINE>key(hsalt);<NEW_LINE>key(hpass);<NEW_LINE>}<NEW_LINE>int[] buf <MASK><NEW_LINE>System.arraycopy(openbsd_iv, 0, buf, 0, openbsd_iv.length);<NEW_LINE>for (int ...
= new int[openbsd_iv.length];
362,548
public void onCreate() {<NEW_LINE>super.onCreate();<NEW_LINE>instance = this;<NEW_LINE>repeatMode = 0;<NEW_LINE>shuffleMode = 0;<NEW_LINE>notificationCreated = false;<NEW_LINE>playing = false;<NEW_LINE>processingState = AudioProcessingState.idle;<NEW_LINE>mediaSession = new MediaSessionCompat(this, "media-session");<NE...
PowerManager) getSystemService(Context.POWER_SERVICE);
588,389
public boolean visit(MySqlDeclareHandlerStatement x) {<NEW_LINE>String handleType = x.getHandleType().name();<NEW_LINE>print0(ucase ? "DECLARE " : "declare ");<NEW_LINE>print0(ucase ? handleType : handleType.toLowerCase());<NEW_LINE>print0(ucase ? " HANDLER FOR " : " handler for ");<NEW_LINE>for (int i = 0; i < x.getCo...
getSpStatement().accept(this);
1,667,003
public boolean visit(MethodDeclaration node) {<NEW_LINE>if (m_client.getInterrupted()) {<NEW_LINE>m_contextStack.push<MASK><NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>DeclName symbolName = DeclNameResolver.getQualifiedDeclName(node, m_filePath, m_compilationUnit);<NEW_LINE>Range signatureRange = getRange(node);<NEW_LIN...
(new ArrayList<>());
1,638,760
private String buildHTMLText(ValidatableLine header, String body, ValidatableLine info, boolean trim) {<NEW_LINE>StringBuilder buffy = new StringBuilder();<NEW_LINE>TextLine headerLine = (TextLine) header;<NEW_LINE>String headerText = header.getText();<NEW_LINE>if (trim) {<NEW_LINE>headerText = StringUtilities.trimMidd...
infoText, infoLine.getTextColor());
82,227
public void testTaskCancelsAnotherTask(PrintWriter out) throws Exception {<NEW_LINE>DBIncrementTask taskA = new DBIncrementTask("testTaskCancelsAnotherTask-A");<NEW_LINE>taskA.getExecutionProperties().put(AutoPurge.PROPERTY_NAME, AutoPurge.ALWAYS.toString());<NEW_LINE>TaskStatus<?> statusA = scheduler.schedule((Runnabl...
throw new Exception("Task C did not run in a timely manner. " + statusC);
58,630
protected Map<KafkaTopicPartition, Long> fetchOffsetsWithTimestamp(Collection<KafkaTopicPartition> partitions, long timestamp) {<NEW_LINE>Map<TopicPartition, Long> partitionOffsetsRequest = new HashMap<<MASK><NEW_LINE>for (KafkaTopicPartition partition : partitions) {<NEW_LINE>partitionOffsetsRequest.put(new TopicParti...
>(partitions.size());
1,108,129
private Mono<PagedResponse<CustomLocationInner>> listSinglePageAsync() {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<N...
)).readOnly()));
868,278
public Object calculate(Context ctx) {<NEW_LINE>int flags = 0;<NEW_LINE>if (option != null) {<NEW_LINE>if (option.indexOf('c') != -1)<NEW_LINE>flags |= Pattern.CASE_INSENSITIVE;<NEW_LINE>if (option.indexOf('u') != -1)<NEW_LINE>flags |= Pattern.UNICODE_CASE;<NEW_LINE>}<NEW_LINE>if (param == null || !param.isLeaf()) {<NE...
getLeafExpression().calculate(ctx);
496,521
public void reset(IntVar[] variables) {<NEW_LINE>this.vars = variables;<NEW_LINE>int n = vars.length;<NEW_LINE>if (intervals == null || intervals.length < n) {<NEW_LINE>t = new int[2 * n + 2];<NEW_LINE>d = new <MASK><NEW_LINE>h = new int[2 * n + 2];<NEW_LINE>bounds = new int[2 * n + 2];<NEW_LINE>intervals = new Interva...
int[2 * n + 2];
724,860
public void encode(T value, OutputStream outStream) throws IOException {<NEW_LINE>final KryoState kryoState = KryoState.get(this);<NEW_LINE>if (value == null) {<NEW_LINE>throw new CoderException("Cannot encode a null value.");<NEW_LINE>}<NEW_LINE>final OutputChunked outputChunked = kryoState.getOutputChunked();<NEW_LIN...
(EOFException) e.getCause();
422,211
public static String exitCondition(String findTag) {<NEW_LINE>int pos = findTag.indexOf('}');<NEW_LINE>if (pos == -1) {<NEW_LINE>return "e.tagName == '" <MASK><NEW_LINE>}<NEW_LINE>int caretPos = findTag.indexOf('^');<NEW_LINE>boolean contains = caretPos != -1 && caretPos < pos;<NEW_LINE>if (!contains) {<NEW_LINE>caretP...
+ findTag.toUpperCase() + "'";
1,451,181
public void visit(SwitchInstruction zwitch) {<NEW_LINE>LLVMExpressionNode cond = symbols.<MASK><NEW_LINE>int[] successors = new int[zwitch.getCaseCount() + 1];<NEW_LINE>for (int i = 0; i < successors.length - 1; i++) {<NEW_LINE>successors[i] = zwitch.getCaseBlock(i).getBlockIndex();<NEW_LINE>}<NEW_LINE>successors[succe...
resolve(zwitch.getCondition());
908,892
private boolean isSameCode(final Dex oldDex, final Dex newDex, int oldCodeOffset, int newCodeOffset) {<NEW_LINE>if (oldCodeOffset == 0 && newCodeOffset == 0) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (oldCodeOffset == 0 || newCodeOffset == 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Code oldCode = oldDex.openS...
catchHandlers, newCode.catchHandlers, insnComparator);
1,350,748
public static <T extends ImageGray<T>> ImageDistort<T, T> rectifyImage(FMatrixRMaj rectify, BorderType borderType, Class<T> imageType) {<NEW_LINE>boolean skip = borderType == BorderType.SKIP;<NEW_LINE>if (skip) {<NEW_LINE>borderType = BorderType.EXTENDED;<NEW_LINE>}<NEW_LINE>InterpolatePixelS<T> interp = FactoryInterpo...
CommonOps_FDRM.invert(rectify, rectifyInv);
1,805,385
protected BrokeredIdentityContext exchangeExternalUserInfoValidationOnly(EventBuilder event, MultivaluedMap<String, String> params) {<NEW_LINE>String subjectToken = params.getFirst(OAuth2Constants.SUBJECT_TOKEN);<NEW_LINE>if (subjectToken == null) {<NEW_LINE>event.detail(Details.REASON, OAuth2Constants.SUBJECT_TOKEN + ...
"invalid token type", Response.Status.BAD_REQUEST);
752,596
private String download() throws IOException, InterruptedException {<NEW_LINE>Reporter.report.clearConsole();<NEW_LINE>if (!downloadOnly || !downloader.readyForDownload()) {<NEW_LINE>for (var stages = 0; stages < downloader.getNumberOfStages(); stages++) {<NEW_LINE>if (stopRequested)<NEW_LINE>return S.get("FPGAInterrup...
.getStageMessage(stages), currentStage);
1,528,112
public static void main(String[] args) {<NEW_LINE>Exercise24_NonOverlappingIntervalSearch nonOverlappingIntervalSearch = new Exercise24_NonOverlappingIntervalSearch();<NEW_LINE>Interval interval1 = nonOverlappingIntervalSearch.new Interval(1, 1643, 2033);<NEW_LINE>Interval interval2 = nonOverlappingIntervalSearch.new I...
.findInterval(8122) + " Expected: -1");
78,159
public static ConcurrentHashMap<String, String> string2map(String string, final String separator) {<NEW_LINE>// this can be used to parse a Map.toString() into a Map again<NEW_LINE>if (string == null)<NEW_LINE>return null;<NEW_LINE>final ConcurrentHashMap<String, String> map = new ConcurrentHashMap<String, String>();<N...
0, pos).trim();
346,954
private void enableResolved(BuildConfiguration config, MacroOption option, String optionArg, HashSet<MacroOption> addedCheck, MacroOption context, Consumer<EnabledOption> enabler) {<NEW_LINE>if (addedCheck.contains(option)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>addedCheck.add(option);<NEW_LINE>EnabledOption enabledOpt...
enabledOption.getProperty(config, "DefaultArg");
1,021,174
final GetComponentResult executeGetComponent(GetComponentRequest getComponentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getComponentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
27,381
private static void addPropertiesFrom(Class<?> domainType, Class<?> returnedType, ProjectionFactory factory, Map<PropertyPath, Boolean> filteredProperties, String inputProperty, Neo4jMappingContext mappingContext) {<NEW_LINE>ProjectionInformation projectionInformation = factory.getProjectionInformation(returnedType);<N...
> propertyType = propertyPath.getLeafType();
303,666
protected SqlShow checkAndRewriteShow(SqlShow show) {<NEW_LINE>if (show instanceof SqlShowCreateTable) {<NEW_LINE>final SqlShowCreateTable createTable = (SqlShowCreateTable) show;<NEW_LINE>final String tableName;<NEW_LINE>if (createTable.getTableName() instanceof SqlIdentifier) {<NEW_LINE>final SqlIdentifier identifier...
getExecutionContext().getSchemaManager(schemaName);
1,706,118
private CostDetailAdjustment recalculateCostDetailAmount(final CostDetail costDetail, final CurrentCost currentCost) {<NEW_LINE>final CostDetailPreviousAmounts previousAmounts = CostDetailPreviousAmounts.of(currentCost);<NEW_LINE>final Quantity qty = costDetail.getQty();<NEW_LINE>final CostAmount amt;<NEW_LINE>//<NEW_L...
qty, utils.getQuantityUOMConverter());
122,224
private static Page filter(Page page, Block mask) {<NEW_LINE>int positions = mask.getPositionCount();<NEW_LINE>if (positions > 0 && mask instanceof RunLengthEncodedBlock) {<NEW_LINE>// must have at least 1 position to be able to check the value at position 0<NEW_LINE>if (!mask.isNull(0) && BOOLEAN.getBoolean(mask, 0)) ...
boolean mayHaveNull = mask.mayHaveNull();
856,678
private boolean containsNonASCIIStringValues(int[] include, int[] exclude, int fromIndex, int toIndex, Attributes selection) {<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE>int tag = tags[i];<NEW_LINE>Object val = values[i];<NEW_LINE>if ((include == null || Arrays.binarySearch(include, fromIndex, toIndex, tag) >= ...
selection.getNestedDataset(tag) : null;
1,367,997
void transpileTry(Node n, @Nullable TranspilationContext.Case breakCase) {<NEW_LINE>Node tryBlock = n.removeFirstChild();<NEW_LINE>Node catchBlock = n.removeFirstChild();<NEW_LINE>Node finallyBlock = n.removeFirstChild();<NEW_LINE>TranspilationContext.Case catchCase = catchBlock.hasChildren() ? context.createCase() : n...
.getFirstFirstChild().detach();
547,420
public static ListBarcodesResponse unmarshall(ListBarcodesResponse listBarcodesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listBarcodesResponse.setRequestId(_ctx.stringValue("ListBarcodesResponse.RequestId"));<NEW_LINE>listBarcodesResponse.setPageSize(_ctx.integerValue("ListBarcodesResponse.PageSize"));<NEW_LINE>lis...
("ListBarcodesResponse.Barcodes[" + i + "].ColorId"));
1,442,292
protected static void writeContext(XContentBuilder builder, Set<Map<String, String>> contexts, String[] languages) throws IOException {<NEW_LINE>final Map<String, Set<String>> multimap = new HashMap<>();<NEW_LINE>for (Map<String, String> context : contexts) {<NEW_LINE>if (context.get("name") != null) {<NEW_LINE>multima...
(context.get("name"));
734,425
private static void addMethods(String fqn, SrcClass clazz, ClassNode classNode, IFile file) {<NEW_LINE>for (ClassFunctionNode node : classNode.getChildren(ClassFunctionNode.class)) {<NEW_LINE>AbstractSrcMethod<SrcMethod> srcMethod = new SrcMethod().name(node.getName()).modifiers(Modifier.PUBLIC | (node.isStatic() ? Mod...
toParamList(parameters)) + ");");
712,062
private void handleRpcStreamClosed(Status error) {<NEW_LINE>checkArgument(!error.isOk(), "unexpected OK status");<NEW_LINE>if (closed) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>logger.log(XdsLogLevel.ERROR, "ADS stream closed with status {0}: {1}. Cause: {2}", error.getCode(), error.getDescription(), error.getCause());<NE...
.elapsed(TimeUnit.NANOSECONDS));
824,973
public static DescribeRDSPerformanceResponse unmarshall(DescribeRDSPerformanceResponse describeRDSPerformanceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRDSPerformanceResponse.setRequestId<MASK><NEW_LINE>describeRDSPerformanceResponse.setSuccess(_ctx.booleanValue("DescribeRDSPerformanceResponse.Success"));<N...
(_ctx.stringValue("DescribeRDSPerformanceResponse.RequestId"));
1,417,796
private Object[] generateTemplateWithOroRegex(String rawTemplate) {<NEW_LINE>List<String> pieces = new ArrayList<>();<NEW_LINE>// String or Integer<NEW_LINE>List<Object> combined = new ArrayList<>();<NEW_LINE>PatternMatcher matcher = JMeterUtils.getMatcher();<NEW_LINE>Util.split(pieces, matcher, templatePattern, rawTem...
matcher.contains(input, templatePattern);
540,266
public static void resolveFields(SearchContext searchContext, String indexMapping) throws DorisEsException {<NEW_LINE>JSONObject properties = EsUtil.getMappingProps(searchContext.sourceIndex(), indexMapping, searchContext.type());<NEW_LINE>for (Column col : searchContext.columns()) {<NEW_LINE><MASK><NEW_LINE>// if colu...
String colName = col.getName();
437,535
private void check() {<NEW_LINE>Map nodeMap = new HashMap();<NEW_LINE>Children children = getChildren();<NEW_LINE>Node[] nodes = children.getNodes();<NEW_LINE>for (int i = 0; i < nodes.length; i++) {<NEW_LINE>Node node = nodes[i];<NEW_LINE>nodeMap.put(((SectionNode) node).getKey(), node);<NEW_LINE>}<NEW_LINE>Ejb[] ejbs...
() != node.getKey();
933,593
private void buildMappings(final CronDefinition from, final CronDefinition to) {<NEW_LINE>final Map<CronFieldName, FieldDefinition> sourceFieldDefinitions = getFieldDefinitions(from);<NEW_LINE>final Map<CronFieldName, FieldDefinition> destFieldDefinitions = getFieldDefinitions(to);<NEW_LINE>boolean startedDestMapping =...
destinationFieldDefinition = destFieldDefinitions.get(name);
1,049,092
protected WebView createViewInstance(ThemedReactContext reactContext) {<NEW_LINE>ReactWebView webView = createReactWebViewInstance(reactContext);<NEW_LINE>webView.setWebChromeClient(new WebChromeClient() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean onConsoleMessage(ConsoleMessage message) {<NEW_LINE>if (React...
getSettings().setDisplayZoomControls(false);
1,586,139
public void onActivityResult(int requestCode, int resultCode, Intent data) {<NEW_LINE>super.onActivityResult(requestCode, resultCode, data);<NEW_LINE>if (resultCode == RESULT_OK) {<NEW_LINE>Uri selectedImageUri = data.getData();<NEW_LINE>try {<NEW_LINE>InputStream imageStream = getActivity().getContentResolver().openIn...
bitmap = BitmapFactory.decodeStream(imageStream);
141,776
private List<Indexable> buildIndexables(List<MonitorQuery> updates) {<NEW_LINE>List<Indexable> indexables = new ArrayList<>();<NEW_LINE>for (MonitorQuery mq : updates) {<NEW_LINE>if (serializer != null && mq.getQueryString() == null) {<NEW_LINE>throw new IllegalArgumentException("Cannot add a MonitorQuery with a null s...
matchQuery, mq.getMetadata());
1,682,369
public void activityChanged(Activity activity, boolean removed) {<NEW_LINE>if (filter != null && !filter.accept(activity)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// System.out.println( activity.getString() + "/" + type + "/" + activity.getCurrentState().getString());<NEW_LINE>if (activity.isQueued()) {<NEW_LINE>// igno...
activity_map.put(activity, details);
132,098
private void calculatePosition(Rectangle2D textBounds) {<NEW_LINE>double textHeight = textBounds.getHeight();<NEW_LINE>double textWidth = textBounds.getWidth();<NEW_LINE>double widthAdjustment = textWidth + styler.getChartButtonMargin() * 3;<NEW_LINE>double heightAdjustment = textHeight + styler.getChartButtonMargin() ...
.getX() + boundsWidth - widthAdjustment;
695,986
public void listDetectionConfigurationsWithOptions() {<NEW_LINE>// BEGIN: com.azure.ai.metricsadvisor.administration.MetricsAdvisorAdministrationAsyncClient.listDetectionConfigs#String-ListDetectionConfigsOptions<NEW_LINE>final String metricId = "0b836da8-10e6-46cd-8f4f-28262e113a62";<NEW_LINE>metricsAdvisorAdminAsyncC...
"Description: %s%n", detectionConfig.getDescription());
198,270
protected int executeCommand() throws CommandException, CommandValidationException {<NEW_LINE>try {<NEW_LINE>prepareProcessExecutor();<NEW_LINE>CLIProcessExecutor cpe = new CLIProcessExecutor();<NEW_LINE>cpe.execute("pingDatabaseCmd", pingDatabaseCmd(false), true);<NEW_LINE>if (cpe.exitValue() > 0) {<NEW_LINE>// if pin...
, dbManager.getLogFileName()));
1,538,356
public Folder createWithFolder(BaseCreateParam createParam) {<NEW_LINE>// check unique<NEW_LINE>DatachartCreateParam param = (DatachartCreateParam) createParam;<NEW_LINE>if (!CollectionUtils.isEmpty(folderMapper.checkVizName(param.getOrgId(), param.getParentId(), param.getName()))) {<NEW_LINE>Exceptions.tr(ParamExcepti...
setSubType(param.getSubType());
1,662,943
final CreateCustomLineItemResult executeCreateCustomLineItem(CreateCustomLineItemRequest createCustomLineItemRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createCustomLineItemRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
642,546
public void reduce(Iterable<T> values, Collector<T> out) throws Exception {<NEW_LINE>GetFirstIterator iterator = new GetFirstIterator(values.iterator());<NEW_LINE>Double fraction = sampleRatio;<NEW_LINE>if (null == fraction || fraction < 0) {<NEW_LINE>Row first = (Row) iterator.getFirst();<NEW_LINE>if (null != first) {...
.getRuntimeContext().getIndexOfThisSubtask();
62,977
private void addMBeanListener() {<NEW_LINE>listener = new NotificationListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void handleNotification(Notification notification, Object handback) {<NEW_LINE>MBeanServerNotification mbsn = (MBeanServerNotification) notification;<NEW_LINE>String objectName = mbsn.getMBean...
tc, "MBean Unregistered [" + objectName + "]");
110,285
public boolean eIsSet(int featureID) {<NEW_LINE>switch(featureID) {<NEW_LINE>case ModelPackage.MSTEPPER_STATE__LOGGER:<NEW_LINE>return LOGGER_EDEFAULT == null ? logger != null : !LOGGER_EDEFAULT.equals(logger);<NEW_LINE>case ModelPackage.MSTEPPER_STATE__UID:<NEW_LINE>return UID_EDEFAULT == null ? uid != null : !UID_EDE...
: !SUB_ID_EDEFAULT.equals(subId);
1,302,739
public static ListDataSourceResponse unmarshall(ListDataSourceResponse listDataSourceResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDataSourceResponse.setCode(_ctx.stringValue("ListDataSourceResponse.code"));<NEW_LINE>listDataSourceResponse.setMessage(_ctx.stringValue("ListDataSourceResponse.message"));<NEW_LINE>li...
("ListDataSourceResponse.result[" + i + "].meta.bucketName"));
160,997
public ListManagedDataIdentifiersResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListManagedDataIdentifiersResult listManagedDataIdentifiersResult = new ListManagedDataIdentifiersResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = conte...
JsonToken token = context.getCurrentToken();
509,493
private static void multipartUpload(S3Client s3, String bucketName, String key) {<NEW_LINE>int mB = 1024 * 1024;<NEW_LINE>// First create a multipart upload and get the upload id<NEW_LINE>CreateMultipartUploadRequest createMultipartUploadRequest = CreateMultipartUploadRequest.builder().bucket(bucketName).key(key).build...
partNumber(1).build();
742,861
public void show() {<NEW_LINE>myWindow = Window.create(myProject.getName(), WindowOptions.builder().disableResize().build());<NEW_LINE>myStatusBar = new UnifiedStatusBarImpl(myProject.getApplication(), null);<NEW_LINE>Disposer.register(this, myStatusBar);<NEW_LINE>myStatusBar.install(this);<NEW_LINE>myRootView.setStatu...
Window) TargetVaddin.to(myWindow);
253,029
private DetectionReport buildDetectionReport(TargetInfo targetInfo, NetworkService vulnerableNetworkService) {<NEW_LINE>return DetectionReport.newBuilder().setTargetInfo(targetInfo).setNetworkService(vulnerableNetworkService).setDetectionTimestamp(Timestamps.fromMillis(Instant.now(utcClock).toEpochMilli())).setDetectio...
("Go to the oracle official website to download the latest weblogic patch.")).build();
747,640
public static DescribeLiveDomainRealTimeHttpCodeDataResponse unmarshall(DescribeLiveDomainRealTimeHttpCodeDataResponse describeLiveDomainRealTimeHttpCodeDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeLiveDomainRealTimeHttpCodeDataResponse.setRequestId(_ctx.stringValue("DescribeLiveDomainRealTimeHttpCodeData...
(_ctx.stringValue("DescribeLiveDomainRealTimeHttpCodeDataResponse.StartTime"));
353,071
private HttpRequest.Builder updatePetRequestBuilder(Pet pet) throws ApiException {<NEW_LINE>// verify the required parameter 'pet' is set<NEW_LINE>if (pet == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'pet' when calling updatePet");<NEW_LINE>}<NEW_LINE>HttpRequest.Builder localVarReque...
localVarRequestBuilder.header("Accept", "application/json");
85,026
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see<NEW_LINE>* com.amazonaws.services.s3.AmazonS3#listMultipartUploads(com.amazonaws<NEW_LINE>* .services.s3.model.ListMultipartUploadsRequest)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public MultipartUploadListing listMultipartUploads(ListMultipartUploadsRequest listMultipartUplo...
listMultipartUploadsRequest.getBucketName(), "The bucket name parameter must be specified when listing multipart uploads");
700,313
public static GF2Vector[] decryptionPrimitive(BCMcElieceCCA2PrivateKey privKey, GF2Vector c) {<NEW_LINE>// obtain values from private key<NEW_LINE>int k = privKey.getK();<NEW_LINE>Permutation p = privKey.getP();<NEW_LINE><MASK><NEW_LINE>PolynomialGF2mSmallM gp = privKey.getGoppaPoly();<NEW_LINE>GF2Matrix h = privKey.ge...
GF2mField field = privKey.getField();
1,850,678
public DataCollector createDataCollector(CheckerCategory checker, Application application, long timeSlotEndTime) {<NEW_LINE>switch(checker.getDataCollectorCategory()) {<NEW_LINE>case RESPONSE_TIME:<NEW_LINE>return new ResponseTimeDataCollector(DataCollectorCategory.RESPONSE_TIME, application, hbaseMapResponseTimeDao, t...
fileDescriptorDao, hbaseApplicationIndexDao, timeSlotEndTime, SLOT_INTERVAL_FIVE_MIN);
1,550,590
public Object visitCall(RexCall call) {<NEW_LINE>SqlAggFunction aggFunction = null;<NEW_LINE>switch(call.getKind()) {<NEW_LINE>case SUM:<NEW_LINE>aggFunction = new <MASK><NEW_LINE>break;<NEW_LINE>case SUM0:<NEW_LINE>aggFunction = new SqlSumEmptyIsZeroAggFunction();<NEW_LINE>break;<NEW_LINE>case MAX:<NEW_LINE>case MIN:<...
SqlSumAggFunction(call.getType());
486,634
public Node parse(ParserMode mode, int optimizeLevel, ParserErrorCallback errors, Source source, Frame currentFrame, String[] argumentNames) {<NEW_LINE>if (logFiles) {<NEW_LINE>if (source.getPath() == null) {<NEW_LINE>System.out.println("Parsing source without path " + source.getCharacters().length());<NEW_LINE>CharSeq...
).toString() + "...");
430,886
protected byte[] encryptBytes(int keyIndex, byte[] clearBytes) {<NEW_LINE>Cipher cipher = encryptingCiphers[keyIndex].get();<NEW_LINE>byte[] messageBytes = new byte[NONCE_LENGTH + magicNumber.length + clearBytes.length];<NEW_LINE>byte[] nonce = new byte[NONCE_LENGTH];<NEW_LINE>nonceGenerator.<MASK><NEW_LINE>System.arra...
get().nextBytes(nonce);
726,040
private Object superAroundInvoke(InvocationContext inv) throws Exception {<NEW_LINE><MASK><NEW_LINE>results.addAroundInvoke(CLASS_NAME, "superAroundInvoke");<NEW_LINE>// Validate and update context data.<NEW_LINE>Map<String, Object> map = inv.getContextData();<NEW_LINE>String data;<NEW_LINE>if (map.containsKey("AroundI...
ResultsLocal results = ResultsLocalBean.getSFBean();
346,481
private List<String> findRealResources() {<NEW_LINE>// we need to check for web resources in order to get welcome files to work<NEW_LINE>// this kinda sucks<NEW_LINE>Set<String> <MASK><NEW_LINE>for (java.nio.file.Path resource : staticResouceRoots) {<NEW_LINE>if (resource != null && Files.exists(resource)) {<NEW_LINE>t...
knownFiles = new HashSet<>();
42,366
private void internalPaintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) {<NEW_LINE>BufferedImage leftImg = null;<NEW_LINE>BufferedImage middleImg = null;<NEW_LINE>BufferedImage rightImg = null;<NEW_LINE>Graphics2D g2 = (Graphics2D) g;<NEW_LINE>AntialiasingMana...
leftImg, x, y, null);
1,315,890
public void handle(AsyncChannel channel, Frame frame) {<NEW_LINE>WSHandler task = new WSHandler(channel, frame, errorLogger, eventLogger, eventNames);<NEW_LINE>// messages from the same client are handled orderly<NEW_LINE>LinkingRunnable job = new LinkingRunnable(task);<NEW_LINE>LinkingRunnable old = channel.serialTask...
eventLogger.log(eventNames.serverStatus503Todo);
1,315,078
static TBigInteger evenModPow(TBigInteger base, TBigInteger exponent, TBigInteger modulus) {<NEW_LINE>// PRE: (base > 0), (exponent > 0), (modulus > 0) and (modulus even)<NEW_LINE>// STEP 1: Obtain the factorization 'modulus'= q * 2^j.<NEW_LINE><MASK><NEW_LINE>TBigInteger q = modulus.shiftRight(j);<NEW_LINE>// STEP 2: ...
int j = modulus.getLowestSetBit();
1,374,645
public Source resolve(String fname, String base) throws TransformerException {<NEW_LINE>try {<NEW_LINE>URL resource;<NEW_LINE>if (fname.endsWith(".xsl") || fname.endsWith(".xml")) {<NEW_LINE>// Force XSL and XML files to be located in the 'xsl' subdirectory.<NEW_LINE>String file = fname.substring(0, 5).equals("file:") ...
resource = fileProvider.fromBundle(file);
994,005
final DeleteSnapshotResult executeDeleteSnapshot(DeleteSnapshotRequest deleteSnapshotRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteSnapshotRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<DeleteSnaps...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,765,545
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(targetPointer.getFirst(game, source));<NEW_LINE>Permanent sourcePermanent = game.getPermanentOrLKIBattlefield(source.getSourceId());<NEW_LINE>if (player != null && !player.getHand().isEmpty()) {<NEW_LINE>Cards revealed = new Cards...
PayLifeCost cost = new PayLifeCost(lifeToPay);
143,852
private static // given placement info.<NEW_LINE>LinkedHashSet<PlacementIndexes> findPlacementsOfAZUuid(Map<UUID, Integer> azUuids, Cluster cluster) {<NEW_LINE>LinkedHashSet<PlacementIndexes> placements = new LinkedHashSet<>();<NEW_LINE>CloudType cloudType = cluster.userIntent.providerType;<NEW_LINE>String instanceType...
(aIdx, rIdx, cIdx));
280,866
void prepare() {<NEW_LINE>if (useManagedStorageAccount) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>DiagnosticsProfile diagnosticsProfile = this.vmInner().diagnosticsProfile();<NEW_LINE>if (diagnosticsProfile == null || diagnosticsProfile.bootDiagnostics() == null || diagnosticsProfile.bootDiagnostics().storageUri() != null...
this.vmImpl.addDependency(storageAccountCreatable);
1,457,468
/*<NEW_LINE>* Classes but not interfaces should have ACC_SUPER set<NEW_LINE>* See http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.7.6-300-D.2-5<NEW_LINE>* for what flags are allowed depending on the fact we are writing the inner class table<NEW_LINE>* or the class itself<NEW_LINE>*/<NEW_LINE>privat...
modifiers = fixInterfaceModifiers(classNode, modifiers);
197,561
private void loadNode1150() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.OpenFileMode_EnumValues, new QualifiedName(0, "EnumValues"), new LocalizedText("en", "EnumValues"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataV...
this.nodeManager.addNode(node);
1,675,785
// Checks whether a given network service is vulnerable. Real detection logic implemented here.<NEW_LINE>private boolean isServiceVulnerable(NetworkService networkService) {<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>// We assume an example.py script exists which takes target address, target port and output<NEW_LINE>// fi...
NetworkEndpoint targetEndpoint = networkService.getNetworkEndpoint();
1,441,094
public void processProperties(KrollDict d) {<NEW_LINE>if (d.containsKey(TiC.PROPERTY_CURRENT_PAGE)) {<NEW_LINE>int page = TiConvert.toInt(d, TiC.PROPERTY_CURRENT_PAGE);<NEW_LINE>if (page > 0) {<NEW_LINE>setCurrentPage(page);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (d.containsKey(TiC.PROPERTY_SHOW_PAGING_CONTROL)) {<NEW_LINE>...
PROPERTY_OVER_SCROLL_MODE), View.OVER_SCROLL_ALWAYS));
561,668
public List<TagDto> findByCriteria(TagCriteria criteria, SortCriteria sortCriteria) {<NEW_LINE>Map<String, Object> parameterMap = new HashMap<>();<NEW_LINE>List<String> <MASK><NEW_LINE>StringBuilder sb = new StringBuilder("select distinct t.TAG_ID_C as c0, t.TAG_NAME_C as c1, t.TAG_COLOR_C as c2, t.TAG_IDPARENT_C as c3...
criteriaList = new ArrayList<>();
1,304,755
public CompoundTag translateToBedrock(com.github.steveice10.opennbt.tag.builtin.CompoundTag javaTag) {<NEW_LINE>CompoundTagBuilder root = CompoundTagBuilder.builder();<NEW_LINE>if (!javaTag.contains("display")) {<NEW_LINE>CompoundTagBuilder display = CompoundTagBuilder.builder();<NEW_LINE>if (javaTag.contains("name")) ...
class, list.getValue());
1,022,980
public void loadConfig(StringBuilder strBuff) throws LoadMetaException {<NEW_LINE>long totalCnt = 0L;<NEW_LINE>logger.info("[ZK Impl] load group control configure start...");<NEW_LINE>// clear cached data<NEW_LINE>clearCachedData();<NEW_LINE>// reload data from zk<NEW_LINE>List<String> childNodes = ZKUtil.getChildren(z...
0, strBuff.length());
920,401
private Throwable createException(Iterator<ErrorHolder> iterator) {<NEW_LINE>if (!iterator.hasNext()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>ExceptionFactory exceptionFactory = intToFactory.get(errorHolder.getErrorCode());<NEW_LINE>Throwable throwable = null;<NEW_LINE>if (exceptionFactory == null) ...
ErrorHolder errorHolder = iterator.next();
168,663
private static void printTrace(Throwable self, StackTraceElement[] trace, int limit, PrintWriter s) {<NEW_LINE>if (self instanceof PolyglotException) {<NEW_LINE>int i = 0;<NEW_LINE>for (PolyglotException.StackFrame stackFrame : ((PolyglotException) self).getPolyglotStackTrace()) {<NEW_LINE>if (i++ == limit) {<NEW_LINE>...
s.println("\tat " + stackFrame);
1,283,756
public Frame fetch(StatementHandle h, long offset, int fetchMaxRowCount) throws NoSuchStatementException {<NEW_LINE>final CalciteConnectionImpl calciteConnection = getConnection();<NEW_LINE>CalciteServerStatement stmt = calciteConnection.server.getStatement(h);<NEW_LINE>final Signature signature = stmt.getSignature();<...
List<Object>>());
1,550,121
public ApiResponse<List<User>> groupsGetGroupUsersWithHttpInfo(String id) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'id' is set<NEW_LINE>if (id == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/...
throw new ApiException(400, "Missing the required parameter 'id' when calling groupsGetGroupUsers");
1,447,939
public Response serve(IHTTPSession session) {<NEW_LINE>final String cmdUri = session.getUri();<NEW_LINE>final HashMap<String, String> map = new <MASK><NEW_LINE>try {<NEW_LINE>session.parseBody(map);<NEW_LINE>} catch (IOException e) {<NEW_LINE>e.printStackTrace();<NEW_LINE>} catch (ResponseException e) {<NEW_LINE>e.prin...
HashMap<String, String>();
424,207
Stream<Edge> generateRules_PostInVrf_PreOutVrf(Predicate<String> includedNode, StateExprConstructor2 postInVrf, StateExprConstructor2 preOutVrf) {<NEW_LINE>return _vrfAcceptBDDs.entrySet().stream().filter(byNodeEntry -> includedNode.test(byNodeEntry.getKey())).flatMap(nodeEntry -> nodeEntry.getValue().entrySet().stream...
BDD acceptBDD = vrfEntry.getValue();
1,036,253
public void init() {<NEW_LINE>model = new DefaultDiagramModel();<NEW_LINE>model.setMaxConnections(-1);<NEW_LINE>FlowChartConnector connector = new FlowChartConnector();<NEW_LINE>connector.setPaintStyle("{stroke:'#C7B097',strokeWidth:3}");<NEW_LINE>model.setDefaultConnector(connector);<NEW_LINE>Element start = new Eleme...
new BlankEndPoint(EndPointAnchor.LEFT));
388,584
final ListTestGridSessionsResult executeListTestGridSessions(ListTestGridSessionsRequest listTestGridSessionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTestGridSessionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,224,320
public static int editDistance(String word1, String word2, boolean caseSensitive) {<NEW_LINE>if (!caseSensitive) {<NEW_LINE>word1 = word1.toLowerCase();<NEW_LINE>word2 = word2.toLowerCase();<NEW_LINE>}<NEW_LINE>int len1 = word1.length();<NEW_LINE><MASK><NEW_LINE>// len1+1, len2+1, because finally return dp[len1][len2]<...
int len2 = word2.length();
233,345
private static Path prepareSandboxRunner(FileSystem fs, RemoteWorkerOptions remoteWorkerOptions) throws InterruptedException {<NEW_LINE>if (OS.getCurrent() != OS.LINUX) {<NEW_LINE>logger.atSevere().log("Sandboxing requested, but it is currently only available on Linux");<NEW_LINE>System.exit(1);<NEW_LINE>}<NEW_LINE>if ...
getParentDirectory().getPathFile());
1,181,927
public void mousePressed(MouseEvent e) {<NEW_LINE>if (SwingUtilities.isLeftMouseButton(e)) {<NEW_LINE>ZonePoint sp = getPoint(e);<NEW_LINE>if (rectangle == null) {<NEW_LINE>rectangle = new Rectangle(sp.x, sp.y, sp.x, sp.y);<NEW_LINE>} else {<NEW_LINE>rectangle.getEndPoint().x = sp.x;<NEW_LINE>rectangle.getEndPoint().y ...
rectangle.getEndPoint().y);
1,819,436
final SendActivationCodeResult executeSendActivationCode(SendActivationCodeRequest sendActivationCodeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(sendActivationCodeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "SendActivationCode");
326,522
public void run() {<NEW_LINE><MASK><NEW_LINE>ChannelConfig config = channel.config();<NEW_LINE>if (!config.isAutoRead() && isHandlerActive(ctx)) {<NEW_LINE>// If AutoRead is False and Active is True, user make a direct setAutoRead(false)<NEW_LINE>// Then Just reset the status<NEW_LINE>if (logger.isDebugEnabled()) {<NEW...
Channel channel = ctx.channel();
718,144
public boolean applyFirewallRules(Network network, List<? extends FirewallRule> rules) throws ResourceUnavailableException {<NEW_LINE>// Find the external firewall in this zone<NEW_LINE>long zoneId = network.getDataCenterId();<NEW_LINE>DataCenterVO zone = _dcDao.findById(zoneId);<NEW_LINE>ExternalFirewallDeviceVO fwDev...
defaultEgressPolicy, rule.getType());
714,130
public void merge(DataSourceDefinition annotation, Class<?> instanceClass, Member member) throws InjectionException {<NEW_LINE>final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (isTraceOn && tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "merge: name=" + <MASK><NEW_LINE>if (member != null) {<NEW_L...
getJndiName() + ", " + annotation);
1,221,614
public void execute(final XmlNodeTrx wtx, final Visitor<XmlNodeTrx> visitor, final Map<Path, org.sirix.fs.FileSystemPath> index, final Path child) throws SirixException {<NEW_LINE>checkNotNull(wtx);<NEW_LINE>checkNotNull(child);<NEW_LINE>checkNotNull(visitor);<NEW_LINE>checkNotNull(index);<NEW_LINE>checkArgument(wtx.ge...
getFileName().toString());
1,799,591
public static void execute(ManagerService service, boolean isClear) {<NEW_LINE>ByteBuffer buffer = service.allocate();<NEW_LINE>// write header<NEW_LINE>buffer = HEADER.write(buffer, service, true);<NEW_LINE>// write fields<NEW_LINE>for (FieldPacket field : FIELDS) {<NEW_LINE>buffer = field.write(buffer, service, true)...
.getSqlLastStat().getQueries();
1,130,385
private void applyFormatOff() {<NEW_LINE>for (Token[] offPair : this.tokenManager.getDisableFormatTokenPairs()) {<NEW_LINE>final int <MASK><NEW_LINE>final int offEnd = offPair[1].originalEnd;<NEW_LINE>offPair[0].setWrapPolicy(null);<NEW_LINE>offPair[0].setIndent(Math.min(offPair[0].getIndent(), this.tokenManager.findSo...
offStart = offPair[0].originalStart;