idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,799,242
private void writeIndexMapFile() {<NEW_LINE>BufferedWriter writer = null;<NEW_LINE>try {<NEW_LINE>writer = new BufferedWriter(new FileWriter(this.indexNamesMapFile));<NEW_LINE>writer.write(DiskIndex.SIGNATURE);<NEW_LINE>writer.write('\n');<NEW_LINE>Object[] keys = this.indexStates.keyTable;<NEW_LINE>Object[] states = t...
write(location.toString());
599,297
private void layoutGridLines(CompositeSize columnWidths, CompositeSize rowHeights, double x, double y, double columnHeight, double rowWidth) {<NEW_LINE>if (!isGridLinesVisible()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!gridLines.getChildren().isEmpty()) {<NEW_LINE>gridLines.getChildren().clear();<NEW_LINE>}<NEW_LIN...
, linex, liney + columnHeight));
1,380,140
default String decodeUrlAsName(final String url, final boolean escapePlus) {<NEW_LINE>if (url == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final FessConfig fessConfig = getFessConfig();<NEW_LINE>String enc = Constants.UTF_8;<NEW_LINE>if (StringUtil.isBlank(fessConfig.getCrawlerDocumentFileNameEncoding())) {<NEW...
> urlQueue = CrawlingParameterUtil.getUrlQueue();
1,681,339
public static QueryTrademarkMonitorResultsResponse unmarshall(QueryTrademarkMonitorResultsResponse queryTrademarkMonitorResultsResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryTrademarkMonitorResultsResponse.setRequestId(_ctx.stringValue("QueryTrademarkMonitorResultsResponse.RequestId"));<NEW_LINE>queryTrademarkMoni...
(_ctx.integerValue("QueryTrademarkMonitorResultsResponse.CurrentPageNum"));
1,255,015
private void prepare() {<NEW_LINE>if (mMediaPlayer != null) {<NEW_LINE>mMediaPlayer.setDisplay(mSurfaceView.getHolder());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>mMediaPlayer <MASK><NEW_LINE>mMediaPlayer.setLooping(getIntent().getBooleanExtra("loop", false));<NEW_LINE>mMediaPlayer.setOnPreparedListener(mOnP...
= new PLMediaPlayer(this, mAVOptions);
1,491,037
public Matrix solve(Matrix B) {<NEW_LINE>if (B.getRows() != m) {<NEW_LINE>throw new IllegalArgumentException("Matrix row dimensions must agree.");<NEW_LINE>}<NEW_LINE>if (!this.isNonsingular()) {<NEW_LINE>throw new RuntimeException("Matrix is singular.");<NEW_LINE>}<NEW_LINE>// Copy right hand side with pivoting<NEW_LI...
] X = Xmat.getData();
905,899
private void handleSwitchType(SwitchSelection selection) {<NEW_LINE>ContextMenu menu = new ContextMenu();<NEW_LINE>Menu refs = new Menu(LangUtil.translate("ui.edit.method.follow"));<NEW_LINE>for (AST ast : root.getChildren()) {<NEW_LINE>if (ast instanceof LabelAST) {<NEW_LINE>String name = ((LabelAST) ast).getName().ge...
= ast.getLine() - 1;
1,642,784
public void emitInvoke(Invoke x) {<NEW_LINE>LoweredCallTargetNode callTargetNode = (LoweredCallTargetNode) x.callTarget();<NEW_LINE>final Stamp stamp = x.asNode().stamp(NodeView.DEFAULT);<NEW_LINE>LIRKind lirKind = resolveStamp(stamp);<NEW_LINE>AllocatableValue result = Value.ILLEGAL;<NEW_LINE>if (lirKind != LIRKind.Il...
getFrameMapBuilder().callsMethod(callingConvention);
1,805,065
public ClientMetrics loadClientMetrics() {<NEW_LINE>ClientMetrics.Builder clientMetricsBuilder = ClientMetrics.newBuilder();<NEW_LINE>Map<String, List<LogEventDropped>> metricsMap = new HashMap<>();<NEW_LINE>String query = "SELECT log_source, reason, events_dropped_count FROM log_event_dropped";<NEW_LINE>return inTrans...
setAppNamespace(packageName.get());
1,714,125
static Optional<PrivateKey> resolvePrivateKey(Config config) {<NEW_LINE>// load configuration values<NEW_LINE>KeyConfig.PemBuilder pemBuilder = KeyConfig.pemBuilder().config(config);<NEW_LINE>KeyConfig.KeystoreBuilder keystoreBuilder = KeyConfig.keystoreBuilder().config(config);<NEW_LINE>getEnv(ConfigProperties.PRIVATE...
).ifPresent(keystoreBuilder::keystorePassphrase);
944,118
private int diffAnnotationsLists(com.sun.tools.javac.util.List<JCAnnotation> oldAnnotations, com.sun.tools.javac.util.List<JCAnnotation> newAnnotations, int startPos, int localPointer) {<NEW_LINE>int annotationsEnd = oldAnnotations.nonEmpty() ? endPos(oldAnnotations) : localPointer;<NEW_LINE>if (listsMatch(oldAnnotatio...
oldAnnotations, newAnnotations, diffContext, parameterPrint);
1,560,119
private void appendRpcServerSpanTags(Invoker<?> invoker, SofaTracerSpan sofaTracerSpan) {<NEW_LINE>if (sofaTracerSpan == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>RpcContext rpcContext = RpcContext.getContext();<NEW_LINE>Map<String, String<MASK><NEW_LINE>tagsStr.put(Tags.SPAN_KIND.getKey(), spanKind(rpcContext));<NE...
> tagsStr = sofaTracerSpan.getTagsWithStr();
409,089
private boolean executeSugarUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {<NEW_LINE>boolean isSuccess = false;<NEW_LINE>try {<NEW_LINE>List<String> files = Arrays.asList(getAssets<MASK><NEW_LINE>Collections.sort(files, new NumberComparator());<NEW_LINE>for (String file : files) {<NEW_LINE>if (ManifestHelp...
().list("sugar_upgrades"));
1,357,883
public <G extends FulfillmentGroup> CreateResponse<G> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException {<NEW_LINE>CreateResponse<G> createResponse = context.createOrRetrieveCopyInstance(this);<NEW_LINE>if (createResponse.isAlreadyPopulated()) {<NEW_LINE>return createRespons...
null : new Money(retailFulfillmentPrice));
286,352
public void run() {<NEW_LINE>stateLock.acquireReadLock();<NEW_LINE>try {<NEW_LINE>interruptionManager.enterCriticalPath();<NEW_LINE>if (status == STATUS.CLOSED) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final long[] nonActiveSegments = writeAheadLog.nonActiveSegments();<NEW_LINE>if (nonActiveSegments.length == 0) {<NEW_LI...
long operationSegment = atomicOperationsTable.getSegmentEarliestNotPersistedOperation();
1,220,999
private void addPendingJob(Manifest manifest, AutoIngestJobNodeData nodeData) throws AutoIngestJobException, InterruptedException {<NEW_LINE>AutoIngestJob job;<NEW_LINE>if (nodeData.getVersion() == AutoIngestJobNodeData.getCurrentVersion()) {<NEW_LINE>job = new AutoIngestJob(nodeData);<NEW_LINE>} else {<NEW_LINE>job = ...
rootOutputDirectory, manifest.getCaseName());
442,120
private static List<PropertyShape> findPropertyShapes(Set<Node> traversed, Map<Node, Shape> parsed, Graph shapesGraph, Node shapeNode) {<NEW_LINE>List<Triple> propertyTriples = G.find(shapesGraph, shapeNode, SHACL.property, null).toList();<NEW_LINE>List<PropertyShape> propertyShapes = new ArrayList<>();<NEW_LINE>for (T...
shapesGraph, propertyShape, SHACL.path);
1,678,789
public EvaluationValue evaluate(Expression expression, Token operatorToken, EvaluationValue... operands) throws EvaluationException {<NEW_LINE>EvaluationValue leftOperand = operands[0];<NEW_LINE>EvaluationValue rightOperand = operands[1];<NEW_LINE>if (leftOperand.isNumberValue() && rightOperand.isNumberValue()) {<NEW_L...
n2IntPart.intValueExact(), mathContext);
942,674
protected void kNNdistanceAdjustment(MkTabEntry entry, Map<DBID, KNNList> knnLists) {<NEW_LINE>MkTabTreeNode<O> node = getNode(entry);<NEW_LINE>double[] knnDistances_node = initKnnDistanceList();<NEW_LINE>if (node.isLeaf()) {<NEW_LINE>for (int i = 0; i < node.getNumEntries(); i++) {<NEW_LINE>MkTabLeafEntry leafEntry = ...
knnDistances_node, leafEntry.getKnnDistances());
403,749
public void shrink(final int newSize, final OBinarySerializer<K> keySerializer, final boolean isEncrypted) {<NEW_LINE>final boolean isLeaf = isLeaf();<NEW_LINE>final int currentSize = size();<NEW_LINE>if (isLeaf) {<NEW_LINE>final List<LeafEntry> entriesToAdd = new ArrayList<>(newSize);<NEW_LINE>for (int i = 0; i < newS...
= new ArrayList<>(newSize);
834,765
public void bindThread(@NonNull ThreadRecord thread, @NonNull GlideRequests glideRequests, @NonNull Locale locale, @NonNull Set<Long> typingThreads, @NonNull ConversationSet selectedConversations, @Nullable String highlightSubstring) {<NEW_LINE>observeRecipient(thread.getRecipient().live());<NEW_LINE>observeDisplayBody...
.threadId = thread.getThreadId();
307,095
public ListenerResult listen(WorkflowContext context) throws WorkflowListenerException {<NEW_LINE>StreamResourceProcessForm form = (StreamResourceProcessForm) context.getProcessForm();<NEW_LINE>InlongStreamInfo streamInfo = form.getStreamInfo();<NEW_LINE>final String groupId = streamInfo.getInlongGroupId();<NEW_LINE>fi...
GroupOperateType operateType = form.getGroupOperateType();
1,303,033
private void addEdgePlanes(BaseClippingPlanes baseClippingPlanes, boolean[] isBack) {<NEW_LINE>Vector4f[] planes = baseClippingPlanes.getPlanes();<NEW_LINE>for (int planeIndex = 0; planeIndex < planes.length; planeIndex++) {<NEW_LINE>if (!isBack[planeIndex]) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>Vector4f plane = pla...
[neighbors.getPlane3()]);
549,679
public List<ValidateError> validate(Map<String, String> values) {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(values.get("systemName"), conv...
, convLabelName("Version"), 16);
1,011,176
public okhttp3.Call validateAsyncAPISpecificationCall(Boolean returnContent, String url, File file, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/validate-asyncapi";<NEW_LINE>List<Pair> localVar...
= new String[] { "OAuth2Security" };
533,204
private void initiateSaveAs(String optionsString) {<NEW_LINE>Map<String, String> optionsMap = new HashMap<>();<NEW_LINE>String[] options = optionsString.split(" ");<NEW_LINE>for (String option : options) {<NEW_LINE>String[] keyValue = option.split("=", 2);<NEW_LINE>if (keyValue.length == 2)<NEW_LINE>optionsMap.put(keyV...
putExtra(Intent.EXTRA_LOCAL_ONLY, false);
1,669,190
public void deleteById(String id) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroup...
format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
1,602,308
public void testObservableRxInvoker_get2WithClass(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String serverPort = param.get("serverPort");<NEW_LINE>final String threadName = "jaxrs21Thread";<NEW_LINE>ThreadFactory jaxrs21ThreadFactory = Executors.defaultThr...
"testObservableRxInvoker_get2WithClass: onError " + throwable.getStackTrace());
1,190,060
public void replaceTokens(int[] tokens, int start, int end) {<NEW_LINE>if (!this.record)<NEW_LINE>return;<NEW_LINE>tokens = filterTokens(tokens);<NEW_LINE>if (tokens.length == 0)<NEW_LINE>return;<NEW_LINE>this.data.replacedTokensPtr++;<NEW_LINE>if (this.data.replacedTokensStart == null) {<NEW_LINE>this.data.replacedTok...
][], 0, length);
1,202,416
public ResourceTask createRollbackVersionTask(String resourceId, String version, String user, Map<String, Object> properties) throws Exception {<NEW_LINE>LOGGER.info("begin to rollback version,resourceId:{}, version:{}", resourceId, version);<NEW_LINE>String lastVersion = getResourceLastVersion(resourceId);<NEW_LINE>St...
newVersion, user, null, properties);
1,405,774
private void predictLumaTM(VPXMacroblock above, VPXMacroblock left, int aboveLeft) {<NEW_LINE>Subblock[] leftYSb;<NEW_LINE>Subblock[<MASK><NEW_LINE>leftYSb = new Subblock[4];<NEW_LINE>for (int col = 0; col < 4; col++) aboveYSb[col] = above.ySubblocks[3][col];<NEW_LINE>for (int row = 0; row < 4; row++) leftYSb[row] = le...
] aboveYSb = new Subblock[4];
1,726,317
public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {<NEW_LINE>switch(viewType) {<NEW_LINE>case ADDONS_LIST:<NEW_LINE>{<NEW_LINE>AddonsListBinding binding = DataBindingUtil.inflate(LayoutInflater.from(parent.getContext()), R.layout.addons_list, parent, false);<NEW_LINE>return new ...
getContext(), binding, mDelegate);
583,464
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>autoCloseCheckBox = new JCheckBox();<NEW_LINE>summaryPanelHolder = new JPanel();<NEW_LINE>progressPanelHolder = new JPanel();<NEW_LINE>progressMessagePanelHolder = new JPanel();<NE...
.setLayout(new BorderLayout());
593,403
public Object jmeClone() {<NEW_LINE>RigidBodyControl control = new RigidBodyControl(collisionShape, mass);<NEW_LINE>control.setAngularFactor(getAngularFactor());<NEW_LINE>control.setAngularSleepingThreshold(getAngularSleepingThreshold());<NEW_LINE>control.setCcdMotionThreshold(getCcdMotionThreshold());<NEW_LINE>control...
control.setEnabled(isEnabled());
1,239,030
public void marshall(SnowflakeConnectorProfileProperties snowflakeConnectorProfileProperties, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (snowflakeConnectorProfileProperties == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protoco...
snowflakeConnectorProfileProperties.getStage(), STAGE_BINDING);
103,741
private RepositoryData safeRepositoryData(long repositoryStateId, Map<String, BlobMetadata> rootBlobs) throws IOException {<NEW_LINE>final long generation = latestGeneration(rootBlobs.keySet());<NEW_LINE>final long genToLoad;<NEW_LINE><MASK><NEW_LINE>if (bestEffortConsistency) {<NEW_LINE>genToLoad = latestKnownRepoGen....
final Tuple<Long, BytesReference> cached;
1,680,130
private // },<NEW_LINE>Token tag() {<NEW_LINE>Matcher matcher = scanner.getMatcherForPattern("^(\\w[-:\\w]*)(\\/?)");<NEW_LINE>if (matcher.find(0) && matcher.groupCount() > 1) {<NEW_LINE>consume(matcher.end());<NEW_LINE>Tag tok;<NEW_LINE>String name = matcher.group(1);<NEW_LINE>if (':' == name.charAt(name.length() - 1)...
= new Tag(name, lineno);
647,810
List<CallableUserFunction> compileFunction(Class<?> fcnDefinition, boolean isBuiltin) throws KernelException {<NEW_LINE>try {<NEW_LINE>List<Method> functionMethods = Arrays.stream(fcnDefinition.getDeclaredMethods()).filter(m -> m.isAnnotationPresent(UserFunction.class)).collect(Collectors.toList());<NEW_LINE>if (functi...
UserFunction.class).name();
1,005,629
public void verify() throws ActionException {<NEW_LINE>EditTextElementData colValData = getEditTextElementData();<NEW_LINE>Locale locale = (Locale) getReportContext().getParameterValue(JRParameter.REPORT_LOCALE);<NEW_LINE>if (locale == null) {<NEW_LINE>locale = Locale.getDefault();<NEW_LINE>}<NEW_LINE>if (colValData.ge...
)[0].getText();
591,138
public static void loadAddressSpaces(final JTree projectTree, final INaviAddressSpace[] addressSpaces) {<NEW_LINE>new Thread() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>final CDefaultProgressOperation operation = new CDefaultProgressOperation("Loading address spaces", false, true);<NEW_LINE>o...
.getProgressPanel().next();
1,601,309
public String computeJavaDoc(CompletionProposal proposal) {<NEW_LINE>try {<NEW_LINE>IType type = unit.getJavaProject().findType(SignatureUtil.stripSignatureToFQN(String.valueOf(<MASK><NEW_LINE>if (type != null) {<NEW_LINE>if (proposal instanceof InternalCompletionProposal) {<NEW_LINE>Binding binding = ((InternalComplet...
proposal.getDeclarationSignature())));
533,119
// getDocumentInfo<NEW_LINE>@Override<NEW_LINE>protected boolean beforeSave(boolean newRecord) {<NEW_LINE>// Set default locator, if not set and we have the warehouse:<NEW_LINE>if (getM_Locator_ID() <= 0 && getM_Warehouse_ID() > 0) {<NEW_LINE>MWarehouse wh = MWarehouse.get(getCtx(), getM_Warehouse_ID());<NEW_LINE><MASK...
MLocator loc = wh.getDefaultLocator();
345,574
public static CovarianceMatrix make(Relation<? extends NumberVector> relation, DBIDs ids) {<NEW_LINE>int dim = RelationUtil.dimensionality(relation);<NEW_LINE>CovarianceMatrix c = new CovarianceMatrix(dim);<NEW_LINE>double[] mean = c.mean;<NEW_LINE>int count = 0;<NEW_LINE>// Compute mean first:<NEW_LINE>for (DBIDIter i...
(i) - mean[i];
1,042,424
public static void installActions(final JTable table, final boolean cycleScrolling, JComponent focusParent) {<NEW_LINE>ActionMap actionMap = table.getActionMap();<NEW_LINE>actionMap.put(SCROLLUP_ACTION_ID, new MoveAction<MASK><NEW_LINE>actionMap.put(SCROLLDOWN_ACTION_ID, new MoveAction(SCROLLDOWN_ACTION_ID, table, cycl...
(SCROLLUP_ACTION_ID, table, cycleScrolling));
420,452
protected HttpsRequestMessage parseMessageContent() {<NEW_LINE>HttpsRequestMessage message = new HttpsRequestMessage();<NEW_LINE>String request = parseStringTill((byte) 0x0A).trim();<NEW_LINE>String[] split = request.replaceAll("\r", " ").split(" ");<NEW_LINE>if (split.length != 3) {<NEW_LINE>throw new ParserException(...
.setRequestProtocol(split[2]);
502,456
public void onBindViewHolder(@NonNull ViewHolder holder, int position) {<NEW_LINE>String packageName = packages.get(position);<NEW_LINE>ApplicationInfo info = null;<NEW_LINE>try {<NEW_LINE>info = pm.getApplicationInfo(packageName, 0);<NEW_LINE>} catch (PackageManager.NameNotFoundException ignore) {<NEW_LINE>}<NEW_LINE>...
subtitle.setVisibility(View.VISIBLE);
1,186,756
private void validateContentEntriesCandidates(VirtualFile[] files) throws Exception {<NEW_LINE>for (final VirtualFile file : files) {<NEW_LINE>// check for collisions with already existing entries<NEW_LINE>for (final ContentEntry contentEntry : myEntryToEditorMap.keySet()) {<NEW_LINE>final VirtualFile contentEntryFile ...
rootModel = myModulesProvider.getRootModel(module);
1,263,355
private void processHostPickingStrategy() {<NEW_LINE>final String value = this.config.getString("hostPickingStrategy");<NEW_LINE>if ("random".equals(value)) {<NEW_LINE>hostPickingStrategy(HostPickingStrategies.random());<NEW_LINE>} else if ("onerandom".equals(value)) {<NEW_LINE>hostPickingStrategy(HostPickingStrategies...
config.getString("hostPickingStrategyKey")));
925,049
private void initComponentsI18n() {<NEW_LINE>// JFormDesigner - Component i18n initialization - DO NOT MODIFY //GEN-BEGIN:initI18n<NEW_LINE>DefaultComponentFactory.setTextAndMnemonic(_titleAppearance, SikuliIDEI18N._I("PreferencesWin.titleAppearance.textWithMnemonic"));<NEW_LINE>DefaultComponentFactory.setTextAndMnemo...
, SikuliIDEI18N._I("PreferencesWin.paneTextEditing.tab.title"));
306,234
public void onAnimationEnd(Animator animation) {<NEW_LINE>--mDismissAnimationRefCount;<NEW_LINE>if (mDismissAnimationRefCount == 0) {<NEW_LINE>// No active animations, process all pending dismisses.<NEW_LINE>// Sort by descending position<NEW_LINE>Collections.sort(mPendingDismisses);<NEW_LINE>int[] dismissPositions = n...
pendingDismiss.view.setTranslationX(0);
1,186,079
public static int appendLocalEdgeComment(final AbstractSQLProvider provider, final INaviEdge edge, final String commentText, final Integer userId) throws CouldntSaveDataException {<NEW_LINE>Preconditions.checkNotNull(provider, "IE00486: provider argument can not be null");<NEW_LINE>Preconditions.checkNotNull(edge, "IE0...
appendCommentFunction.setString(4, commentText);
1,090,549
private void initLotSelection() {<NEW_LINE>ArrayList<KeyNamePair> list = new ArrayList<KeyNamePair>();<NEW_LINE>list.add(new KeyNamePair(-1, ""));<NEW_LINE>String sql = Env.getUserRolePermissions().addAccessSQL("SELECT M_Lot_ID, Name FROM M_Lot WHERE IsActive='Y' ORDER BY 2", "M_Lot", <MASK><NEW_LINE>PreparedStatement ...
IUserRolePermissions.SQL_NOTQUALIFIED, Access.READ);
1,283,072
protected void handlePost(final HttpServletRequest req, final HttpServletResponse resp, final Session session) throws ServletException, IOException {<NEW_LINE>try {<NEW_LINE>final String jsonPayload = HttpRequestUtils.getBody(req);<NEW_LINE>// Convert to GenericImageType DTO to transfer the input request<NEW_LINE>final...
this.imageTypeService.createImageType(genericImageType);
17,223
final UpdateApiDestinationResult executeUpdateApiDestination(UpdateApiDestinationRequest updateApiDestinationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateApiDestinationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
516,970
private static void copyRecursively(FileObject source, File targetRoot, File target, Set<String> filter, FileManagerTransaction fmtx, List<File> copied) throws IOException {<NEW_LINE>if (source.isFolder()) {<NEW_LINE>if (target.exists() && !target.isDirectory()) {<NEW_LINE>throw new IOException("Cannot create folder: "...
copy = filter.contains(path);
857,270
// Returns true if multipoint_a is within envelope_b.<NEW_LINE>private static boolean multiPointWithinEnvelope_(MultiPoint multipoint_a, Envelope envelope_b, double tolerance, ProgressTracker progress_tracker) {<NEW_LINE>Envelope2D env_a = new Envelope2D(), env_b = new Envelope2D();<NEW_LINE>multipoint_a.queryEnvelope2...
.inflate(0, -tolerance);
1,703,137
public void draw(@NonNull Canvas canvas, @NonNull Value value, int coordinateX, int coordinateY) {<NEW_LINE>if (!(value instanceof WormAnimationValue)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>WormAnimationValue v = (WormAnimationValue) value;<NEW_LINE><MASK><NEW_LINE>int rectEnd = v.getRectEnd();<NEW_LINE>int radius = i...
int rectStart = v.getRectStart();
773,225
private // stream.<NEW_LINE>boolean decompress(boolean wait) {<NEW_LINE>if (underlying == null)<NEW_LINE>throw new Exception("ZlibInStream overrun: no underlying stream");<NEW_LINE>zs.next_out = b;<NEW_LINE>zs.next_out_index = end;<NEW_LINE>zs.avail_out = start + bufSize - end;<NEW_LINE>int n = underlying.check(1, 1, w...
.next_in_index - underlying.getptr();
1,774,129
private TAIResult handleAccessTokenFlow(HttpServletRequest request, HttpServletResponse response, SocialLoginConfig clientConfig) throws WebTrustAssociationFailedException {<NEW_LINE>TAIResult result = null;<NEW_LINE>// request should have token<NEW_LINE>String tokenFromRequest = taiWebUtils.getBearerAccessToken(reques...
"ACCESS_TOKEN_MISSING_FROM_HEADERS", clientConfig.getUniqueId());
199,804
public static ListDataStreamsResponse unmarshall(ListDataStreamsResponse listDataStreamsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDataStreamsResponse.setRequestId(_ctx.stringValue("ListDataStreamsResponse.RequestId"));<NEW_LINE>Headers headers = new Headers();<NEW_LINE>headers.setXManagedCount(_ctx.integerValu...
= new ArrayList<IndicesItem>();
11,290
public static Response browserLogout(KeycloakSession session, RealmModel realm, UserSessionModel userSession, UriInfo uriInfo, ClientConnection connection, HttpHeaders headers) {<NEW_LINE>if (userSession == null)<NEW_LINE>return null;<NEW_LINE>if (logger.isDebugEnabled()) {<NEW_LINE>UserModel user = userSession.getUser...
realm, asm, userSession, true);
1,693,298
private void flush0() throws IOException {<NEW_LINE>if (!currentRow.isEmpty()) {<NEW_LINE>throw new RuntimeException("Unflushed data in the current row. Very likely a bug.");<NEW_LINE>}<NEW_LINE>if (data.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Check if column widths have changed.<NEW_LINE>List<List<String>...
colData = columns.get(i);
379,249
private void createConstantDeclaration() throws CoreException {<NEW_LINE>Type type = getConstantType();<NEW_LINE>IExpressionFragment fragment = getSelectedExpression();<NEW_LINE>Expression initializer = getSelectedExpression().createCopyTarget(fCuRewrite.getASTRewrite(), true);<NEW_LINE>AST ast = fCuRewrite.getAST();<N...
fCuRewrite.createGroupDescription(RefactoringCoreMessages.ExtractConstantRefactoring_declare_constant);
565,776
protected int compareVertex_(Treap treap, int node, int vertex) {<NEW_LINE>boolean bCurve = m_shape.getSegment(vertex) != null;<NEW_LINE>if (!bCurve) {<NEW_LINE>m_shape.queryLineConnector(vertex, m_line_1);<NEW_LINE>m_env.setCoordsNoNaN_(m_line_1.getStartX(), m_line_1.getEndX());<NEW_LINE>}<NEW_LINE>if (bCurve) {<NEW_L...
v_2.sub(m_point_of_interest, start);
36,433
protected <T> Serializer<T> findDelegate(T data, Map<Class<?>, Serializer<?>> delegates) {<NEW_LINE>if (!this.assignable) {<NEW_LINE>Serializer<?> delegate = delegates.get(data.getClass());<NEW_LINE>if (delegate == null) {<NEW_LINE>throw new SerializationException("No matching delegate for type: " + data.getClass().get...
(Collectors.toList()));
367,605
protected void populateDynamicStructure(MemBuffer buf, Structure struct) {<NEW_LINE>DataType entryDataType = entrySize == 8 <MASK><NEW_LINE>int bufOffset = 0;<NEW_LINE>// limit to number of bytes specified for RELR table<NEW_LINE>int remaining = length;<NEW_LINE>// relr base index<NEW_LINE>int index = 0;<NEW_LINE>struc...
? QWordDataType.dataType : DWordDataType.dataType;
488,206
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String diskPoolName, String iscsiTargetName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot...
error(new IllegalArgumentException("Parameter diskPoolName is required and cannot be null."));
130,579
public static ModifyElastictaskResponse unmarshall(ModifyElastictaskResponse modifyElastictaskResponse, UnmarshallerContext _ctx) {<NEW_LINE>modifyElastictaskResponse.setRequestId(_ctx.stringValue("ModifyElastictaskResponse.RequestId"));<NEW_LINE>Result result = new Result();<NEW_LINE>ElasticExpansionTask elasticExpans...
(_ctx.stringValue("ModifyElastictaskResponse.Result.elasticShrinkTask.cronExpression"));
1,174,535
public Webhook requestWebhook(Long webhookId, String xSdsDateFormat, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'webhookId' is set<NEW_LINE>if (webhookId == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'w...
(webhookId.toString()));
225,730
final PutExternalModelResult executePutExternalModel(PutExternalModelRequest putExternalModelRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putExternalModelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.SERVICE_ID, "FraudDetector");
223,024
private static Vector apply(CompLongDoubleVector v1, LongLongVector v2, Binary op) {<NEW_LINE>LongDoubleVector[] parts = v1.getPartitions();<NEW_LINE>Storage[] resParts = StorageSwitch.applyComp(v1, v2, op);<NEW_LINE>if (!op.isKeepStorage()) {<NEW_LINE>for (int i = 0; i < parts.length; i++) {<NEW_LINE>if (parts[i].getS...
get(subidx), 0));
1,192,671
public void testJMSProducerSendMessage_TCP_SecOff(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>JMSContext jmsContextQCFTCP = qcfTCP.createContext();<NEW_LINE>emptyQueue(qcfTCP, queue1);<NEW_LINE><MASK><NEW_LINE>msg.setJMSType("TestType");<NEW_LINE>msg.setJMSCorrelationID("MyCorr...
Message msg = jmsContextQCFTCP.createMessage();
834,611
final public FieldDeclaration FieldDeclaration(ModifierHolder modifier) throws ParseException {<NEW_LINE>Type type;<NEW_LINE>List<VariableDeclarator> variables = new LinkedList<VariableDeclarator>();<NEW_LINE>VariableDeclarator val;<NEW_LINE>// Modifiers are already matched in the caller<NEW_LINE>type = Type();<NEW_LIN...
orIfInvalid(type.getBegin());
985,458
static // StackDriver.<NEW_LINE>List<TimeSeries> createTimeSeriesList(io.opencensus.metrics.export.Metric metric, MonitoredResource monitoredResource, String domain, String projectId, Map<LabelKey, LabelValue> constantLabels) {<NEW_LINE>List<TimeSeries<MASK><NEW_LINE>io.opencensus.metrics.export.MetricDescriptor metric...
> timeSeriesList = Lists.newArrayList();
56,295
public GeneratedPolicy unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GeneratedPolicy generatedPolicy = new GeneratedPolicy();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
JsonToken token = context.getCurrentToken();
777,081
public void annotate(final ReferenceContext ref, final VariantContext vc, final Genotype g, final GenotypeBuilder gb, final AlleleLikelihoods<GATKRead, Allele> likelihoods) {<NEW_LINE>Utils.nonNull(vc);<NEW_LINE>Utils.nonNull(g);<NEW_LINE>Utils.nonNull(gb);<NEW_LINE>if (likelihoods == null || !g.isCalled()) {<NEW_LINE>...
" not a strict subset of AlleleLikelihoods alleles " + likelihoods.alleles());
1,206,196
private void prepareEsniContentsHash(EncryptedServerNameIndicationExtensionMessage msg) {<NEW_LINE>byte[] contentsHash = null;<NEW_LINE>byte[] contents = msg.getEncryptedSniComputation().getEsniContents().getValue();<NEW_LINE>CipherSuite cipherSuite = CipherSuite.getCipherSuite(msg.getCipherSuite().getValue());<NEW_LIN...
getInstance(algorithm.getJavaName());
1,397,614
public HistogramResult run(Database database, Relation<O> relation) {<NEW_LINE>KNNSearcher<DBIDRef> knnQuery = new QueryBuilder<>(relation, distance).kNNByDBID(relation.size());<NEW_LINE>if (LOG.isVerbose()) {<NEW_LINE>LOG.verbose("Preprocessing clusters...");<NEW_LINE>}<NEW_LINE>// Cluster by labels<NEW_LINE>Collectio...
autorun(database).getAllClusters();
1,370,223
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>getSerializedSize();<NEW_LINE>if (((bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (((bitField0_ & 0x00000002) == 0x00000002)) {<NEW_LINE>output.writeBytes(2, getLogfileNameBytes())...
output.writeInt32(1, version_);
1,616,678
public static Pair<String[], String[]> createSortedLanguageDisplayStrings(CharSequence[] languageCodes, Locale locale) {<NEW_LINE>if (languageCodes == null || languageCodes.length < 1) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ArrayList<String> entryStrings = new ArrayList<>(languageCodes.length);<NEW_LINE>for (int i...
(i).split("__");
792,804
private void warmStartServer() {<NEW_LINE>Future<Result> startFuture = server.start();<NEW_LINE>try {<NEW_LINE>result = startFuture.get(SERVER_START_TIMEOUT, SERVER_START_TIMEOUT_UNIT);<NEW_LINE>dumpResult("Starting a server", result);<NEW_LINE>Assert.assertTrue("Result of start attempt should be successful", result.su...
error(c, CURRENT_METHOD_NAME, e);
1,386,946
public boolean onOptionsItemSelected(final MenuItem item) {<NEW_LINE>switch(item.getItemId()) {<NEW_LINE>case OPTIONS_MENU_MARK_ALL_AS_READ:<NEW_LINE>RedditAPI.markAllAsRead(CacheManager.getInstance(this), new APIResponseHandler.ActionResponseHandler(this) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected void onSucces...
).getDefaultAccount(), this);
601,976
public final <K> Map<K, ?> toMap(Supplier<? extends K> keySupplier1, Supplier<? extends K> keySupplier2, Supplier<? extends K> keySupplier3, Supplier<? extends K> keySupplier4, Supplier<? extends K> keySupplier5, Supplier<? extends K> keySupplier6, Supplier<? extends K> keySupplier7, Supplier<? extends K> keySupplier8,...
keySupplier4.get(), v4);
318,145
public Command<K, V, List<StreamMessage<K, V>>> xclaim(K key, Consumer<K> consumer, XClaimArgs xClaimArgs, String[] messageIds) {<NEW_LINE>notNullKey(key);<NEW_LINE>LettuceAssert.notNull(consumer, "Consumer " + MUST_NOT_BE_NULL);<NEW_LINE>LettuceAssert.notEmpty(messageIds, "MessageIds " + MUST_NOT_BE_EMPTY);<NEW_LINE>L...
noNullElements(messageIds, "MessageIds " + MUST_NOT_CONTAIN_NULL_ELEMENTS);
807,243
private RoutingCHEdgeExplorer createEdgeExplorer(final RoutingCHEdgeExplorer explorer, final IntObjectMap<List<RoutingCHEdgeIteratorState>> virtualEdgesAtRealNodes) {<NEW_LINE>final VirtualCHEdgeIterator iterator = new VirtualCHEdgeIterator();<NEW_LINE>return new RoutingCHEdgeExplorer() {<NEW_LINE><NEW_LINE>@Override<N...
virtualEdges = virtualEdgesAtRealNodes.get(baseNode);
1,341,192
public OGCStructure executeOGC(int import_flags, String wkt_string, ProgressTracker progress_tracker) {<NEW_LINE>ArrayList<OGCStructure> stack = new ArrayList<OGCStructure>(0);<NEW_LINE>WktParser wkt_parser = new WktParser(wkt_string);<NEW_LINE>OGCStructure root = new OGCStructure();<NEW_LINE>root.m_structures = new Ar...
new ArrayList<OGCStructure>(0);
653,024
public boolean load(IResourceManager manager, ResourceLocation location) {<NEW_LINE>TextureData data = loadFromManager(manager, from);<NEW_LINE>BufferedImage[] images = new BufferedImage[1 + Minecraft.getMinecraft().gameSettings.mipmapLevels];<NEW_LINE>images[0] = new BufferedImage(data.image.getWidth(), data.image.get...
image.getRGB(w, h);
1,435,668
public void ldapMatchingRuleInChain_MemberOf() throws Exception {<NEW_LINE>// This test will only be executed when using physical LDAP server as these type of filters are not supported on ApacheDS<NEW_LINE>Assume.assumeTrue(!LDAPUtils.USE_LOCAL_LDAP_SERVER);<NEW_LINE>Log.info(c, "ldapMatchingRuleInChain_MemberOf", "Che...
getList().size());
583,406
protected Invoice transformToRefund(Invoice invoice) throws AxelorException {<NEW_LINE>Invoice refund = new RefundInvoice(invoice).generate();<NEW_LINE>if (refund.getInvoiceLineList() != null) {<NEW_LINE>for (InvoiceLine invoiceLine : refund.getInvoiceLineList()) {<NEW_LINE>invoiceLine.setPrice(invoiceLine.getPrice().n...
getAmountRemaining().negate());
1,490,741
public PutGeofenceResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PutGeofenceResult putGeofenceResult = new PutGeofenceResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
"iso8601").unmarshall(context));
1,626,315
public Table build() {<NEW_LINE>List<ColumnVector> columns = new ArrayList<>(types.size());<NEW_LINE>try {<NEW_LINE>for (int i = 0; i < types.size(); i++) {<NEW_LINE>DataType <MASK><NEW_LINE>DType dtype = dataType.getType();<NEW_LINE>Object dataArray = typeErasedData.get(i);<NEW_LINE>if (dtype.isNestedType()) {<NEW_LIN...
dataType = types.get(i);
1,481,265
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.<MASK><NEW_LINE>MageObject sourceObject = source.getSourceObject(game);<NEW_LINE>if (controller != null && sourceObject != null) {<NEW_LINE>UUID exileZoneId = CardUtil.getExileZoneId(game, source.getSourceId(), source.getSourceObjectZon...
getPlayer(source.getControllerId());
1,277,052
final UpdateTrustStoreResult executeUpdateTrustStore(UpdateTrustStoreRequest updateTrustStoreRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateTrustStoreRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,408,432
private Jep createJEPInstance() {<NEW_LINE>Jep jep = null;<NEW_LINE>boolean success = false;<NEW_LINE>try {<NEW_LINE>File delftPath = this.getAndValidateDelftPath();<NEW_LINE>JepConfig config = this.getJepConfig(delftPath, PythonEnvironmentConfig.getInstance().getSitePackagesPath());<NEW_LINE>// jep = new SubInterprete...
throw new RuntimeException("JEP initialization failed", e);
1,317,365
public static ListFilteringAlgorithmsResponse unmarshall(ListFilteringAlgorithmsResponse listFilteringAlgorithmsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listFilteringAlgorithmsResponse.setRequestId(_ctx.stringValue("ListFilteringAlgorithmsResponse.requestId"));<NEW_LINE>Headers headers = new Headers();<NEW_LINE>h...
("ListFilteringAlgorithmsResponse.result[" + i + "].meta.tableName"));
155,948
private static Table columnPercents(Table xTabCounts) {<NEW_LINE>Table pctTable = Table.create("Crosstab Column Proportions: ");<NEW_LINE>StringColumn labels = StringColumn.create(LABEL_COLUMN_NAME);<NEW_LINE>pctTable.addColumns(labels);<NEW_LINE>// setup the labels<NEW_LINE>for (int i = 0; i < xTabCounts.rowCount(); i...
].append(Double.NaN);
251,343
private List<IRecordedAction> handleMouseRelease(Long time, NativeMouseEvent event) {<NEW_LINE>List<IRecordedAction> actions = new ArrayList<>();<NEW_LINE>Long firstMouseMoveEventTime = findFirstMouseMoveTime(pressedTime);<NEW_LINE>Object[] result = readCeilingScreenshot(firstMouseMoveEventTime);<NEW_LINE>Mat screensho...
RightClickAction(pattern, getModifierTexts());
427,044
private void assignPinsAndNodes() throws IOException, PinMapException {<NEW_LINE>int pinNum = 0;<NEW_LINE>StringBuilder pin = new StringBuilder();<NEW_LINE>int nodeNum = 0;<NEW_LINE>StringBuilder node = new StringBuilder();<NEW_LINE>for (String i : builder.getInputs()) {<NEW_LINE>int p = pinMap.getInputFor(i);<NEW_LINE...
p = pinMap.isOutputAssigned(o);
101,743
public synchronized void addChatRoomMsg(final RequestContext context) {<NEW_LINE>final JSONObject requestJSONObject = (JSONObject) context.attr(Keys.REQUEST);<NEW_LINE>String content = requestJSONObject.optString(Common.CONTENT);<NEW_LINE>content = shortLinkQueryService.linkArticle(content);<NEW_LINE><MASK><NEW_LINE>co...
content = Emotions.convert(content);
1,649,852
public SqlStatement[] generateStatements(Database database) throws CustomChangeException {<NEW_LINE>List<UserSettings> userSettingRows = new ArrayList<>();<NEW_LINE>JdbcConnection conn = null;<NEW_LINE>if (database.getConnection() instanceof JdbcConnection) {<NEW_LINE>conn = (JdbcConnection) database.getConnection();<N...
.add(mapRow(result));