idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
993,967
protected void initialize(final StyleId id, final String title) {<NEW_LINE>// Default frame initialization<NEW_LINE>enableEvents(AWTEvent.KEY_EVENT_MASK | AWTEvent.WINDOW_EVENT_MASK);<NEW_LINE>setLocale(JComponent.getDefaultLocale());<NEW_LINE>setRootPane(createRootPane());<NEW_LINE>setRootPaneCheckingEnabled(true);<NE...
UILanguageManager.registerInitialLanguage(this, title);
1,257,798
private void runStructrScript(final String line, final Writable writable) throws FrameworkException, IOException {<NEW_LINE>actionContext.setJavaScriptContext(false);<NEW_LINE>try (final Tx tx = StructrApp.getInstance(actionContext.getSecurityContext()).tx()) {<NEW_LINE>final EvaluationHints hints = new EvaluationHints...
("console", line), hints);
1,843,821
public BigDecimal invoke(int A_Asset_ID, String PostingType, int A_Asset_Acct_ID, int Flag, int Period) {<NEW_LINE>String conventionType = getConventionType();<NEW_LINE>BigDecimal retValue = null;<NEW_LINE>if (CLogMgt.isLevelFine())<NEW_LINE>log.fine("Entering: ConventionType=" + conventionType + "A_Asset_ID=" + A_Asse...
cs.setInt(6, Period);
158,881
public Response serve(String uri, String method, Properties header, Properties parms, Properties files) {<NEW_LINE>Logger.log("URI: " + uri);<NEW_LINE>if (uri.endsWith("/sayhello")) {<NEW_LINE>System.out.println("header: " + header);<NEW_LINE>System.out.println("parms: " + parms);<NEW_LINE>System.out.println("method: "...
append("&quot;" + car + "&quot;");
1,081,225
public void visit(TypeDefinitionNode typeDefinitionNode) {<NEW_LINE>int type = TokenTypes.TYPE.getId();<NEW_LINE>int modifiers = 0;<NEW_LINE>Node typeDescriptor = typeDefinitionNode.typeDescriptor();<NEW_LINE>switch(typeDescriptor.kind()) {<NEW_LINE>case OBJECT_TYPE_DESC:<NEW_LINE>type = TokenTypes.INTERFACE.getId();<N...
= TokenTypes.STRUCT.getId();
1,797,591
protected String formulateQuery(Collection<SolrTerm> terms, SolrQuerySettings settings, Logger cLogger) {<NEW_LINE>StringBuffer result = new StringBuffer();<NEW_LINE>for (SolrTerm term : terms) {<NEW_LINE>if (settings.isProximityOnly())<NEW_LINE>continue;<NEW_LINE>if (term.isRequired() && settings.areCluesAllRequired()...
cLogger.info(" QUERY: " + query);
373,081
public void deleteByIdWithResponse(String id, Context context) {<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. Missin...
format("The resource ID '%s' is not valid. Missing path segment 'labs'.", id)));
1,645,125
public void create() {<NEW_LINE>if (created) {<NEW_LINE>throw new IllegalStateException("Must not call .create() twice");<NEW_LINE>}<NEW_LINE>created = true;<NEW_LINE>if (range == null) {<NEW_LINE>range = myCurrentElement.getTextRange();<NEW_LINE>}<NEW_LINE>if (tooltip == null && message != null) {<NEW_LINE>tooltip = X...
? this.range : fb.range;
861,315
final DescribeNotebookInstanceLifecycleConfigResult executeDescribeNotebookInstanceLifecycleConfig(DescribeNotebookInstanceLifecycleConfigRequest describeNotebookInstanceLifecycleConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeNotebookInstanceLifecycleConfigRequest);<NEW_LIN...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,035,266
void onWordCount() {<NEW_LINE>prepareForVisualExecution(() -> {<NEW_LINE>int totalWords = 0;<NEW_LINE>int selectionWords = 0;<NEW_LINE>Range selectionRange = null;<NEW_LINE>// A selection in visual mode may span multiple editors and blocks of<NEW_LINE>// prose, which we can't count here.<NEW_LINE>if (!isVisualEditorAct...
Range r = wordIter.next();
186,218
public synchronized ReviewResult applyReview(Map<ReviewStatus, Set<Integer>> requestIdsByTargetState, String reason) {<NEW_LINE>// Sanity check if all request ids in the review exists in the purgatory.<NEW_LINE>Set<Integer> <MASK><NEW_LINE>for (Map.Entry<ReviewStatus, Set<Integer>> entry : requestIdsByTargetState.entry...
reviewedRequestIds = new HashSet<>();
1,611,459
final void executeRegisterWorkflowType(RegisterWorkflowTypeRequest registerWorkflowTypeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(registerWorkflowTypeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<Reg...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
395,482
private void unpackSerializationHint(AnnotationNode typeInfo, HintDeclaration ch) {<NEW_LINE>List<Object> values = typeInfo.values;<NEW_LINE>List<org.objectweb.asm.Type> types = new ArrayList<>();<NEW_LINE>List<String> typeNames = new ArrayList<>();<NEW_LINE>for (int i = 0; i < values.size(); i += 2) {<NEW_LINE>String ...
addSerializationType(type.getClassName());
1,854,704
public void init(int WindowNo, FormFrame frame) {<NEW_LINE>log.info("");<NEW_LINE>windowNo = WindowNo;<NEW_LINE>formFrame = frame;<NEW_LINE>if (!controller.init(frame.getProcessInfo(), windowNo))<NEW_LINE>dispose();<NEW_LINE>selectionPanel.setBorder(new TitledBorder(Msg.translate(Env.getCtx(), MSG_SELECTIONPANEL)));<NE...
add(confirmPanel, BorderLayout.SOUTH);
844,720
private static String color(String string, AttributeSet set) {<NEW_LINE>if (set == null) {<NEW_LINE>return string;<NEW_LINE>}<NEW_LINE>if (string.trim().length() == 0) {<NEW_LINE>// NOI18N<NEW_LINE>return string.replace(" ", "&nbsp;").replace("\n", "<br>");<NEW_LINE>}<NEW_LINE>StringBuilder buf = new StringBuilder(stri...
buf.insert(0, "<b>");
1,729,117
public static Date parseRSSDate(String date_str) {<NEW_LINE>date_str = date_str.trim();<NEW_LINE>if (date_str.length() == 0) {<NEW_LINE>return (null);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>// see rfc822 [EEE,] dd MMM yyyy HH:mm::ss z<NEW_LINE>// assume 4 digit year<NEW_LINE>SimpleDateFormat format;<NEW_LINE>if (!date_str....
(format.parse(date_str));
108,431
public Sample[] execute(final Sample[] ss, final String newLabelName, final String existingLabelName, final String namespaceLabelName) {<NEW_LINE>Sample[] samples = Arrays.stream(ss).map(sample -> {<NEW_LINE>String podName = sample.getLabels().get(existingLabelName);<NEW_LINE>String namespace = sample.<MASK><NEW_LINE>i...
getLabels().get(namespaceLabelName);
414,269
public Throwable resolveException(final ObjectNode response) {<NEW_LINE>log.trace("Resolving exception from JSON response {}", response);<NEW_LINE>final JsonNode error = response.get(JsonRpcBasicServer.ERROR);<NEW_LINE>if (error == null || !error.isObject()) {<NEW_LINE><MASK><NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>f...
log.warn("No error information found in JSON response {}", response);
657,541
private boolean handleIntent(Intent intent) {<NEW_LINE>Uri data = intent.getData();<NEW_LINE>if (data != null && data.getScheme().equals(CALLBACK_URI.getScheme()) && data.getHost().equals(CALLBACK_URI.getHost())) {<NEW_LINE>final String code = data.getQueryParameter(PARAM_CODE);<NEW_LINE>if (code == null) {<NEW_LINE>on...
).map(ApiHelpers::throwOnFailure);
14,183
final GetAnalyzedResourceResult executeGetAnalyzedResource(GetAnalyzedResourceRequest getAnalyzedResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAnalyzedResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
192,459
public boolean apply(Game game, Ability source) {<NEW_LINE>Player spellController = game.getPlayer(((Spell) game.getLastKnownInformation(targetPointer.getFirst(game, source), Zone.STACK)).getControllerId());<NEW_LINE>if (spellController != null) {<NEW_LINE>Cards cardsToReveal = new CardsImpl();<NEW_LINE>Card toCast = n...
spellController.shuffleLibrary(source, game);
1,097,144
public static DescribeCouponDetailResponse unmarshall(DescribeCouponDetailResponse describeCouponDetailResponse, UnmarshallerContext context) {<NEW_LINE>describeCouponDetailResponse.setRequestId(context.stringValue("DescribeCouponDetailResponse.RequestId"));<NEW_LINE>describeCouponDetailResponse.setCouponTemplateId(con...
(context.stringValue("DescribeCouponDetailResponse.Status"));
1,150,258
public void testUnspecifiedContextTypesCleared() throws Exception {<NEW_LINE>ContextService contextSvc = InitialContext.doLookup("java:global/concurrent/allcontextcleared");<NEW_LINE>tran.begin();<NEW_LINE>try {<NEW_LINE>Integer txStatusOfCallable = contextSvc.contextualCallable(() -> {<NEW_LINE>try {<NEW_LINE>Object u...
(Status.STATUS_NO_TRANSACTION), txStatusOfCallable);
1,509,714
protected void checkAppHome() {<NEW_LINE>String appHome = System.getProperty(APP_HOME_PROP);<NEW_LINE>if (StringUtils.isBlank(appHome)) {<NEW_LINE>String catalinaBase = System.getProperty("catalina.base");<NEW_LINE>if (StringUtils.isNotBlank(catalinaBase)) {<NEW_LINE>File appHomeDir = new File(catalinaBase, "work/app_h...
.getProperty("user.home"), ".app_home");
684,292
public void start(Configuration conf) {<NEW_LINE>boolean httpEnabled = conf.getBoolean(PROMETHEUS_STATS_HTTP_ENABLE, DEFAULT_PROMETHEUS_STATS_HTTP_ENABLE);<NEW_LINE>boolean bkHttpServerEnabled = conf.getBoolean("httpServerEnabled", false);<NEW_LINE>// only start its own http server when prometheus http is enabled and b...
PrometheusServlet(this)), "/metrics");
454,777
public void addTestResult() {<NEW_LINE>svLogger.entering(CLASSNAME, "addTestResult", this);<NEW_LINE>MessageEndpointTestResultsImpl testResult = new MessageEndpointTestResultsImpl();<NEW_LINE>if (testResultNumber >= testResults.length) {<NEW_LINE>// Not enough room for test results, increase the size.<NEW_LINE>MessageE...
[testResultNumber++] = (testResult);
117,689
public StreamObserver<Subscription> subscribeStream(StreamObserver<SimpleMessage> responseObserver) {<NEW_LINE>EventEmitter<SimpleMessage> emitter = new EventEmitter<>(responseObserver);<NEW_LINE>return new StreamObserver<Subscription>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onNext(Subscription subscripti...
eventMeshGrpcServer.getEventMeshGrpcConfiguration().eventMeshIp);
1,777,566
private static Entry condition(RandomNumberGenerator rand, Entry personEntry, Bundle bundle, Entry encounterEntry, HealthRecord.Entry condition) {<NEW_LINE>Condition conditionResource = new Condition();<NEW_LINE>conditionResource.setPatient(new ResourceReferenceDt(personEntry.getFullUrl()));<NEW_LINE>conditionResource....
(mapCodeToCodeableConcept(code, SNOMED_URI));
523,330
public final void paint(final Graphics g_) {<NEW_LINE><MASK><NEW_LINE>int x = (int) (myIconBounds.x * (1 - myRatio) + myComponentBounds.x * myRatio);<NEW_LINE>int y = (int) (myIconBounds.y * (1 - myRatio) + myComponentBounds.y * myRatio);<NEW_LINE>int width = (int) (myIconBounds.width * (1 - myRatio) + myComponentBound...
long l = System.currentTimeMillis();
1,067,084
public List<Invoice> retrieveInvoices(Company company) {<NEW_LINE>Query<Invoice> query = invoiceRepository.all().filter("self.company = :company AND self.partner.factorizedCustomer = TRUE " + "AND self.statusSelect = :invoiceStatusVentilated " + "AND self.id not in (" + " select Invoices.id " + " from SubrogationRele...
bind("subrogationReleaseStatusCleared", SubrogationReleaseRepository.STATUS_CLEARED);
127,830
protected void translateCore(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) {<NEW_LINE>final IOperandTreeNode registerOperand1 = instruction.getOperands().get(0).getRootNode().getChildren().get(0);<NEW_LINE>final IOperandTreeNode registerOperand2 = i...
String sum1Sat = environment.getNextVariableString();
917,050
private FindFreePageResult findFreePage(final int contentSize, final OAtomicOperation atomicOperation) throws IOException {<NEW_LINE>while (true) {<NEW_LINE>int freePageIndex = contentSize / ONE_KB;<NEW_LINE>freePageIndex -= PAGINATED_STORAGE_LOWEST_FREELIST_BOUNDARY.getValueAsInteger();<NEW_LINE>if (freePageIndex < 0)...
atomicOperation, fileId, stateEntryIndex, true);
157,135
public IStatus install(String packageName, String displayName, boolean global, char[] password, IPath workingDirectory, IProgressMonitor monitor) {<NEW_LINE>SubMonitor sub = SubMonitor.convert(monitor, 10);<NEW_LINE>String globalPrefixPath = null;<NEW_LINE>try {<NEW_LINE>// If we are doing a global install we will fetc...
, sub.newChild(6));
1,715,347
public void process(Tables.OsmWaterPolygon element, FeatureCollector features) {<NEW_LINE>if (nullIfEmpty(element.name()) != null) {<NEW_LINE>try {<NEW_LINE>Geometry centerlineGeometry = lakeCenterlines.get(element.source().id());<NEW_LINE>FeatureCollector.Feature feature;<NEW_LINE>int minzoom = 9;<NEW_LINE>if (centerl...
feature = features.pointOnSurface(LAYER_NAME);
1,086,509
public void paint(BigInteger xOffset, BigInteger yOffset, GC gc) {<NEW_LINE>if (model == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>gc.setFont(font);<NEW_LINE>Rectangle clip = gc.getClipping();<NEW_LINE>BigInteger startY = yOffset.add(BigInteger.valueOf(top(clip)));<NEW_LINE>long startRow = startY.divide(lineHeightBi...
model.getLines(startRow, endRow);
1,591,758
public TypeReference createTypeReference(EclipseNode type, long p, ASTNode source, boolean addWildcards) {<NEW_LINE>int pS = source.sourceStart;<NEW_LINE>int pE = source.sourceEnd;<NEW_LINE>List<String> list = new ArrayList<String>();<NEW_LINE>List<Integer> genericsCount = addWildcards ? new ArrayList<Integer>() : null...
return new QualifiedTypeReference(tokens, ps);
783,278
final BatchUpsertTableRowsResult executeBatchUpsertTableRows(BatchUpsertTableRowsRequest batchUpsertTableRowsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchUpsertTableRowsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,669,437
public void onMoveItemEnded(int adapterIndex) {<NEW_LINE>// Fire a "move" event.<NEW_LINE>final TiListView listView = getListView();<NEW_LINE>if ((listView != null) && this.moveEventInfo.isMoving()) {<NEW_LINE>final ListItemProxy targetItemProxy = listView.getAdapterItem(adapterIndex);<NEW_LINE>if (targetItemProxy != n...
TiViewProxy targetParentProxy = targetItemProxy.getParent();
148,016
private void performBundleAdjustment(Se3_F64 key_to_curr) {<NEW_LINE>if (bundle.configConverge.maxIterations <= 0)<NEW_LINE>return;<NEW_LINE>// Must only process inlier tracks here<NEW_LINE>inliers.clear();<NEW_LINE>for (int trackIdx = 0; trackIdx < consistentTracks.size(); trackIdx++) {<NEW_LINE>TrackQuad t = consiste...
3, 1, baseline, 2);
935,117
private static boolean checkJREVersion() {<NEW_LINE>String <MASK><NEW_LINE>if (JREVersion != null) {<NEW_LINE>try {<NEW_LINE>// We're only interested in the big decimal part of the JRE version<NEW_LINE>int version = Integer.parseInt(JREVersion.split("\\.")[0]);<NEW_LINE>if (IntStream.of(Application.SUPPORTED_JRE_VERSIO...
JREVersion = System.getProperty("java.version");
1,209,692
public void prepare(Map<String, Object> stormConf, TopologyContext context, OutputCollector collector) {<NEW_LINE>super.prepare(stormConf, context, collector);<NEW_LINE>partitioner = new URLPartitioner();<NEW_LINE>partitioner.configure(stormConf);<NEW_LINE>this.eventCounter = context.registerMetric("counter", new Multi...
ex.getMessage(), ex);
1,743,942
public void onProcessPlayer(ProcessPlayerEvent event) {<NEW_LINE>Player player = event.getPlayer();<NEW_LINE>LocalPlayer localPlayer = WorldGuardPlugin.inst().wrapPlayer(player);<NEW_LINE>Session session = WorldGuard.getInstance().getPlatform().<MASK><NEW_LINE>if (hasGodModeGroup(player) || hasGodModePermission(player)...
getSessionManager().get(localPlayer);
1,375,689
private void generatePlugins(File output) throws BuildException, IOException {<NEW_LINE>Set<String> standardClusters = new HashSet<>();<NEW_LINE>String standardClustersS = getProject().getProperty("clusters.config.full.list");<NEW_LINE>if (standardClustersS != null) {<NEW_LINE>for (String clusterProp : standardClusters...
lines.put("D", "||Code Name Base||Display Name||Display Category||Extra Cluster");
1,553,039
public void dragStart(DragSourceEvent event) {<NEW_LINE>event.doit = true;<NEW_LINE>if (!(event.widget instanceof DragSource)) {<NEW_LINE>event.doit = false;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>TableView<?> tv = (TableView<?>) ((DragSource) event.widget).getData("tv");<NEW_LINE>// drag start happens a bit after the mo...
= new GC(event.image);
212,736
public void testObservableRxInvoker_postCbReceiveTimeout(Map<String, String> param, StringBuilder ret) {<NEW_LINE>long timeout = messageTimeout;<NEW_LINE>if (isZOS()) {<NEW_LINE>timeout = zTimeout;<NEW_LINE>}<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String serverPort = param.get("serverPort");<NEW_LIN...
readTimeout(TIMEOUT, TimeUnit.MILLISECONDS);
1,396,619
public static void main(String[] args) {<NEW_LINE>SegmentTreeMinimumRangeQuery st = new SegmentTreeMinimumRangeQuery();<NEW_LINE>int[] input = { 0, 3, 4, 2, 1, 6, -1 };<NEW_LINE>int[] segTree = st.createSegmentTree(input);<NEW_LINE>// non lazy propagation example<NEW_LINE>assert 0 == st.rangeMinimumQuery(segTree, <MASK...
0, 3, input.length);
1,794,565
private void checkClassName(String name) {<NEW_LINE>boolean bogus = false;<NEW_LINE>if (name.startsWith("java/")) {<NEW_LINE>bogus = true;<NEW_LINE>} else if (name.startsWith("javax/")) {<NEW_LINE>int slashAt = <MASK><NEW_LINE>if (slashAt == -1) {<NEW_LINE>// Top-level javax classes are verboten.<NEW_LINE>bogus = true;...
name.indexOf('/', 6);
1,827,806
public StopDominantLanguageDetectionJobResult stopDominantLanguageDetectionJob(StopDominantLanguageDetectionJobRequest stopDominantLanguageDetectionJobRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopDominantLanguageDetectionJobReque...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,809,671
private JSONObject convertPostedTweetToJSON(StatusUpdate statusUpdate) throws JSONException {<NEW_LINE>Context context = getActivity();<NEW_LINE>String id = statusUpdate.getIdStr();<NEW_LINE>StatusEntities entities = statusUpdate.getExtendedEntities();<NEW_LINE>List<String> images = new ArrayList<>();<NEW_LINE>// get i...
int retweetCount = statusUpdate.getRetweetCount();
823,515
public void reduce_trace_shape_at_tie_pin(Pin p_tie_pin, PolylineTrace p_trace) {<NEW_LINE>TileShape pin_shape = p_tie_pin.get_tree_shape_on_layer(this, p_trace.get_layer());<NEW_LINE>FloatPoint compare_corner;<NEW_LINE>int trace_shape_no;<NEW_LINE>if (p_trace.first_corner().equals(p_tie_pin.get_center())) {<NEW_LINE>t...
polyline().corner_approx(1);
705,644
public void toDebugTreeNode(final StringBuilder buffer, final String indent) {<NEW_LINE>Coordinate[] relCoords = this.getInstanceOffsets();<NEW_LINE>Coordinate[] absCoords = this.getComponentLocations();<NEW_LINE>if (1 == getInstanceCount()) {<NEW_LINE>buffer.append(String.format("%-40s| %5.3f; %24s; %24s;", indent + ...
.axialMethod.name()));
283,756
public // Matrix is in row-major form and compatible with SkMatrix.<NEW_LINE>void transform(float[] matrix) {<NEW_LINE>checkState(matrix.length == 9);<NEW_LINE>// The tricky part of this implementation is to preserve the value of<NEW_LINE>// rawX and rawY. So we apply the transformation to the first point<NEW_LINE>// ...
0, 0, originX, originY);
641,533
private void executeTest(String testName, CommandLineProgramTester testClass, String args, Class<?> expectedException) {<NEW_LINE>String[] command = Utils.escapeExpressions(args);<NEW_LINE>// run the executable<NEW_LINE>boolean gotAnException = false;<NEW_LINE>try {<NEW_LINE>final String now = LocalDateTime.now().forma...
, expectedException.toString()));
1,398,858
private static Object readValue(PacketStream input, JDWPContext context) {<NEW_LINE>byte valueKind = input.readByte();<NEW_LINE>switch(valueKind) {<NEW_LINE>case TagConstants.VOID:<NEW_LINE>return Void.TYPE;<NEW_LINE>case TagConstants.BOOLEAN:<NEW_LINE>return input.readBoolean();<NEW_LINE>case TagConstants.BYTE:<NEW_LI...
int) input.readLong());
587,675
public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndPoiBoxData other) {<NEW_LINE>if (other == net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.hasZoom()) {<NEW_LINE>setZoom(other.getZoom());<NEW_LINE>}<NEW_LINE>if (other.hasX()) {<NEW_LINE><MASK><NEW_LIN...
setX(other.getX());
1,837,626
final DeleteDeploymentResult executeDeleteDeployment(DeleteDeploymentRequest deleteDeploymentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteDeploymentRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DeleteDeploymentRequest> ...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,744,200
public static Map create(int size, float loadFactor, int concurrencyLevel, boolean allowNullKeys) {<NEW_LINE>Map map = null;<NEW_LINE>if (concurrencyLevel <= 1) {<NEW_LINE>map <MASK><NEW_LINE>} else {<NEW_LINE>if (concurrentHashMapConstructor != null) {<NEW_LINE>// running under JRE 1.5+<NEW_LINE>try {<NEW_LINE>map = (...
= new HashMap(size, loadFactor);
224,307
protected List<Element> expandNetUri(Document doc, String s) {<NEW_LINE>ArrayList<Element> exp = new ArrayList<Element>();<NEW_LINE>Matcher reMatcher = reNetUri.matcher(s);<NEW_LINE>if (!reMatcher.find())<NEW_LINE>return null;<NEW_LINE>String domain = reMatcher.group(1);<NEW_LINE>exp.addAll(expandDomain(doc, domain));<...
path = reMatcher.group(2);
1,569,946
final ListVoiceConnectorTerminationCredentialsResult executeListVoiceConnectorTerminationCredentials(ListVoiceConnectorTerminationCredentialsRequest listVoiceConnectorTerminationCredentialsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listVoiceConnectorTerminationCredentialsRequest);<NE...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
254,456
private Expression evaluateArgumentExpressions(AST ast, ITypeBinding requiredType, String key) {<NEW_LINE>CompilationUnit root = (CompilationUnit) fCallerNode.getRoot();<NEW_LINE><MASK><NEW_LINE>Expression best = null;<NEW_LINE>ITypeBinding bestType = null;<NEW_LINE>ScopeAnalyzer analyzer = new ScopeAnalyzer(root);<NEW...
int offset = fCallerNode.getStartPosition();
1,145,926
private void passwordProtectPDF() {<NEW_LINE>final MaterialDialog dialog = new MaterialDialog.Builder(mActivity).title(R.string.set_password).customView(R.layout.custom_dialog, true).positiveText(android.R.string.ok).negativeText(android.R.string.cancel).neutralText(R.string.remove_dialog).build();<NEW_LINE>final View ...
dialog.getActionButton(DialogAction.NEUTRAL);
1,419,672
private Optional<ErrorResponse> responseFor(DiscFilterRequest request, String ruleName, ErrorResponse response) {<NEW_LINE>int statusCode = response != null ? response.getResponse<MASK><NEW_LINE>Metric.Context metricContext = metric.createContext(Map.of("rule", ruleName, "dryrun", Boolean.toString(dryrun), "statusCode"...
().getStatus() : 0;
1,343,611
private OHashTable.BucketPath nextBucketToFind(final OHashTable.BucketPath bucketPath, final int bucketDepth, final OAtomicOperation atomicOperation) throws IOException {<NEW_LINE>int offset = bucketPath.nodeGlobalDepth - bucketDepth;<NEW_LINE>OHashTable.BucketPath currentNode = bucketPath;<NEW_LINE>int nodeLocalDepth ...
nodeIndex, atomicOperation) == bucketPath.nodeLocalDepth;
1,636,952
public static Request fromXContent(final XContentParser parser, TimeValue timeout) throws IOException {<NEW_LINE>Map<String, Object> content = parser.map();<NEW_LINE>// dest.index is not required for _preview, so we just supply our own<NEW_LINE>Map<String, String> tempDestination = new HashMap<>();<NEW_LINE>tempDestina...
DESTINATION.getPreferredName(), tempDestination);
680,993
public static void updateProgramCLI() {<NEW_LINE>logger.info("Checking for update...");<NEW_LINE>Document doc = null;<NEW_LINE>try {<NEW_LINE>logger.debug("Retrieving " + UpdateUtils.updateJsonURL);<NEW_LINE>doc = Jsoup.connect(UpdateUtils.updateJsonURL).timeout(10 * 1000).ignoreContentType(true).get();<NEW_LINE>} catc...
latestVersion = ripmeJson.getString("latestVersion");
1,474,849
private void populatePassSummary() {<NEW_LINE>HashMap<String, Stats> <MASK><NEW_LINE>for (Stats logStat : this.log) {<NEW_LINE>String passName = logStat.pass;<NEW_LINE>Stats entry = tmpPassSummary.computeIfAbsent(passName, (String k) -> new Stats(k, logStat.isOneTime));<NEW_LINE>entry.runtime += logStat.runtime;<NEW_LI...
tmpPassSummary = new HashMap<>();
1,103,856
public DataStore initialize(Map<String, Object> dsInfos) {<NEW_LINE>String url = (String) dsInfos.get("url");<NEW_LINE>String name = (String) dsInfos.get("name");<NEW_LINE>String providerName = (String) dsInfos.get("providerName");<NEW_LINE>ScopeType scope = (ScopeType) dsInfos.get("scope");<NEW_LINE>DataStoreRole role...
Object> imageStoreParameters = new HashMap();
1,851,129
public static List<String> exportEndpointsToS3(PinpointClient pinpoint, S3Client s3Client, String s3BucketName, String iamExportRoleArn, String applicationId) {<NEW_LINE>SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd-HH_mm:ss.SSS_z");<NEW_LINE>String endpointsKeyPrefix = "exports/" + applicationId + "_"...
.format(new Date());
1,726,905
final DeletePublishingDestinationResult executeDeletePublishingDestination(DeletePublishingDestinationRequest deletePublishingDestinationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deletePublishingDestinationRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientE...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
544,425
private void adjustForCompatibility() {<NEW_LINE>if (compatibilityLimitFileName != null) {<NEW_LINE>Map<String, StructureDescriptor> limitMap = new HashMap<>();<NEW_LINE>try (InputStream inputStream = new FileInputStream(compatibilityLimitFileName)) {<NEW_LINE>StructureReader limitReader = new StructureReader(inputStre...
get(structure.getName());
1,237,908
public void render(PoseStack ms, IComponentRenderContext context, float pticks, int mouseX, int mouseY) {<NEW_LINE>ms.pushPose();<NEW_LINE>ms.translate(0, 0, -10);<NEW_LINE>context.renderItemStack(ms, x + 13, y + 1, mouseX, mouseY, cornerBlock);<NEW_LINE>ms.translate(0F, 0F, 5F);<NEW_LINE>context.renderItemStack(ms, x ...
translate(0F, 0F, 5F);
59,807
public BlockingIterable<Buffer> serialize(final HttpHeaders headers, final BlockingIterable<String> value, final BufferAllocator allocator) {<NEW_LINE>addContentType.accept(headers);<NEW_LINE>return () -> {<NEW_LINE>final BlockingIterator<String> iterator = value.iterator();<NEW_LINE>return new BlockingIterator<Buffer>...
iterator.next(), allocator);
341,876
public void onOpenCloseIssue() {<NEW_LINE>if (getPullRequest() != null) {<NEW_LINE>IssueRequestModel requestModel = IssueRequestModel.clone(getPullRequest(), true);<NEW_LINE>manageDisposable(RxHelper.getObservable(RestProvider.getPullRequestService(isEnterprise()).editPullRequest(login, repoId, issueNumber, requestMode...
-> view.onSetupIssue(false));
424,806
public Request<TagResourceRequest> marshall(TagResourceRequest tagResourceRequest) {<NEW_LINE>if (tagResourceRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(TagResourceRequest)");<NEW_LINE>}<NEW_LINE>Request<TagResourceRequest> request = new DefaultRequest<TagResourceReq...
request.addParameter("Version", "2010-03-31");
492,221
public void translate(GeyserSession session, ClientboundGameProfilePacket packet) {<NEW_LINE><MASK><NEW_LINE>AuthType remoteAuthType = session.getRemoteAuthType();<NEW_LINE>// Required, or else Floodgate players break with Spigot chunk caching<NEW_LINE>GameProfile profile = packet.getProfile();<NEW_LINE>playerEntity.se...
PlayerEntity playerEntity = session.getPlayerEntity();
1,446,335
public static ColumnDef build(String name, String charset, String type, short pos, boolean signed, String[] enumValues, Long columnLength) {<NEW_LINE>name = name.intern();<NEW_LINE>if (charset != null)<NEW_LINE>charset = charset.intern();<NEW_LINE>switch(type) {<NEW_LINE>case "tinyint":<NEW_LINE>case "smallint":<NEW_LI...
create(name, type, pos);
305,661
public void sortOutOfPlace(V srcVector, V dstVector, VectorValueComparator<V> comparator) {<NEW_LINE>comparator.attachVector(srcVector);<NEW_LINE>// check vector capacity<NEW_LINE>Preconditions.checkArgument(dstVector.getValueCapacity() >= srcVector.getValueCount(), "Not enough capacity for the target vector. " + "Expe...
), dstVector.getValueCapacity());
412,204
private List<Operation> extractOperations(ObjectTypeDefinition typeDef) {<NEW_LINE>List<Operation> results = new ArrayList<>();<NEW_LINE>for (FieldDefinition fieldDef : typeDef.getFieldDefinitions()) {<NEW_LINE>Operation operation = new Operation();<NEW_LINE>operation.setName(fieldDef.getName());<NEW_LINE>operation.set...
(fieldDef.getInputValueDefinitions()));
1,643,304
private static EmailFromOutlookMessage buildEmailFromOutlookMessage(@NotNull final EmailPopulatingBuilder builder, @NotNull final OutlookMessage outlookMessage, @NotNull final EmailPopulatingBuilderFactory builderFactory, @NotNull final InternalEmailConverter internalEmailConverter) {<NEW_LINE>checkNonEmptyArgument(bui...
builder, new OutlookMessageProxy(outlookMessage));
1,838,207
private void onFragment(final DirectBuffer buffer, final int offset, final int length, final Header header) {<NEW_LINE>final int version = buffer.getInt(offset + VERSION_OFFSET, LITTLE_ENDIAN);<NEW_LINE>if (VERSION != version) {<NEW_LINE>throw new IllegalArgumentException("unsupported version " + version + " expected "...
, LITTLE_ENDIAN), buffer, offset);
728,205
public static OpenOrders adaptOpenOrders(CurrencyPair currencyPair, Bl3pOpenOrders.Bl3pOpenOrder[] bl3pOrders) {<NEW_LINE>List<LimitOrder> result = new ArrayList<>(bl3pOrders.length);<NEW_LINE>for (Bl3pOpenOrders.Bl3pOpenOrder bl3pOrder : bl3pOrders) {<NEW_LINE>Order.OrderType orderType = Bl3pUtils.fromBl3pOrderType(bl...
()).build());
601,862
private void invocation(RESTRequest request, RESTResponse response) {<NEW_LINE>RESTHelper.ensureConsumesJson(request);<NEW_LINE>String objectName = RESTHelper.getRequiredParam(request, APIConstants.PARAM_OBJECT_NAME);<NEW_LINE>String operation = RESTHelper.getRequiredParam(request, APIConstants.PARAM_OPERATION);<NEW_LI...
is = RESTHelper.getInputStream(request);
41,576
private void onVideoInit() {<NEW_LINE>final Activity activity = getActivity();<NEW_LINE>containerLayout = new FrameLayout(activity);<NEW_LINE>containerLayout.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));<NEW_LINE>// GodotEditText layout<NEW_LINE>GodotEditText editText = new Go...
getDefaultDisplay().getSize(fullSize);
233,098
public void init(SaasMethod m, RestClientSaasBean saasBean, Document doc) throws IOException {<NEW_LINE><MASK><NEW_LINE>setBean(saasBean);<NEW_LINE>targetSource = JavaSource.forFileObject(getTargetFile());<NEW_LINE>String packageName = JavaSourceHelper.getPackageName(targetSource);<NEW_LINE>getBean().setPackageName(pac...
super.init(m, doc);
603,707
private void updateFiles(Gist gist) {<NEW_LINE>final Activity activity = getActivity();<NEW_LINE>if (activity == null)<NEW_LINE>return;<NEW_LINE>for (View header : fileHeaders) adapter.removeHeader(header);<NEW_LINE>fileHeaders.clear();<NEW_LINE>Map<String, GistFile> files = gist.getFiles();<NEW_LINE>if (files == null ...
R.layout.gist_file_item, null);
1,482,059
public void onOutstandingTaskAppeared(int outstandingTaskAppearedRound, int outstandingTaskCount) {<NEW_LINE>Boolean gangAllocation = requestManager.getPlatParams().getGangAllocation();<NEW_LINE>Integer gangAllocationTimeoutSec = conf.getLauncherConfig().getAmGangAllocationTimeoutSec();<NEW_LINE>if (gangAllocation) {<N...
("Still waiting for %s outstanding Tasks after timeout %ss", currentOutstandingTaskCount, gangAllocationTimeoutSec));
354,785
protected void createColumns() {<NEW_LINE>super.createColumns();<NEW_LINE>TableColumn<DaoStateBlockListItem, DaoStateBlockListItem> column = new AutoTooltipTableColumn<>(Res.get("dao.monitor.table.hashCreator"));<NEW_LINE>column.setMinWidth(90);<NEW_LINE>column.setMaxWidth(column.getMinWidth());<NEW_LINE>column.setCell...
).add(2, column);
365,111
private void executeClasses(final OHttpRequest iRequest, final OHttpResponse iResponse, final ODatabaseDocument db, final String operation, final String rid, final String className, final Map<String, String> fields) throws IOException {<NEW_LINE>if ("add".equals(operation)) {<NEW_LINE>iRequest<MASK><NEW_LINE>// int def...
.getData().commandInfo = "Studio add class";
260,428
public Collection<LoadSpec> findSupportedLoadSpecs(ByteProvider provider) throws IOException {<NEW_LINE>List<LoadSpec> loadSpecs = new ArrayList<>();<NEW_LINE>BinaryReader reader = new BinaryReader(provider, true);<NEW_LINE>try {<NEW_LINE>byte[] magicBytes = provider.readBytes(0, <MASK><NEW_LINE>if (CDexConstants.MAGIC...
CDexConstants.MAGIC.length());
250,506
public static QueryStatementsResponse unmarshall(QueryStatementsResponse queryStatementsResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryStatementsResponse.setRequestId(_ctx.stringValue("QueryStatementsResponse.RequestId"));<NEW_LINE>queryStatementsResponse.setCode<MASK><NEW_LINE>queryStatementsResponse.setMessage(_...
(_ctx.stringValue("QueryStatementsResponse.Code"));
506,966
public void service(Context context, HttpServerRequest req, HttpServerResponse resp, HttpRequest vertxReq, HttpResponse vertxResp, boolean handleNotFound) throws IOException {<NEW_LINE>ClassLoader old = Thread.currentThread().getContextClassLoader();<NEW_LINE>try {<NEW_LINE>Thread.currentThread().setContextClassLoader(...
ResteasyProviderFactory defaultInstance = ResteasyProviderFactory.getInstance();
1,163,356
public void deleteById(String id) {<NEW_LINE>String resourceGroupName = <MASK><NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));<NEW_LINE>}<NEW_LINE>String aut...
Utils.getValueFromIdByName(id, "resourceGroups");
796,041
private void handleException(Throwable x, HttpServletRequest request, HttpServletResponse response) {<NEW_LINE>if (x instanceof NestedServletException && x.getCause() != null) {<NEW_LINE>x = x.getCause();<NEW_LINE>}<NEW_LINE>SubsonicRESTController.ErrorCode code = (x instanceof ServletRequestBindingException) ? Subsoni...
Util.isInstanceOfClassName(x, "org.apache.catalina.connector.ClientAbortException");
828,965
public okhttp3.Call statObjectCall(String repository, String ref, String path, Boolean userMetadata, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/repositories/{repository}/refs/{ref}/objects/stat".r...
] { "basic_auth", "cookie_auth", "jwt_token" };
1,379,437
public void render(Map<String, Object> context, String templateFile, Handler<AsyncResult<Buffer>> handler) {<NEW_LINE>try {<NEW_LINE>String src = adjustLocation(templateFile);<NEW_LINE>TemplateHolder<PebbleTemplate> template = getTemplate(src);<NEW_LINE>if (template == null) {<NEW_LINE>// real compile<NEW_LINE>synchron...
getTemplate(adjustLocation(src)));
1,388,199
private void _processPortletRequest(HttpServletRequest req, HttpServletResponse res, boolean action) throws Exception {<NEW_LINE>String contentType = req.getHeader("Content-Type");<NEW_LINE>if ((contentType != null) && (contentType.startsWith("multipart/form-data"))) {<NEW_LINE>UploadServletRequest uploadReq = (UploadS...
req.getAttribute(WebKeys.CTX);
1,344,431
private static SetArgs createSetArgs3(Object[] argsArr) {<NEW_LINE>if (argsArr.length != 3) {<NEW_LINE>MatrixLog.w(TAG, "createSetArgs args length invalid : %d", argsArr.length);<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>SetArgs setArgs = new SetArgs();<NEW_LINE>if (!(argsArr[0] instanceof Integer)) {<NEW_LINE>MatrixLo...
, "createSetArgs args idx 2 not PendingIntent, %s", argsArr[2]);
1,329,976
public void recordActivityEnd(ActivityInstance activityInstance) {<NEW_LINE>if (getHistoryConfigurationSettings().isHistoryEnabledForActivity(activityInstance)) {<NEW_LINE>if (StringUtils.isNotEmpty(activityInstance.getActivityId())) {<NEW_LINE>ObjectNode data = processEngineConfiguration.getObjectMapper().createObject...
activityInstance.getId(), true);
343,551
public Request<ListPolicyPrincipalsRequest> marshall(ListPolicyPrincipalsRequest listPolicyPrincipalsRequest) {<NEW_LINE>if (listPolicyPrincipalsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListPolicyPrincipalsRequest)");<NEW_LINE>}<NEW_LINE>Request<ListPolicyPrincipa...
(listPolicyPrincipalsRequest.getAscendingOrder()));
161,596
final ListProfileObjectTypeTemplatesResult executeListProfileObjectTypeTemplates(ListProfileObjectTypeTemplatesRequest listProfileObjectTypeTemplatesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listProfileObjectTypeTemplatesRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEven...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();