idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
721,769
public static void main(String[] args) throws Exception {<NEW_LINE>inputfilepath = // + "/hr.docx";<NEW_LINE>System.getProperty("user.dir") + // + "/sample-docs/word/sample-docx.docx";<NEW_LINE>// + "/sample-docs/word/2003/word2003-vml.docx";<NEW_LINE>// + "/table-nested.docx";<NEW_LINE>"/hlink.docx";<NEW_LINE>Wordproc...
(withoutXSLT.export()));
1,417,637
protected AssemblyResolution solveTwoSided(OrExpression exp, MaskedLong goal, Map<String, Long> vals, AssemblyResolvedPatterns cur, Set<SolverHint> hints, String description) throws NeedsBackfillException, SolverException {<NEW_LINE>try {<NEW_LINE>return tryCatenationExpression(exp, goal, vals, cur, hints, description)...
get(match).getValue();
911,524
// Submit a group of tasks via untimed invokeAny. Allow the tasks to be enqueued, but blocked from starting because another thread<NEW_LINE>// holds the only permit against maxConcurrency. Then invoke shutdownNow on the executor, all of the queued tasks should be canceled<NEW_LINE>// without starting, allowing invokeAn...
expectedCancels, canceledFromQueue.size());
1,228,184
public static VariablesFormatter[] loadFormatters() {<NEW_LINE>Properties p = Properties.getDefault().getProperties("debugger.options.JPDA");<NEW_LINE>VariablesFormatter[] formatters = (VariablesFormatter[]) p.getArray("VariableFormatters", null);<NEW_LINE>VariablesFormatter[] defaultFormatters = createDefaultFormatter...
newFormatters, 0, formatters.length);
957,522
// Test that setting the LoginTimeout via URL or properties for DataSources using Driver is rejected and that getLoginTimeout always returns 0.<NEW_LINE>@Test<NEW_LINE>@ExpectedFFDC({ "java.sql.SQLNonTransientException" })<NEW_LINE>public void testGetSetLoginTimeout() throws Exception {<NEW_LINE>InitialContext ctx = ne...
0, fatDriverDS.getLoginTimeout());
525,013
public ExternalEventsDetail unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ExternalEventsDetail externalEventsDetail = new ExternalEventsDetail();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe...
JsonToken token = context.getCurrentToken();
686,943
public boolean visit(SQLAlterTableDropPartition x) {<NEW_LINE>boolean printDrop = true;<NEW_LINE>if (x.getParent() instanceof SQLAlterTableStatement) {<NEW_LINE>SQLAlterTableStatement stmt = (SQLAlterTableStatement) x.getParent();<NEW_LINE>int p = stmt.getChildren().indexOf(x);<NEW_LINE>if (p > 0 && stmt.getChildren()....
print0(ucase ? "PARTITION (" : "partition (");
613,163
public boolean isOneEditDistance(String s, String t) {<NEW_LINE>char[<MASK><NEW_LINE>char[] tchar = t.toCharArray();<NEW_LINE>if (Math.abs(s.length() - t.length()) == 1) {<NEW_LINE>char[] longer = (s.length() > t.length()) ? schar : tchar;<NEW_LINE>char[] shorter = (longer == schar) ? tchar : schar;<NEW_LINE>int diffCn...
] schar = s.toCharArray();
1,692,874
private CompletableFuture<Void> updateMessageStateAsync(byte[] deliveryTag, Outcome outcome, TransactionContext transaction) {<NEW_LINE>this.throwIfInUnusableState();<NEW_LINE>CompletableFuture<Void> completeMessageFuture = new CompletableFuture<>();<NEW_LINE>String deliveryTagAsString = StringUtil.convertBytesToString...
) state).setOutcome(outcome);
589,735
public void onRequestFinish(MegaChatApiJava api, MegaChatRequest request, MegaChatError e) {<NEW_LINE>logDebug("onRequestFinish(CHAT)");<NEW_LINE>if (request.getType() == MegaChatRequest.TYPE_ARCHIVE_CHATROOM) {<NEW_LINE>long chatHandle = request.getChatHandle();<NEW_LINE>MegaChatRoom chat = megaChatApi.getChatRoom(cha...
substring(0, 59) + "...";
446,582
@Override<NEW_LINE>public JPanel createComponentImpl(Disposable parentUIDisposable) {<NEW_LINE>final Module module = getModule();<NEW_LINE>final Project project = module.getProject();<NEW_LINE>myContentEntryEditorListener = new MyContentEntryEditorListener();<NEW_LINE>final JPanel mainPanel = new JPanel(new BorderLayou...
new JPanel(new GridBagLayout());
140,669
Object doGeneric(VirtualFrame frame, @SuppressWarnings("unused") Object cls, Object start, Object stop, Object step, @Shared("stepZeroProfile") @Cached ConditionProfile stepZeroProfile, @Shared("exceptionProfile") @Cached BranchProfile exceptionProfile, @Shared("lenOfRangeNodeExact") @Cached LenOfIntRangeNodeExact lenO...
istart = cast.execute(lstart);
1,455,334
private void saveTheme() {<NEW_LINE>IJThemeInfo themeInfo = themesList.getSelectedValue();<NEW_LINE>if (themeInfo == null || themeInfo.resourceName == null)<NEW_LINE>return;<NEW_LINE>JFileChooser fileChooser = new JFileChooser();<NEW_LINE>fileChooser.setSelectedFile(new File(lastDirectory, themeInfo.resourceName));<NEW...
"Failed to save theme license to '" + file + "'.", ex);
392,551
private void handleCodeCacheFull(CodeCacheEvent event) {<NEW_LINE>String reason = CODE_CACHE_FULL;<NEW_LINE>double score = 0;<NEW_LINE>if (scoreMap.containsKey(reason)) {<NEW_LINE>score = scoreMap.get(reason);<NEW_LINE>} else {<NEW_LINE>logger.warn("No score is set for reason: {}", reason);<NEW_LINE>}<NEW_LINE>StringBu...
) Math.ceil(score));
1,408,861
public ResponseEntity<String> fakeOuterStringSerializeWithHttpInfo(String body) throws RestClientException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();<NEW_LINE>final HttpHeaders localVarHeaderParams = new HttpHe...
LinkedMultiValueMap<String, Object>();
17,973
public Object execute(ExecutionEvent event) throws ExecutionException {<NEW_LINE>IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();<NEW_LINE>IPath rootPath = root.getLocation();<NEW_LINE>IPath resourcePath = new Path(event.getParameter(PATH));<NEW_LINE>IResource resource = root.findMember<MASK><NEW_LINE>if...
(resourcePath.makeRelativeTo(rootPath));
1,778,514
void unparse() {<NEW_LINE>int i, j;<NEW_LINE>Code_attribute ca;<NEW_LINE>byte[] bc;<NEW_LINE>method_info mi;<NEW_LINE>exception_table_entry e;<NEW_LINE>for (i = 0; i < methods_count; i++) {<NEW_LINE>mi = methods[i];<NEW_LINE>// locate code attribute<NEW_LINE>ca = mi.locate_code_attribute();<NEW_LINE>if (ca == null) {<N...
(int) (ca.code_length);
1,578,660
public UnsuccessfulItemError unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>UnsuccessfulItemError unsuccessfulItemError = new UnsuccessfulItemError();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<...
int xmlEvent = context.nextEvent();
567,964
public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("zip" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>int size = param.getSubSize();<NEW_LINE>if (size == 0) {<NEW_LINE>Object o = param.getLeafExpression(...
+ mm.getMessage("function.invalidParam"));
1,036,515
public void check(HealthCheckRequest request, StreamObserver<HealthCheckResponse> responseObserver) {<NEW_LINE>String service = request.getService();<NEW_LINE>HealthCheck <MASK><NEW_LINE>if (check == null) {<NEW_LINE>// If no health check is registered for the requested service then respond with a not found error.<NEW_...
check = mapHealthChecks.get(service);
406,047
public void actionPerformed(AnActionEvent e) {<NEW_LINE>final Project project = e.getProject();<NEW_LINE>if (project == null) {<NEW_LINE>fail("The current project is invalid");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final VirtualFile buckFile = findBuckFileFromActionEvent(e);<NEW_LINE>if (buckFile == null) {<NEW_LINE>fai...
final String targetName = getTargetNameFromActionEvent(e);
1,848,011
public static DescribeAuditRecordsResponse unmarshall(DescribeAuditRecordsResponse describeAuditRecordsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeAuditRecordsResponse.setRequestId<MASK><NEW_LINE>describeAuditRecordsResponse.setTotalRecordCount(_ctx.integerValue("DescribeAuditRecordsResponse.TotalRecordCount...
(_ctx.stringValue("DescribeAuditRecordsResponse.RequestId"));
162,636
private // <editor-fold desc="actions OK/APPLY/CANCEL, dirty "><NEW_LINE>void actionPerformedUpdates(Window _parent) {<NEW_LINE>boolean tempDirty = isDirty();<NEW_LINE>if (paneNaming.isDirty()) {<NEW_LINE>String filename = paneNaming.getAbsolutePath();<NEW_LINE>if (filename.contains("%")) {<NEW_LINE>Debug.error("%s\n%...
().tabPane.getSelectedIndex();
1,110,479
private ObjectCursor<Note> queryNotesForSearch() {<NEW_LINE>if (!isAdded()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Query<Note> query = Note.all(((Simplenote) requireActivity().getApplication()).getNotesBucket());<NEW_LINE>String searchString = mSearchString;<NEW_LINE>if (hasSearchQuery()) {<NEW_LINE>searchString =...
Note.TITLE_INDEX_NAME, Note.CONTENT_PREVIEW_INDEX_NAME);
784,309
public ProvisioningArtifactPreferences unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ProvisioningArtifactPreferences provisioningArtifactPreferences = new ProvisioningArtifactPreferences();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
int originalDepth = context.getCurrentDepth();
1,662,229
private TaskProvider<ValidatePlugins> configureValidationTask(Project project, List<File> pluginJars, String pluginId) {<NEW_LINE>String idWithoutDots = pluginId.replace('.', '_');<NEW_LINE>return project.getTasks().register(VALIDATE_EXTERNAL_PLUGIN_TASK_PREFIX + idWithoutDots, ValidatePlugins.class, task -> {<NEW_LINE...
getClasspath().setFrom(scriptClassPath);
1,404,845
public BDD bgpWellFormednessConstraints() {<NEW_LINE>// the protocol should be one of the ones allowed in a BgpRoute<NEW_LINE>BDD protocolConstraint = anyProtocolIn(ALL_BGP_PROTOCOLS);<NEW_LINE>// the prefix length should be 32 or less<NEW_LINE>BDD prefLenConstraint = _prefixLength.leq(32);<NEW_LINE>// at most one AS-p...
nand(_asPathRegexAtomicPredicates[j]));
1,640,417
public TByteBuffer putInt(int index, int value) {<NEW_LINE>if (readOnly) {<NEW_LINE>throw new TReadOnlyBufferException();<NEW_LINE>}<NEW_LINE>if (index < 0 || index + 3 >= limit) {<NEW_LINE>throw new IndexOutOfBoundsException("Index " + index + " is outside of range [0;" + (limit - 3) + ")");<NEW_LINE>}<NEW_LINE>if (or...
byte) (value >> 8);
884,278
public static QueryRmsDataTopksResponse unmarshall(QueryRmsDataTopksResponse queryRmsDataTopksResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryRmsDataTopksResponse.setRequestId(_ctx.stringValue("QueryRmsDataTopksResponse.RequestId"));<NEW_LINE>queryRmsDataTopksResponse.setResultCode(_ctx.stringValue("QueryRmsDataTop...
(_ctx.stringValue("QueryRmsDataTopksResponse.Response.Data.ResultType"));
1,398,955
public static void buildApiDoc(ApiConfig config, JavaProjectBuilder javaProjectBuilder) {<NEW_LINE>config.setFramework(FrameworkEnum.DUBBO.getFramework());<NEW_LINE>config.setAdoc(true);<NEW_LINE>config.setShowJavaType(true);<NEW_LINE>RpcDocBuilderTemplate builderTemplate = new RpcDocBuilderTemplate();<NEW_LINE>builder...
config, javaProjectBuilder, RPC_ALL_IN_ONE_ADOC_TPL, docName);
944,239
public static APIAttachDataVolumeToVmEvent __example__() {<NEW_LINE>APIAttachDataVolumeToVmEvent event = new APIAttachDataVolumeToVmEvent();<NEW_LINE>String volumeUuid = uuid();<NEW_LINE>VolumeInventory vol = new VolumeInventory();<NEW_LINE>vol.setName("test-volume");<NEW_LINE>vol.setCreateDate(new Timestamp(org.zstack...
vol.setPrimaryStorageUuid(uuid());
213,221
public synchronized ProxyQueueConversationGroup create(Conversation conversation) throws IllegalArgumentException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "create", conversation);<NEW_LINE>if (convToGroupMap.containsKey(conversation)) {<NEW_LINE>// A proxy que...
("PQGROUP_ALREADY_CREATED_SICO1054", null, null));
273,049
public ApiResponse<FileShare> fileSharesPutWithHttpInfo(String id, UpdateShareRequest updateFileShareRequest) throws ApiException {<NEW_LINE>Object localVarPostBody = updateFileShareRequest;<NEW_LINE>// verify the required parameter 'id' is set<NEW_LINE>if (id == null) {<NEW_LINE>throw new ApiException(400, "Missing th...
throw new ApiException(400, "Missing the required parameter 'updateFileShareRequest' when calling fileSharesPut");
782,985
private String generatePasswordResetToken(String email, HttpServletRequest req) {<NEW_LINE>if (StringUtils.isBlank(email)) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>Sysprop <MASK><NEW_LINE>// pass reset emails can be sent once every 12h<NEW_LINE>if (s != null) {<NEW_LINE>if (!s.hasProperty("iforgotTimestamp") || Utils....
s = pc.read(email);
1,147,093
private static void addBoxSetCounts(Context context, BaseItemDto item, LinearLayout layout) {<NEW_LINE>boolean hasSpecificCounts = false;<NEW_LINE>if (item.getMovieCount() != null && item.getMovieCount() > 0) {<NEW_LINE>TextView amt = new TextView(context);<NEW_LINE>amt.setTextSize(textSize);<NEW_LINE>amt.setText(item....
.string.lbl_movies) + " ");
11,605
public CompletionServiceResponse doMultiGetRequest(List<String> serverURLs, String tableNameWithType, boolean multiRequestPerServer, int timeoutMs) {<NEW_LINE>CompletionServiceResponse completionServiceResponse = new CompletionServiceResponse();<NEW_LINE>// TODO: use some service other than completion service so that w...
LOGGER.error("Connection error", e);
111,802
public com.squareup.okhttp.Call announcementGetCall(String columns, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>S...
, progressListener)).build();
1,723,112
private void renderCategoryMeasurements(final TimedOperationCategory category, final Map<String, TimedResult> labeledMeasurements, final Writer writer) throws IOException {<NEW_LINE>renderHeader(category.displayName(), writer);<NEW_LINE>final TimedResult grandTotal = new TimedResult();<NEW_LINE>final TreeSet<Map.Entry<...
).selfTimeNanos.get());
997,169
public String[] expandOptionFiles(String[] argv, boolean ignoreComments, boolean ignoreBlankLines) throws IOException, HelpRequestedException {<NEW_LINE>// Add all expanded options at the end of the options list, before the<NEW_LINE>// list of<NEW_LINE>// jar/zip/class files and directories.<NEW_LINE>// At the end of t...
expandedOptionsList, reader, ignoreComments, ignoreBlankLines);
1,598,295
public static CacheLine deserializeFromJson(String json) {<NEW_LINE>JSONObject cacheLineJson = JSON.parseObject(json);<NEW_LINE>long rowCount = cacheLineJson.getLong("rowCount");<NEW_LINE>long currentTime = unixTimeStamp();<NEW_LINE>CacheLine cacheLine = new CacheLine(rowCount, currentTime, currentTime);<NEW_LINE>cache...
cardinalityMap = new HashMap<>();
408,552
private HttpURLConnection connect0(final URI ipUri, final String method, final byte[] entity, final Map<String, List<String>> headers, final String endpointHost) throws IOException {<NEW_LINE>if (log.isTraceEnabled()) {<NEW_LINE>log.trace("req: {} {} {} {} {} {}", method, ipUri, headers.size(), Joiner.on(',').withKeyVa...
connection, method, connection instanceof HttpsURLConnection);
1,404,430
public boolean readIfNull() {<NEW_LINE>if (ch == 'n' && bytes[offset] == 'u' && bytes[offset + 1] == 'l' && bytes[offset + 2] == 'l') {<NEW_LINE>if (offset + 3 == end) {<NEW_LINE>ch = EOI;<NEW_LINE>} else {<NEW_LINE>ch = (<MASK><NEW_LINE>}<NEW_LINE>offset += 4;<NEW_LINE>} else {<NEW_LINE>return false;<NEW_LINE>}<NEW_LI...
char) bytes[offset + 3];
1,517,746
private static JsExpression simplifyOp(JsBinaryOperation expr) {<NEW_LINE>SourceInfo info = expr.getSourceInfo();<NEW_LINE>JsExpression arg1 = expr.getArg1();<NEW_LINE>JsExpression arg2 = expr.getArg2();<NEW_LINE>JsBinaryOperator op = expr.getOperator();<NEW_LINE>if (op == JsBinaryOperator.ADD && (arg1 instanceof JsStr...
Ieee754_64_Arithmetic.divide(num1, num2);
1,015,582
DbInfo.Builder doParse(String jdbcUrl, DbInfo.Builder builder) {<NEW_LINE>DbInfo dbInfo = builder.build();<NEW_LINE>if (dbInfo.getHost() == null) {<NEW_LINE>builder.host(DEFAULT_HOST);<NEW_LINE>}<NEW_LINE>if (dbInfo.getPort() == null) {<NEW_LINE>builder.port(DEFAULT_PORT);<NEW_LINE>}<NEW_LINE>int protoLoc = jdbcUrl.ind...
.substring(dbLoc + 1));
1,227,555
protected void recordNullReference(LocalVariableBinding local, ASTNode expression, int checkType, FlowInfo nullInfo) {<NEW_LINE>if (this.nullCount == 0) {<NEW_LINE>this<MASK><NEW_LINE>this.nullReferences = new ASTNode[5];<NEW_LINE>this.nullCheckTypes = new int[5];<NEW_LINE>this.nullInfos = new UnconditionalFlowInfo[5];...
.nullLocals = new LocalVariableBinding[5];
69,615
public static void main(String[] args) {<NEW_LINE>final File in;<NEW_LINE>final File out;<NEW_LINE>if (args.length == 0) {<NEW_LINE><MASK><NEW_LINE>System.err.println("Download the research concepts, developer concepts, and architectural concepts view of the CWE from " + "https://cwe.mitre.org/data/downloads.html");<NE...
System.err.println("Incorrect arguments - please provide one or more files as input");
369,036
private MethodLinkMetaData findMethod(String method) {<NEW_LINE>if (method.endsWith("...)")) {<NEW_LINE>// Should reuse the link parsing stuff from JavadocLinkConverter instead<NEW_LINE>method = method.substring(0, method.length() - 4) + "[])";<NEW_LINE>}<NEW_LINE>MethodLinkMetaData <MASK><NEW_LINE>if (metaData != null...
metaData = methods.get(method);
720,103
final ListReportDefinitionsResult executeListReportDefinitions(ListReportDefinitionsRequest listReportDefinitionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listReportDefinitionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
337,674
protected void onPing(RTMPConnection conn, Channel channel, Header source, Ping ping) {<NEW_LINE>switch(ping.getEventType()) {<NEW_LINE>case Ping.CLIENT_BUFFER:<NEW_LINE>SetBuffer setBuffer = (SetBuffer) ping;<NEW_LINE>// get the stream id<NEW_LINE>int streamId = setBuffer.getStreamId();<NEW_LINE>// get requested buffe...
stream = conn.getStreamById(streamId);
189,124
public static ImmutableMap<Path, SourcePath> parseHeaders(BuildTarget buildTarget, ActionGraphBuilder graphBuilder, ProjectFilesystem projectFilesystem, Optional<CxxPlatform> cxxPlatform, CxxConstructorArg args) {<NEW_LINE>ImmutableMap.Builder<String, SourcePath<MASK><NEW_LINE>// Add platform-agnostic headers.<NEW_LINE...
> headers = ImmutableMap.builder();
782,270
public void added(RuleTemplate element) {<NEW_LINE>String templateUID = element.getUID();<NEW_LINE>Set<String> rules = new HashSet<>();<NEW_LINE>synchronized (this) {<NEW_LINE>Set<String> rulesForResolving = mapTemplateToRules.get(templateUID);<NEW_LINE>if (rulesForResolving != null) {<NEW_LINE>rules.addAll(rulesForRes...
updated(provider, unresolvedRule, unresolvedRule);
1,469,861
private InputStream decompressResourceFork(FSEntry entry, ReadableRandomAccessStream resourceForkStream, int expectedLength) throws IOException {<NEW_LINE>File tempFile = GFileUtilityMethods.writeTemporaryFile(new DmgInputStream(resourceForkStream));<NEW_LINE>System.err.println("dmg resource fork for " + entry.getName(...
InputStream input = new FileInputStream(tempFile);
51,711
private Map<String, Object> createResponsesObject(final StructrSchemaDefinition schema, final String tag) {<NEW_LINE>final Map<String, Object> responses = new LinkedHashMap<>();<NEW_LINE>// 200 OK<NEW_LINE>responses.put("ok", new OpenAPIRequestResponse("The request was executed successfully.", new OpenAPISchemaReferenc...
StructrTypeDefinitions definitions = schema.getTypeDefinitionsObject();
215,016
public NameEnvironmentAnswer findClass(String binaryFileName, String qualifiedPackageName, String moduleName, String qualifiedBinaryFileName, boolean asBinaryOnly, Predicate<String> moduleNameFilter) {<NEW_LINE>// most common case<NEW_LINE>if (!isPackage(qualifiedPackageName, moduleName))<NEW_LINE>return null;<NEW_LINE...
) - SuffixConstants.SUFFIX_CLASS.length);
52,954
public BufferedImage filter(BufferedImage src, BufferedImage dst) {<NEW_LINE>int width = src.getWidth();<NEW_LINE>int height = src.getHeight();<NEW_LINE>if (dst == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>int[] inPixels = new int[width * height];<NEW_LINE>int[] outPixels = new int[width * height];<NEW_LINE>getRGB(sr...
dst = createCompatibleDestImage(src, null);
667,432
public Bitmap blur(Bitmap original, float radius) {<NEW_LINE>Bitmap bitmapOut = original.copy(Bitmap.Config.ARGB_8888, true);<NEW_LINE>int cores = StackBlurManager.EXECUTOR_THREADS;<NEW_LINE>ArrayList<NativeTask> horizontal = new ArrayList<NativeTask>(cores);<NEW_LINE>ArrayList<NativeTask> vertical = <MASK><NEW_LINE>fo...
new ArrayList<NativeTask>(cores);
162,898
public static ExecutableDdlJob create(@Deprecated DDL ddl, MoveDatabasePreparedData preparedData, ExecutionContext executionContext) {<NEW_LINE>MoveDatabaseBuilder moveDatabaseBuilder = new MoveDatabaseBuilder(ddl, preparedData, executionContext);<NEW_LINE>Map<String, Map<String, List<List<String>>>> tablesTopologyMap ...
> moveDatabaseItemPreparedDataMap = moveDatabaseBuilder.getTablesPreparedData();
78,870
private Map<String, Map<String, Map<String, String>>> generatePartitionOverrideFromConfigFile(String adminConfigFilePath) throws IOException {<NEW_LINE>Map<String, Map<String, String>> partitionOverrideInfos = new HashMap<>();<NEW_LINE>long maxPartitionId = staticClusterMap.getAllPartitionIds(null).stream().map(p -> Lo...
partitionProperties.put(PARTITION_STATE, READ_ONLY_STR);
1,450,460
public void transformPage(final View view, final float position) {<NEW_LINE>if (position < -1 || position > 1) {<NEW_LINE>view.setAlpha(0f);<NEW_LINE>} else {<NEW_LINE>final float scaleFactor = Math.max(MIN_SCALE, 1 - Math.abs(position));<NEW_LINE>final float verticalMargin = view.getHeight() * (1 - scaleFactor) / 2;<N...
) * (1 - MIN_ALPHA));
933,252
public static QueryTaskDetailListResponse unmarshall(QueryTaskDetailListResponse queryTaskDetailListResponse, UnmarshallerContext context) {<NEW_LINE>queryTaskDetailListResponse.setRequestId(context.stringValue("QueryTaskDetailListResponse.RequestId"));<NEW_LINE>queryTaskDetailListResponse.setTotalItemNum(context.integ...
(context.integerValue("QueryTaskDetailListResponse.TotalPageNum"));
1,305,154
private // Called by storeNumeric()<NEW_LINE>void storeRealNumber(Token token, Directives directive, ErrorList errors) {<NEW_LINE>int lengthInBytes = DataTypes.getLengthInBytes(directive);<NEW_LINE>double value;<NEW_LINE>if (token.getValue().equals("Inf")) {<NEW_LINE>value = Float.POSITIVE_INFINITY;<NEW_LINE>} else if ...
.getValue() + "\" is not a valid floating point constant"));
98,915
private static byte[][] prepareAdapterSequences(final List<String> adapterSequence) {<NEW_LINE>final Set<String> kmers = new HashSet<>();<NEW_LINE>// Make a set of all kmers of adapterMatchLength<NEW_LINE>for (final String seq : adapterSequence) {<NEW_LINE>for (int i = 0; i <= seq.length() - ADAPTER_MATCH_LENGTH; ++i) ...
(SequenceUtil.reverseComplement(kmer));
1,765,977
public Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String serverName) {<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 (resour...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
1,056,679
public ListEnvironmentRevisionsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListEnvironmentRevisionsResult listEnvironmentRevisionsResult = new ListEnvironmentRevisionsResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe...
int originalDepth = context.getCurrentDepth();
113,525
private void addAllEntriesForKeyInSegment(List<IndexEntry> entries, IndexSegment indexSegment, IndexEntry entry) throws StoreException {<NEW_LINE>logger.trace("Fetching related entries of a blob with entry {} in index segment with start offset {} in {} " + "because they need to be retained", entry, <MASK><NEW_LINE>Navi...
indexSegment.getStartOffset(), storeId);
1,067,847
public Relationships unmarshal(java.io.InputStream is) throws JAXBException {<NEW_LINE>try {<NEW_LINE>XMLInputFactory xif = XMLInputFactory.newInstance();<NEW_LINE>xif.setProperty(XMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES, false);<NEW_LINE>// a DTD is merely ignored, its presence doesn't cause an exception<NEW_LI...
Relationships) u.unmarshal(xsr);
1,580,278
public AuthenticationResult authenticate(HttpServletRequest req, HttpServletResponse res, HashMap props) {<NEW_LINE>AuthenticationResult authResult = null;<NEW_LINE>X509Certificate[] certChain = (X509Certificate[]) req.getAttribute(PEER_CERTIFICATES);<NEW_LINE>if (certChain == null || certChain.length == 0) {<NEW_LINE>...
AuthenticationResult(AuthResult.FAILURE, "The CLIENT-CERT authentication failed because no client certificate was found.");
815,005
private BuildRule createCompileDepsRule(CxxPlatformsProvider cxxPlatformsProvider, BuildTarget buildTarget, ActionGraphBuilder graphBuilder, BuildRuleCreationContextWithTargetGraph context, BuildRuleParams params, AppleTestDescriptionArg args) {<NEW_LINE>CxxPlatform cxxPlatform = ApplePlatforms.getCxxPlatformForBuildTa...
newParams = params.withExtraDeps(transitiveStaticLibraryDependencies);
182,859
public void writeToParcel(final Parcel dest, final int flags) {<NEW_LINE><MASK><NEW_LINE>dest.writeInt(sequenceNumber);<NEW_LINE>if (time == null) {<NEW_LINE>dest.writeByte((byte) 0);<NEW_LINE>} else {<NEW_LINE>dest.writeByte((byte) 1);<NEW_LINE>dest.writeLong(time.getTimeInMillis());<NEW_LINE>}<NEW_LINE>if (glucoseCon...
super.writeToParcel(dest, flags);
1,755,892
protected GraphQLOutputType compute(Column.ColumnType columnType) {<NEW_LINE>if (columnType.isMap()) {<NEW_LINE>GraphQLType keyType = get(columnType.parameters().get(0));<NEW_LINE>GraphQLType valueType = get(columnType.parameters().get(1));<NEW_LINE>return new MapBuilder(keyType, valueType, false).build();<NEW_LINE>} e...
TupleBuilder(subTypes).buildOutputType();
19,862
public void parameterChanged(ParameterList parameterList, String key, boolean isAdjusting) {<NEW_LINE>if ("normalizeCounts".equals(key)) {<NEW_LINE>boolean doNormalize = params.getBooleanParameterValue("normalizeCounts");<NEW_LINE>// This is rather clumsy (compared to just updating the histogram data),<NEW_LINE>// but ...
(params.getBooleanParameterValue("drawGrid"));
1,507,037
void saveState(Bundle outState) {<NEW_LINE>final int numTabs = getTabCount();<NEW_LINE>if (numTabs == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long[] ids = new long[numTabs];<NEW_LINE>int i = 0;<NEW_LINE>for (Tab tab : mTabs) {<NEW_LINE><MASK><NEW_LINE>if (tabState != null) {<NEW_LINE>ids[i++] = tab.getId();<NEW_LINE>...
Bundle tabState = tab.saveState();
1,706,659
public Complex[] fft(Complex[] input) {<NEW_LINE>Complex[] x = input;<NEW_LINE>int n = x.length;<NEW_LINE>if (n == 1)<NEW_LINE>return new Complex[] { x[0] };<NEW_LINE>if (n % 2 != 0) {<NEW_LINE>x = Arrays.copyOfRange(x, <MASK><NEW_LINE>}<NEW_LINE>Complex[] halfArray = new Complex[n / 2];<NEW_LINE>for (int k = 0; k < n ...
0, x.length - 1);
855,328
public static void waitForBulkTransfer(Iterable<? extends ListenableFuture<?>> transfers, boolean cancelRemainingOnInterrupt) throws BulkTransferException, InterruptedException {<NEW_LINE>BulkTransferException bulkTransferException = null;<NEW_LINE>InterruptedException interruptedException = null;<NEW_LINE>boolean inte...
= Thread.interrupted() || interrupted;
1,655,280
private CompletionStage<WebServer> shutdownThreadGroups() {<NEW_LINE>if (shutdownThreadGroupsInitiated.getAndSet(true)) {<NEW_LINE>return threadGroupsShutdownFuture;<NEW_LINE>}<NEW_LINE>forceQueuesRelease();<NEW_LINE>long maxShutdownTimeoutSeconds = configuration.maxShutdownTimeout().toSeconds();<NEW_LINE>long shutdown...
.shutdownQuietPeriod().toSeconds();
613,043
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@public @buseventtype " + "@JsonSchemaField(name=point, adapter=" + SupportJsonFieldAdapterStringPoint.class.getSimpleName() + ") " + "@JsonSchemaField(name=mydate, adapter=" + SupportJsonFieldAdapterStringDate.class.getSimpleName() + ") " + "create js...
DateTime.parseDefaultDate("2002-05-1T08:00:01.999") });
1,180,524
public static BArray enumerate(BArray arr) {<NEW_LINE>Type arrType = arr.getType();<NEW_LINE>int size = arr.size();<NEW_LINE>TupleType elemType;<NEW_LINE>GetFunction getFn;<NEW_LINE>switch(arrType.getTag()) {<NEW_LINE>case TypeTags.ARRAY_TAG:<NEW_LINE>elemType = TypeCreator.createTupleType(Arrays.asList(PredefinedTypes...
.get(arr, i));
207,004
public static PricingConditionsBreak toPricingConditionsBreak(@NonNull final I_M_DiscountSchemaBreak schemaBreakRecord) {<NEW_LINE>final int discountSchemaBreakId = schemaBreakRecord.getM_DiscountSchemaBreak_ID();<NEW_LINE>final PricingConditionsBreakId id = discountSchemaBreakId > 0 ? PricingConditionsBreakId.of(schem...
getM_DiscountSchema_ID(), discountSchemaBreakId) : null;
1,250,778
public static void colorizeSign(GrayF32 input, float maxAbsValue, Bitmap output, @Nullable DogArray_I8 _storage) {<NEW_LINE>shapeShape(input, output);<NEW_LINE>_storage = ConvertBitmap.resizeStorage(output, _storage);<NEW_LINE>final <MASK><NEW_LINE>if (maxAbsValue < 0)<NEW_LINE>maxAbsValue = ImageStatistics.maxAbs(inpu...
byte[] storage = _storage.data;
740,804
private JCTree.JCExpression makeUnaryIncDecCall(JCTree.JCUnary tree, TreeMaker make, Symbol.MethodSymbol operatorMethod, JCExpression operand) {<NEW_LINE>if (operatorMethod == null) {<NEW_LINE>Type unboxedType = _tp.getTypes(<MASK><NEW_LINE>if (unboxedType != null && !unboxedType.hasTag(NONE)) {<NEW_LINE>operand = unbo...
).unboxedType(operand.type);
1,384,255
private void transitionToFinalBatchStatus() {<NEW_LINE>// Store in local variable to facilitate Ctrl+Shift+G search in Eclipse<NEW_LINE>StopLock stopLock = getStopLock();<NEW_LINE>synchronized (stopLock) {<NEW_LINE><MASK><NEW_LINE>if (currentBatchStatus.equals(BatchStatus.STARTED)) {<NEW_LINE>updateStepBatchStatus(Batc...
BatchStatus currentBatchStatus = runtimeStepExecution.getBatchStatus();
1,011,630
List<ImapResponse> readStatusResponse(String tag, String commandToLog, String logId, UntaggedHandler untaggedHandler) throws IOException, NegativeImapResponseException {<NEW_LINE>List<ImapResponse> <MASK><NEW_LINE>ImapResponse response;<NEW_LINE>do {<NEW_LINE>response = readResponse();<NEW_LINE>if (K9MailLib.isDebug() ...
responses = new ArrayList<>();
1,606,883
final CreatePredictorBacktestExportJobResult executeCreatePredictorBacktestExportJob(CreatePredictorBacktestExportJobRequest createPredictorBacktestExportJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createPredictorBacktestExportJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreatePredictorBacktestExportJob");
1,147,304
private String updateTo(final IParams params) {<NEW_LINE>String toTmp = "";<NEW_LINE>if (!params.hasParameter(I_C_BPartner.COLUMNNAME_C_BPartner_ID)) {<NEW_LINE>throw new IllegalArgumentException("Process instance doesn't contain a business partner as parameter");<NEW_LINE>}<NEW_LINE>// find the C_BPartner_ID parameter...
"Process parameter " + I_C_BPartner.COLUMNNAME_C_BPartner_ID + " didn't contain a value");
1,709,345
private void initialize(@NonNull Context context) {<NEW_LINE>inflate(context, R.layout.verification_code_view, this);<NEW_LINE>codes.add(findViewById(R.id.code_zero));<NEW_LINE>codes.add(findViewById(R.id.code_one));<NEW_LINE>codes.add(findViewById(R.id.code_two));<NEW_LINE>codes.add(findViewById(R.id.code_three));<NEW...
(R.id.container_three));
754,169
private HttpServer configHttpServer(URI uri, ResourceConfig rc) {<NEW_LINE>String protocol = uri.getScheme();<NEW_LINE>final HttpServer server;<NEW_LINE>if (protocol != null && protocol.equals("https")) {<NEW_LINE>SSLContextConfigurator sslContext = new SSLContextConfigurator();<NEW_LINE>String keystoreFile = this.<MAS...
conf.get(ServerOptions.SSL_KEYSTORE_FILE);
104,033
private void addSubqueryJoinStatements(PostgresGlobalState globalState, List<PostgresJoin> joinStatements, PostgresTable fromTable) {<NEW_LINE>// JOIN with subquery<NEW_LINE>for (int i = 0; i < Randomly.smallNumber(); i++) {<NEW_LINE>PostgresTables subqueryTables = new PostgresTables(Randomly.nonEmptySubset(localTables...
PostgresJoinType options = PostgresJoinType.getRandom();
146,912
public static void check_reset_2nd_coeffs(MacroblockD x, PlaneType type, FullAccessIntArrPointer a, FullAccessIntArrPointer l) {<NEW_LINE>int sum = 0;<NEW_LINE>int i;<NEW_LINE>BlockD bd = x.block.getRel(24);<NEW_LINE>if (bd.dequant.get() >= 35 && bd.dequant.get() >= 35)<NEW_LINE>return;<NEW_LINE>for (i = 0; i < bd.eob....
(VPXConst.zigzag[i]);
916,029
private Combo createInputWidget(Composite parent, String label, List<String> history) {<NEW_LINE>Label labelWidget = new Label(parent, SWT.NONE);<NEW_LINE>labelWidget.setText(label);<NEW_LINE>labelWidget.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, true));<NEW_LINE>final Combo input = new Combo(parent, SWT.S...
SWT.BORDER | SWT.DROP_DOWN);
643,038
private void checkConcatArgs(ConcatArgument[] chunks) {<NEW_LINE>// Validate parameters<NEW_LINE>Preconditions.checkArgument(null != chunks, "chunks must not be null");<NEW_LINE>Preconditions.checkArgument(chunks.length >= 2, "There must be at least two chunks");<NEW_LINE>Preconditions.checkArgument(null != chunks[0], ...
[0].getName());
242,294
private Map<String, Map<Server, Long>> findAvaliableGpToSvrs() {<NEW_LINE>Map<String, Map<Server, Long>> results = new HashMap<String, Map<Server, Long>>();<NEW_LINE>Map<String, Server> servers = m_configManager.queryEnableServers();<NEW_LINE>RouterConfig routerConfig = m_configManager.getRouterConfig();<NEW_LINE>Map<S...
NetworkPolicy networkPolicy = entry.getValue();
881,951
private void ensureSummaryField(DocumentSummary summary, String fieldName, DataType dataType, Source source, SummaryTransform transform) {<NEW_LINE>SummaryField oldField = schema.getSummaryField(fieldName);<NEW_LINE>if (oldField == null) {<NEW_LINE>if (useV8GeoPositions)<NEW_LINE>return;<NEW_LINE>SummaryField newField ...
dataType.toString() + "'");
1,420,295
public void prunePoints(int count) {<NEW_LINE>// Remove all observations of the Points which are going to be removed<NEW_LINE>for (int viewIndex = observations.views.size - 1; viewIndex >= 0; viewIndex--) {<NEW_LINE>SceneObservations.View v = observations.views.data[viewIndex];<NEW_LINE>for (int pointIndex = v.point.si...
int[structure.points.size];
371,283
public void run(RegressionEnvironment env) {<NEW_LINE>String text = "@name('s0') select * from SupportBean " + "match_recognize (" + " partition by intPrimitive, longPrimitive" + " measures A.theString as a, B.theString as b" + " pattern (A B)" + " define" + " A as A.doublePrimitive = 1," + " B as B.doublePrimitive = 2...
"E1", 1, 2, 1);
1,240,919
private void parseTopologyConfig(final JsonNode allTopologies, final Map<String, DeliveryService> deliveryServiceMap, final CacheRegister cacheRegister) {<NEW_LINE>final Map<String, List<String>> topologyMap = new HashMap<>();<NEW_LINE>final Map<String, List<String>> statMap = new HashMap<>();<NEW_LINE>final String tld...
nodes = new ArrayList<>();
185,913
public void printDenseDocumentTopics(PrintWriter out) {<NEW_LINE>@Var<NEW_LINE>int docLen;<NEW_LINE>int[] topicCounts = new int[numTopics];<NEW_LINE>for (int doc = 0; doc < data.size(); doc++) {<NEW_LINE>LabelSequence topicSequence = (LabelSequence) data.get(doc).topicSequence;<NEW_LINE>int[<MASK><NEW_LINE>StringBuilde...
] currentDocTopics = topicSequence.getFeatures();
1,019,138
public void run() {<NEW_LINE>status = Status.PLAYING;<NEW_LINE>AudioFormat audioFormat = ais.getFormat();<NEW_LINE>if (audioFormat.getChannels() == 1) {<NEW_LINE>if (outputMode != MONO) {<NEW_LINE>// mono -> convert to stereo<NEW_LINE>ais = new StereoAudioInputStream(ais, outputMode);<NEW_LINE>audioFormat = ais.getForm...
), sourceFormat.isBigEndian());
1,545,324
public void onPageFinished(WebView view, String url) {<NEW_LINE>super.onPageFinished(view, url);<NEW_LINE>ninjaWebView.isBackPressed = false;<NEW_LINE>if (ninjaWebView.isForeground()) {<NEW_LINE>ninjaWebView.invalidate();<NEW_LINE>} else {<NEW_LINE>ninjaWebView.postInvalidate();<NEW_LINE>}<NEW_LINE>if (sp.getBoolean("o...
getUrl(), RecordUnit.TABLE_HISTORY);
1,099,241
public static AutogenGitCodeBlob fromProto(ai.verta.modeldb.versioning.GitCodeBlob blob) {<NEW_LINE>if (blob == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>AutogenGitCodeBlob obj = new AutogenGitCodeBlob();<NEW_LINE>{<NEW_LINE>Function<ai.verta.modeldb.versioning.GitCodeBlob, String> f = x <MASK><NEW_LINE>obj.set...
-> (blob.getBranch());
1,526,905
private void populateSDEAccumulators(Measure measure, Context context, Patient patient, HashMap<String, HashMap<String, Integer>> sdeAccumulators, List<Measure.MeasureSupplementalDataComponent> sde) {<NEW_LINE>context.setContextValue("Patient", patient.<MASK><NEW_LINE>List<Object> sdeList = sde.stream().map(sdeItem -> ...
getIdElement().getIdPart());