idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
318,337
private void initialize(GroupModel group) {<NEW_LINE>root.initializeRealmResourceServer();<NEW_LINE>root.initializeRealmDefaultScopes();<NEW_LINE>ResourceServer server = root.realmResourceServer();<NEW_LINE>Scope manageScope = root.realmManageScope();<NEW_LINE>Scope viewScope = root.realmViewScope();<NEW_LINE>Scope man...
server, managePermissionName, groupResource, manageScope);
821,006
private void prepareRowDescription() {<NEW_LINE>final RecordMetadata metadata = typesAndSelect.getFactory().getMetadata();<NEW_LINE>ResponseAsciiSink sink = responseAsciiSink;<NEW_LINE>sink.put(MESSAGE_TYPE_ROW_DESCRIPTION);<NEW_LINE>final long addr = sink.skip();<NEW_LINE>final int n = activeSelectColumnTypes.size() /...
) ? ColumnType.STRING : typeFlag);
795,873
protected void parseTaskListeners(Element userTaskElement, ActivityImpl activity, TaskDefinition taskDefinition) {<NEW_LINE>Element extentionsElement = userTaskElement.element("extensionElements");<NEW_LINE>if (extentionsElement != null) {<NEW_LINE>List<Element> taskListenerElements = extentionsElement.elementsNS(CAMUN...
.attribute("id"), taskListener);
635,878
public byte[] generateRawSignature(SignatureAndHashAlgorithm algorithm, byte[] hash) throws IOException {<NEW_LINE>if (algorithm == null || SignatureScheme.from(algorithm) != signatureScheme) {<NEW_LINE>throw new IllegalStateException("Invalid algorithm: " + algorithm);<NEW_LINE>}<NEW_LINE>int cryptoHashAlgorithm = Sig...
hash, 0, hash.length);
1,530,342
private void invokeOperations(MethodVisitor mv, MethodInfo method, boolean callSuperMethod) {<NEW_LINE>String operationDescriptor;<NEW_LINE>StringJoiner joiner = new StringJoiner("", "(", ")");<NEW_LINE>if (!callSuperMethod) {<NEW_LINE>joiner.add(CLASS.descriptor());<NEW_LINE>}<NEW_LINE>descriptors(method, joiner);<NEW...
TypeVariable typeVariable = returnType.asTypeVariable();
818,592
public void update(Feature fp) {<NEW_LINE>Util.assertNotNull(fp);<NEW_LINE>Util.assertHasLength(fp.getUid());<NEW_LINE>// Check existence<NEW_LINE>read(fp.getUid());<NEW_LINE>// Create or update core Feature as a first TX<NEW_LINE><MASK><NEW_LINE>graphDb.execute(createUpdateCoreFeature(fp));<NEW_LINE>tx.success();<NEW_...
Transaction tx = graphDb.beginTx();
1,675,524
private void selectFolderInternal(final SelectAction action, final PersistableFolder folder, final Uri startUri, final CopyChoice copyChoice) {<NEW_LINE>// call for document tree dialog<NEW_LINE>final Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT_TREE);<NEW_LINE>intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMI...
folder.getUri() : null);
1,206,086
public void handleOrderVoided(@NonNull final VoidOrderAndRelatedDocsRequest request) {<NEW_LINE>final IDocumentBL documentBL = Services.get(IDocumentBL.class);<NEW_LINE>final IPair<RecordsToHandleKey, List<ITableRecordReference>> recordsToHandle = request.getRecordsToHandle();<NEW_LINE>final List<I_C_Order> orderRecord...
getVoidedOrderDocumentNoPrefix(), orderRecord, 1);
314,847
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>// delete any previous instances of downloaded maps<NEW_LINE>deleteDirectory(getCacheDir());<NEW_LINE>// create up a temporary directory in the app's cache for savi...
ArcGISMap onlineMap = new ArcGISMap(portalItem);
1,340,178
public void build(Model model, Datas datas, String id, List<Expression> exps, List<EAnnotation> annotations) {<NEW_LINE>IntVar idx1 = exps.get(0).intVarValue(model);<NEW_LINE>int o1 = exps.get(1).intValue();<NEW_LINE>IntVar idx2 = exps.get(2).intVarValue(model);<NEW_LINE>int o2 = exps.get(3).intValue();<NEW_LINE>int[] ...
new int[d1][d2];
755,978
public TypeBinding resolveForCatch(BlockScope scope) {<NEW_LINE>// resolution on an argument of a catch clause<NEW_LINE>// provide the scope with a side effect : insertion of a LOCAL<NEW_LINE>// that represents the argument. The type must be from JavaThrowable<NEW_LINE>TypeBinding exceptionType = this.type.resolveType(...
).nullAnnotationUnsupportedLocation(this.type);
826,780
private SnapshotResponse parseTarget(String target, String[] parts, String method) throws InvalidAPICallException {<NEW_LINE>String projectName = parts[4];<NEW_LINE>if (parts.length == 5) {<NEW_LINE>if (method.equals("GET")) {<NEW_LINE>return new SnapshotGetDocResponse(state.getStateForGetDoc(projectName));<NEW_LINE>}<...
(parts[6])));
886,135
public Image visualize() {<NEW_LINE>this.currentZoom = this.zoom;<NEW_LINE>this<MASK><NEW_LINE>this.height = universe.getRows();<NEW_LINE>int imageSize = width * height * currentZoom * currentZoom * 3;<NEW_LINE>if (this.pixels == null || this.pixels.length != imageSize) {<NEW_LINE>this.currentImage = new BufferedImage(...
.width = universe.getColumns();
703,388
private ExternallyReferencedCandidate forRecord(@NonNull final I_C_Invoice_Candidate icRecord) {<NEW_LINE>final ExternallyReferencedCandidateBuilder candidate = ExternallyReferencedCandidate.builder();<NEW_LINE>candidate.orgId(OrgId.ofRepoId(icRecord.getAD_Org_ID())).id(InvoiceCandidateId.ofRepoId(icRecord.getC_Invoice...
(icRecord.getM_PriceList_Version_ID()));
409,025
public static HelpCtx findHelp(java.awt.Component comp) {<NEW_LINE>if (err.isLoggable(Level.FINEST)) {<NEW_LINE>err.log(Level.FINEST, "findHelp on " <MASK><NEW_LINE>} else {<NEW_LINE>err.log(Level.FINE, "findHelp on {0}", comp);<NEW_LINE>}<NEW_LINE>while (comp != null) {<NEW_LINE>if (comp instanceof HelpCtx.Provider) {...
+ comp, new Exception());
201,121
public void init() {<NEW_LINE>verbose = Boolean.parseBoolean(getProperties().getProperty(VERBOSE, VERBOSE_DEFAULT));<NEW_LINE>todelay = Integer.parseInt(getProperties().getProperty(SIMULATE_DELAY, SIMULATE_DELAY_DEFAULT));<NEW_LINE>randomizedelay = Boolean.parseBoolean(getProperties()<MASK><NEW_LINE>count = Boolean.par...
.getProperty(RANDOMIZE_DELAY, RANDOMIZE_DELAY_DEFAULT));
34,293
protected void handleReadyResponse(String response, JsonObject jo) {<NEW_LINE>if (TinyGUtils.isTinyGVersion(jo)) {<NEW_LINE>firmwareVersionNumber = TinyGUtils.getVersion(jo);<NEW_LINE>firmwareVersion = "G2Core " + firmwareVersionNumber;<NEW_LINE>}<NEW_LINE>capabilities.addCapability(CapabilitiesConstants.X_AXIS);<NEW_L...
capabilities.addCapability(CapabilitiesConstants.C_AXIS);
1,712,911
@PostMapping("/cmmn-management/deadletter-jobs/{jobId}")<NEW_LINE>public void executeDeadLetterJobAction(@ApiParam(name = "jobId") @PathVariable String jobId, @RequestBody RestActionRequest actionRequest, HttpServletResponse response) {<NEW_LINE>if (actionRequest == null || !(MOVE_ACTION.equals(actionRequest.getAction(...
HttpStatus.NO_CONTENT.value());
766,740
private void drawCrossHairs(PDAnnotationText annotation, final PDAppearanceContentStream contentStream) throws IOException {<NEW_LINE>PDRectangle bbox = adjustRectAndBBox(annotation, 20, 20);<NEW_LINE>float min = Math.min(bbox.getWidth(), bbox.getHeight());<NEW_LINE>contentStream.setMiterLimit(4);<NEW_LINE>contentStrea...
.getTranslateInstance(0, 50));
1,443,713
public static void saveScreenshot(final Context c, int w, int h, GL10 gl) {<NEW_LINE>try {<NEW_LINE>SharedPreferences mPrefs = PreferenceManager.getDefaultSharedPreferences(c);<NEW_LINE>File dir = new File(mPrefs.getString(Config.pref_home, Environment.getExternalStorageDirectory().getAbsolutePath()));<NEW_LINE>SimpleD...
CompressFormat.JPEG, 100, out);
1,195,440
public static void vertical9(Kernel1D_S32 kernel, GrayU8 src, GrayI8 dst, int divisor, @Nullable GrowArray<DogArray_I32> workspaces) {<NEW_LINE>final byte[] dataSrc = src.data;<NEW_LINE>final byte[] dataDst = dst.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3...
k7 = kernel.data[6];
1,329,543
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {<NEW_LINE>isFFDC = req.getParameter("isFFDC");<NEW_LINE>java.util.logging.Logger logger = java.util.logging.Logger.getLogger(loggerName);<NEW_LINE>String truncated = req.getParameter("truncated");<NEW_LINE>String pr...
loggerName, "Method.Info", prefix + logMessage);
1,237,912
public static DescribeVsTopDomainsByFlowResponse unmarshall(DescribeVsTopDomainsByFlowResponse describeVsTopDomainsByFlowResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeVsTopDomainsByFlowResponse.setRequestId(_ctx.stringValue("DescribeVsTopDomainsByFlowResponse.RequestId"));<NEW_LINE>describeVsTopDomainsByFlowRe...
("DescribeVsTopDomainsByFlowResponse.TopDomains[" + i + "].Rank"));
563,383
final DeleteTriggerResult executeDeleteTrigger(DeleteTriggerRequest deleteTriggerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteTriggerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
false), new DeleteTriggerResultJsonUnmarshaller());
1,833,158
/*public static boolean isAFWallAllowed(Context context) {<NEW_LINE>try {<NEW_LINE>int uid = context.getPackageManager().getApplicationInfo(context.getPackageName(), PackageManager.GET_META_DATA).uid;<NEW_LINE>SharedPreferences prefs = context.getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE);<NEW_LINE>List<Intege...
selected_roam = new ArrayList<>();
1,234,663
public Map<String, Object> toKarateJson() {<NEW_LINE>Map<String, Object> map = new HashMap();<NEW_LINE>// these first few are only for the ease of reports<NEW_LINE>// note that they are not involved in the reverse fromKarateJson()<NEW_LINE>map.<MASK><NEW_LINE>List<String> tags = scenario.getTagsEffective().getTags();<N...
put("durationMillis", getDurationMillis());
1,807,718
public ErrorCode action(ByteBuf ackPayload, String clientID, String fromUser, ProtoConstants.RequestSourceType requestSourceType, WFCMessage.PullMessageRequest request, Qos1PublishHandler.IMCallback callback) {<NEW_LINE>ErrorCode errorCode = ErrorCode.ERROR_CODE_SUCCESS;<NEW_LINE>if (request.getType() == ProtoConstants...
.length).writeBytes(data);
628,360
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "create window RectangleWindow#keepall as (id string, rx double, ry double, rw double, rh double);\n" + "create index MyIndex on RectangleWindow((rx,ry,rw,rh) mxcifquadtree(0,0,100,100));\n" + "insert into RectangleWindow select id, x as rx, y as ry, wi...
51.01654641861326, 43.49009281983866, 1, 1);
389,330
private void addUserInterceptors(NettyChannelBuilder builder, Map<String, String> config) {<NEW_LINE>String interceptorListString = config.get(GrpcClientConstants.CLIENT_INTERCEPTORS_PROP);<NEW_LINE>if (interceptorListString != null) {<NEW_LINE>List<String> items = Arrays.asList<MASK><NEW_LINE>if (!items.isEmpty()) {<N...
(interceptorListString.split("\\s*,\\s*"));
1,443,018
final GetSoftwareUpdatesResult executeGetSoftwareUpdates(GetSoftwareUpdatesRequest getSoftwareUpdatesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSoftwareUpdatesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
812,944
private void checkMapToDownload(RotatedTileBox tileBox, List<BinaryMapDataObject> currentObjects) {<NEW_LINE>int zoom = tileBox.getZoom();<NEW_LINE>int cx = tileBox.getCenter31X();<NEW_LINE>int cy = tileBox.getCenter31Y();<NEW_LINE>if (lastCheckMapCx == cx && lastCheckMapCy == cy && lastCheckMapZoom == zoom) {<NEW_LINE...
String regionDownloadName = regionData.getRegionDownloadName();
1,320,020
public static void main(String[] args) {<NEW_LINE>String xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + "<manifest\n" + " versionCode='@res/0x00000001'\n" + " versionName='1.0'\n" + " package='com.google.example.minproject'\n" + " platformBuildVersionCode='23'\n" + " platformBuildVersionName='6.0...
out.println(e.text);
782,078
private Map<String, SecurityIpFilterRule[]> parseSettings() {<NEW_LINE>if (isIpFilterEnabled || isHttpFilterEnabled) {<NEW_LINE>Map<String, SecurityIpFilterRule[]> profileRules = new HashMap<>();<NEW_LINE>if (isHttpFilterEnabled && boundHttpTransportAddress.get() != null) {<NEW_LINE>TransportAddress[] localAddresses = ...
.get().boundAddresses();
1,344,445
public DescribeSpotFleetRequestsResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeSpotFleetRequestsResult describeSpotFleetRequestsResult = new DescribeSpotFleetRequestsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NE...
().unmarshall(context));
1,404,120
public GlmEvaluationBatchOp linkFrom(BatchOperator<?>... inputs) {<NEW_LINE>checkOpSize(2, inputs);<NEW_LINE>BatchOperator<?> model = inputs[0];<NEW_LINE>BatchOperator<?> in = inputs[1];<NEW_LINE>String[] featureColNames = getFeatureCols();<NEW_LINE>String labelColName = getLabelCol();<NEW_LINE>String weightColName = g...
numFeature + 1] = Types.DOUBLE;
317,133
public void initialize(UUID customerUUID, UUID providerUUID) {<NEW_LINE>// Validate input<NEW_LINE>Customer.getOrBadRequest(customerUUID);<NEW_LINE>Provider provider = Provider.getOrBadRequest(customerUUID, providerUUID);<NEW_LINE>InitializationContext context = new InitializationContext(provider);<NEW_LINE>// Get some...
String instanceTypeCode = itr.next();
1,058,976
public static Operation.Error blockUntilComplete(Compute compute, Operation operation, long timeout) throws Exception {<NEW_LINE>long start = System.currentTimeMillis();<NEW_LINE>final long pollInterval = 5 * 1000;<NEW_LINE>// null for global/regional operations<NEW_LINE>String zone = getLastWordFromUrl(operation.getZo...
? null : operation.getError();
1,643,401
protected int resolveLevelForType(char[] qualifiedPattern, TypeBinding type) {<NEW_LINE>if (qualifiedPattern == null)<NEW_LINE>return ACCURATE_MATCH;<NEW_LINE>if (type == null || !type.isValidBinding())<NEW_LINE>return INACCURATE_MATCH;<NEW_LINE>// Type variable cannot be specified through pattern => this kind of bindi...
[] qualifiedSourceName = qualifiedSourceName(type);
225,337
final GetRateBasedRuleResult executeGetRateBasedRule(GetRateBasedRuleRequest getRateBasedRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getRateBasedRuleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
endClientExecution(awsRequestMetrics, request, response);
1,297,359
private static Map<TypeAlias, jnr.ffi.NativeType> buildTypeMap() {<NEW_LINE>Map<TypeAlias, jnr.ffi.NativeType> m = new EnumMap<TypeAlias, jnr.ffi.NativeType>(TypeAlias.class);<NEW_LINE>m.put(TypeAlias.int8_t, NativeType.SCHAR);<NEW_LINE>m.put(TypeAlias.u_int8_t, NativeType.UCHAR);<NEW_LINE>m.put(TypeAlias.int16_t, Nati...
TypeAlias.swblk_t, NativeType.SLONG);
1,291,872
public void onRequestFinish(MegaChatApiJava api, MegaChatRequest request, MegaChatError e) {<NEW_LINE>if (request.getType() == MegaChatRequest.TYPE_ATTACH_NODE_MESSAGE) {<NEW_LINE>requestSent--;<NEW_LINE>if (e.getErrorCode() == MegaChatError.ERROR_OK) {<NEW_LINE>logDebug("Attachment sent correctly");<NEW_LINE>MegaNodeL...
.getMegaChatMessage().getTempId();
137,098
public Http2MultiplexCodec build() {<NEW_LINE>Http2FrameWriter frameWriter = this.frameWriter;<NEW_LINE>if (frameWriter != null) {<NEW_LINE>// This is to support our tests and will never be executed by the user as frameWriter(...)<NEW_LINE>// is package-private.<NEW_LINE>DefaultHttp2Connection connection = new DefaultH...
= initialSettings().maxHeaderListSize();
943,569
public Request<StopTrainingDocumentClassifierRequest> marshall(StopTrainingDocumentClassifierRequest stopTrainingDocumentClassifierRequest) {<NEW_LINE>if (stopTrainingDocumentClassifierRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(StopTrainingDocumentClassifierRequest)...
content = snippet.getBytes(UTF8);
224,727
public List<IChunkMetadata> loadChunkMetadataList(ITimeSeriesMetadata timeSeriesMetadata) {<NEW_LINE>List<AlignedChunkMetadata> alignedChunkMetadataList = ((AlignedTimeSeriesMetadata) timeSeriesMetadata).getChunkMetadataList();<NEW_LINE>// get all sub sensors' modifications<NEW_LINE>List<List<Modification>> pathModific...
), resource.getTsFilePath());
1,137,893
protected void onResume() {<NEW_LINE>super.onResume();<NEW_LINE>if (getIntent().getBooleanExtra(FROM_LOG_OUT_BUTTON_KEY, false)) {<NEW_LINE>Toast.makeText(getApplicationContext(), R.string.log_out_toast_confirm, Toast.LENGTH_LONG).show();<NEW_LINE>} else if (getIntent().getAction() != null && getIntent().getAction().eq...
authCode = uri.getQueryParameter("code");
1,141,330
protected boolean acceptNavigation() {<NEW_LINE>SessionInfo sessionInfo = RStudioGinjector.INSTANCE.getSession().getSessionInfo();<NEW_LINE>if (!sessionInfo.isVcsAvailable(getVcsId())) {<NEW_LINE>NewProjectResources.Styles styles <MASK><NEW_LINE>VerticalPanel verticalPanel = new VerticalPanel();<NEW_LINE>verticalPanel....
= NewProjectResources.INSTANCE.styles();
412,850
private String convertDescriptionList(DescriptionList node) {<NEW_LINE>logger.debug("convertDescriptionList");<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>appendTitle(node, sb);<NEW_LINE>String style = Optional.ofNullable(node.getStyle<MASK><NEW_LINE>switch(style) {<NEW_LINE>case STYLE_HORIZONTAL:<NEW_LIN...
()).orElse("");
957,463
final DecodeAuthorizationMessageResult executeDecodeAuthorizationMessage(DecodeAuthorizationMessageRequest decodeAuthorizationMessageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(decodeAuthorizationMessageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
DecodeAuthorizationMessageResult>(new DecodeAuthorizationMessageResultStaxUnmarshaller());
130,653
public String addToTree(StackTraceElement[] st, int min) {<NEW_LINE>StackTrak node = this;<NEW_LINE>StackTrak lastMatch = node;<NEW_LINE>int lastMatchIndex = st.length - 1;<NEW_LINE>while (lastMatchIndex >= min && node != null) {<NEW_LINE>boolean eq = node<MASK><NEW_LINE>if (eq) {<NEW_LINE>lastMatch = node;<NEW_LINE>no...
.equal(st[lastMatchIndex]);
1,731,122
public void loadImage(final int requestId, final Uri uri, final Callback callback) {<NEW_LINE>final boolean[] cacheMissed = new boolean[1];<NEW_LINE>ImageDownloadTarget target = new ImageDownloadTarget(uri.toString()) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onResourceReady(@NonNull File resource, Transition...
super.onResourceReady(resource, transition);
1,241,397
private static // 64 bit create<NEW_LINE>NodeId create64(long value2) {<NEW_LINE>if (!BitsLong.isSet(value2, 63))<NEW_LINE>return createPtr(value2);<NEW_LINE>// Inline.<NEW_LINE>long v2 = value2;<NEW_LINE>if (BitsLong.isSet(v2, 62)) {<NEW_LINE>// XSD_DOUBLE<NEW_LINE>v2 = DoubleNode62.removeType(v2);<NEW_LINE>return Nod...
unpack(v2, 56, 63);
370,113
public static StringBuilder navurlBase(final RequestHeader.FileType ext, final QueryParams theQuery, final String newModifier, final boolean newModifierReplacesOld, final boolean authenticatedFeatures) {<NEW_LINE>final <MASK><NEW_LINE>sb.append("yacysearch.");<NEW_LINE>sb.append(ext.name().toLowerCase(Locale.ROOT));<NE...
StringBuilder sb = new StringBuilder(120);
376,109
public static Order adaptOrder(GeminiOrderStatusResponse geminiOrderStatusResponse) {<NEW_LINE><MASK><NEW_LINE>CurrencyPair currencyPair = adaptCurrencyPair(geminiOrderStatusResponse.getSymbol());<NEW_LINE>BigDecimal averageExecutionPrice = geminiOrderStatusResponse.getAvgExecutionPrice();<NEW_LINE>BigDecimal executedA...
Long id = geminiOrderStatusResponse.getId();
461,439
public void check(Configuration configuration) throws ConfigurationException {<NEW_LINE>for (ConfigurationField field : fields.values()) {<NEW_LINE>if (field.isOptional().equals(ConfigurationField.Optional.NOT_OPTIONAL)) {<NEW_LINE>final String type = field.getFieldType();<NEW_LINE>final <MASK><NEW_LINE>log.debug("Chec...
String fieldName = field.getName();
263,338
private Object invokeStateMachineListenerMethod(final Object listenTarget, final Method listenerMethod, final String condition, final StateMachineEvent<T, S, E, C> event) {<NEW_LINE>Class<?>[] parameterTypes = listenerMethod.getParameterTypes();<NEW_LINE>final Map<String, Object> variables = Maps.newHashMap();<NEW_LINE...
add(event.getStateMachine());
5,487
public void execute(EditorAdaptor editorAdaptor, int count) throws CommandExecutionException {<NEW_LINE>editorAdaptor.getHistory().beginCompoundChange();<NEW_LINE>TextContent modelContent = editorAdaptor.getModelContent();<NEW_LINE>String editorNewline = editorAdaptor.getConfiguration().getNewLine();<NEW_LINE>String te...
.getPosition().getModelOffset();
553,921
public void run() {<NEW_LINE>NotificationEvent event = (NotificationEvent) this.get(NCConstant.NCEventParam);<NEW_LINE>int priorityLevel = (int) <MASK><NEW_LINE>NotificationCenter nc = (NotificationCenter) this.getConfigManager().getComponent(this.feature, "NotificationCenter");<NEW_LINE>if (log.isTraceEnable()) {<NEW_...
this.get(NCConstant.PRIORITYLEVEL);
699,079
public static DescribeUisNetworkInterfacesResponse unmarshall(DescribeUisNetworkInterfacesResponse describeUisNetworkInterfacesResponse, UnmarshallerContext context) {<NEW_LINE>describeUisNetworkInterfacesResponse.setRequestId(context.stringValue("DescribeUisNetworkInterfacesResponse.RequestId"));<NEW_LINE>describeUisN...
("DescribeUisNetworkInterfacesResponse.NetworkInterfaces[" + i + "].IpAddress"));
58,656
public void clear() {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>domain.setText("");<NEW_LINE>if (notConfigOnly) {<NEW_LINE>followRedirects.setSelected(getUrlConfigDefaults().isFollowRedirects());<NEW_LINE>autoRedirects.setSelected(getUrlConfigDefaults().isAutoRedirects());<NEW_LINE>method.setText(getUrlConfigDefaults().getDefau...
postContentTabbedPane.setSelectedIndex(TAB_PARAMETERS, false);
1,363,670
final DeleteEventSubscriptionResult executeDeleteEventSubscription(DeleteEventSubscriptionRequest deleteEventSubscriptionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteEventSubscriptionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Redshift");
1,252,624
final StopDataSourceSyncJobResult executeStopDataSourceSyncJob(StopDataSourceSyncJobRequest stopDataSourceSyncJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopDataSourceSyncJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
816,519
public void preApply(String targetClassName, ClassNode targetClass, String mixinClassName, MixinInfo mixinInfo) throws Exception {<NEW_LINE>if (this.plugin == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (this.mode == CompatibilityMode.FAILED) {<NEW_LINE>throw new IllegalStateException("Companion plugin failure for ...
targetClassName, targetClass, mixinClassName, mixinInfo);
703,381
public final int registerRRSXAResourceInfo(String actSpecId) {<NEW_LINE>RRSXAResourceFactory xaFactory = rrsXAResFactorySvcRef.getService();<NEW_LINE>// Make sure that the bundle is active.<NEW_LINE>if (xaFactory == null) {<NEW_LINE>String formattedMessage = Utils.getMessage("J2CA8807.native.rrs.not.available", new Obj...
transactionManager.registerResourceInfo(filter, xaResInfo);
113,891
protected void paintComponent(Graphics g) {<NEW_LINE>final Insets i = getInsets();<NEW_LINE>final Rectangle r = getBounds();<NEW_LINE>final int width = r.width - i.left - i.right;<NEW_LINE>final int height = r.height - i.top - i.bottom;<NEW_LINE><MASK><NEW_LINE>g.fillRect(i.left, i.top, width, height);<NEW_LINE>g.setCo...
g.setColor(Color.WHITE);
1,512,621
public void marshall(KeyMetadata keyMetadata, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (keyMetadata == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(keyMetadata.getAWSAccountId(), AWSACCOUNTID_BINDING...
keyMetadata.getArn(), ARN_BINDING);
232,166
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (!getCodeBytes().isEmpty()) {<NEW_LINE>com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_);<NEW_LINE>}<NEW_LINE>if (!getLevelBytes().isEmpty()) {<NEW_LINE>com.google.protobuf.GeneratedMessageV3.wr...
writeString(output, 8, serverId_);
393,771
public void clearRecordedData(boolean isWarningEmpty) {<NEW_LINE>if (isWarningEmpty) {<NEW_LINE>SQLiteDatabase db = getWritableDatabase();<NEW_LINE>if (db != null) {<NEW_LINE>try {<NEW_LINE>if (db.isOpen()) {<NEW_LINE>// $NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$<NEW_LINE>db.execSQL("DELETE FROM " + TRACK_NAME + " WHERE "...
.getModifiablePointsToDisplay().clear();
904,429
public void onRedeclaration(Scope s, String name, Node n, CompilerInput input) {<NEW_LINE>checkState(n.isName());<NEW_LINE>Node parent = n.getParent();<NEW_LINE>Var v = s.getVar(name);<NEW_LINE>if (s.isGlobal()) {<NEW_LINE>// We allow variables to be duplicate declared if one<NEW_LINE>// declaration appears in source a...
checkState(parent.hasOneChild());
1,535,970
public static <K, A> int bulkAdd(Iterable<Row<K, A>> rows, final String tableName, final Connection connection) {<NEW_LINE>final String sql = String.format("INSERT OR IGNORE INTO cqtbl_%s values(?, ?);", tableName);<NEW_LINE>PreparedStatement statement = null;<NEW_LINE>int totalRowsModified = 0;<NEW_LINE>try {<NEW_LINE...
1, row.getObjectKey());
92,190
public void visitConstructorCallExpression(ConstructorCallExpression call) {<NEW_LINE>if (call.getEnd() > 0) {<NEW_LINE>if (call.getNameStart() > 0) {<NEW_LINE>if (call.isUsingAnonymousInnerClass()) {<NEW_LINE>check(call.getType().getUnresolvedSuperClass(false));<NEW_LINE>checkTypes(call.getType().getUnresolvedInterfac...
().getStart() - 1;
811,757
public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());<NEW_LINE>final LayoutInflater inflater = getActivity().getLayoutInflater();<NEW_LINE>final View root = inflater.inflate(R.layout.fragment_google_play_dialog, null);<NEW_LINE>bui...
trackEvent(Statistics.EventName.RATE_DIALOG_LATER);
1,454,218
public static void drawStringUnderlineCharAt(JComponent c, Graphics g, String text, int underlinedIndex, int x, int y) {<NEW_LINE>synchronized (JavaCompatibility.class) {<NEW_LINE>if (drawStringUnderlineCharAtMethod == null) {<NEW_LINE>try {<NEW_LINE>Class<?> cls = Class.forName(SystemInfo.isJava_9_orLater ? "javax.swi...
INSTANCE.logSevere(null, ex);
173,825
public void updateParameter(float newValue) {<NEW_LINE>if (map != null) {<NEW_LINE>ParameterType paramType = map.getParamType();<NEW_LINE>if (paramType != ParameterType.UNDEFINED) {<NEW_LINE>CommonPreference<Float> paramStepPref = getParamStepPref();<NEW_LINE>if (paramStepPref != null) {<NEW_LINE>float step = paramStep...
map.getUrlParameter(TileSourceManager.PARAMETER_NAME);
301,955
private Object mapUsingCustomConverterInstance(CustomConverter converterInstance, Class<?> srcFieldClass, Object srcFieldValue, Class<?> destFieldClass, Object existingDestFieldValue, FieldMap fieldMap, boolean topLevel) {<NEW_LINE>// 1792048 - If map-null = "false" and src value is null, then don't even invoke custom ...
existingDestFieldValue, srcFieldValue, destFieldClass, srcFieldClass);
1,719,341
private void readDingtalkConfig(Rules rules) {<NEW_LINE>Map dingtalkConfig = (<MASK><NEW_LINE>if (dingtalkConfig != null) {<NEW_LINE>DingtalkSettings dingtalkSettings = new DingtalkSettings();<NEW_LINE>Object textTemplate = dingtalkConfig.getOrDefault("textTemplate", "");<NEW_LINE>dingtalkSettings.setTextTemplate((Stri...
Map) yamlData.get("dingtalkHooks");
606,546
<T extends AbstractSaml2AuthenticationRequest> T resolve(HttpServletRequest request, BiConsumer<RelyingPartyRegistration, AuthnRequest> authnRequestConsumer) {<NEW_LINE>RequestMatcher.MatchResult result = this.requestMatcher.matcher(request);<NEW_LINE>if (!result.isMatch()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>S...
(Saml2Utils.samlDeflate(xml));
1,491,349
private int calculateXChartEnd(final Graphics g2d) {<NEW_LINE>int result;<NEW_LINE>result = (int) this.getSize().getWidth();<NEW_LINE>IAxis<?> currentAxis;<NEW_LINE>int axisWidth = 0;<NEW_LINE>if (this.m_axesYRight.size() > 0) {<NEW_LINE>ListIterator<IAxis<?>> it = this.m_axesYRight.listIterator(this.m_axesYRight.size(...
= this.m_axesXTop.iterator();
1,362,558
public void insertAlignedRow(InsertRowPlan insertRowPlan) {<NEW_LINE>// if this insert plan isn't from storage engine, we should set a temp device id for it<NEW_LINE>if (insertRowPlan.getDeviceID() == null) {<NEW_LINE>insertRowPlan.setDeviceID(DeviceIDFactory.getInstance().getDeviceID(insertRowPlan.getDevicePath()));<N...
), insertRowPlan.getValues());
1,342,981
public void dumpSummary(PrintStream out) {<NEW_LINE>StringBuilder b = new StringBuilder();<NEW_LINE>for (int i = Math.max(0, versionList.length - 10); i < versionList.length; ++i) {<NEW_LINE>Version version = versionList[i];<NEW_LINE>int added = version.get(ADDED) + version.get(NEWCODE);<NEW_LINE>int removed = version....
.substring(0, paddingNeeded));
1,686,518
public <T> T create(Class<T> cls) throws Exception {<NEW_LINE>if (cls.isInterface() && Collection.class.isAssignableFrom(cls)) {<NEW_LINE>if (List.class.isAssignableFrom(cls)) {<NEW_LINE>return cls.cast(<MASK><NEW_LINE>} else if (SortedSet.class.isAssignableFrom(cls)) {<NEW_LINE>return cls.cast(new TreeSet<Object>());<...
new ArrayList<Object>());
1,439,303
public List<Segment> buildSegments(String str) {<NEW_LINE>List<Segment> segments = new ArrayList<>();<NEW_LINE>String value = str;<NEW_LINE>int i = value.indexOf(PREFIX);<NEW_LINE>while (i > -1) {<NEW_LINE>// the text before the prefix<NEW_LINE>if (i > 0) {<NEW_LINE>String rawSegment = value.substring(0, i);<NEW_LINE>s...
suffixIdx = value.indexOf(SUFFIX);
94,342
float[] computeDowngradePointList(final int pSize) {<NEW_LINE>if (pSize == 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (mDowngradePixelSize == pSize) {<NEW_LINE>return mDowngradePointList;<NEW_LINE>}<NEW_LINE>computeProjected();<NEW_LINE>final long projectedSize = mProjectedWidth > mProjectedHeight ? mProjectedWi...
long x = mProjectedPoints[i++];
185,829
public void marshall(DeploymentInfo deploymentInfo, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (deploymentInfo == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(deploymentInfo.getApplicationName(), APPLI...
deploymentInfo.getCreateTime(), CREATETIME_BINDING);
1,135,712
public static Collection<String> parseStringCollection(String propertyKey, Object obj, Collection<String> defaultValue) {<NEW_LINE>if (obj != null) {<NEW_LINE>try {<NEW_LINE>if (obj instanceof Collection) {<NEW_LINE>return (Collection<String>) obj;<NEW_LINE>} else if (obj instanceof String) {<NEW_LINE>String commaList ...
((String[]) obj);
357,326
protected JFreeChart createBubbleChart() throws JRException {<NEW_LINE>ChartFactory.setChartTheme(StandardChartTheme.createLegacyTheme());<NEW_LINE>JFreeChart jfreeChart = ChartFactory.createBubbleChart(evaluateTextExpression(getChart().getTitleExpression()), evaluateTextExpression(((JRBubblePlot) getPlot()).getXAxisLa...
(XYPlot) jfreeChart.getPlot();
1,421,208
public UserTransaction decorateUserTransaction(UserTransaction ut, boolean injection, Object injectionContext) throws NamingException {<NEW_LINE>BeanMetaData bmd = null;<NEW_LINE>if (injection) {<NEW_LINE>if (injectionContext instanceof InjectionTargetContext) {<NEW_LINE>BeanO beanO = ((InjectionTargetContext) injectio...
.getComponentMetaDataAccessor().getComponentMetaData();
1,197,778
public void dragGestureRecognized(DragGestureEvent dge) {<NEW_LINE>TreePath path = tree.getPathForLocation(dge.getDragOrigin().x, dge.getDragOrigin().y);<NEW_LINE>if (null != path) {<NEW_LINE>Object obj = path.getLastPathComponent();<NEW_LINE>if (tree.getModel().isLeaf(obj)) {<NEW_LINE>try {<NEW_LINE>Node node = Visual...
Transferable t = node.drag();
673,980
public KubernetesUserDetails unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>KubernetesUserDetails kubernetesUserDetails = new KubernetesUserDetails();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
class).unmarshall(context));
49,543
@Path("/{queryname}")<NEW_LINE>public SaikuQuery createQuery(@FormParam("connection") String connectionName, @FormParam("cube") String cubeName, @FormParam("catalog") String catalogName, @FormParam("schema") String schemaName, @FormParam("xml") String xmlOld, @PathParam("queryname") String queryName, MultivaluedMap<Str...
]) f.getEntity());
883,231
private Nonce generateNewUniqueNonceForDevice() {<NEW_LINE>byte[] nonceBytes = generateNonceBytes();<NEW_LINE>boolean unique = false;<NEW_LINE>while (!unique) {<NEW_LINE>// Collision, try again<NEW_LINE>nonceBytes = generateNonceBytes();<NEW_LINE>// Make sure the id is unique for all nonces in storage<NEW_LINE>// Can't...
(NonceTimerType.GENERATED, node));
150,090
private void saveGameLog(GameEndView gameEndView) {<NEW_LINE>String dir = "gamelogs";<NEW_LINE>File saveDir = new File(dir);<NEW_LINE>// Here comes the existence check<NEW_LINE>if (!saveDir.exists()) {<NEW_LINE>saveDir.mkdirs();<NEW_LINE>}<NEW_LINE>// get game log<NEW_LINE>try {<NEW_LINE>if (gameEndView.getMatchView()....
.size() - 1));
1,227,780
public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE><MASK><NEW_LINE>throw new RQException("step" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>int interval;<NEW_LINE>int[] seqs;<NEW_LINE>if (param.isLeaf()) {<NEW_LINE>Object obj = param.getLeafExpression().calculate(ctx);<NEW_...
MessageManager mm = EngineMessage.get();
524,444
protected void attemptStageAction(final ExecutionContext executionContext) throws RetryableJobExecutionException, FatalJobExecutionException {<NEW_LINE>final String jobId = executionContext.getReservedJobId();<NEW_LINE>final AgentClientMetadata agentClientMetadata = executionContext.getAgentClientMetadata();<NEW_LINE>a...
executionContext.setNextJobStatus(JobStatus.INIT);
1,125,040
private static List<String> unzipFile(final ZipFile zipFile, File targetDirectory) throws IOException {<NEW_LINE>List<String> files = new ArrayList<>();<NEW_LINE>try {<NEW_LINE>// Zip Slip fix courtesy of snyk.io/research/zip-slip-vulnerability.<NEW_LINE>String canonicalDirPath = targetDirectory<MASK><NEW_LINE>for (Zip...
.getCanonicalPath() + File.separator;
244,434
private void readFromJSONAndSetFieldVal(ModelType model, FieldSpec<JSONAnn> spec, JSONObject obj, String key) throws Exception {<NEW_LINE>Pair<String, String> keyParts = getNestedKeyParts(key);<NEW_LINE>if (keyParts != null) {<NEW_LINE>JSONObject subObj = null;<NEW_LINE>try {<NEW_LINE>subObj = (JSONObject) readFromJSON...
ann.optional, key, e);
903,846
public static ListFirewallRulesResponse unmarshall(ListFirewallRulesResponse listFirewallRulesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listFirewallRulesResponse.setRequestId(_ctx.stringValue("ListFirewallRulesResponse.RequestId"));<NEW_LINE>listFirewallRulesResponse.setPageNumber(_ctx.integerValue("ListFirewallRu...
(_ctx.integerValue("ListFirewallRulesResponse.TotalCount"));
1,607,702
private void merge(ConfigurationChanges diffs, ImageReaderFactory prev, ImageReaderFactory factory, String imageReadersDN) throws NamingException {<NEW_LINE>for (Entry<String, ImageReaderParam> entry : prev.getEntries()) {<NEW_LINE>String tsuid = entry.getKey();<NEW_LINE>if (factory.get(tsuid) == null) {<NEW_LINE>Strin...
prevParam = prev.get(tsuid);
1,542,409
private static PointRegionQuadTreeNode<Object> subdivide(PointRegionQuadTreeNodeLeaf<Object> leaf, PointRegionQuadTree<Object> tree, boolean unique, String indexName) {<NEW_LINE>double w = (leaf.getBb().getMaxX() - leaf.getBb().getMinX()) / 2d;<NEW_LINE>double h = (leaf.getBb().getMaxY() - leaf.getBb().getMinY()) / 2d;...
branch, tree, unique, indexName);
804,835
protected static void printUsage() {<NEW_LINE>String clsName = Jug.class.getName();<NEW_LINE>System.err.println("Usage: java " + clsName + " [options] type");<NEW_LINE>System.err.println("Where options are:");<NEW_LINE>System.err.println(" --count / -c <number>: will generate <number> UUIDs (default: 1)");<NEW_LINE>Sy...
System.err.println(" (fully-qualified domain name, email address)");
363,239
private JPanel makeButtonPanel() {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>showDetail = new JButton(JMeterUtils.getResString("detail"));<NEW_LINE>showDetail.setActionCommand(DETAIL);<NEW_LINE>showDetail.setEnabled(true);<NEW_LINE>// $NON-NLS-1$<NEW_LINE>add = new JButton<MASK><NEW_LINE>add.setActionCommand(ADD);<NEW_LINE>add....
(JMeterUtils.getResString("add"));