idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
466,796
final PutSchemaVersionMetadataResult executePutSchemaVersionMetadata(PutSchemaVersionMetadataRequest putSchemaVersionMetadataRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putSchemaVersionMetadataRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
74,337
public static DescribePriceResponse unmarshall(DescribePriceResponse describePriceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describePriceResponse.setRequestId(_ctx.stringValue("DescribePriceResponse.RequestId"));<NEW_LINE>describePriceResponse.setOrderParams(_ctx.stringValue("DescribePriceResponse.OrderParams"));<...
= new ArrayList<String>();
1,319,994
public static Map<String, Map<String, MkGrouper>> outbound_components(TopologyContext topology_context, WorkerData workerData) {<NEW_LINE>Map<String, Map<String, MkGrouper>> rr = new HashMap<>();<NEW_LINE>// <Stream_id,<component,Grouping>><NEW_LINE>Map<String, Map<String, Grouping>> output_groupings = topology_context...
String component = cg.getKey();
776,448
private void updateOptionsButtons() {<NEW_LINE>MapActivity mapActivity = getMapActivity();<NEW_LINE>final View mainView = getMainView();<NEW_LINE>if (mapActivity == null || mainView == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final OsmandApplication app = mapActivity.getMyApplication();<NEW_LINE>RoutingHelper routi...
), optionsContainer.getPaddingBottom());
686,558
final VoteOnProposalResult executeVoteOnProposal(VoteOnProposalRequest voteOnProposalRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(voteOnProposalRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,786,487
public static Primitive unaryOperation(Primitive val, int kind) throws UtilEvalError {<NEW_LINE>if (val == Primitive.NULL)<NEW_LINE>throw new UtilEvalError("illegal use of null object or 'null' literal");<NEW_LINE>if (val == Primitive.VOID)<NEW_LINE>throw new UtilEvalError("illegal use of undefined object or 'void' lit...
.longValue(), kind));
199,321
private void applySslConfigOverrides() {<NEW_LINE>ServerSslConfig sslConfig = tcpConfig.sslConfig();<NEW_LINE>if (sslConfig != null) {<NEW_LINE>sslConfig = new DelegatingHttpServerSslConfig(sslConfig, httpAlpnProtocols(sslConfig.alpnProtocols(), httpConfig.supportedAlpnProtocols()));<NEW_LINE>Map<String, ServerSslConfi...
tcpConfig.sslConfig(sslConfig, sniMapOverrides);
1,310,272
private void createContent() {<NEW_LINE>setLayout(new BorderLayout());<NEW_LINE>setIconImage(Toolkit.getDefaultToolkit().getImage(MainFrame.class.getResource(ICON)));<NEW_LINE>textArea = new JTextArea(20, 15);<NEW_LINE>textArea.setEditable(false);<NEW_LINE>final JScrollPane textAreaScrollPane = new JScrollPane(textArea...
JSplitPane.HORIZONTAL_SPLIT, treeTableScrollPane, textAreaPanel);
385,528
protected LIRInstruction assignLocations(LIRInstruction inputOp) {<NEW_LINE>assert inputOp != null;<NEW_LINE>LIRInstruction op = inputOp;<NEW_LINE>// remove useless moves<NEW_LINE>if (MoveOp.isMoveOp(op)) {<NEW_LINE>AllocatableValue result = MoveOp.asMoveOp(op).getResult();<NEW_LINE>if (isVariable(result) && allocator....
(input), OperandMode.USE);
437,404
private void readLuma8x8CABAC(MBlock mBlock, int mbX, int mbY) {<NEW_LINE>for (int i = 0; i < 4; i++) {<NEW_LINE>int blkOffLeft = (i & 1) << 1;<NEW_LINE>int blkOffTop = i & 2;<NEW_LINE>int blkX = (mbX << 2) + blkOffLeft;<NEW_LINE>int blkY = (mbY << 2) + blkOffTop;<NEW_LINE>if ((mBlock.cbpLuma() & (1 << i)) == 0) {<NEW_...
nCoeff[blk4x4Offset + 3] = nCoeff;
1,159,438
// Finds one-to-many matches in functions from addressSet A and Address Set B<NEW_LINE>public static List<MatchedFunctions> matchFunctions(Program aProgram, AddressSetView setA, Program bProgram, AddressSetView setB, int minimumFunctionSize, boolean includeOneToOne, boolean includeNonOneToOne, FunctionHasher hasher, Ta...
<Address> aProgAddrs = match.aAddresses;
64,657
private void postToSubscription(Subscription subscription, Object event, boolean isMainThread) {<NEW_LINE>switch(subscription.subscriberMethod.threadMode) {<NEW_LINE>case POSTING:<NEW_LINE>invokeSubscriber(subscription, event);<NEW_LINE>break;<NEW_LINE>case MAIN:<NEW_LINE>if (isMainThread) {<NEW_LINE>invokeSubscriber(s...
mainThreadPoster.enqueue(subscription, event);
407,502
public ShippingInfoForm prePopulateShippingInfoForm(ShippingInfoForm shippingInfoForm, Order cart) {<NEW_LINE>FulfillmentGroup firstShippableFulfillmentGroup = fulfillmentGroupService.getFirstShippableFulfillmentGroup(cart);<NEW_LINE>if (firstShippableFulfillmentGroup != null) {<NEW_LINE>// if the cart has already has ...
setFulfillmentOptionId(fulfillmentOption.getId());
1,848,752
private DaemonClientConnection connectToCanceledDaemon(Collection<DaemonInfo> busyDaemons, ExplainingSpec<DaemonContext> constraint) {<NEW_LINE>DaemonClientConnection connection = null;<NEW_LINE>final Pair<Collection<DaemonInfo>, Collection<DaemonInfo>> canceledBusy = partitionByState(busyDaemons, Canceled);<NEW_LINE>f...
timer = Time.startCountdownTimer(CANCELED_WAIT_TIMEOUT);
1,072,742
public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>mContext = getActivity();<NEW_LINE>// Themes are 'pre-compiled' in themes-list: get all values<NEW_LINE>// and append them to our newly created PreferenceScreen<NEW_LINE>PreferenceScreen screen = getPreferenceManager...
getStringArray(R.array.theme_values);
172,966
private void notifySubscription(Event event, CustomerName name, String email, Locale userLanguage, WaitingQueueSubscription.Type subscriptionType) {<NEW_LINE>var messageSource = messageSourceManager.getMessageSourceFor(event);<NEW_LINE>Organization organization = organizationRepository.getById(event.getOrganizationId()...
buildModelForWaitingQueueJoined(organization, event, name);
602,989
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {<NEW_LINE>String type = req.getParameter("type");<NEW_LINE>if ("api".equals(type)) {<NEW_LINE>String format = req.getParameter("format");<NEW_LINE>String <MASK><NEW_LINE>String dereference = req.getParameter("de...
designId = req.getParameter("id");
1,475,598
public static DescribeDcdnDomainCertificateInfoResponse unmarshall(DescribeDcdnDomainCertificateInfoResponse describeDcdnDomainCertificateInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDcdnDomainCertificateInfoResponse.setRequestId(_ctx.stringValue("DescribeDcdnDomainCertificateInfoResponse.RequestId"));<NE...
= new ArrayList<CertInfo>();
616,283
private List<Wo> list(Business business, Wi wi) throws Exception {<NEW_LINE>List<Wo> wos = new ArrayList<>();<NEW_LINE>List<Person> people = business.person().pick(wi.getPersonList());<NEW_LINE>List<String> personIds = ListTools.extractProperty(people, JpaObject.id_FIELDNAME, String.class, true, true);<NEW_LINE>EntityM...
CriteriaBuilder cb = em.getCriteriaBuilder();
341,220
public void updateAlarm(SonosAlarm alarm) {<NEW_LINE>if (alarm != null) {<NEW_LINE>Map<String, String> inputs = new HashMap<String, String>();<NEW_LINE>try {<NEW_LINE>inputs.put("ID", Integer.toString(alarm.getID()));<NEW_LINE>inputs.put("StartLocalTime", alarm.getStartTime());<NEW_LINE>inputs.put("Duration", alarm.get...
"Recurrence", alarm.getRecurrence());
1,325,545
public static void main(String[] args) {<NEW_LINE>final String resultsFolder = "target" + File.separatorChar + "results";<NEW_LINE>final String reportsFolder <MASK><NEW_LINE>final String htmlReportFilename = reportsFolder + File.separatorChar + "sql-statement-log-report.html";<NEW_LINE>final String jsonReportFilename =...
= "target" + File.separatorChar + "reports";
1,135,925
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_drawer);<NEW_LINE>// set up an authentication handler to take credentials for access to arcgis.com<NEW_LINE>AuthenticationChallengeHandler handler = new DefaultAuthenticationChalle...
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
1,712,648
public static DateraObject.AppInstance cloneAppInstanceFromSnapshot(DateraObject.DateraConnection conn, String newAppInstanceName, String snapshotName, String ipPool) throws DateraObject.DateraError, UnsupportedEncodingException {<NEW_LINE>// split the snapshot name to appInstanceName and the snapshot timestamp<NEW_LIN...
String snapshotPath = snapshot.getPath();
1,429,385
protected void toggleTooltip(Element elem, String type) {<NEW_LINE>String csscls = <MASK><NEW_LINE>if (SVGConstants.SVG_MOUSEOVER_EVENT_TYPE.equals(type)) {<NEW_LINE>if (TOOLTIP_HIDDEN.equals(csscls)) {<NEW_LINE>SVGUtil.setAtt(elem, SVGConstants.SVG_CLASS_ATTRIBUTE, TOOLTIP_VISIBLE);<NEW_LINE>}<NEW_LINE>} else if (SVGC...
elem.getAttribute(SVGConstants.SVG_CLASS_ATTRIBUTE);
806,929
final long doWriteOrSendBytes(ByteBuf data, InetSocketAddress remoteAddress, boolean fastOpen) throws IOException {<NEW_LINE>assert !(fastOpen && remoteAddress == null) : "fastOpen requires a remote address";<NEW_LINE>if (data.hasMemoryAddress()) {<NEW_LINE>long memoryAddress = data.memoryAddress();<NEW_LINE>if (remote...
.memoryAddress(0), cnt);
1,427,855
public void mousePressed(MouseEvent ev) {<NEW_LINE>if (ev.isPopupTrigger()) {<NEW_LINE>int x = ev.getX();<NEW_LINE>int y = ev.getY();<NEW_LINE>TreePath path = view.getClosestPathForLocation(x, y);<NEW_LINE>if (path != null) {<NEW_LINE>LookTreeNode n = (LookTreeNode) path.getLastPathComponent();<NEW_LINE>clicked = new W...
show(view, x, y);
18,885
protected Object sendSearchRequest(Query query, Object unusedContext) throws IOException {<NEW_LINE>this.query = query;<NEW_LINE>invokers.forEach(invoker -> invoker.setMonitor(this));<NEW_LINE>deadline = currentTime() + query.getTimeLeft();<NEW_LINE>int originalHits = query.getHits();<NEW_LINE>int originalOffset = quer...
neededHits, invokers.size());
1,322,841
public void tickFlower() {<NEW_LINE>super.tickFlower();<NEW_LINE>if (getLevel().isClientSide) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int mana = 1800;<NEW_LINE>if (getMaxMana() - this.getMana() >= mana && !getLevel().isClientSide && ticksExisted % 80 == 0) {<NEW_LINE>for (int i = 0; i < RANGE * 2 + 1; i++) {<NEW_LINE>fo...
).removeBlock(pos, false);
1,388,877
GraphQLEnumType buildEnumType(BuildContext buildCtx, EnumTypeDefinition typeDefinition) {<NEW_LINE>GraphQLEnumType.<MASK><NEW_LINE>builder.definition(typeDefinition);<NEW_LINE>builder.name(typeDefinition.getName());<NEW_LINE>builder.description(buildDescription(typeDefinition, typeDefinition.getDescription()));<NEW_LIN...
Builder builder = GraphQLEnumType.newEnum();
34,225
public void handle(GameEvent event) {<NEW_LINE>CPU cpu = (CPU) event.getSource();<NEW_LINE>Cubot cubot = (Cubot) ((<MASK><NEW_LINE>cpu.setHardwareHost(cubot);<NEW_LINE>CubotLeg legHw = new CubotLeg(cubot);<NEW_LINE>legHw.setCpu(cpu);<NEW_LINE>CubotLaser laserHw = new CubotLaser(cubot);<NEW_LINE>laserHw.setCpu(cpu);<NEW...
CpuInitialisationEvent) event).getUnit();
1,701,098
final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
false), new UntagResourceResultJsonUnmarshaller());
364,651
public Sequence execute(StaticContext sctx, QueryContext ctx, Sequence[] args) {<NEW_LINE>final Sequence sequence = args[0];<NEW_LINE>if (sequence == null) {<NEW_LINE>return Int32.ZERO;<NEW_LINE>}<NEW_LINE>final boolean format = FunUtil.getBoolean(args, 1, "prettyPrint", false, false);<NEW_LINE>final String file = FunU...
Str(buf.toString());
946,293
public void completeQueryWithObject(@NonNull SearchResult sr) {<NEW_LINE>if (sr.object instanceof AbstractPoiType) {<NEW_LINE>SearchHistoryHelper.getInstance(app).addNewItemToHistory((AbstractPoiType) sr.object);<NEW_LINE>} else if (sr.object instanceof PoiUIFilter) {<NEW_LINE>SearchHistoryHelper.getInstance(app).addNe...
.localeName = custom.getName();
1,339,662
private static Collection<String> extractedMethod(int index, final int length, final String name) {<NEW_LINE>final Collection<String> array = new ArrayList<>(10);<NEW_LINE>while (index < length) {<NEW_LINE>final int wordStart = index;<NEW_LINE>int upperCaseCount = 0;<NEW_LINE>int lowerCaseCount = 0;<NEW_LINE>int digitC...
c = name.charAt(index);
941,375
public void sendNotification(Check check, Subscription subscription, List<Alert> alerts) throws NotificationFailedException {<NEW_LINE>PagerDuty pagerDuty = PagerDuty.create(subscription.getTarget(), new RestAdapter.Builder().setEndpoint(Endpoints.newFixedEndpoint(baseUrl)).build());<NEW_LINE>NotifyResult result = null...
, alerts)).build();
312,121
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create variable int queryvar", path);<NEW_LINE>env.compileDeploy("on SupportBean set queryvar=intPrimitive", path);<NEW_LINE>String stmtText = "@name('s0') select myint from " + " sql:My...
, path).addListener("s0");
1,737,713
public Request<ListFacesRequest> marshall(ListFacesRequest listFacesRequest) {<NEW_LINE>if (listFacesRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListFacesRequest)");<NEW_LINE>}<NEW_LINE>Request<ListFacesRequest> request = new DefaultRequest<ListFacesRequest>(listFace...
content = snippet.getBytes(UTF8);
1,629,428
public String processRefToExternalLink(String $ref, RefFormat refFormat) {<NEW_LINE>String renamedRef = cache.getRenamedRef($ref);<NEW_LINE>if (renamedRef != null) {<NEW_LINE>return renamedRef;<NEW_LINE>}<NEW_LINE>final Link link = cache.loadRef($ref, refFormat, Link.class);<NEW_LINE>if (link == null) {<NEW_LINE>// sto...
debug("A model for " + existingLink + " already exists");
210,797
protected FieldMetadataOverride constructAdornedTargetCollectionMetadataOverride(AdminPresentationAdornedTargetCollection adornedTargetCollection) {<NEW_LINE>if (adornedTargetCollection != null) {<NEW_LINE>FieldMetadataOverride override = new FieldMetadataOverride();<NEW_LINE>override.setGridVisibleFields(adornedTarget...
operationTypes().addType());
45,719
public String encode() throws IOException {<NEW_LINE>try (FastStringWriter fsw = new FastStringWriter()) {<NEW_LINE>ChartUtils.writeDataValue(fsw, "enabled", this.enabled, false);<NEW_LINE>ChartUtils.writeDataValue(fsw, "mode", this.mode, true);<NEW_LINE>ChartUtils.writeDataValue(fsw, "intersect", this.intersect, true)...
"yPadding", this.ypadding, true);
683,312
protected XContentBuilder doXContentBody(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.<MASK><NEW_LINE>if (count != 0) {<NEW_LINE>builder.field(Fields.MIN, min);<NEW_LINE>builder.field(Fields.MAX, max);<NEW_LINE>builder.field(Fields.AVG, avg);<NEW_LINE>builder.field(Fields.SUM, sum);<NEW...
field(Fields.COUNT, count);
357,118
private void transformProgram(Program program) {<NEW_LINE>for (BasicBlock block : program.getBasicBlocks()) {<NEW_LINE>for (Instruction insn : block) {<NEW_LINE>if (!(insn instanceof GetFieldInstruction)) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>GetFieldInstruction getField = (GetFieldInstruction) insn;<NEW_LINE><MASK>...
FieldReference field = getField.getField();
519,434
public String playerEyeHeight(@Sender EntityRef client, @CommandParam("eye-height") float amount) {<NEW_LINE>EntityRef player = client.getComponent(ClientComponent.class).character;<NEW_LINE>try {<NEW_LINE>GazeMountPointComponent gazeMountPointComponent = player.getComponent(GazeMountPointComponent.class);<NEW_LINE>if ...
+ amount + " (was " + prevHeight + ")";
1,823,348
private void updateInsertionData(TreeSet<VersionedInsertionData>[] priorityQueues, Collection<VehicleRoute> routes, List<Job> unassignedJobList, int updateRound, boolean firstRun, VehicleRoute lastModified, Map<VehicleRoute, Integer> updates) {<NEW_LINE>for (Job unassignedJob : unassignedJobList) {<NEW_LINE>if (priorit...
, Arrays.asList(lastModified));
1,545,580
public void marshall(GetAggregateComplianceDetailsByConfigRuleRequest getAggregateComplianceDetailsByConfigRuleRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (getAggregateComplianceDetailsByConfigRuleRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW...
getAggregateComplianceDetailsByConfigRuleRequest.getAwsRegion(), AWSREGION_BINDING);
1,027,218
public void onMatch(RelOptRuleCall call) {<NEW_LINE>Aggregate aggRel = call.rel(0);<NEW_LINE>Union union = call.rel(1);<NEW_LINE>if (!union.all) {<NEW_LINE>// This transformation is only valid for UNION ALL.<NEW_LINE>// Consider t1(i) with rows (5), (5) and t2(i) with<NEW_LINE>// rows (5), (10), and the query<NEW_LINE>...
getInputs().size());
1,086,846
private double[] computeAVGPathLengthOfRandomKeys(int size) {<NEW_LINE>BinarySearchTreeInternalPathLength<Integer, Integer> binarySearchTreeStandardDelete = new BinarySearchTreeInternalPathLength<>();<NEW_LINE>BinarySearchTreeInternalPathLength<Integer, Integer> binarySearchTreeRandomPromotionDelete = new BinarySearchT...
StdRandom.uniform(Integer.MAX_VALUE);
1,776,728
public <T0, T1, T2, T3, T4, T> Join<T> createJoin(final List<Stage<?>> stages, final Function5<T0, T1, T2, T3, T4, T> constructor, final TableIdentifier<T0> t0, final TableIdentifier<T1> t1, final TableIdentifier<T2> t2, final TableIdentifier<T3> t3, final TableIdentifier<T4> t4) {<NEW_LINE>final SqlFunction<ResultSet,...
rsMapper(stages, 4, t4);
1,134,872
public URL call() throws IOException, InterruptedException {<NEW_LINE>URL initialUrl = HttpRequest.url("https://paste.enginehub.org/signed_paste");<NEW_LINE>HttpRequest requestBuilder = HttpRequest.get(initialUrl);<NEW_LINE>requestBuilder.header("x-paste-meta-from", "EngineHub");<NEW_LINE>if (metadata.name != null) {<N...
form.add("file", content);
105,257
private boolean handleSend(Uri uri, String mimeType) {<NEW_LINE>try {<NEW_LINE>FileInfo info = SystemServices.getFileInfoFromURI(this, uri);<NEW_LINE>if (mimeType != null)<NEW_LINE>info.type = mimeType;<NEW_LINE>if (info != null && info.path != null && ChatFileStore.exists(info.path)) {<NEW_LINE>IChatSession session = ...
Toast.LENGTH_LONG).show();
471,363
public static int minMutation(String start, String end, String[] bank) {<NEW_LINE>if (start.equals(end))<NEW_LINE>return 0;<NEW_LINE>Set<String> <MASK><NEW_LINE>for (String b : bank) bankSet.add(b);<NEW_LINE>char[] chars = new char[] { 'A', 'C', 'G', 'T' };<NEW_LINE>int level = 0;<NEW_LINE>Set<String> visited = new Has...
bankSet = new HashSet<>();
663,908
public void completed(HttpClientCallbackResult result) {<NEW_LINE>Map<String, String> groupCache = new HashMap<String, String>();<NEW_LINE>String respStr = result.getReplyDataAsString();<NEW_LINE>respStr = respStr.substring(7, respStr.length() - 2).replaceAll("\\\\", "");<NEW_LINE>Map<String, Object> respMap = JSONHelp...
"" : map.get("ldapkey");
1,456,688
boolean grpc(String model_config_path) {<NEW_LINE>float[] data = { 0.0137f, -0.1136f, 0.2553f, -0.0692f, 0.0582f, -0.0727f, -0.1583f, -0.0584f, 0.6283f, 0.4919f<MASK><NEW_LINE>INDArray npdata = Nd4j.createFromArray(data);<NEW_LINE>long[] batch_shape = { 1, 13 };<NEW_LINE>INDArray batch_npdata = npdata.reshape(batch_sha...
, 0.1856f, 0.0795f, -0.0332f };
1,209,923
private void updateHighlight(int curIndex) {<NEW_LINE>if (curIndex == lastIndex) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// compute region which needs repaint<NEW_LINE>TabLayoutModel tlm = getLayoutModel();<NEW_LINE>int x, y, w, h;<NEW_LINE>Rectangle repaintRect = null;<NEW_LINE>if (curIndex != -1) {<NEW_LINE>x = tlm.ge...
h = tlm.getH(lastIndex);
899,568
public boolean fileExists(String fileFullPath) throws Exception {<NEW_LINE>DatastoreFile file = new DatastoreFile(fileFullPath);<NEW_LINE>DatastoreFile dirFile = new DatastoreFile(file.getDatastoreName(<MASK><NEW_LINE>HostDatastoreBrowserMO browserMo = getHostDatastoreBrowserMO();<NEW_LINE>s_logger.info("Search file " ...
), file.getDir());
1,590,830
public void execute(int status, String response) {<NEW_LINE>super.execute(status, response);<NEW_LINE>logger.trace("Received response '{}'", response);<NEW_LINE>if (isValidRequest()) {<NEW_LINE>try {<NEW_LINE>XMLStreamReader xsr = JAXBUtils.XMLINPUTFACTORY.createXMLStreamReader(new StringReader(response));<NEW_LINE>Unm...
addTemplateList(model.getTemplates());
704,014
public void downloadInProgress() {<NEW_LINE>final OsmandApplication app = getMyApplication();<NEW_LINE>if (app == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>DownloadIndexesThread downloadThread = app.getDownloadThread();<NEW_LINE><MASK><NEW_LINE>if (downloadIndexItem != null) {<NEW_LINE>for (BaseBottomSheetItem item ...
IndexItem downloadIndexItem = downloadThread.getCurrentDownloadingItem();
1,157,787
/* Initializes sheet of properties. Allow subclasses to<NEW_LINE>* overwrite it.<NEW_LINE>* @return the default sheet to use<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected Sheet createSheet() {<NEW_LINE>Sheet s = Sheet.createDefault();<NEW_LINE>Sheet.Set ss = s.get(Sheet.PROPERTIES);<NEW_LINE>Node.Property p;<NEW_LI...
.put(new SizeProperty());
1,766,713
final ListConnectPeersResult executeListConnectPeers(ListConnectPeersRequest listConnectPeersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listConnectPeersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
invoke(request, responseHandler, executionContext);
104,971
public boolean shouldReformatPreviouslyLocatedDependentSpacing(WhiteSpace space) {<NEW_LINE>final TextRange changed = space.getTextRange();<NEW_LINE>final SortedMap<TextRange, DependantSpacingImpl> sortedHeadMap = myPreviousDependencies.tailMap(changed);<NEW_LINE>for (final Map.Entry<TextRange, DependantSpacingImpl> en...
DependantSpacingImpl spacing = entry.getValue();
993,950
public StringBuffer print(int indent, StringBuffer output) {<NEW_LINE>printIndent(indent, output);<NEW_LINE>// $NON-NLS-1$<NEW_LINE>output.append("<CompletionOnMethodName:");<NEW_LINE>printModifiers(this.modifiers, output);<NEW_LINE>printReturnType(0, output);<NEW_LINE>output.append(this.selector).append('(');<NEW_LINE...
].print(0, output);
933,075
public boolean unban(String ipAddress, boolean block) {<NEW_LINE>boolean hit = false;<NEW_LINE>Object oa = decodeAddress(ipAddress);<NEW_LINE>// only support block bans for v4<NEW_LINE>if (block && oa instanceof Integer) {<NEW_LINE>int address = (Integer) oa;<NEW_LINE>long l_address = address;<NEW_LINE>if (l_address < ...
new Integer((int) i);
310,005
public List<Integer> spiralOrder(int[][] matrix) {<NEW_LINE>List<Integer> result = new ArrayList<Integer>();<NEW_LINE>if (matrix == null || matrix.length == 0) {<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>int rowStart = 0;<NEW_LINE>int rowEnd = matrix.length - 1;<NEW_LINE>int colStart = 0;<NEW_LINE>int colEnd = matrix...
matrix[rowEnd][i]);
1,243,735
public com.squareup.okhttp.Call schemaWebsocketHelpCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localV...
, progressListener)).build();
984,309
static // [START securitycenter_list_findings_with_security_marks]<NEW_LINE>ImmutableList<ListFindingsResult> listFindingsWithQueryMarks(SourceName sourceName) {<NEW_LINE>try (SecurityCenterClient client = SecurityCenterClient.create()) {<NEW_LINE>// Start setting up a request for to list all findings filtered by a spe...
System.out.println("Findings with security mark - key_a=value_a:");
1,091,765
protected List<Example<Label>> generate() {<NEW_LINE>List<Example<Label>> list = new ArrayList<>();<NEW_LINE>for (int i = 0; i < numSamples / 2; i++) {<NEW_LINE>double[] values = new double[2];<NEW_LINE>double u = rng.nextDouble();<NEW_LINE>values[0] = Math.cos(Math.PI * u) + rng.nextGaussian() * variance;<NEW_LINE>val...
+ rng.nextGaussian() * variance;
387,518
public static CalendarInterval fromDayTimeString(String s) throws IllegalArgumentException {<NEW_LINE>CalendarInterval result = null;<NEW_LINE>if (s == null) {<NEW_LINE>throw new IllegalArgumentException("Interval day-time string was null");<NEW_LINE>}<NEW_LINE>s = s.trim();<NEW_LINE>Matcher m = dayTimePattern.matcher(...
(7), 0L, 999999999L);
881,641
public void run() {<NEW_LINE>super.run();<NEW_LINE>Looper.prepare();<NEW_LINE>String errorinfo = getErrorInfo(arg1);<NEW_LINE>String[] ss = errorinfo.split("\n\t");<NEW_LINE>String headstring = ss[0] + "\n\t" + ss[1] + "\n\t" + ss[2];<NEW_LINE>if (headstring.length() > 255) {<NEW_LINE>headstring = headstring.substring(...
saveInfoToFile("errorInfo", errorInfo, context);
559,592
public void afterAnalysis(AfterAnalysisAccess access) {<NEW_LINE>FeatureImpl.AfterAnalysisAccessImpl accessImpl = (FeatureImpl.AfterAnalysisAccessImpl) access;<NEW_LINE>AnalysisUniverse universe = accessImpl.getUniverse();<NEW_LINE>Stream<Module> analysisReachableModules = universe.getTypes().stream().filter(t -> t.isR...
getProperty(ModuleSupport.PROPERTY_IMAGE_EXPLICITLY_ADDED_MODULES, "");
294,273
protected int doWork() {<NEW_LINE>final ProgressLogger progress = new ProgressLogger(LOG, 10000);<NEW_LINE>IOUtil.assertFileIsReadable(INPUT);<NEW_LINE>IOUtil.assertFileIsWritable(OUTPUT);<NEW_LINE>final VCFFileReader reader = new VCFFileReader(INPUT, REQUIRE_INDEX);<NEW_LINE>final VCFHeader header = new VCFHeader(read...
(OUTPUT).setReferenceDictionary(sequenceDictionary);
105,091
public SortField sortField(Object missingValue, MultiValueMode sortMode, Nested nested, boolean reverse) {<NEW_LINE>final XFieldComparatorSource source;<NEW_LINE>switch(numericType) {<NEW_LINE>case HALF_FLOAT:<NEW_LINE>case FLOAT:<NEW_LINE>source = new FloatValuesComparatorSource(this, missingValue, sortMode, nested);<...
.missingObject(missingValue, reverse));
1,800,527
public static BigDecimal numberToBigDecimal(@Nonnull Number number) {<NEW_LINE>BigDecimal bigDecimal = null;<NEW_LINE>if (number instanceof BigDecimal)<NEW_LINE>bigDecimal = (BigDecimal) number;<NEW_LINE>else {<NEW_LINE>if (!(number instanceof BigInteger) && !(number instanceof Byte) && !(number instanceof Short) && !(...
new BigDecimal((BigInteger) number);
544,832
static CodegenMethod generateOrderKeyCodegen(String methodName, OrderByElementForge[] orderBy, CodegenClassScope classScope, CodegenNamedMethods namedMethods) {<NEW_LINE>Consumer<CodegenMethod> code = methodNode -> {<NEW_LINE>if (orderBy.length == 1) {<NEW_LINE>CodegenMethod expression = CodegenLegoMethodExpression.cod...
getForge(), methodNode, classScope);
1,646,393
protected void configure() {<NEW_LINE>bind(new TypeLiteral<Amount<Long, Time>>() {<NEW_LINE>}).annotatedWith(ReservationDuration.class).toInstance(DELAY_FOREVER);<NEW_LINE>bind(TaskIdGenerator.class).<MASK><NEW_LINE>bind(new TypeLiteral<Amount<Long, Time>>() {<NEW_LINE>}).annotatedWith(OfferManagerModule.Unavailability...
to(TaskIdGenerator.TaskIdGeneratorImpl.class);
127,469
public static int[] dfs(Graph graph) {<NEW_LINE>int[] result = new int[graph.size()];<NEW_LINE>int[] state = new int[graph.size()];<NEW_LINE>int[] stack = new int[graph.size() * 2];<NEW_LINE>int top = 0;<NEW_LINE>stack[top++] = 0;<NEW_LINE>int index = graph.size();<NEW_LINE>while (top > 0) {<NEW_LINE><MASK><NEW_LINE>sw...
int node = stack[--top];
1,609,985
private void dumpNspFile(long size) throws Exception {<NEW_LINE>FileOutputStream fos = new FileOutputStream(nspFile.getFile(), true);<NEW_LINE>long nspSize = nspFile.getFullSize();<NEW_LINE>try (BufferedOutputStream bos = new BufferedOutputStream(fos)) {<NEW_LINE>long nspRemainingSize = nspFile.getNspRemainingSize();<N...
nspRemainingSize) / (double) nspSize);
1,196,101
private static void readFamily(XmlPullParser parser, ArrayList<FontConfig> fontList) throws XmlPullParserException, IOException {<NEW_LINE>String name = parser.getAttributeValue(null, "name");<NEW_LINE>String lang = parser.getAttributeValue(null, "lang");<NEW_LINE>ArrayList<FontConfig> <MASK><NEW_LINE>while (parser.nex...
fonts = new ArrayList<>();
64,043
void decode(Decoder decoder, Instruction instruction) {<NEW_LINE>int operandSize = decoder.state_operandSize;<NEW_LINE>instruction.setCode(codes[operandSize]);<NEW_LINE>instruction.setOp0Register((operandSize << 4) + decoder.state_reg + decoder.state_zs_extraRegisterBase + Register.AX);<NEW_LINE>if (decoder.state_mod =...
instruction.setOp2Kind(OpKind.IMMEDIATE8TO32);
8,802
public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE>org.apache.thrift.TSerializable msg;<NEW_LINE>checkTableClass_result result = new checkTableClass_result();<NEW_LINE>if (e instanceof ThriftSecurityException) {<NEW_LINE>result.sec = (ThriftSecur...
.thrift.protocol.TMessageType.EXCEPTION;
1,324,383
final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
false), new TagResourceResultJsonUnmarshaller());
1,238,236
public StartChatContactResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StartChatContactResult startChatContactResult = new StartChatContactResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i...
class).unmarshall(context));
1,604,779
private static // The code below (versions 4+) looks only for fields known to the implementation.<NEW_LINE>List<RegisterResponseEntry> reconstructSchemasList(List<Object> objectsList) {<NEW_LINE>List<RegisterResponseEntry> schemasList = new ArrayList<RegisterResponseEntry>();<NEW_LINE>for (Object obj : objectsList) {<N...
Map<String, Object>) obj;
150,911
final DBCluster executeStartDBCluster(StartDBClusterRequest startDBClusterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startDBClusterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecu...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,631,155
protected void updateCellHorizontalSelection(int delta, Runnable defaultAction) {<NEW_LINE>TableViewSpanSelectionModel sm = (TableViewSpanSelectionModel) getSelectionModel();<NEW_LINE>if (sm == null || sm.getSelectionMode() == SelectionMode.SINGLE) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>TableFocusModel fm = getFocusMod...
focusedCell.getTableColumn(), delta);
215,548
public void translate(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>TranslationHelpers.checkTranslationArguments(environment, instruction, instructions, "bltz");<NEW_LINE>final List<? extends IOperandTr...
0x80000000L), dw, isolatedSign));
414,276
public void decrementDispatchQueueRefCount() {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "decrementDispatchQueueRefCount");<NEW_LINE>--dispatchQueueReferenceCount;<NEW_LINE>if (dispatchQueueReferenceCount < 0) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabl...
exit(this, tc, "decrementDispatchQueueRefCount");
1,677,780
protected List<? extends JComponent> createPreviewElements() {<NEW_LINE>final JButton basic = new JButton();<NEW_LINE>basic.putClientProperty(StyleId.STYLE_PROPERTY, getStyleId());<NEW_LINE>UILanguageManager.registerComponent(basic, getExampleLanguageKey("styled.text.basic"));<NEW_LINE>final JButton group1 = new JButto...
(group2, getExampleLanguageKey("styled.text.group2"));
180,965
ActionResult<Wo> execute(EffectivePerson effectivePerson, String flag, String appInfoFlag) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wo wo = null;<NEW_LINE>Cache.CacheKey cacheKey =...
ExceptionEntityNotExist(flag, File.class);
648,844
void cachePackage(String packageName, String module) {<NEW_LINE>packageName = packageName.intern();<NEW_LINE>module = module.intern();<NEW_LINE>packageName = packageName.replace('.', '/');<NEW_LINE>Object current = this.packageToModule.get(packageName);<NEW_LINE>if (current == null) {<NEW_LINE>this.packageToModule.put(...
add(0, JRTUtil.JAVA_BASE);
131,668
private void wrapWithTraceOnReturn(CodeExecutableElement method) {<NEW_LINE>if (node.isGenerateTraceOnReturn()) {<NEW_LINE>CodeTypeElement enclosingClass = (CodeTypeElement) method.getEnclosingElement();<NEW_LINE>CodeExecutableElement traceMethod = CodeExecutableElement.cloneNoAnnotations(method);<NEW_LINE>method.setSi...
.toString() + "Traced"));
651,118
public void controlResized(ControlEvent e) {<NEW_LINE>Rectangle area = comp.getClientArea();<NEW_LINE>Point size = tref.computeSize(SWT.DEFAULT, SWT.DEFAULT);<NEW_LINE>ScrollBar vBar = tref.getVerticalBar();<NEW_LINE>int width = area.width - tref.computeTrim(0, 0, 0, 0).width - 2;<NEW_LINE>if (size.y > area.height + tr...
width - tc1.getWidth());
537,665
// comes here<NEW_LINE>@Override<NEW_LINE>protected void prepare() {<NEW_LINE>ProcessInfoParameter[] para = getParametersAsArray();<NEW_LINE>for (ProcessInfoParameter element : para) {<NEW_LINE>String name = element.getParameterName();<NEW_LINE>if (element.getParameter() == null) {<NEW_LINE>} else if (name.equals("R_In...
ofRepoId(element.getParameterAsInt());
1,334,248
public void marshall(Device device, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (device == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(device.getArn(), ARN_BINDING);<NEW_LINE>protocolMarshaller.marshal...
device.getModel(), MODEL_BINDING);
1,353,214
public Object calculate(Context ctx) {<NEW_LINE>int count = 1;<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("ptop" + mm.getMessage("function.missingParam"));<NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>Object obj = param.<MASK><NEW_LINE>if (obj instan...
getLeafExpression().calculate(ctx);
1,229,522
static String readName(ByteBuf buf) {<NEW_LINE>int position = -1;<NEW_LINE>StringBuilder name = new StringBuilder();<NEW_LINE>for (int len = buf.readUnsignedByte(); buf.isReadable() && len != 0; len = buf.readUnsignedByte()) {<NEW_LINE>boolean pointer = (len & 0xc0) == 0xc0;<NEW_LINE>if (pointer) {<NEW_LINE>if (positio...
UTF_8)).append(".");
673,284
final DescribeJobExecutionResult executeDescribeJobExecution(DescribeJobExecutionRequest describeJobExecutionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeJobExecutionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,422,755
public void marshall(SampledHTTPRequest sampledHTTPRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (sampledHTTPRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(sampledHTTPRequest.getRequest(...
sampledHTTPRequest.getResponseCodeSent(), RESPONSECODESENT_BINDING);
1,482,267
private void handleFilterLoincCopyright(SearchPredicateFactory theF, BooleanPredicateClausesStep<?> theB, ValueSet.ConceptSetFilterComponent theFilter) {<NEW_LINE>if (theFilter.getOp() == ValueSet.FilterOperator.EQUAL) {<NEW_LINE>String copyrightFilterValue = defaultString(theFilter.getValue()).toLowerCase();<NEW_LINE>...
), theFilter.getProperty());
160,837
public Variant withManager(String identity) {<NEW_LINE>Map<String, Configuration> variants = new HashMap<>();<NEW_LINE>Config current = <MASK><NEW_LINE>if (current instanceof VariantConfig) {<NEW_LINE>variants.putAll(((VariantConfig) current).configs);<NEW_LINE>} else if (current != null) {<NEW_LINE>throw new IllegalSt...
config.configurations.get(identity);
421,374
public static GuiButtonBoolean buildColorButton(GuiButtonBoolean[] buttons, int posX, int posY, boolean active, DyeColor color, Consumer<GuiButtonBoolean> onClick) {<NEW_LINE>return new GuiButtonBoolean(posX, posY, 12, 12, "", active, TEXTURE, 194, 0, 1, btn -> {<NEW_LINE>if (btn.getNextState())<NEW_LINE>onClick.accept...
[j].setStateByInt(0);