idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,678,388
public void testPersistentMessageClassicApi(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>QueueConnection con = jmsQCFBindings.createQueueConnection();<NEW_LINE>con.start();<NEW_LINE>QueueSession sessionSender = con.<MASK><NEW_LINE>QueueSender producer1 = sessionSender.createSend...
createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
504,885
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.getDeviceArn(), DEVICEARN_BINDING);<NEW_LINE>protocolMarsha...
device.getDeviceStatusInfo(), DEVICESTATUSINFO_BINDING);
417,735
public ListFlowExecutionMessagesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListFlowExecutionMessagesResult listFlowExecutionMessagesResult = new ListFlowExecutionMessagesResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
int originalDepth = context.getCurrentDepth();
1,551,284
public K lastKey() {<NEW_LINE>atomicOperationsManager.acquireReadLock(this);<NEW_LINE>try {<NEW_LINE>acquireSharedLock();<NEW_LINE>try {<NEW_LINE>final <MASK><NEW_LINE>final Optional<BucketSearchResult> searchResult = lastItem(atomicOperation);<NEW_LINE>if (!searchResult.isPresent()) {<NEW_LINE>return null;<NEW_LINE>}<...
OAtomicOperation atomicOperation = atomicOperationsManager.getCurrentOperation();
1,717,331
public static void updateWidget(Context context, AppWidgetManager manager, Song song, int state) {<NEW_LINE>if (!sEnabled)<NEW_LINE>return;<NEW_LINE>RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.four_long_widget);<NEW_LINE>if ((state & PlaybackService.FLAG_NO_MEDIA) != 0) {<NEW_LINE>views.setVi...
id.title, View.GONE);
1,695,779
public void onKey(KeyEvent event) {<NEW_LINE>if (Input.isKeyPressed(GLFW.GLFW_KEY_F3))<NEW_LINE>return;<NEW_LINE>// TODO: This is very bad but you all can cope :cope:<NEW_LINE>GUIMove guiMove = Modules.get().get(GUIMove.class);<NEW_LINE>if (mc.currentScreen != null && !guiMove.isActive())<NEW_LINE>return;<NEW_LINE>if (...
= event.action != KeyAction.Release;
1,436,567
default <R1, R2, R> ReactiveSeq<R> forEach3(Function<? super T, ? extends BaseStream<R1, ?>> stream1, BiFunction<? super T, ? super R1, ? extends BaseStream<R2, ?>> stream2, Function3<? super T, ? super R1, ? super R2, ? extends R> yieldingFunction) {<NEW_LINE>return this.flatMap(in -> {<NEW_LINE>ReactiveSeq<R1> a = st...
(in, ina, in2));
426,049
protected void prePassivate(InvocationContext inv) {<NEW_LINE>try {<NEW_LINE>ResultsLocal results = ResultsLocalBean.getSFBean();<NEW_LINE>results.addPrePassivate(CLASS_NAME, "prePassivate");<NEW_LINE>// Validate and update context data.<NEW_LINE>Map<String, Object> map = inv.getContextData();<NEW_LINE>String data;<NEW...
map.put("InvocationContext", inv);
1,724,646
public SQLSelect clone() {<NEW_LINE>SQLSelect x = new SQLSelect();<NEW_LINE>x.withSubQuery = this.withSubQuery;<NEW_LINE>if (query != null) {<NEW_LINE>x.setQuery(query.clone());<NEW_LINE>}<NEW_LINE>if (orderBy != null) {<NEW_LINE>x.setOrderBy(this.orderBy.clone());<NEW_LINE>}<NEW_LINE>if (restriction != null) {<NEW_LIN...
x.hints.add(hint);
1,454,863
final UpdateSlotTypeResult executeUpdateSlotType(UpdateSlotTypeRequest updateSlotTypeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateSlotTypeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.SERVICE_ID, "Lex Models V2");
561,731
private static void initOriginMeta(ResultCursor rc, Row row, ArrayResultCursor result) throws SQLException, UnsupportedEncodingException {<NEW_LINE>List<ColumnMeta> metas = Lists.newArrayList();<NEW_LINE>String tableName = "explain";<NEW_LINE>for (int i = 1; i <= row.getColNum(); i++) {<NEW_LINE>final String columnName...
factory.createSqlType(SqlTypeName.VARCHAR);
1,313,070
public void checkParentLimit(String label) throws CircuitBreakingException {<NEW_LINE>long totalUsed = 0;<NEW_LINE>for (CircuitBreaker breaker : this.breakers.values()) {<NEW_LINE>totalUsed += (breaker.getUsed() * breaker.getOverhead());<NEW_LINE>}<NEW_LINE>long parentLimit = this.parentSettings.getLimit();<NEW_LINE>if...
CircuitBreaker breaker = e.getValue();
567,286
final BatchGetJobsResult executeBatchGetJobs(BatchGetJobsRequest batchGetJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchGetJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
344,653
public static SsurgPred assemblePredFromXML(Element elt) throws Exception {<NEW_LINE>String eltName = elt.getTagName();<NEW_LINE>switch(eltName) {<NEW_LINE>case SsurgeonPattern.PREDICATE_AND_TAG:<NEW_LINE>SsurgAndPred andPred = new SsurgAndPred();<NEW_LINE>for (Element childElt : getChildElements(elt)) {<NEW_LINE>Ssurg...
elt.getAttribute(SsurgeonPattern.PRED_ID_ATTR);
200,148
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c0,c1,c2,c3,c4,c5".split(",");<NEW_LINE>SupportEvalBuilder builder = new SupportEvalBuilder("SupportBean_ST0_Container");<NEW_LINE>builder.expression(fields[0], "contained.mostFrequent(x => p00)");<NEW_LINE>builder.expression(fields[1], "contained...
bean = SupportBean_ST0_Container.make2Value("E1,12");
709,005
private void execute(EntityAnalyseData entityAnalyseData) {<NEW_LINE>List<String> detail_ids = entityAnalyseData.getDetailIds();<NEW_LINE>AttendanceDetail detail = null;<NEW_LINE>statusSystemImportOpt.setProcessing(true);<NEW_LINE>statusSystemImportOpt.setProcessing_analysis(true);<NEW_LINE>if (detail_ids != null && !d...
logger.warn("attendance detail not exists.id:" + id);
1,779,880
private int execute(List<?> requests, int maxRequestsPerBulk) throws SQLException {<NEW_LINE>int result = 0;<NEW_LINE><MASK><NEW_LINE>for (Object req : requests) {<NEW_LINE>if (req instanceof IndexRequest)<NEW_LINE>bulkReq.add((IndexRequest) req);<NEW_LINE>else if (req instanceof UpdateRequest)<NEW_LINE>bulkReq.add((Up...
BulkRequestBuilder bulkReq = client.prepareBulk();
277,029
public void flagHelper(CommandContext args, Actor sender) throws CommandException {<NEW_LINE>// Get the world<NEW_LINE>World world = checkWorld(args, sender, 'w');<NEW_LINE>// Lookup the existing region<NEW_LINE>RegionManager manager = checkRegionManager(world);<NEW_LINE>ProtectedRegion region;<NEW_LINE>if (args.argsLe...
world, region, perms, page);
1,569,185
public final Value nextElement() {<NEW_LINE>if (this.isDone) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (this.currentElems.length == 0) {<NEW_LINE>if (coverage) {<NEW_LINE>cm.incSecondary();<NEW_LINE>}<NEW_LINE>this.isDone = true;<NEW_LINE>return new FcnRcdValue(this.dom, new Value[this.currentElems.length], true, ...
dom, elems, true, cm);
1,305,597
public void storeHourlyReports(long startTime, StoragePolicy policy, int index) {<NEW_LINE>Transaction t = Cat.newTransaction("Checkpoint", m_name);<NEW_LINE>Map<String, T> reports = m_reports.get(startTime);<NEW_LINE>ReportBucket bucket = null;<NEW_LINE>try {<NEW_LINE>t.addData("reports", reports == null ? 0 : reports...
Date(startTime)), e);
1,821,227
protected void encodeStage(BsonWriter writer, GraphLookup value, EncoderContext encoderContext) {<NEW_LINE>document(writer, () -> {<NEW_LINE>if (value.getFrom() != null) {<NEW_LINE>value(writer, "from", value.getFrom());<NEW_LINE>} else {<NEW_LINE>writer.writeString("from", getDatastore().getMapper().getEntityModel(val...
()).getCollectionName());
333,226
protected FutureTask<Boolean> prepareTask(@Nonnull PsiFile file, boolean processChangedTextOnly) {<NEW_LINE>if (DumbService.isDumb(file.getProject())) {<NEW_LINE>return new FutureTask<>(EmptyRunnable.INSTANCE, true);<NEW_LINE>}<NEW_LINE>final Set<ImportOptimizer> optimizers = LanguageImportStatements.INSTANCE.forFile(f...
.getViewProvider().getAllFiles();
1,156,643
static ParserState doIntFromString(ParserState state, Object kwds, @SuppressWarnings("unused") char c, @SuppressWarnings("unused") char[] format, @SuppressWarnings("unused") int format_idx, Object kwdnames, Object varargs, @Shared("getArgNode") @Cached GetArgNode getArgNode, @Cached StringLenNode stringLenNode, @Shared...
UNSUPPORTED_STR_TYPE, arg.getClass());
1,127,484
static Shape doNativeClass(PythonAbstractNativeObject clazz, @Cached GetTypeMemberNode getTpDictNode, @CachedLibrary(limit = "1") DynamicObjectLibrary lib) {<NEW_LINE>Object tpDictObj = getTpDictNode.<MASK><NEW_LINE>if (tpDictObj instanceof PDict) {<NEW_LINE>HashingStorage dictStorage = ((PDict) tpDictObj).getDictStora...
execute(clazz, NativeMember.TP_DICT);
1,159,426
public static void doHighLatencyPeers(ArrayList<PEPeer> peers_to_choke, ArrayList<PEPeer> peers_to_unchoke, boolean allow_snubbed) {<NEW_LINE>// when called we don't want to choke high-latency peers<NEW_LINE>if (peers_to_choke.size() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// System.out.println( "doHLP: " + peers_...
listIterator(peers_to_unchoke.size());
640,165
ActionResult<List<Wo>> execute(EffectivePerson effectivePerson) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<List<Wo>> result = new ActionResult<>();<NEW_LINE>Business business = new Business(emc);<NEW_LINE>List<String> ids = bu...
().unreadNumber(conversationExt));
1,790,619
protected void consumeOpenBlock() {<NEW_LINE>// OpenBlock ::= $empty<NEW_LINE>super.consumeOpenBlock();<NEW_LINE>int stackLength = this.blockStarts.length;<NEW_LINE>if (this.realBlockPtr >= stackLength) {<NEW_LINE>System.arraycopy(this.blockStarts, 0, this.blockStarts = new int[stackLength + StackIncrement], 0, stackLe...
.stateStackTop++] = this.unstackedAct;
1,462,438
private CallStatus beforePromotion() {<NEW_LINE>NodeEngineImpl nodeEngine = (NodeEngineImpl) getNodeEngine();<NEW_LINE><MASK><NEW_LINE>InternalPartitionServiceImpl partitionService = getService();<NEW_LINE>if (!partitionService.getMigrationManager().acquirePromotionPermit()) {<NEW_LINE>throw new RetryableHazelcastExcep...
OperationServiceImpl operationService = nodeEngine.getOperationService();
968,481
public void parseChildElement(XMLStreamReader xtr, BaseElement parentElement, BpmnModel model) throws Exception {<NEW_LINE>if (!(parentElement instanceof Event)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>MessageEventDefinition eventDefinition = new MessageEventDefinition();<NEW_LINE>BpmnXMLUtil.addXMLLocation(eventDefinit...
setMessageRef(eventDefinition.getMessageRef());
1,059,074
public static ModifyStrategyResponse unmarshall(ModifyStrategyResponse modifyStrategyResponse, UnmarshallerContext context) {<NEW_LINE>modifyStrategyResponse.setRequestId(context.stringValue("ModifyStrategyResponse.RequestId"));<NEW_LINE>modifyStrategyResponse.setSuccess(context.booleanValue("ModifyStrategyResponse.Suc...
(context.stringValue("ModifyStrategyResponse.Strategy.Customized"));
355,480
public String payrollMovement(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) {<NEW_LINE>if (isCalloutActive() || value == null)<NEW_LINE>return "";<NEW_LINE>// get value<NEW_LINE>int HR_Movement_ID = ((Integer) value).intValue();<NEW_LINE>if (HR_Movement_ID == 0)<NEW_LINE>return "";<NEW_LIN...
movement.getHR_Payroll_ID(), null);
1,538,996
public static void forwardBackWardDemo() {<NEW_LINE><MASK><NEW_LINE>System.out.println("======================");<NEW_LINE>System.out.println("Umbrella World");<NEW_LINE>System.out.println("--------------");<NEW_LINE>ForwardBackward uw = new ForwardBackward(GenericTemporalModelFactory.getUmbrellaWorldTransitionModel(),...
System.out.println("DEMO: Forward-BackWard");
50,726
public static GetNewbieTaskStatusResponse unmarshall(GetNewbieTaskStatusResponse getNewbieTaskStatusResponse, UnmarshallerContext context) {<NEW_LINE>getNewbieTaskStatusResponse.setRequestId(context.stringValue("GetNewbieTaskStatusResponse.RequestId"));<NEW_LINE>getNewbieTaskStatusResponse.setSuccess(context.booleanVal...
("GetNewbieTaskStatusResponse.TaskStatus[" + i + "].Task"));
467,037
public void think() {<NEW_LINE>if (done)<NEW_LINE>throw new IllegalStateException("Path was already found!");<NEW_LINE>int i = 0;<NEW_LINE>for (; i < thinkSpeed && !checkFailed(); i++) {<NEW_LINE>// get next position from queue<NEW_LINE>current = queue.poll();<NEW_LINE>// check if path is found<NEW_LINE>if (checkDone()...
) + getCost(current, next);
642,701
public Quantity removeQty(final Quantity qtyToRemove, final Boolean allowNegativeCapacityOverride) {<NEW_LINE>Check.assumeNotNull(qtyToRemove, "qtyToRemove not null");<NEW_LINE>Check.assume(qtyToRemove.signum() >= 0, "qtyToRemove({}) >= 0", qtyToRemove);<NEW_LINE>final BigDecimal qtyToRemove_Qty = qtyToRemove.toBigDeci...
I_C_UOM qtyToRemove_UOM = qtyToRemove.getUOM();
169,370
// Cleanup: default<NEW_LINE>public int updateChannel(GroupInfoUpdate groupInfoUpdate) {<NEW_LINE>if (groupInfoUpdate.getImageUrl() == null && groupInfoUpdate.getNewName() == null) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>int rowUpdated = 0;<NEW_LINE>try {<NEW_LINE>ContentValues values = new ContentValues();<NEW_LINE>i...
setGroupId(channel.getKey());
1,161,991
private void run() throws IOException, OtrException {<NEW_LINE>BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));<NEW_LINE>while (true) {<NEW_LINE>System.out.print(">");<NEW_LINE>String line = reader.readLine().trim();<NEW_LINE>if ("/quit".equals(line)) {<NEW_LINE>disconnect();<NEW_LINE>retur...
System.out.println("/quit");
1,360,406
public static DenseVector parseDense(String str) {<NEW_LINE>if (org.apache.flink.util.StringUtils.isNullOrWhitespaceOnly(str)) {<NEW_LINE>return new DenseVector();<NEW_LINE>}<NEW_LINE>int len = str.length();<NEW_LINE>int inDataBuffPos = 0;<NEW_LINE>boolean isInBuff = false;<NEW_LINE>for (int i = 0; i < len; ++i) {<NEW_...
, lastestInCharBuffPos).trim());
341,084
final UpdatePublicKeyResult executeUpdatePublicKey(UpdatePublicKeyRequest updatePublicKeyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updatePublicKeyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
endClientExecution(awsRequestMetrics, request, response);
1,224,016
static HazelcastInstance embeddedHazelcastServer() {<NEW_LINE>Config config = new Config();<NEW_LINE>NetworkConfig networkConfig = config.getNetworkConfig();<NEW_LINE>networkConfig.setPort(0);<NEW_LINE>networkConfig.getJoin().getMulticastConfig().setEnabled(false);<NEW_LINE>AttributeConfig attributeConfig = new Attribu...
.HASH, Hazelcast4IndexedSessionRepository.PRINCIPAL_NAME_ATTRIBUTE));
305,302
public void engineInit(int opmode, Key key, AlgorithmParameterSpec engineSpec, SecureRandom random) throws InvalidAlgorithmParameterException, InvalidKeyException {<NEW_LINE>otherKeyParameter = null;<NEW_LINE>this.engineSpec = (IESKEMParameterSpec) engineSpec;<NEW_LINE>// Parse the recipient's key<NEW_LINE>if (opmode =...
.generatePrivateKeyParameter((PrivateKey) key);
217,044
private static TestStepConfig createFromDialog(WsdlProject project, String name) {<NEW_LINE>WsdlMockResponseStepFactory.project = project;<NEW_LINE>try {<NEW_LINE>List<Interface> interfaces = new ArrayList<Interface>();<NEW_LINE>for (Interface iface : project.getInterfaces(WsdlInterfaceFactory.WSDL_TYPE)) {<NEW_LINE>if...
.getResponse().addNewResponseContent();
529,831
public void onEvictInvalidateHash(long hash, Chain evictedChain) {<NEW_LINE>EvictionOutcome result = EvictionOutcome.SUCCESS;<NEW_LINE>clusteredStore.evictionObserver.begin();<NEW_LINE>if (clusteredStore.invalidationValve != null) {<NEW_LINE>try {<NEW_LINE>LOGGER.debug("CLIENT: calling invalidation valve for hash {}", ...
clusteredStore.storeEventDispatcher.releaseEventSink(sink);
1,635,333
public static Query<Optional<DateObj<Integer>>> fetchPeakPlayerCount(ServerUUID serverUUID, long afterDate) {<NEW_LINE>String subQuery = '(' + SELECT + "MAX(" + PLAYERS_ONLINE + ')' + FROM + TABLE_NAME + WHERE + SERVER_ID + "=" + ServerTable.STATEMENT_SELECT_SERVER_ID + AND + DATE + ">= ?)";<NEW_LINE>String sql = SELEC...
3, serverUUID.toString());
63,850
private static void renderSidePower(EnumFacing side, double power, double centrePower, double offset, BufferBuilder bb) {<NEW_LINE>if (power < 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean overload = false;<NEW_LINE>double radius = 0.248 * power;<NEW_LINE>if (radius >= 0.248) {<NEW_LINE>// overload = true;<NEW_LINE...
), 0.125 + centreRadius / 2);
1,512,706
// Sync from Ldap to KC<NEW_LINE>@Override<NEW_LINE>public SynchronizationResult syncDataFromFederationProviderToKeycloak(RealmModel realm) {<NEW_LINE>SynchronizationResult syncResult = new SynchronizationResult() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String getStatus() {<NEW_LINE>return String.format("%d impo...
ldapGroupsRep = new LinkedList<>();
125,726
public static RelNode convert(Order order, ConversionContext context) throws InvalidRelException {<NEW_LINE>// if there are compound expressions in the order by, we need to convert into projects on either side.<NEW_LINE>RelNode input = context.toRel(order.getInput());<NEW_LINE>List<String> fields = input.getRowType().g...
fieldId = fieldMap.get(fieldName);
243,971
protected void debugFlush() {<NEW_LINE>LOGGER.debug("Flushing dbSqlSession");<NEW_LINE>int nrOfInserts = 0;<NEW_LINE>int nrOfUpdates = 0;<NEW_LINE>int nrOfDeletes = 0;<NEW_LINE>for (Map<String, Entity> insertedObjectMap : insertedObjects.values()) {<NEW_LINE>for (Entity insertedObject : insertedObjectMap.values()) {<NE...
deletedObject, deletedObject.getId());
1,147,183
public static void importAddressReferences(final CConnection connection, final int rawModuleId, final int moduleId) throws SQLException {<NEW_LINE>Preconditions.checkNotNull(connection, "IE00266: connection argument can not be null");<NEW_LINE>Preconditions.<MASK><NEW_LINE>Preconditions.checkArgument(moduleId >= 0, "Er...
checkArgument(rawModuleId >= 0, "Error: raw module id can only be a positive number.");
965,700
private static void sendDiscover(String host, int port, String searchTarget) throws IOException {<NEW_LINE>String usn = PMS.get().usn();<NEW_LINE>String serverURL = MediaServer.getURL();<NEW_LINE>SimpleDateFormat sdf = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss", Locale.US);<NEW_LINE>sdf.setTimeZone(TimeZone.getTi...
(msg, CRLF, "<CRLF>"));
118,028
public static FundingRecord adaptFundingRecord(Currency currency, CoinbaseProTransfer coinbaseProTransfer) {<NEW_LINE>FundingRecord.<MASK><NEW_LINE>Date processedAt = coinbaseProTransfer.processedAt();<NEW_LINE>Date canceledAt = coinbaseProTransfer.canceledAt();<NEW_LINE>if (canceledAt != null)<NEW_LINE>status = Fundin...
Status status = FundingRecord.Status.PROCESSING;
549,974
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String eplDeclare = "@public create table varTotalG2K (key0 string primary key, key1 int primary key, total sum(long), cnt count(*))";<NEW_LINE>env.compileDeploy(eplDeclare, path);<NEW_LINE>String eplBind = "into ...
new SupportBean_S0(10, "E1"));
1,535,844
public void initXxlJobExecutor() {<NEW_LINE>// load executor prop<NEW_LINE>Properties xxlJobProp = loadProperties("xxl-job-executor.properties");<NEW_LINE>// init executor<NEW_LINE>xxlJobExecutor = new XxlJobSimpleExecutor();<NEW_LINE>xxlJobExecutor.setAdminAddresses(xxlJobProp.getProperty("xxl.job.admin.addresses"));<...
e.getMessage(), e);
826,108
public LatticeNode concatenateOov(List<LatticeNode> path, int begin, int end, short posId, Lattice lattice) {<NEW_LINE>if (begin >= end) {<NEW_LINE>throw new IndexOutOfBoundsException("begin >= end");<NEW_LINE>}<NEW_LINE>int b = path.<MASK><NEW_LINE>int e = path.get(end - 1).getEnd();<NEW_LINE>Optional<? extends Lattic...
get(begin).getBegin();
682,650
protected void onActivityResult(int requestCode, int resultCode, Intent data) {<NEW_LINE>isInSubActivity = false;<NEW_LINE>// Only if none of the high 16 bits are set it might be one of our request codes<NEW_LINE>if ((requestCode & REQUEST_CODE_MASK) == 0) {<NEW_LINE>if ((requestCode & REQUEST_MASK_MESSAGE_BUILDER) == ...
requestCode, resultCode, data, this);
1,695,881
private void saveToFolder(Business business, Share share, String fileId, String folderId, EffectivePerson effectivePerson) throws Exception {<NEW_LINE>EntityManagerContainer emc = business.entityManagerContainer();<NEW_LINE>this.usedSize = business.attachment2().getUseCapacity(effectivePerson.getDistinguishedName());<N...
check(newAtt, CheckPersistType.all);
249,103
private void continueWithRedirection(RedirectionEntry redirectionEntry, String state) throws IOException {<NEW_LINE>if (state == null || state.isEmpty()) {<NEW_LINE>redirectionEntry.handleNoState(request, response);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String requestUrl = getOriginalRequestUrl(state);<NEW_LINE>if (requ...
redirectionEntry.sendError(request, response);
1,402,973
protected RunContentDescriptor doExecute(RunProfileState profile, ExecutionEnvironment env) throws ExecutionException {<NEW_LINE>BlazeCommandRunConfiguration blazeConfig = <MASK><NEW_LINE>ListenableFuture<BlazeInfo> blazeInfo = getBlazeInfo(env.getProject(), blazeConfig);<NEW_LINE>if (blazeInfo == null) {<NEW_LINE>thro...
(BlazeCommandRunConfiguration) env.getRunProfile();
266,885
public static AlbumInfo parseRedditGallery(final String url, final JsonObject object) {<NEW_LINE>final JsonObject mediaMetadataList = object.getObject("media_metadata");<NEW_LINE>final JsonObject galleryData = object.getObject("gallery_data");<NEW_LINE>if (mediaMetadataList == null || galleryData == null) {<NEW_LINE>re...
urlEscaped = standardImage.getString("u");
755,003
private void renderSliderOption(Graphics g, GameOption option, int cy) {<NEW_LINE>// draw option name and value<NEW_LINE>final int padding = 10;<NEW_LINE>String value = option.getValueString();<NEW_LINE>int nameWidth = Fonts.MEDIUM.getWidth(option.getName());<NEW_LINE>int valueWidth = Fonts.MEDIUM.getWidth(value);<NEW_...
option.getName(), COLOR_WHITE);
603,573
public void installUI(JComponent c) {<NEW_LINE>myDelegateUI.installUI(c);<NEW_LINE>// unregister native popup<NEW_LINE>ComboPopup <MASK><NEW_LINE>if (o != null) {<NEW_LINE>o.uninstallingUI();<NEW_LINE>myDelegateUI.unconfigureArrowButton();<NEW_LINE>KeyListener keyListener = BasicComboBoxUIHacking.getKeyListener(myDeleg...
o = BasicComboBoxUIHacking.getPopup(myDelegateUI);
424,701
protected void processMaxIdleBackups() {<NEW_LINE>if (!isStarted() || maxIdleBackup < 0)<NEW_LINE>return;<NEW_LINE>final List<Session> sessions = findSessions();<NEW_LINE>final long timeNow = System.currentTimeMillis();<NEW_LINE>// Back up all sessions idle longer than maxIdleBackup<NEW_LINE>if (maxIdleBackup >= 0) {<N...
.getIdInternal(), timeIdle });
1,398,672
final BatchEnableStandardsResult executeBatchEnableStandards(BatchEnableStandardsRequest batchEnableStandardsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchEnableStandardsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<Batch...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
106,976
protected void doPost(HttpServletRequest request, HttpServletResponse response) {<NEW_LINE>try {<NEW_LINE>PostParams params = PostParams.getPostParams(request);<NEW_LINE>boolean visible = params.isVisible();<NEW_LINE>String input = params.getParams();<NEW_LINE>if (visible) {<NEW_LINE>JSONObject jsonObject = JSONObject....
getWriter().println("{}");
990,012
/* Build call for throttlingPoliciesAdvancedPolicyIdGet */<NEW_LINE>private com.squareup.okhttp.Call throttlingPoliciesAdvancedPolicyIdGetCall(String policyId, String ifNoneMatch, String ifModifiedSince, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener prog...
localVarHeaderParams.put("Accept", localVarAccept);
1,742,530
private void awaitMappingOnAllMembers(String name, IdentifiedDataSerializable metadata) {<NEW_LINE>Data keyData = nodeEngine.getSerializationService().toData(name);<NEW_LINE>int keyPartitionId = nodeEngine.getPartitionService().getPartitionId(keyData);<NEW_LINE>OperationService operationService = nodeEngine.getOperatio...
e.getMessage(), e);
1,697,222
private ShorthandProjectionSegment createShorthandProjection(final QualifiedShorthandContext shorthand) {<NEW_LINE>ShorthandProjectionSegment result = new ShorthandProjectionSegment(shorthand.getStart().getStartIndex(), shorthand.getStop().getStopIndex());<NEW_LINE>IdentifierContext identifier = shorthand.identifier()....
schemaIdentifier.getText())));
634,275
public boolean apply(Game game, Ability source) {<NEW_LINE>Permanent permanent = game.getPermanentOrLKIBattlefield(id);<NEW_LINE>Player targetPlayer = null;<NEW_LINE>if (permanent != null) {<NEW_LINE>targetPlayer = game.<MASK><NEW_LINE>}<NEW_LINE>if (targetPlayer != null && permanent != null && (permanent.isLegendary()...
getPlayer(permanent.getControllerId());
594,987
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>StackObject spell = null;<NEW_LINE>for (StackObject object : game.getStack()) {<NEW_LINE>if (object instanceof Spell && o...
drawCards(3, source, game);
475,918
private void assignSelectedToCategory(final Core core, final Category category) {<NEW_LINE>tv.runForSelectedRows(new TableGroupRowRunner() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run(TableRowCore row) {<NEW_LINE>TRHostTorrent tr_torrent = (TRHostTorrent) row.getDataSource(true);<NEW_LINE>final <MASK><NEW_LI...
TOTorrent torrent = tr_torrent.getTorrent();
715,189
public void drawPatch(Canvas canvas) {<NEW_LINE>canvas.save();<NEW_LINE>Point[] cubics = new Point[] { new Point(30, 10), new Point(40, 20), new Point(50, 10), new Point(70, 30), /* new Point(70, 30), */<NEW_LINE>new Point(60, 40), new Point(70, 50), new Point(50, 70), /* new Point(50, 70), */<NEW_LINE>new Point(40, 60...
null, BlendMode.SRC_OVER, paint);
335,679
private void createProtectedFieldGetterSetter(FieldMember field) {<NEW_LINE>String descriptor = field.descriptor;<NEW_LINE>String name = field.name;<NEW_LINE>ReturnType rt = ReturnType.getReturnType(descriptor);<NEW_LINE>if (field.isStatic()) {<NEW_LINE>MethodVisitor mv = cw.visitMethod(Modifier.PUBLIC | Modifier.STATI...
mv.visitVarInsn(ALOAD, 0);
682,248
public <T> ListenableFuture<T> submitListenableFuture(String schemaName, String traceId, int bucketIndex, Callable<T> task, CpuCollector cpuCollector) {<NEW_LINE>if (task == null) {<NEW_LINE>throw new NullPointerException();<NEW_LINE>}<NEW_LINE>if (bucketIndex < 0) {<NEW_LINE>bucketIndex = hashBucketIndex(schemaName, t...
, task, traceId, cpuCollector));
76,507
public AbstractContainerMenu createMenu(int id, Inventory playerInventory, Player player) {<NEW_LINE>if (this.lootTable != null) {<NEW_LINE>LootTable loottable = this.level.getServer().getLootTables().get(this.lootTable);<NEW_LINE>this.lootTable = null;<NEW_LINE>LootContext.Builder contextBuilder = new LootContext.Buil...
, Vec3.atCenterOf(worldPosition));
1,809,654
public void removeDeploymentGroup(final String name) throws DeploymentGroupDoesNotExistException {<NEW_LINE>log.info("removing deployment-group: name={}", name);<NEW_LINE>final ZooKeeperClient client = provider.get("removeDeploymentGroup");<NEW_LINE>try {<NEW_LINE>client.ensurePath(Paths.configDeploymentGroups());<NEW_...
"removing deployment-group " + name + " failed", e);
1,412,401
public SegmentCommitInfo clone() {<NEW_LINE>SegmentCommitInfo other = new SegmentCommitInfo(info, delCount, softDelCount, delGen, fieldInfosGen, docValuesGen, getId());<NEW_LINE>// Not clear that we need to carry over nextWriteDelGen<NEW_LINE>// (i.e. do we ever clone after a failed write and<NEW_LINE>// before the nex...
other.fieldInfosFiles.addAll(fieldInfosFiles);
1,656,760
private boolean populate() {<NEW_LINE>if (parts == null) {<NEW_LINE>List<GuidePart> allText = new ArrayList<>();<NEW_LINE>List<PageLink> <MASK><NEW_LINE>// Depth first search<NEW_LINE>Deque<IContentsNode> queue = new ArrayDeque<>();<NEW_LINE>ArrayUtil.addAllReversed(queue, node.getVisibleChildren());<NEW_LINE>while (!q...
allLinks = new ArrayList<>();
1,734,630
public void outputHeader(String message) throws DatabaseException {<NEW_LINE>Executor executor = Scope.getCurrentScope().getSingleton(ExecutorService.class<MASK><NEW_LINE>executor.comment("*********************************************************************");<NEW_LINE>executor.comment(message);<NEW_LINE>executor.comm...
).getExecutor("logging", database);
987,561
public static FindVersionTestsResponse unmarshall(FindVersionTestsResponse findVersionTestsResponse, UnmarshallerContext _ctx) {<NEW_LINE>findVersionTestsResponse.setRequestId(_ctx.stringValue("FindVersionTestsResponse.RequestId"));<NEW_LINE>VersionTestList versionTestList = new VersionTestList();<NEW_LINE>versionTestL...
("FindVersionTestsResponse.VersionTestList.Items[" + i + "].SkippedCount"));
701,593
final DeleteAppInstanceAdminResult executeDeleteAppInstanceAdmin(DeleteAppInstanceAdminRequest deleteAppInstanceAdminRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAppInstanceAdminRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteAppInstanceAdmin");
914,276
final DescribeJobResult executeDescribeJob(DescribeJobRequest describeJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
endClientExecution(awsRequestMetrics, request, response);
1,781,009
public RuleResult execute(Map<String, String> ruleParam, Map<String, String> resourceAttributes) {<NEW_LINE>logger.debug("========CloudfrontAuthorizedHTMLContentDistributionRule started=========");<NEW_LINE>String cloudFrontResourceID = <MASK><NEW_LINE>MDC.put("executionId", ruleParam.get("executionId"));<NEW_LINE>MDC....
resourceAttributes.get(PacmanSdkConstants.RESOURCE_ID);
1,699,524
public void sessionPut(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>boolean createSession = Boolean.parseBoolean(request.getParameter("createSession"));<NEW_LINE>HttpSession session = request.getSession(createSession);<NEW_LINE>if (createSession)<NEW_LINE>System.out.println(<MAS...
"Created a new session with sessionID=" + session.getId());
1,402,305
public static void toJSON(OutputWriter jsonWriter, MaterialConfig materialConfig) {<NEW_LINE>if (!materialConfig.errors().isEmpty()) {<NEW_LINE>jsonWriter.addChild("errors", errorWriter -> {<NEW_LINE>HashMap<String, String> errorMapping = new HashMap<>();<NEW_LINE><MASK><NEW_LINE>errorMapping.put("folder", "destination...
errorMapping.put("materialName", "name");
1,626,035
private void run(Console console, Path checkoutDir, Iterable<String> args) throws IOException, ValidationException {<NEW_LINE>ImmutableList.Builder<String> argBuilder = new Builder<String>().add(buildifierOptions.buildifierBin);<NEW_LINE>if (type != null) {<NEW_LINE>argBuilder.add("-type=" + type);<NEW_LINE>}<NEW_LINE>...
toArray(new String[0]);
764,077
public static List<String> write(String path, List<String> entities, boolean dynamicFlag) throws Exception {<NEW_LINE>List<String> names = new ArrayList<>();<NEW_LINE>String name = "";<NEW_LINE>try {<NEW_LINE>names.addAll((List<String>) Config.resource(Config.RESOURCE_CONTAINERENTITYNAMES));<NEW_LINE>names = ListTools....
mapped_element = unit.addElement("class");
1,168,461
public JavaScriptNode[] createArgumentNodes(JSContext context) {<NEW_LINE>NodeFactory <MASK><NEW_LINE>int totalArgs = getTotalArgumentCount();<NEW_LINE>JavaScriptNode[] callArgs = totalArgs == 0 ? EMPTY_NODE_ARRAY : new JavaScriptNode[totalArgs];<NEW_LINE>int index = 0;<NEW_LINE>if (hasThis) {<NEW_LINE>callArgs[index++...
factory = NodeFactory.getInstance(context);
1,119,808
public void marshall(TransferDomainRequest transferDomainRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (transferDomainRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(transferDomainRequest...
transferDomainRequest.getAdminContact(), ADMINCONTACT_BINDING);
1,040,886
public List<MetricIntervalValue> executeSelectInterval(MetricsQueryImpl query) {<NEW_LINE>List<MetricIntervalValue> intervalResult = getDbEntityManager().selectList(SELECT_METER_INTERVAL, query);<NEW_LINE>intervalResult = intervalResult != null ? intervalResult : new ArrayList<>();<NEW_LINE>String reporterId = Context....
long entityValue = intervalEntity.getValue();
1,548,832
final PutAccountDedicatedIpWarmupAttributesResult executePutAccountDedicatedIpWarmupAttributes(PutAccountDedicatedIpWarmupAttributesRequest putAccountDedicatedIpWarmupAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putAccountDedicatedIpWarmupAttributesRequest);<NEW_LINE>AWSReque...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "PutAccountDedicatedIpWarmupAttributes");
1,793,346
public static ClientMessage encodeRequest(java.lang.String mapName, java.lang.String cacheName, com.hazelcast.internal.serialization.Data predicate, int batchSize, int bufferSize, long delaySeconds, boolean populate, boolean coalesce) {<NEW_LINE>ClientMessage clientMessage = ClientMessage.createForEncode();<NEW_LINE>cl...
initialFrame.content, REQUEST_COALESCE_FIELD_OFFSET, coalesce);
567,175
private I_M_HU createNonAggregatedTU(final HUEditorRow tuRow, final HUEditorRow luRow) {<NEW_LINE>final I_M_HU newTU = newHUTransformation().tuToNewTUs(tuRow.getM_HU(), BigDecimal<MASK><NEW_LINE>if (luRow != null) {<NEW_LINE>final I_M_HU oldLU = luRow.getM_HU();<NEW_LINE>if (handlingUnitsBL.isDestroyed(oldLU)) {<NEW_LI...
.ONE).get(0);
489,292
public Delta<DevStatSnapshot> diff(DevStatSnapshot bgn) {<NEW_LINE>return new Delta<DevStatSnapshot>(bgn, this) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected DevStatSnapshot computeDelta() {<NEW_LINE>DevStatSnapshot delta = new DevStatSnapshot();<NEW_LINE>delta.uptime = Differ.DigitDiffer.globalDiff(bgn.uptime, end...
bgn.screenOff, end.screenOff);
1,691,244
public ResponseInfo execute(HttpUriRequest request, String userName, String password, int... expectedStatusCodes) {<NEW_LINE>FlowableServiceException exception = null;<NEW_LINE>CloseableHttpClient client = getHttpClient(userName, password);<NEW_LINE>try {<NEW_LINE>try (CloseableHttpResponse response = client.execute(re...
exception = wrapException(e, request);
748,540
final CreateTransformJobResult executeCreateTransformJob(CreateTransformJobRequest createTransformJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createTransformJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
718,422
public boolean appendIndex(Map<String, PullLogIndexEntry> indexMap) {<NEW_LINE>positionOfIndex = tablet.getWrotePosition();<NEW_LINE>for (Map.Entry<String, PullLogIndexEntry> entry : indexMap.entrySet()) {<NEW_LINE>final byte[] consumerBytes = entry.getKey().getBytes(StandardCharsets.UTF_8);<NEW_LINE>int size = Integer...
ByteBuffer nioBuffer = buffer.nioBuffer();
1,336,421
private Mono<Response<Void>> updateResourceGroupLevelStateToResolveWithResponseAsync(String ascLocation, String alertName, String resourceGroupName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is requir...
error(new IllegalArgumentException("Parameter ascLocation is required and cannot be null."));
315,601
private static Map<TypeAlias, jnr.ffi.NativeType> buildTypeMap() {<NEW_LINE>Map<TypeAlias, jnr.ffi.NativeType> m = new EnumMap<TypeAlias, jnr.ffi.NativeType>(TypeAlias.class);<NEW_LINE>m.put(TypeAlias.int8_t, NativeType.SCHAR);<NEW_LINE>m.put(TypeAlias.u_int8_t, NativeType.UCHAR);<NEW_LINE>m.put(TypeAlias.int16_t, Nati...
TypeAlias.off_t, NativeType.SLONG);
1,648,192
void migration(MigrationStrategy strategy, boolean initializeEmpty, String schema, File databaseUpdateFile, Connection connection, KeycloakSession session) {<NEW_LINE>JpaUpdaterProvider updater = session.getProvider(JpaUpdaterProvider.class, LiquibaseJpaUpdaterProviderFactory.PROVIDER_ID);<NEW_LINE>JpaUpdaterProvider.S...
connection, schema, session, updater);
843,326
public boolean addSubscription(SubscriptionItem subscriptionItem, Session session) throws Exception {<NEW_LINE>if (subscriptionItem == null) {<NEW_LINE>logger.error("addSubscription param error,subscriptionItem is null", session);<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>String topic = subscriptionItem.getTopic();<NE...
topic2sessionInGroupMapping.put(topic, sessions);