idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,779,699
public static ErrorDescription apply(HintContext hc) {<NEW_LINE>if (hc.isCanceled()) {<NEW_LINE>// NOI18N<NEW_LINE>// we pass only if it is an annotation<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final JPAProblemContext ctx = ModelUtils.getOrCreateCachedContext(hc);<NEW_LINE>if (ctx == null || hc.isCanceled()) {<NEW_LI...
TypeElement subject = ctx.getJavaClass();
903,846
public static ListFirewallRulesResponse unmarshall(ListFirewallRulesResponse listFirewallRulesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listFirewallRulesResponse.setRequestId<MASK><NEW_LINE>listFirewallRulesResponse.setPageNumber(_ctx.integerValue("ListFirewallRulesResponse.PageNumber"));<NEW_LINE>listFirewallRule...
(_ctx.stringValue("ListFirewallRulesResponse.RequestId"));
206,622
public void sendTaskCompletedMail(SingularityTaskHistory taskHistory, SingularityRequest request) {<NEW_LINE>final Optional<SingularityTaskHistoryUpdate> lastUpdate = taskHistory.getLastTaskUpdate();<NEW_LINE>if (!lastUpdate.isPresent()) {<NEW_LINE>LOG.warn("Can't send task completed mail for task {} - no last update",...
getTask().getTaskId());
870,471
protected QueryBuilder doRewrite(QueryRewriteContext queryRewriteContext) throws IOException {<NEW_LINE>QueryBuilder queryBuilder = <MASK><NEW_LINE>if (queryBuilder instanceof MatchNoneQueryBuilder) {<NEW_LINE>return queryBuilder;<NEW_LINE>}<NEW_LINE>FilterFunctionBuilder[] rewrittenBuilders = new FilterFunctionBuilder...
this.query.rewrite(queryRewriteContext);
1,116,684
public boolean cancelOrder(CancelOrderParams orderParams) throws IOException {<NEW_LINE>OkCoinFuturesCancelOrderParams myParams = (OkCoinFuturesCancelOrderParams) orderParams;<NEW_LINE>CurrencyPair currencyPair = myParams.getCurrencyPair();<NEW_LINE>FuturesContract reqFuturesContract = myParams.futuresContract;<NEW_LIN...
.adaptSymbol(currencyPair), reqFuturesContract);
1,583,097
private void refillDocs() throws IOException {<NEW_LINE>final int left = docFreq - blockUpto;<NEW_LINE>assert left >= 0;<NEW_LINE>if (left >= BLOCK_SIZE) {<NEW_LINE>forDeltaUtil.<MASK><NEW_LINE>pforUtil.decode(docIn, freqBuffer);<NEW_LINE>blockUpto += BLOCK_SIZE;<NEW_LINE>} else if (docFreq == 1) {<NEW_LINE>docBuffer[0...
decodeAndPrefixSum(docIn, accum, docBuffer);
1,452,325
public ColumnDefinition unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ColumnDefinition columnDefinition = new ColumnDefinition();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentT...
String currentParentElement = context.getCurrentParentElement();
545,438
public void exportWordlist(final OutputStream outputStream, final Appendable debugOutput) throws PwmOperationalException, IOException {<NEW_LINE>Objects.requireNonNull(outputStream);<NEW_LINE>final long totalLines = localDB.size(LocalDB.DB.WORDLIST_WORDS);<NEW_LINE>final LongAdder exportLineCounter = new LongAdder();<N...
> entry = localDBIterator.next();
1,684,180
public void delete(L2NetworkInventory l2Network, String hostUuid, Completion completion) {<NEW_LINE>L2VxlanNetworkInventory l2vxlan = (L2VxlanNetworkInventory) l2Network;<NEW_LINE>final VxlanKvmAgentCommands.DeleteVxlanBridgeCmd <MASK><NEW_LINE>cmd.setBridgeName(makeBridgeName(l2vxlan.getVni()));<NEW_LINE>cmd.setVni(l2...
cmd = new VxlanKvmAgentCommands.DeleteVxlanBridgeCmd();
1,515,212
private ImmutableListMultimap<TableRecordReference, I_C_Location> extractLocationRecords(@NonNull final ImmutableListMultimap<TableRecordReference, LocationId> locationIds) {<NEW_LINE>final ImmutableListMultimap.Builder<TableRecordReference, I_C_Location> recordRef2LocationRecords = ImmutableListMultimap.builder();<NEW...
.create().list();
1,628,273
private void loadTagValues(final String tagGroup, final List<String> tagNameList) {<NEW_LINE>final List<TagData> dataList = new ArrayList<TagData>();<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put("objType", objType);<NEW_LINE>param.put(...
Value v = in.readValue();
1,464,617
private byte[] copyOneTransactionInternal(RangeRequest range, long rangeId, Transaction readT, Transaction writeT) {<NEW_LINE>final long maxBytes = TransactionConstants.WARN_LEVEL_FOR_QUEUED_BYTES / 2;<NEW_LINE>byte[] start = getCheckpoint(rangeId, writeT);<NEW_LINE>if (start == null) {<NEW_LINE>return null;<NEW_LINE>}...
writeMap = new HashMap<>();
1,114,106
public StatCounter merge(StatCounter o) {<NEW_LINE>if (o == null || o.count == 0) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>if (o == this) {<NEW_LINE>return merge(o.clone());<NEW_LINE>}<NEW_LINE>if (this.count == 0) {<NEW_LINE>count = o.count;<NEW_LINE>runningMean = o.runningMean;<NEW_LINE>runningMean = o.runningM2;<...
double d = o.runningMean - runningMean;
1,407,804
private void init(SystemInfo si) {<NEW_LINE>setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));<NEW_LINE>setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));<NEW_LINE><MASK><NEW_LINE>paramsLabel.setAlignmentX(Component.CENTER_ALIGNMENT);<NEW_LINE>add(paramsLabel);<NEW_LINE>JTextArea paramsArea = new JTextArea(0, 0);<N...
JLabel paramsLabel = new JLabel(PARAMS);
912,426
public void run() {<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>MapPack p = null;<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put("objHash", objHash);<NEW_LINE>param.put("resource", resource);<NEW_LINE>p = (MapPack) tcp.getSingle(RequestCmd.OBJECT_CHECK_RESOURCE_FILE, para...
name = p.getText("name");
216,207
public void writeMetrics(Settings settings, SourceMetric metric) throws Exception {<NEW_LINE>long totalrows = metric.getTotalRows().count();<NEW_LINE>long elapsed = metric.elapsed() / 1000000;<NEW_LINE>long bytes = metric.getTotalSizeInBytes().count();<NEW_LINE>double dps = totalrows * 1000.0 / elapsed;<NEW_LINE>// avo...
bytes * 1024.0 / elapsed) / 1048576.0;
1,583,376
public EObject info(EAtom spec) {<NEW_LINE>FunID id = get_id();<NEW_LINE>if (spec == ERT.am_arity) {<NEW_LINE>return new ETuple2(spec, ERT.box(id.arity - get_env<MASK><NEW_LINE>} else if (spec == ERT.am_module) {<NEW_LINE>return new ETuple2(spec, id.module);<NEW_LINE>} else if (spec == ERT.am_name) {<NEW_LINE>return ne...
().length()));
1,055,911
static BoundedCostBackupRequestsStrategy tryCreateBoundedCost(Map<String, Object> properties) {<NEW_LINE>int cost = mapGet(properties, PropertyKeys.COST);<NEW_LINE>int historyLength = properties.containsKey(PropertyKeys.HISTORY_LENGTH) ? mapGet(properties, PropertyKeys.HISTORY_LENGTH) : BCBR.getHistoryLength();<NEW_LIN...
maxBurst, historyLength, requiredHistoryLength, minBackupDelayMs);
28,456
public static OpenSearchStatusException errorFromXContent(XContentParser parser) throws IOException {<NEW_LINE>XContentParser.Token token = parser.nextToken();<NEW_LINE>ensureExpectedToken(XContentParser.Token.START_OBJECT, token, parser);<NEW_LINE>OpenSearchException exception = null;<NEW_LINE>RestStatus status = null...
exception = OpenSearchException.failureFromXContent(parser);
1,500,292
protected static void dispatchNodeData(Node node, org.xml.sax.ContentHandler ch, int depth) throws org.xml.sax.SAXException {<NEW_LINE>switch(node.getNodeType()) {<NEW_LINE>case Node.DOCUMENT_FRAGMENT_NODE:<NEW_LINE>case Node.DOCUMENT_NODE:<NEW_LINE>case Node.ELEMENT_NODE:<NEW_LINE>{<NEW_LINE>for (Node child = node.get...
String str = node.getNodeValue();
270,425
public void beforeBulk(long executionId, BulkRequest request) {<NEW_LINE>checkBulkProcessorAvailability();<NEW_LINE>logger.trace("beforeBulk - new bulk [{}] of items [{}]", executionId, request.numberOfActions());<NEW_LINE>if (flushBulkProcessor.get()) {<NEW_LINE>logger.trace("About to flush bulk request index[{}] - ty...
findLastDropCollection(request.requests());
1,714,698
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String jsonSchemas = "@public @buseventtype create json schema S0_JSON(id String, p00 int);\n" + "@public @buseventtype create json schema S1_JSON(id String, p00 int);\n" + "@public @buseventtype @JsonSchema(class...
.class.getName() + "') create json schema S1_JSONCLASSPROVIDED();\n";
264,153
private void validate(User user, PerfTest oldOne, PerfTest newOne) {<NEW_LINE>if (oldOne == null) {<NEW_LINE>oldOne = new PerfTest();<NEW_LINE>oldOne.init();<NEW_LINE>}<NEW_LINE>newOne = oldOne.merge(newOne);<NEW_LINE>checkNotEmpty(newOne.getTestName(), "testName should be provided");<NEW_LINE>checkArgument(newOne.getS...
) <= agentMaxCount, "test agent should be equal to or less than %s", agentMaxCount);
705,003
private SubsonicRESTController.ErrorCode authenticate(HttpServletRequest httpRequest, String username, String password, String salt, String token, Authentication previousAuth) {<NEW_LINE>// Previously authenticated and username not overridden?<NEW_LINE>if (username == null && previousAuth != null) {<NEW_LINE>return nul...
getContext().setAuthentication(authResult);
918,935
private Map<String, List<PersistentProperty<?>>> findUnwrappedPropertyPaths(Class<?> type, NameTransformer nameTransformer, boolean considerRegularProperties) {<NEW_LINE>return entities.getPersistentEntity(type).map(entity -> {<NEW_LINE>Map<String, List<PersistentProperty<?>>> mapping = new HashMap<String, List<Persist...
?>>singletonList(prop));
1,130,537
public static void buildPredDCLft(int blkX, int blkY, int mbX, boolean leftAvailable, boolean topAvailable, byte[] leftRow, byte[] topLine, byte[] pixOut) {<NEW_LINE>int s2, blkOffX = (blkX << 2) + (mbX << 3), blkOffY = blkY << 2;<NEW_LINE>if (leftAvailable) {<NEW_LINE>s2 = 0;<NEW_LINE>for (int i = 0; i < 4; i++) s2 +=...
(s2 + 2) >> 2;
1,820,273
public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>return srcSequence.max();<NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>Expression exp = param.getLeafExpression();<NEW_LINE>return srcSequence.calc(exp, ctx).max();<NEW_LINE>} else {<NEW_LINE>if (param.getSubSize() != 2) {<NEW_LINE>MessageM...
getLeafExpression().calculate(ctx);
1,117,025
public Request<ListDevicePositionsRequest> marshall(ListDevicePositionsRequest listDevicePositionsRequest) {<NEW_LINE>if (listDevicePositionsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListDevicePositionsRequest)");<NEW_LINE>}<NEW_LINE>Request<ListDevicePositionsRequ...
t.getMessage(), t);
341,795
public PrintStreamOp linkFrom(StreamOperator<?>... inputs) {<NEW_LINE>StreamOperator<?> in = checkAndGetFirst(inputs);<NEW_LINE>try {<NEW_LINE>System.err.println(TableUtil.formatTitle(in.getColNames()));<NEW_LINE>final int refreshInterval = getParams().get(REFRESH_INTERVAL);<NEW_LINE>if (refreshInterval <= 0) {<NEW_LIN...
getParams().get(MAX_LIMIT);
764,032
private void initUI() {<NEW_LINE>setBackground(ColorResource.getDarkestBgColor());<NEW_LINE>txtFile = new JTextField();<NEW_LINE>setBorder(new LineBorder(ColorResource<MASK><NEW_LINE>txtFile.setBackground(ColorResource.getDarkestBgColor());<NEW_LINE>txtFile.setBorder(null);<NEW_LINE>txtFile.setForeground(Color.WHITE);<...
.getSelectionColor(), 1));
921,087
public static void main(String[] args) throws Exception {<NEW_LINE>boolean sanityCheck = Arrays.asList(args).contains("--sanity-check");<NEW_LINE>if (sanityCheck && GraphicsEnvironment.isHeadless()) {<NEW_LINE>Logger.getGlobal().log(Level.SEVERE, "[Vader] Hello, Luke. Can't do much in headless mode.");<NEW_LINE>Runtime...
getRuntime().exit(1);
1,101,264
public static void selectSingleGPXFile(final FragmentActivity activity, boolean showCurrentGpx, final CallbackWithObject<GPXFile[]> callbackWithObject) {<NEW_LINE>OsmandApplication app = (OsmandApplication) activity.getApplication();<NEW_LINE>int gpxDirLength = app.getAppPath(IndexConstants.GPX_INDEX_DIR).getAbsolutePa...
), showCurrentGpx, callbackWithObject, list);
738,516
/*<NEW_LINE>* Check if a topology edge is used in a particular protocol.<NEW_LINE>*/<NEW_LINE>public boolean isEdgeUsed(Configuration conf, Protocol proto, GraphEdge ge) {<NEW_LINE>Interface iface = ge.getStart();<NEW_LINE>// Use a null routed edge, but only for the static protocol<NEW_LINE>if (ge.isNullEdge()) {<NEW_L...
return n1 != null || n2 != null;
1,307,608
void positionCartAttributes(FloatRect start, FloatRect end, float x, float y, String[] attribute, float[] value) {<NEW_LINE>float startCenterX = start.centerX();<NEW_LINE>float startCenterY = start.centerY();<NEW_LINE>float endCenterX = end.centerX();<NEW_LINE>float endCenterY = end.centerY();<NEW_LINE>float pathVector...
attribute[1] = PositionType.S_PERCENT_Y;
1,600,843
public TraceContextOrSamplingFlags extract(R request) {<NEW_LINE>TraceContextOrSamplingFlags.Builder builder = delegate.extract(request).toBuilder();<NEW_LINE>BaggageFields extra <MASK><NEW_LINE>builder.addExtra(extra);<NEW_LINE>if (factory.extra == null)<NEW_LINE>return builder.build();<NEW_LINE>for (BaggagePropagatio...
= factory.baggageFactory.create();
878,508
private void createPayments(MOrder sourceOrder, MOrder targetOrder) {<NEW_LINE>for (MPayment sourcePayment : MPayment.getOfOrder(sourceOrder)) {<NEW_LINE>MPayment payment = new MPayment(getCtx(), 0, get_TrxName());<NEW_LINE>PO.copyValues(sourcePayment, payment);<NEW_LINE>payment.setDateTrx(today);<NEW_LINE>payment.setD...
addLog(payment.getDocumentInfo());
975,006
private static void tryMT(RegressionEnvironment env, int numSeconds) throws InterruptedException {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String eplCreateVariable = "@public create table vartotal (topgroup int primary key, subgroup int primary key, thecnt count(*))";<NEW_LINE>env.compileDeploy(ep...
assertTrue(writeRunnable.numEvents > 100);
805,620
public Oql visit(Call call) {<NEW_LINE>final Operator op = call.operator();<NEW_LINE>final List<Expression> args = call.arguments();<NEW_LINE>if (op == Operators.NOT_IN || op == IterableOperators.NOT_EMPTY) {<NEW_LINE>// geode doesn't understand syntax foo not in [1, 2, 3]<NEW_LINE>// convert "foo not in [1, 2, 3]" int...
return new Oql(variables, newOql);
617,364
public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("ali_client" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>if (nSize < 2) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>th...
int nSize = param.getSubSize();
1,492,426
public static IpRangeInventory fromMessage(APIAddIpv6RangeByNetworkCidrMsg msg) {<NEW_LINE>IpRangeInventory ipr = new IpRangeInventory();<NEW_LINE>ipr.setNetworkCidr(IPv6NetworkUtils.getFormalCidrOfNetworkCidr(msg.getNetworkCidr()));<NEW_LINE>ipr.setName(msg.getName());<NEW_LINE>ipr.setDescription(msg.getDescription())...
(msg.getIpRangeType()));
168,048
public static LocalVariableAnnotation findUniqueBestMatchingParameter(ClassContext classContext, Method method, String name, String signature) {<NEW_LINE>LocalVariableAnnotation match = null;<NEW_LINE>int localsThatAreParameters = PreorderVisitor.getNumberArguments(method.getSignature());<NEW_LINE>int startIndex = 0;<N...
name, potentialMatch.getName());
610,792
final TransactGetItemsResult executeTransactGetItems(TransactGetItemsRequest transactGetItemsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(transactGetItemsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "TransactGetItems");
1,071,725
private ProtocolInitializer createInternalProtocolInitializer(BoltProtocolFactory boltProtocolFactory, TransportThrottleGroup throttleGroup, ByteBufAllocator bufferAllocator) {<NEW_LINE>SslContext sslCtx = null;<NEW_LINE>SslPolicyLoader sslPolicyLoader = dependencyResolver.resolveDependency(SslPolicyLoader.class);<NEW_...
config.get(BoltConnectorInternalSettings.unsupported_bolt_unauth_connection_timeout);
957,463
final DecodeAuthorizationMessageResult executeDecodeAuthorizationMessage(DecodeAuthorizationMessageRequest decodeAuthorizationMessageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(decodeAuthorizationMessageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
(super.beforeMarshalling(decodeAuthorizationMessageRequest));
465,163
/*<NEW_LINE>* Same than LocalVariablePattern.<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void findIndexMatches(Index index, IndexQueryRequestor requestor, SearchParticipant participant, IJavaSearchScope scope, IProgressMonitor progressMonitor) {<NEW_LINE>IPackageFragmentRoot root = (IPackageFragmentRoot) this.typeP...
Util.relativePath(path, 1);
1,525,081
private void intializeMQTTClient() throws Exception {<NEW_LINE>Matcher matcher = ENDPOINT_PATTERN.matcher(specification.<MASK><NEW_LINE>// Call matcher.find() to be able to use named expressions.<NEW_LINE>matcher.find();<NEW_LINE>String endpointBrokerUrl = matcher.group("brokerUrl");<NEW_LINE>endpointTopic = matcher.gr...
getEndpointUrl().trim());
540,766
public int paint(Graphics2D g, int w, int h, int[] ticks) {<NEW_LINE>int draw_width = mCanvasWidth - ins_left - ins_right;<NEW_LINE>float e = 0.0001f * (maxx - minx);<NEW_LINE>FontMetrics fm = g.getFontMetrics();<NEW_LINE>int ascent = fm.getAscent();<NEW_LINE>int descent = fm.getDescent();<NEW_LINE>int text_height = fm...
ix - sw, ascent + top);
1,562,372
public Pair<Expression, Concrete.Expression> visitCase(Concrete.CaseExpression expr, Expression coreExpr) {<NEW_LINE>if (matchesSubExpr(expr))<NEW_LINE>return new Pair<>(coreExpr, expr);<NEW_LINE>var coreCaseExpr = coreExpr.cast(CaseExpression.class);<NEW_LINE>if (coreCaseExpr == null)<NEW_LINE>return null;<NEW_LINE>va...
Expression resultType = expr.getResultType();
1,688,563
private void parseRangeDefinition() {<NEW_LINE>Matcher matchingRe;<NEW_LINE>matchingRe = START_AND_STOP.matcher(definition);<NEW_LINE>if (matchingRe.matches()) {<NEW_LINE>// Both positions specified<NEW_LINE>startStr = matchingRe.group(1) + (matchingRe.group(4) != null ? matchingRe.group(4) : "");<NEW_LINE>stopStr = ma...
operationStr = matchingRe.group(9);
1,684,015
public ActivityType unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ActivityType activityType = new ActivityType();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurren...
int originalDepth = context.getCurrentDepth();
1,386,017
public void run() {<NEW_LINE>final PropertyKey<Long> lastScannedKey = StructrApp.key(Folder.class, "mountLastScanned");<NEW_LINE>final PropertyKey<String> mountTargetKey = StructrApp.<MASK><NEW_LINE>boolean canStart = false;<NEW_LINE>// wait for transaction to finish so we can be<NEW_LINE>// sure that the mounted folde...
key(Folder.class, "mountTarget");
1,209,909
public State apply(final char ch, final StringBuilder out) {<NEW_LINE>State state = this;<NEW_LINE>if (Character.isJavaIdentifierPart(ch)) {<NEW_LINE>state = IDENTIFIER;<NEW_LINE>state._start = out.length() - 1;<NEW_LINE>} else if (ch == '"') {<NEW_LINE>state = STRING_LITERAL;<NEW_LINE>out.insert(out.length() - 1, "<fo...
out.length() - 2);
1,789,337
private void readOutParamsAsArray(CallableStatement cStmt) throws SQLException {<NEW_LINE>// Read OUT parameter.<NEW_LINE>final Array outParam = cStmt.getArray(2);<NEW_LINE>final Object[] outParamArrayOfRecords = (Object[]) outParam.getArray();<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i < NO_OF_RECORDS; i++) {<NEW_LINE...
System.out.println("\nValues of OUT param read as an array of objects:");
1,463,197
boolean isValueTypeMatch(@Nullable CollectionModel<?> collectionModel, ResolvableType target) {<NEW_LINE>if (collectionModel == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Collection<?> content = collectionModel.getContent();<NEW_LINE>if (content.isEmpty()) {<NEW_LINE>return collectionModel.getResolvableType().i...
superType = getSuperType(target, collectionModelType);
96,816
public Object decode(byte[] bytes) throws CodingException {<NEW_LINE>Example example = null;<NEW_LINE>try {<NEW_LINE>example = Example.parseFrom(bytes);<NEW_LINE>} catch (InvalidProtocolBufferException e1) {<NEW_LINE>e1.printStackTrace();<NEW_LINE>throw new <MASK><NEW_LINE>}<NEW_LINE>Map<String, Feature> nameToFeature ...
CodingException(e1.getMessage());
683,881
private CSharpTableHost buildExtraSqlBuilderHost(CodeGenContext codeGenCtx, GenTaskBySqlBuilder sqlBuilder) throws Exception {<NEW_LINE>GenTaskByTableViewSp tableViewSp = new GenTaskByTableViewSp();<NEW_LINE>tableViewSp.setCud_by_sp(false);<NEW_LINE>tableViewSp.setPagination(false);<NEW_LINE>tableViewSp.<MASK><NEW_LINE...
setAllInOneName(sqlBuilder.getAllInOneName());
1,760,926
final UpdateKeyDescriptionResult executeUpdateKeyDescription(UpdateKeyDescriptionRequest updateKeyDescriptionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateKeyDescriptionRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<Updat...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,674,744
final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
(super.beforeMarshalling(untagResourceRequest));
925,937
final CreatePrefetchScheduleResult executeCreatePrefetchSchedule(CreatePrefetchScheduleRequest createPrefetchScheduleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createPrefetchScheduleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
345,574
public static CovarianceMatrix make(Relation<? extends NumberVector> relation, DBIDs ids) {<NEW_LINE>int dim = RelationUtil.dimensionality(relation);<NEW_LINE>CovarianceMatrix c = new CovarianceMatrix(dim);<NEW_LINE>double[] mean = c.mean;<NEW_LINE>int count = 0;<NEW_LINE>// Compute mean first:<NEW_LINE>for (DBIDIter i...
vec = relation.get(iditer);
673,971
public static GetAggregateResourceComplianceTimelineResponse unmarshall(GetAggregateResourceComplianceTimelineResponse getAggregateResourceComplianceTimelineResponse, UnmarshallerContext _ctx) {<NEW_LINE>getAggregateResourceComplianceTimelineResponse.setRequestId(_ctx.stringValue("GetAggregateResourceComplianceTimeline...
("GetAggregateResourceComplianceTimelineResponse.ResourceComplianceTimeline.ComplianceList[" + i + "].ResourceId"));
1,204,012
public void execute() throws IOException, URISyntaxException {<NEW_LINE>final ObjectMapper mapper = new ObjectMapper();<NEW_LINE>// 1. Read from the file into JSON.<NEW_LINE>final JsonNode userObj = mapper.readTree(new ClassPathResource("./boot/root_user.json").getFile());<NEW_LINE>if (!userObj.isObject()) {<NEW_LINE>t...
USER_INFO_ASPECT_NAME, info, aspectAuditStamp, null);
564,773
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* edu.umd.cs.findbugs.ba.ch.InheritanceGraphVisitor#visitClass(edu.umd.<NEW_LINE>* cs.findbugs.classfile.ClassDescriptor, edu.umd.cs.findbugs.ba.XClass)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public boolean visitClass(ClassDescriptor classDescriptor, XCla...
XMethod bridgedFrom = xmethod.bridgeFrom();
864,426
private IssueManagement parseIssueManagement(XmlPullParser parser, boolean strict) throws IOException, XmlPullParserException {<NEW_LINE>String tagName = parser.getName();<NEW_LINE>IssueManagement issueManagement = new IssueManagement();<NEW_LINE>for (int i = parser.getAttributeCount() - 1; i >= 0; i--) {<NEW_LINE>Stri...
new java.util.HashSet();
204,504
public String renameUser(@CommandParam(value = "userName", suggester = UsernameSuggester.class) String userName, @CommandParam(value = "newUserName") String newUserName) {<NEW_LINE>Iterable<EntityRef> clientInfoEntities = <MASK><NEW_LINE>for (EntityRef clientInfo : clientInfoEntities) {<NEW_LINE>DisplayNameComponent na...
entityManager.getEntitiesWith(ClientInfoComponent.class);
82,408
public void exitNo_neighbor_activate_rb_stanza(No_neighbor_activate_rb_stanzaContext ctx) {<NEW_LINE>BgpProcess proc = currentVrf().getBgpProcess();<NEW_LINE>if (ctx.ip != null) {<NEW_LINE>Ip ip = toIp(ctx.ip);<NEW_LINE>IpBgpPeerGroup pg = proc.getIpPeerGroups().get(ip);<NEW_LINE>if (pg == null) {<NEW_LINE><MASK><NEW_L...
warn(ctx, "ignoring attempt to activate undefined ip peer group: " + ip);
1,021,990
public OcamlLibrary createBuildRule(BuildRuleCreationContextWithTargetGraph context, BuildTarget buildTarget, BuildRuleParams params, PrebuiltOcamlLibraryDescriptionArg args) {<NEW_LINE>boolean bytecodeOnly = args.getBytecodeOnly();<NEW_LINE>String libDir = args.getLibDir();<NEW_LINE>String nativeLib = args.getNativeLi...
, libPath.resolve(bytecodeLib));
1,844,665
private Mono<Response<AttestationProviderInner>> createWithResponseAsync(String resourceGroupName, String providerName, AttestationServiceCreationParams creationParams, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.get...
error(new IllegalArgumentException("Parameter providerName is required and cannot be null."));
776,956
private void extractAmountAndType(@NonNull final ReportEntry8 ntry, @NonNull final EntryTransaction8 txDtls, @NonNull final ESRTransactionBuilder trxBuilder) {<NEW_LINE>// credit-or-debit indicator<NEW_LINE>final ActiveOrHistoricCurrencyAndAmount transactionDetailAmt = txDtls.getAmt();<NEW_LINE>final BigDecimal amount ...
trxBuilder.trxType(ESRConstants.ESRTRXTYPE_CreditMemo);
1,270,574
protected List<AppNode> eatAppList(boolean preceedingSourceChannelSpecified) {<NEW_LINE>Tokens tokens = getTokens();<NEW_LINE>List<AppNode> appNodes = new ArrayList<AppNode>();<NEW_LINE>int usedListDelimiter = -1;<NEW_LINE>int usedStreamDelimiter = -1;<NEW_LINE>appNodes.add(eatApp());<NEW_LINE>while (tokens.hasNext()) ...
appNodes.add(eatApp());
1,077,845
public void testSetDisableMessageTimestamp_TCP_SecOn(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>boolean exceptionFlag = false;<NEW_LINE>JMSContext jmsContext = QCFTCP.createContext();<NEW_LINE>emptyQueue(QCFTCP, queue2);<NEW_LINE>JMSProducer jmsProducer = jmsContext.createProd...
receive(30000).getJMSTimestamp();
1,744,849
private void logDebugInfo(DocumentEvent e, LineCol onesideStartPosition, LineCol onesideEndPosition, int twosideStartLine, int twosideEndLine) {<NEW_LINE>StringBuilder info = new StringBuilder();<NEW_LINE>Document document1 = getDocument(Side.LEFT);<NEW_LINE>Document document2 = getDocument(Side.RIGHT);<NEW_LINE>info.a...
()).append('\n');
660,333
final GetAWSOrganizationsAccessStatusResult executeGetAWSOrganizationsAccessStatus(GetAWSOrganizationsAccessStatusRequest getAWSOrganizationsAccessStatusRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAWSOrganizationsAccessStatusRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
157,187
static void compile(JavaCompiler compiler, List<String> options, ResourceFinder sourceFinder, Charset sourceFileCharset, ResourceFinder classFileFinder, ResourceCreator classFileCreator, Resource[] sourceFiles, @Nullable ErrorHandler compileErrorHandler, @Nullable WarningHandler warningHandler, @Nullable SortedSet<Loca...
, Kind.SOURCE, sourceFileCharset));
1,254,315
public void moveText(int srcStart, int srcEnd, int dstOffset) {<NEW_LINE>assertBounds(srcStart, srcEnd);<NEW_LINE>if (dstOffset == srcStart || dstOffset == srcEnd)<NEW_LINE>return;<NEW_LINE>ProperTextRange srcRange = new ProperTextRange(srcStart, srcEnd);<NEW_LINE>assert !srcRange.containsOffset(dstOffset) : "Can't per...
srcStart, srcEnd).toString();
1,744,792
public static DiffLog mergeTrees(@Nonnull final PsiFileImpl fileImpl, @Nonnull final ASTNode oldRoot, @Nonnull final ASTNode newRoot, @Nonnull ProgressIndicator indicator, @Nonnull CharSequence lastCommittedText) {<NEW_LINE>PsiUtilCore.ensureValid(fileImpl);<NEW_LINE>if (newRoot instanceof FileElement) {<NEW_LINE><MASK...
FileElement fileImplElement = fileImpl.getTreeElement();
829,570
private ArrayTableFunction readUnnestFunction() {<NEW_LINE>ArrayTableFunction f = new ArrayTableFunction(ArrayTableFunction.UNNEST);<NEW_LINE>ArrayList<Column<MASK><NEW_LINE>if (!readIf(CLOSE_PAREN)) {<NEW_LINE>int i = 0;<NEW_LINE>do {<NEW_LINE>Expression expr = readExpression();<NEW_LINE>TypeInfo columnType = TypeInfo...
> columns = Utils.newSmallArrayList();
30,514
protected Auth directGrantAuth(String username, String password) throws IOException, VerificationException {<NEW_LINE>String authServerBaseUrl = deployment.getAuthServerBaseUrl();<NEW_LINE>HttpPost post = new HttpPost(deployment.getTokenUrl());<NEW_LINE>List<NameValuePair> formparams = new ArrayList<NameValuePair>();<N...
readValue(is, OAuth2ErrorRepresentation.class);
772,013
// @Override<NEW_LINE>public void fetch(URL url, OutputStream writeTo) throws IOException {<NEW_LINE>URLConnection conn = null;<NEW_LINE>InputStream input = null;<NEW_LINE>try {<NEW_LINE>conn = connectionFactory.createConnection(url);<NEW_LINE>conn.connect();<NEW_LINE>if (DEBUG) {<NEW_LINE>System.out.println(">>> " + u...
out.println(" " + value);
1,623,145
private static Map<Class<? extends Annotation>, Annotation> buildAnnotations(Join join) {<NEW_LINE>Map<Class<? extends Annotation>, Annotation> annotations = new HashMap<>();<NEW_LINE>annotations.put(com.yahoo.elide.datastores.aggregation.annotation.Join.class, new com.yahoo.elide.datastores.aggregation.annotation.Join...
trimColumnReferences(join.getDefinition());
762,667
public RegularStatement call() throws Exception {<NEW_LINE>Selection select = QueryBuilder.select();<NEW_LINE>for (int i = 0; i < allPrimayKeyCols.length; i++) {<NEW_LINE>select.column(allPrimayKeyCols[i]);<NEW_LINE>}<NEW_LINE>for (ColumnDefinition colDef : regularCols) {<NEW_LINE>String colName = colDef.getName();<NEW...
.getCompositeRange().getRecords();
566,761
void showFileBrowser(final String[] acceptTypes, ValueCallback<Uri[]> filePathCallback) {<NEW_LINE>MainController.get().switchToBubbleView(false);<NEW_LINE>mFilePathCallback = filePathCallback;<NEW_LINE>Runnable runnable = new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>mHandler.post...
(i, "File Chooser"), FILECHOOSER_RESULTCODE);
1,723,558
public void doImageSave() {<NEW_LINE>if (!isGif) {<NEW_LINE>if (Reddit.appRestart.getString("imagelocation", "").isEmpty()) {<NEW_LINE>showFirstDialog();<NEW_LINE>} else if (!new File(Reddit.appRestart.getString("imagelocation", "")).exists()) {<NEW_LINE>showErrorDialog();<NEW_LINE>} else {<NEW_LINE>Intent i = new <MAS...
Intent(this, ImageDownloadNotificationService.class);
515,170
private static String convertBetweenTimeZones(String timestampString, TimeZone fromTimeZone, TimeZone toTimeZone, long precision) {<NEW_LINE>boolean needTimeZoneConversion = needTimeZoneConversion(fromTimeZone) || needTimeZoneConversion(toTimeZone);<NEW_LINE>if (!needTimeZoneConversion || TStringUtil.isBlank(timestampS...
fixedTimeZone = TimeZone.getTimeZone(FIXED_GMT_IN_META);
810,992
private static final void exportDomain0(Configuration configuration, InformationSchema result, Domain<?> d) {<NEW_LINE>org.jooq.util.xml.jaxb.Domain id = new org.jooq.util.xml.jaxb.Domain();<NEW_LINE>String catalogName = catalogName(d);<NEW_LINE>String schemaName = schemaName(d);<NEW_LINE>String domainName = d.getName(...
getDataType().length());
629,748
public void paintComponent(Graphics g) {<NEW_LINE>super.paintComponent(g);<NEW_LINE>Graphics2D g2d = (Graphics2D) g;<NEW_LINE>if (opacity == 0)<NEW_LINE>return;<NEW_LINE>Rectangle r = getBounds();<NEW_LINE>g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.CLEAR, 1.0f));<NEW_LINE>g2d.setRenderingHint(RenderingH...
= { 0.25f, 0.15f, 0.1f };
1,306,079
public void endVisit(ExplicitConstructorCall x, BlockScope scope) {<NEW_LINE>try {<NEW_LINE>SourceInfo info = makeSourceInfo(x);<NEW_LINE>JConstructor ctor = (JConstructor) typeMap.get(x.binding);<NEW_LINE>JExpression trueQualifier = makeThisRef(info);<NEW_LINE>JMethodCall call = new JMethodCall(info, trueQualifier, ct...
(0).makeRef(info);
1,162,563
public void marshall(Certificate certificate, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (certificate == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(certificate.getArn(), ARN_BINDING);<NEW_LINE>protoc...
certificate.getInUseResourceCount(), INUSERESOURCECOUNT_BINDING);
106,262
final DescribeMetricCollectionTypesResult executeDescribeMetricCollectionTypes(DescribeMetricCollectionTypesRequest describeMetricCollectionTypesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeMetricCollectionTypesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
90,713
public void filter(ContainerRequestContext requestContext) throws IOException {<NEW_LINE>try {<NEW_LINE>SofaResourceMethodInvoker resourceMethodInvoker = (SofaResourceMethodInvoker) ((PostMatchContainerRequestContext) requestContext).getResourceMethod();<NEW_LINE><MASK><NEW_LINE>String serviceName = factory.getServiceN...
SofaResourceFactory factory = resourceMethodInvoker.getResource();
1,259,626
public void resourceChanged(IResourceChangeEvent event) {<NEW_LINE>IResourceDelta delta = event.getDelta();<NEW_LINE>try {<NEW_LINE>class ResourceDeltaVisitor implements IResourceDeltaVisitor {<NEW_LINE><NEW_LINE>protected ResourceSet resourceSet = editingDomain.getResourceSet();<NEW_LINE><NEW_LINE>protected Collection...
OpenDDSEditorPlugin.INSTANCE.log(exception);
1,668,165
public void testSelfCancelingTask(PrintWriter out) throws Exception {<NEW_LINE>// Cancel on the second update<NEW_LINE>Callable<Integer> task = new SelfCancelingTask("testSelfCancelingTask", 2, false);<NEW_LINE>// Run up to 5 times, but we should cancel at 2<NEW_LINE>Trigger trigger = new FixedRepeatTrigger(5, 22);<NEW...
Integer result = status.get();
214,359
public void requestPurchaseOrder(PurchaseOrder purchaseOrder) throws AxelorException {<NEW_LINE>if (!appSupplychainService.isApp("supplychain")) {<NEW_LINE>super.requestPurchaseOrder(purchaseOrder);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// budget control<NEW_LINE>if (appAccountService.isApp("budget") && appAccountServic...
Budget budget = bd.getBudget();
694,035
final PurchaseOfferingResult executePurchaseOffering(PurchaseOfferingRequest purchaseOfferingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(purchaseOfferingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,025,090
private void save(ServerIntIntRow row, PSMatrixSaveContext saveContext, MatrixPartitionMeta meta, DataOutputStream out) throws IOException {<NEW_LINE>int startCol = (int) meta.getStartCol();<NEW_LINE>IntIntVector vector = ServerRowUtils.getVector(row);<NEW_LINE>IntIntElement element = new IntIntElement();<NEW_LINE>if (...
= entry.getIntKey() + startCol;
1,687,993
public void write(ByteBuf output, ClientWorld world, Chunk chunk) throws Exception {<NEW_LINE>output.writeInt(chunk.getX());<NEW_LINE>output.writeInt(chunk.getZ());<NEW_LINE>output.writeBoolean(chunk.isFullChunk());<NEW_LINE>Type.VAR_INT.writePrimitive(output, chunk.getBitmask());<NEW_LINE>ByteBuf buf = output.alloc()....
getLight().writeSkyLight(buf);
340,395
protected BSONObject serializeMedia(Media media) {<NEW_LINE>BSONObject r = new BasicBSONObject();<NEW_LINE>r.put(FULL_FIELD_NAME_PLAYER, media.player.name());<NEW_LINE>r.put(FULL_FIELD_NAME_URI, media.uri);<NEW_LINE>if (media.title != null)<NEW_LINE>r.put(FULL_FIELD_NAME_TITLE, media.title);<NEW_LINE>r.put(FULL_FIELD_N...
put(FULL_FIELD_NAME_HEIGHT, media.height);
1,308,727
public void executor(final Collection<URIRegisterDTO> dataList) {<NEW_LINE>for (URIRegisterDTO uriRegisterDTO : dataList) {<NEW_LINE>Stopwatch stopwatch = Stopwatch.createStarted();<NEW_LINE>while (true) {<NEW_LINE>try (Socket ignored = new Socket(uriRegisterDTO.getHost(), uriRegisterDTO.getPort())) {<NEW_LINE>break;<N...
LOG.error("interrupted when sleep", ex);
1,580,775
public void run() {<NEW_LINE>resume();<NEW_LINE>final <MASK><NEW_LINE>final Document doc = result.getSnapshot().getSource().getDocument(false);<NEW_LINE>if (doc == null || !BreadcrumbsController.areBreadCrumsEnabled(doc))<NEW_LINE>return;<NEW_LINE>final int caret;<NEW_LINE>if (event instanceof CursorMovedSchedulerEvent...
long id = requestId.incrementAndGet();
929,468
void showDummyNotification(Service service) {<NEW_LINE>if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {<NEW_LINE>if (!isShowingDummyNotification) {<NEW_LINE>NotificationManager notificationManager = service.getSystemService(NotificationManager.class);<NEW_LINE>NotificationChannel channel = notificationManager.getN...
drawable.ic_stat_notification).build();