idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,655,547
public void process(RowData value, int index, Map<String, Carrier> carrierMap) {<NEW_LINE>String schema;<NEW_LINE>String table;<NEW_LINE>List<String> columns = new LinkedList<>();<NEW_LINE>List<String> insertV = new LinkedList<>();<NEW_LINE>List<String> deleteV = new LinkedList<>();<NEW_LINE>if (value instanceof Column...
KEY_TABLE, conf.getTable());
1,184,577
public void onStyleLoaded(@NonNull final Style style) {<NEW_LINE>TextFieldFormattingActivity.this.mapboxMap = mapboxMap;<NEW_LINE>Toast.makeText(TextFieldFormattingActivity.this, getString(R.string.instruction_toast), <MASK><NEW_LINE>// Set click listeners for the text adjustment buttons<NEW_LINE>findViewById(R.id.fab_...
Toast.LENGTH_SHORT).show();
1,571,263
// Speech recognition from microphone.<NEW_LINE>public static void recognitionWithMicrophoneAsync() throws InterruptedException, ExecutionException {<NEW_LINE>// <recognitionWithMicrophone><NEW_LINE>// Creates an instance of a speech config with specified<NEW_LINE>// subscription key and service region. Replace with yo...
cancellation = CancellationDetails.fromResult(result);
1,076,900
public DescribeReservedElasticsearchInstanceOfferingsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeReservedElasticsearchInstanceOfferingsResult describeReservedElasticsearchInstanceOfferingsResult = new DescribeReservedElasticsearchInstanceOfferingsResult();<NEW_LINE>int origina...
)).unmarshall(context));
192,136
public GetTypedLinkFacetInformationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetTypedLinkFacetInformationResult getTypedLinkFacetInformationResult = new GetTypedLinkFacetInformationResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetD...
String currentParentElement = context.getCurrentParentElement();
594,967
public List<ValidateError> validate(Map<String, String> values) {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.INTEGER);<NEW_LINE>error = validator.validate(values.get("userId"), convLabel...
ValidatorFactory.getInstance(Validator.MAX_LENGTH);
1,440,604
private void buildDays() {<NEW_LINE>WeekView weekView = getSkinnable();<NEW_LINE>List<WeekDayView> weekDayViews = weekView.getWeekDayViews();<NEW_LINE>// before rebuilding make sure to unbind previous day view children<NEW_LINE>weekDayViews.forEach(view -> getSkinnable().unbind(view));<NEW_LINE>dayGridPane.getChildren(...
addListener(it -> updateUsedTimes());
1,365,083
private //<NEW_LINE>void parseQRYNOPRM() /*ResultSetCallbackInterface resultSet*/<NEW_LINE>{<NEW_LINE>boolean svrcodReceived = false;<NEW_LINE>int svrcod = CodePoint.SVRCOD_INFO;<NEW_LINE>boolean rdbnamReceived = false;<NEW_LINE>String rdbnam = null;<NEW_LINE>boolean pkgnamcsnReceived = false;<NEW_LINE>Object pkgnamcsn...
CodePoint.SVRCOD_WARNING, CodePoint.SVRCOD_ERROR);
1,626,776
void addToBuilder(AbstractTable table, QueryStringBuilder builder, Consumer<BindMarker> onMarker) {<NEW_LINE>Column receiver = lhs().appendToBuilder(table, builder, onMarker);<NEW_LINE>builder.append(predicate().toString());<NEW_LINE>ColumnType type = receiver.type();<NEW_LINE>assert type != null;<NEW_LINE>BindMarker m...
append(marker, value());
984,269
// testCreateSharedDurableExpiry_TCP_SecOff<NEW_LINE>public void testCreateSharedDurableConsumer_create_TCP_SecOff(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>JMSContext jmsContextSender = tcfTCP.createContext();<NEW_LINE>JMSContext jmsContextReceiver = tcfTCP.createContext();<...
JMSProducer jmsProducer = jmsContextSender.createProducer();
831,583
public void marshall(ReservationAggregates reservationAggregates, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (reservationAggregates == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(reservationAggregates...
reservationAggregates.getTotalActualUnits(), TOTALACTUALUNITS_BINDING);
169,396
public static void claimInterface(DeviceHandle handle) throws SourceException {<NEW_LINE>if (handle != null) {<NEW_LINE>int result = LibUsb.kernelDriverActive(handle, USB_INTERFACE);<NEW_LINE>if (result == 1) {<NEW_LINE>result = <MASK><NEW_LINE>if (result != LibUsb.SUCCESS) {<NEW_LINE>mLog.error("failed attempt to deta...
LibUsb.detachKernelDriver(handle, USB_INTERFACE);
893,043
public final ExpressionsContext expressions() throws RecognitionException {<NEW_LINE>ExpressionsContext _localctx = new ExpressionsContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 560, RULE_expressions);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(5720);<N...
_la = _input.LA(1);
490,840
public okhttp3.Call monetizationPublishUsagePostCall(final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/monetization/publish-usage";<NEW_LINE>List<Pair> localVarQueryParams = new ArrayList<Pair>();<NEW_LI...
HashMap<String, String>();
464,281
final PutDestinationPolicyResult executePutDestinationPolicy(PutDestinationPolicyRequest putDestinationPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putDestinationPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
807,735
protected boolean readSnapshot(Reader reader) throws Exception {<NEW_LINE>final <MASK><NEW_LINE>final String sourceFile = Paths.get(readerPath, snapshotArchive).toString();<NEW_LINE>final Checksum checksum = new CRC64();<NEW_LINE>DiskUtils.decompress(sourceFile, readerPath, checksum);<NEW_LINE>LocalFileMeta fileMeta = ...
String readerPath = reader.getPath();
1,854,343
public PiecewisePolynomialResult interpolate(final double[] xValues, final double[] yValues) {<NEW_LINE>ArgChecker.notNull(xValues, "xValues");<NEW_LINE>ArgChecker.notNull(yValues, "yValues");<NEW_LINE>ArgChecker.isTrue(xValues.length == yValues.length | xValues.length + 2 == yValues.length, "(xValues length = yValues ...
yValues[i]), "yValues containing NaN");
1,210,841
public CreateResponseHeadersPolicyResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>CreateResponseHeadersPolicyResult createResponseHeadersPolicyResult = new CreateResponseHeadersPolicyResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth...
XMLEvent xmlEvent = context.nextEvent();
1,709,345
private void initialize(@NonNull Context context) {<NEW_LINE>inflate(context, R.layout.verification_code_view, this);<NEW_LINE>codes.add(findViewById(R.id.code_zero));<NEW_LINE>codes.add(findViewById(R.id.code_one));<NEW_LINE>codes.add(findViewById(R.id.code_two));<NEW_LINE>codes.add(findViewById(R.id.code_three));<NEW...
(R.id.container_two));
1,299,030
@Operation(summary = "Create batch command invocation based on device assignment criteria", description = "Create batch command invocation based on device assignment criteria")<NEW_LINE>public Response createInvocationsByAssignmentCriteria(@RequestBody InvocationByAssignmentCriteriaRequest request, @Parameter(descripti...
setCommandToken(request.getCommandToken());
1,490,219
public boolean onDrag(PointF displacement, MotionEvent ev) {<NEW_LINE>float xProgress = Math.max(<MASK><NEW_LINE>float yProgress = Math.max(0, -displacement.y) / mYRange;<NEW_LINE>yProgress = Utilities.mapRange(yProgress, Y_ANIM_MIN_PROGRESS, 1f);<NEW_LINE>boolean wasHomeScreenVisible = mIsHomeScreenVisible;<NEW_LINE>i...
0, displacement.x) / mXRange;
1,590,399
private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String envName, String name, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW...
error(new IllegalArgumentException("Parameter envName is required and cannot be null."));
387,914
public static boolean isPathNodeNotAQueryResult(final Deque<QueryPathSegment> pathSegmentNamesToArrayIndexes, final PathSummaryReader pathSummary, final long pathNodeKey) {<NEW_LINE>final var currentPathSegmentNames = new ArrayDeque<QueryPathSegment>();<NEW_LINE>pathSegmentNamesToArrayIndexes.forEach(pathSegmentNameToA...
var queryPathSegment = currentPathSegmentNames.removeLast();
378,403
public <V> Future<V> runJavaSourceTaskWhenScanFinished(final Callable<V> callable) throws IOException {<NEW_LINE>JavaSource existingJavaSource;<NEW_LINE>synchronized (this) {<NEW_LINE>existingJavaSource = javaSource;<NEW_LINE>}<NEW_LINE>JavaSource newJavaSource = existingJavaSource != null ? existingJavaSource : JavaSo...
(callable, controller, true));
1,815,376
private Mono<PagedResponse<SubscriptionUsageInner>> listByLocationSinglePageAsync(String locationName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
866,270
protected URLConnection openConnection(URL u) throws IOException {<NEW_LINE>// NOI18N<NEW_LINE>URL orig = new URL("nbresloc", u.getHost(), u.getPort(), u.getFile());<NEW_LINE>final URLConnection connection = orig.openConnection();<NEW_LINE>if (!u.getFile().endsWith(".html")) {<NEW_LINE>return connection;<NEW_LINE>}<NEW...
.getBytes(StandardCharsets.UTF_8));
1,216,686
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.<MASK><NEW_LINE>MageObject sourceObject = game.getObject(source);<NEW_LINE>if (controller == null || sourceObject == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (controller.getLibrary().hasCards()) {<NEW_LINE>CardsImpl cards =...
getPlayer(source.getControllerId());
1,712,104
public void schedule(String jobKey, int timeout, int period, boolean persist, boolean override, int networkType, boolean requiresCharging, boolean requiresDeviceIdle, boolean exact, boolean allowWhileIdle, boolean allowExecutionInForeground, String notificationTitle, String notificationText, Callback callback) {<NEW_LI...
jobBundle.putString("notificationTitle", notificationTitle);
247,907
private void invokeCompletion(@Nonnull Project project, @Nonnull Editor editor, int time, boolean hasModifiers, @Nonnull Caret caret) {<NEW_LINE>markCaretAsProcessed(caret);<NEW_LINE>if (invokedExplicitly) {<NEW_LINE>StatisticsUpdate.applyLastCompletionStatisticsUpdate();<NEW_LINE>}<NEW_LINE>checkNoWriteAccess();<NEW_L...
null, editor.getDocument());
931,321
public int decompress(ByteBuffer src, int srcOff, ByteBuffer dest, int destOff, int destLen) {<NEW_LINE>ByteBufferUtils.checkNotReadOnly(dest);<NEW_LINE>ByteBufferUtils.checkRange(src, srcOff);<NEW_LINE>ByteBufferUtils.checkRange(dest, destOff, destLen);<NEW_LINE>if ((src.hasArray() || src.isDirect()) && (dest.hasArray...
srcOff, dest, destOff, destLen);
64,264
public static CurrencyParameterSensitivities linearRebucketing(CurrencyParameterSensitivities sensitivities, List<LocalDate> targetDates) {<NEW_LINE>checkSortedDates(targetDates);<NEW_LINE>int nbBuckets = targetDates.size();<NEW_LINE>List<ParameterMetadata> pmdTarget = targetDates.stream().map(date -> LabelDateParamete...
LocalDate nodeDate = datedParameterMetadata.getDate();
1,075,585
public void timeout(Timer timer) {<NEW_LINE>Date nextTimeout = null;<NEW_LINE>long timeRemaining = 0;<NEW_LINE>try {<NEW_LINE>nextTimeout = timer.getNextTimeout();<NEW_LINE>timeRemaining = timer.getTimeRemaining();<NEW_LINE>} catch (NoSuchObjectLocalException ex) {<NEW_LINE>// NoSuchObjectLocalException can occur if ti...
"RestartMissedTimerActionBean.timeout : " + nextTimeout + ", " + timeRemaining);
1,372,167
private OptionsParserImplResult parse(OptionPriority priority, Function<OptionDefinition, String> sourceFunction, ParsedOptionDescription implicitDependent, ParsedOptionDescription expandedFrom, List<String> args) throws OptionsParsingException {<NEW_LINE>List<String> unparsedArgs = new ArrayList<>();<NEW_LINE>List<Str...
unparsedArgs, unparsedPostDoubleDashArgs, priority, flagAliasMappings);
1,071,990
public void visit(MinInclusive minInclusive) {<NEW_LINE>assert (facetParent instanceof SimpleRestriction);<NEW_LINE>if (datatype instanceof NumberBase) {<NEW_LINE>java.util.List<Number> removeList <MASK><NEW_LINE>java.util.List<? extends Number> currentList = ((NumberBase) datatype).getMinInclusives();<NEW_LINE>if (cur...
= new ArrayList<Number>();
1,481,429
public Builder loadFromStream(String resourceName, InputStream is, boolean acceptNullValues) throws IOException {<NEW_LINE>final XContentType xContentType;<NEW_LINE>if (resourceName.endsWith(".json")) {<NEW_LINE>xContentType = XContentType.JSON;<NEW_LINE>} else if (resourceName.endsWith(".yml") || resourceName.endsWith...
(parser, acceptNullValues, true));
337,377
public PluginDispatcherReturnType<Void> doOperation() throws PaymentApiException {<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>final PaymentMethodModelDao paymentMethodModel = getPaymentMethodById(paymentMethodId, false, context);<NEW_LINE>try {<NEW_LINE>// Note: account.getPaymentMethodId() may be null<NEW_LINE>if (...
getPaymentProviderPlugin(paymentMethodId, false, context);
1,754,117
public void onInvoke() {<NEW_LINE>ActionInvocation actionInvocation = new ActionInvocation(action, view.getInputValues());<NEW_LINE>// Starts background thread<NEW_LINE>Workbench.Log.ACTION_INVOCATION.info(<MASK><NEW_LINE>ActionCallback actionCallback = new ControlActionCallback(actionInvocation) {<NEW_LINE><NEW_LINE>@...
"Executing action: " + action.getName());
1,460,113
private void resolveMethod(@Nullable Context context, @NonNull String name) {<NEW_LINE>while (context != null) {<NEW_LINE>try {<NEW_LINE>if (!context.isRestricted()) {<NEW_LINE>final Method method = context.getClass().getMethod(mMethodName, BootstrapTextButton.class, boolean.class);<NEW_LINE>if (method != null) {<NEW_L...
mHostView.getClass() + idText);
318,522
public static void initCalendarsPreference(Context context, ListPreference listPreference) {<NEW_LINE>Resources r = context.getResources();<NEW_LINE>CalendarResult calendars = getCalendars();<NEW_LINE>// Fetch the current setting. Invalid calendar id will<NEW_LINE>// be changed to default value.<NEW_LINE>String current...
Log.d("astrid", "initCalendarsPreference: Unknown calendar.");
1,200,107
private // NOTE does not handle all cases, just enough to work<NEW_LINE>String toStrAnnotation(final Annotation anno) {<NEW_LINE>final StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append('@');<NEW_LINE>final Class<? extends Annotation<MASK><NEW_LINE>sb.append(className(annoType));<NEW_LINE>final Method[] methods...
> annoType = anno.annotationType();
320,227
void decode(Decoder decoder, Instruction instruction) {<NEW_LINE>if ((decoder.state_vvvv_invalidCheck & decoder.invalidCheckMask) != 0)<NEW_LINE>decoder.setInvalidInstruction();<NEW_LINE>if ((decoder.state_zs_flags & decoder.is64bMode_and_W) != 0) {<NEW_LINE>instruction.setCode(codeW1);<NEW_LINE>instruction.setOp0Regis...
.state_zs_extraRegisterBase) + Register.EAX);
1,080,972
private List<PromptErrorLog> listPromptErrorLog(EntityManagerContainer emc) throws Exception {<NEW_LINE>EntityManager em = emc.get(PromptErrorLog.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<PromptErrorLog> cq = cb.createQuery(PromptErrorLog.class);<NEW_LINE>Root<PromptErrorLog>...
Calendar cal = Calendar.getInstance();
350,006
//<NEW_LINE>// 129623_1 JMSConsumer createSharedDurableConsumer(Topic topic,String name)<NEW_LINE>// 129623_1_1 Creates a shared durable subscription on the specified topic<NEW_LINE>// (if one does not already exist) and creates a consumer on that durable<NEW_LINE>// subscription. This method creates the durable subscr...
= new ArrayList<String>();
1,300,134
public static String injectParameters(String jsExpression, Object... params) {<NEW_LINE>int i = 0;<NEW_LINE>for (Object param : params) {<NEW_LINE>String pattern = "${" + i + "}";<NEW_LINE>if (param == null) {<NEW_LINE>jsExpression = StringUtil.replaceAll(jsExpression, pattern, "null");<NEW_LINE>} else if (param instan...
quote((String) param));
423,571
public void open() throws Exception {<NEW_LINE>stop();<NEW_LINE>Logger.trace(String.format("open() [cameraId:%d, width: %d, height: %d]", cameraId, width, height));<NEW_LINE>try {<NEW_LINE>setDirty(false);<NEW_LINE>snapshotURI = null;<NEW_LINE>if ((hostIP != null) && (!hostIP.isEmpty())) {<NEW_LINE>try {<NEW_LINE>baseU...
"Snapshot URI: " + snapshotURI.toString());
1,525,628
public MetaModel analyze(final Component component) {<NEW_LINE>final UnirestInstance ui = UnirestFactory.getUnirestInstance();<NEW_LINE>final MetaModel meta = new MetaModel(component);<NEW_LINE>if (component.getPurl() != null) {<NEW_LINE>final String url = String.format(baseUrl + API_URL, component.<MASK><NEW_LINE>try ...
getPurl().getName());
877,536
public void init() {<NEW_LINE>LOG.debug("Registering JVM discovery MBean: hawtio:type=JVMList");<NEW_LINE>try {<NEW_LINE>try {<NEW_LINE>// let's just hit any errors we're going to hit before even creating the mbean<NEW_LINE>listLocalJVMs();<NEW_LINE>} catch (LinkageError e) {<NEW_LINE>// Some JVM's don't support com.su...
"Local JVM discovery disabled as this JVM cannot access com.sun.tools.attach.VirtualMachine due to: {}", e.getMessage());
1,762,406
private static void splitSettings(Context context) {<NEW_LINE>File prefFile = new File(getPrefFileName(PREF_SETTINGS));<NEW_LINE>File migratedFile = new File(prefFile + ".migrated");<NEW_LINE>if (prefFile.exists() && !migratedFile.exists()) {<NEW_LINE>Util.log(null, Log.WARN, "Splitting " + prefFile);<NEW_LINE>SharedPr...
component = name.split("\\.");
584,301
final DescribeFileSystemsResult executeDescribeFileSystems(DescribeFileSystemsRequest describeFileSystemsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeFileSystemsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
invoke(request, responseHandler, executionContext);
677,850
public void execute() {<NEW_LINE>if (stateManager.getActiveDatabase().isEmpty()) {<NEW_LINE>dialogService.notify(Localization.lang("This operation requires an open library."));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (stateManager.getSelectedEntries().size() != 1) {<NEW_LINE>dialogService.notify(Localization.lang("This...
fieldChange = entry.addFile(editedLinkedFile);
251,968
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {<NEW_LINE>if (getRegistry() == null) {<NEW_LINE>throw new RuntimeException("Registry is null");<NEW_LINE>}<NEW_LINE>int allProxiesCount = Optional.ofNullable(getRegistry().getAllProxies().size()).orElse(0);<NEW_LINE>GridS...
(status).getBytes(UTF_8);
296,313
public static int nextWord(@Nonnull String text, int start) {<NEW_LINE>if (!Character.isLetterOrDigit(text.charAt(start))) {<NEW_LINE>return start + 1;<NEW_LINE>}<NEW_LINE>int i = start;<NEW_LINE>while (i < text.length() && Character.isDigit(text.<MASK><NEW_LINE>if (i > start) {<NEW_LINE>// digits form a separate hump<...
charAt(i))) i++;
1,760,689
public Datum unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Datum datum = new Datum();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (token...
int originalDepth = context.getCurrentDepth();
807,200
private String generateExpression(Method method) {<NEW_LINE>StringBuilder sb = new StringBuilder("#target.").append(method.getName()).append('(');<NEW_LINE>Class<?>[] parameterTypes = method.getParameterTypes();<NEW_LINE>Annotation[][] parameterAnnotations = method.getParameterAnnotations();<NEW_LINE>boolean hasUnquali...
TypeDescriptor.valueOf(Void.class);
521,377
public void dropDatabase(final String dbname, final boolean deleteConnections) {<NEW_LINE>new DatabaseCommand(true) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void execute() throws Exception {<NEW_LINE>try {<NEW_LINE>Connection conn = connProcessor.getConnection();<NEW_LINE>Quoter quoter = connProcessor.getQuoter()...
getDefault().removeConnection(dbconn);
905,286
// END TRANSFORM STUFF<NEW_LINE>private com.codename1.ui.geom.Shape awtShapeToCn1Shape(Shape shape) {<NEW_LINE>com.codename1.ui.geom.GeneralPath p = new com.codename1.ui.geom.GeneralPath();<NEW_LINE>PathIterator it = shape.getPathIterator(AffineTransform.getScaleInstance(1, 1));<NEW_LINE>p.setWindingRule(it.getWindingR...
2], buf[3]);
306,772
public List<MetadataDto> findByCriteria(MetadataCriteria criteria, SortCriteria sortCriteria) {<NEW_LINE>Map<String, Object> parameterMap = new HashMap<>();<NEW_LINE>List<String> criteriaList = new ArrayList<>();<NEW_LINE>StringBuilder sb = new StringBuilder("select m.MET_ID_C c0, m.MET_NAME_C c1, m.MET_TYPE_C c2");<NE...
String) o[i++]);
30,844
public void refreshTree(final ITreeNode<CTag> tag) {<NEW_LINE>final List<DefaultMutableTreeNode> lastNodes = TreeHelpers.getLastExpandedNodes(m_tagsTree);<NEW_LINE>final List<Integer> lastNodeIds = new ArrayList<Integer>();<NEW_LINE>if ((tag != null) && (tag.getParent() != null)) {<NEW_LINE>lastNodeIds.add(tag.getParen...
.getObject().getId();
1,193,385
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));
1,440,960
final CreateTestGridUrlResult executeCreateTestGridUrl(CreateTestGridUrlRequest createTestGridUrlRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createTestGridUrlRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,267,271
public boolean handleUnknownProperty(DeserializationContext ctxt, JsonParser jp, JsonDeserializer<?> deserializer, Object beanOrClass, String propertyName) {<NEW_LINE>Class<?> objClass = beanOrClass.getClass();<NEW_LINE>BeanInfo beanInfo;<NEW_LINE>try {<NEW_LINE>beanInfo = Introspector.getBeanInfo(objClass);<NEW_LINE>}...
warn("Unable to update custom facet {}", propertyName, e);
531,896
protected InputSource wrapInputSource(InputSource input) {<NEW_LINE>String sid = input.getSystemId();<NEW_LINE><MASK><NEW_LINE>String fakeDocument;<NEW_LINE>if (generalEntity) {<NEW_LINE>StringBuffer buffer = new StringBuffer();<NEW_LINE>// NOI18N<NEW_LINE>buffer.append("<!DOCTYPE fakeDocument" + RANDOM + " [\n");<NEW_...
InputSource fakeInput = new InputSource(FAKE_SYSTEM_ID);
963,232
private ResponseEntity executeQuery(ActionAuthorizationInfo authInfo, boolean isSync, long limit, StmtRequestBody stmtRequestBody, HttpServletResponse response, boolean isStream) {<NEW_LINE>StatementSubmitter.StmtContext stmtCtx = new StatementSubmitter.StmtContext(stmtRequestBody.stmt, authInfo.fullUserName, authInfo....
future = stmtSubmitter.submit(stmtCtx);
1,264,359
private static ClusterService mockClusterService(ClusterState initialState) {<NEW_LINE>final ThreadPool threadPool = mock(ThreadPool.class);<NEW_LINE>when(threadPool.executor(ThreadPool.Names.SNAPSHOT)).thenReturn(new SameThreadExecutorService());<NEW_LINE>when(threadPool.generic()).thenReturn(new SameThreadExecutorSer...
next = task.execute(current);
1,437,162
// to be removed before 2.0<NEW_LINE>@Deprecated<NEW_LINE>public static RelNode projectMapping(RelNode rel, Mapping mapping, List<String> fieldNames, RelFactories.ProjectFactory projectFactory) {<NEW_LINE>assert mapping<MASK><NEW_LINE>assert mapping.getMappingType().isMandatorySource();<NEW_LINE>if (mapping.isIdentity(...
.getMappingType().isSingleSource();
1,192,334
protected void doCreateArgumentsMapper() {<NEW_LINE>java.lang.reflect.Parameter[] providerParameters = providerMethod.getParameters();<NEW_LINE>for (int providerParamIdx = 0; providerParamIdx < providerParameters.length; providerParamIdx++) {<NEW_LINE>java.lang.reflect.Parameter providerParameter = providerParameters[p...
constructType(providerParameter.getParameterizedType());
319,372
public Mono<Response<ConnectionStringDictionaryInner>> listConnectionStringsWithResponseAsync(String resourceGroupName, String name) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>return Mono.error(new IllegalArgumentExceptio...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
1,059,944
private void writeSegmentInfo(DataOutput output, SegmentInfo si) throws IOException {<NEW_LINE>Version version = si.getVersion();<NEW_LINE>if (version.major < 7) {<NEW_LINE>throw new IllegalArgumentException("invalid major version: should be >= 7 but got: " + version.major + " segment=" + si);<NEW_LINE>}<NEW_LINE>// Wr...
writeMapOfStrings(si.getAttributes());
1,534,536
public EventBean[] processInsert(FAFQueryMethodIUDInsertInto insert) {<NEW_LINE>AgentInstanceContext ctx = processorInstance.getTailViewInstance().getAgentInstanceContext();<NEW_LINE>EventBean[] inserted;<NEW_LINE>if (insert.getInsertHelpers().length == 1) {<NEW_LINE>EventBean event = insert.getInsertHelpers()[0].proce...
insert.getInsertHelpers().length];
1,571,815
public boolean isValidForSlot(Slot s, ItemStack is) {<NEW_LINE>final ItemStack top = getHost().getInternalInventory().getStackInSlot(0);<NEW_LINE>final ItemStack bot = getHost().getInternalInventory().getStackInSlot(1);<NEW_LINE>if (s == this.middle) {<NEW_LINE>ItemDefinition<?> press = AEItems.NAME_PRESS;<NEW_LINE>if ...
getLevel(), is, otherSlot);
1,754,594
public boolean visit(TypeDeclaration node) {<NEW_LINE>handleAnnotations(node.modifiers(), this.options.alignment_for_annotations_on_type);<NEW_LINE>Type superclassType = node.getSuperclassType();<NEW_LINE>if (superclassType != null) {<NEW_LINE>this.wrapParentIndex = this.tm.lastIndexIn(node.getName(), -1);<NEW_LINE>thi...
get(0), implementsToken));
143,227
public Optional<AuthResult> authorize(AuthSettings auth, HttpServletRequest req) {<NEW_LINE>logger.atInfo().log("Action requires auth: %s", auth);<NEW_LINE>AuthResult <MASK><NEW_LINE>switch(auth.minimumLevel()) {<NEW_LINE>case NONE:<NEW_LINE>// Any authentication result is ok.<NEW_LINE>break;<NEW_LINE>case APP:<NEW_LIN...
authResult = authenticate(auth, req);
1,396,347
public static Map<String, String> parseTagAttributes(StartElement start) {<NEW_LINE>// Using a map to deduplicate xmlns declarations on the attributes.<NEW_LINE>Map<String, String> attributeMap = new LinkedHashMap<>();<NEW_LINE>Iterator<Attribute> attributes = iterateAttributesFrom(start);<NEW_LINE>while (attributes.ha...
), namespace.getNamespaceURI());
174,719
public int fetchIndex() {<NEW_LINE>if (!this.repoData.isEnabled()) {<NEW_LINE>this.indexRaw = null;<NEW_LINE>this.toUpdate = Collections.emptyList();<NEW_LINE>this.toApply = Collections.emptySet();<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (!this.repoData.prepare()) {<NEW_LINE>this.indexRaw = null;<NEW_L...
.toUpdate = Collections.emptyList();
453,190
final DeleteBudgetResult executeDeleteBudget(DeleteBudgetRequest deleteBudgetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteBudgetRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DeleteBudgetRequest> request = null;<NEW_LINE...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
859,478
protected void executeRollbackScript(String rollbackScript, List<ChangeSet> changeSets, Contexts contexts, LabelExpression labelExpression) throws LiquibaseException {<NEW_LINE>final Executor executor = Scope.getCurrentScope().getSingleton(ExecutorService.class).getExecutor("jdbc", database);<NEW_LINE>String rollbackSc...
"Error executing rollback script: " + e.getMessage());
444,560
public static String preprocessXhtmlNamespaceDeclaration(String value) {<NEW_LINE>if (value.charAt(0) != '<') {<NEW_LINE>value = DIV_OPEN_FIRST + value + "</div>";<NEW_LINE>}<NEW_LINE>boolean hasProcessingInstruction = value.startsWith("<?");<NEW_LINE>int firstTagIndex = value.indexOf(<MASK><NEW_LINE>if (firstTagIndex ...
"<", hasProcessingInstruction ? 1 : 0);
986,651
protected void layoutChildren(final double x, final double y, final double w, final double h) {<NEW_LINE>final double labelOffset = getLabelOffset();<NEW_LINE>final CheckBox checkBox = getSkinnable();<NEW_LINE>final double boxWidth = snapSize(box.prefWidth(-1));<NEW_LINE>final double boxHeight = snapSize(box.prefHeight...
- snapSize(boxWidth)) + labelOffset;
741,839
public void read(org.apache.thrift.protocol.TProtocol prot, TFDataSourceList struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(1);<NEW_LINE>if (incoming.get(0)) ...
STRUCT, iprot.readI32());
539,538
final CreateRouteTableResult executeCreateRouteTable(CreateRouteTableRequest createRouteTableRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createRouteTableRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
endClientExecution(awsRequestMetrics, request, response);
861,354
protected void requestAttention(SideBarEntrySWT entry) {<NEW_LINE>synchronized (attention_seekers) {<NEW_LINE>if (!attention_seekers.contains(entry)) {<NEW_LINE>attention_seekers.add(entry);<NEW_LINE>}<NEW_LINE>if (attention_event == null) {<NEW_LINE>attention_event = SimpleTimer.addPeriodicEvent("SideBar:attention", S...
SideBarEntrySWT entry = it.next();
40,214
public final void moduleName() throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>AST moduleName_AST = null;<NEW_LINE>switch(LA(1)) {<NEW_LINE>case CONSTANT:<NEW_LINE>{<NEW_LINE>AST tmp379_AST = null;<NEW_LINE>tmp379_AST = astFactory.crea...
.create(LT(1));
1,616,208
public void testAsyncInvoker_postConnectionTimeout(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String target = null;<NEW_LINE>if (isZOS()) {<NEW_LINE>// https://stackoverflow.com/a/904609/6575578<NEW_LINE>target = "http://example.com:81";<NEW_LINE>} else {<NEW_LINE>// Connect to telnet port - which should ...
Long.toString(SLEEP)));
1,343,593
/* Note that it must never produce a direct access to the targetEnclosingType,<NEW_LINE>* but instead a field sequence (this$2.this$1.this$0) so as to handle such a test case:<NEW_LINE>*<NEW_LINE>* class XX {<NEW_LINE>* void foo() {<NEW_LINE>* class A {<NEW_LINE>* class B {<NEW_LINE>* class C {<NEW_LINE>* boo...
long compliance = compilerOptions().complianceLevel;
1,732,335
private void addValueOfDataType(TSDataType dataType, int rowIndex, int indexOfSchema, Object value) {<NEW_LINE>if (value == null) {<NEW_LINE>// init the bitMap to mark null value<NEW_LINE>if (bitMaps == null) {<NEW_LINE>bitMaps = new BitMap[values.length];<NEW_LINE>}<NEW_LINE>if (bitMaps[indexOfSchema] == null) {<NEW_L...
boolean[]) values[indexOfSchema];
922,060
public <T> Message serialize(T object) {<NEW_LINE>Objects.requireNonNull(object, "'object' to serialize cannot be null.");<NEW_LINE>if (!(object instanceof EventData)) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException("Cannot serialize object that is not EventData. Class: " + object.getClass()));...
final EventData eventData = (EventData) object;
1,658,335
// //////////////Following are transform of input data.<NEW_LINE>private static <IN, O> DataSet<O> mapInputOperation(DataSet<IN> inputData, DataSet<Tuple2<String, Long>> nodeMapping, TransformInputOperation func0, TransformInputOperation func1, TransformInputOperation func2) {<NEW_LINE>int operationNum = 1 + (func1 == ...
inputData, nodeMapping, func0, 0);
673,761
public NBTTagCompound serialize() {<NEW_LINE>NBTTagCompound nbt = new NBTTagCompound();<NEW_LINE>nbt.setString("player", player);<NEW_LINE>nbt.setInteger("inspiration", inspiration);<NEW_LINE>nbt.setInteger("inspirationStart", inspirationStart);<NEW_LINE>nbt.setInteger("placedCards", placedCards);<NEW_LINE>nbt.setInteg...
nbt.setInteger("penaltyStart", penaltyStart);
1,143,928
public ListDatasetsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListDatasetsResult listDatasetsResult = new ListDatasetsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.get...
String currentParentElement = context.getCurrentParentElement();
1,132,654
private void checkForUsagesOutsideOfType(final Element target, TreePath currentPath, TreePathHandle elementBeingMoved) {<NEW_LINE>final Types types = workingCopy.getTypes();<NEW_LINE>TypeMirror targetType = target.asType();<NEW_LINE>TreePath enclosingPath = JavaRefactoringUtils.findEnclosingClass(workingCopy, currentPa...
put(elementBeingMoved, Boolean.TRUE);
1,216,735
private void fillCacheFromInvalidatedRows(Range maxCacheRange) {<NEW_LINE>if (invalidatedRows == null || invalidatedRows.isEmpty()) {<NEW_LINE>// No old invalid cache available<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Range potentialCache = maxCacheRange.partitionWith(cached)[2];<NEW_LINE>int start = potentialCache.getStar...
row = invalidatedRows.get(i);
1,805,311
private static void tryAssertion3StreamKeyRangeCoercion(RegressionEnvironment env, AtomicInteger milestone, String epl, boolean isHasRangeReversal) {<NEW_LINE>env.compileDeployAddListenerMile(epl, "s0", milestone.getAndIncrement());<NEW_LINE>env.sendEventBean(new SupportBean("G", -1));<NEW_LINE>env.sendEventBean(new Su...
new SupportBean_ST0("ST01", 0L));
679,927
private void initializePage() {<NEW_LINE>Resource.clearCache();<NEW_LINE>// documentUpdated event is not delivered when no node information<NEW_LINE>// was sent to the client => requesting document node to make sure<NEW_LINE>// that we obtain next documentUpdated event (that we need to be able<NEW_LINE>// to reinitiali...
getRuntime().evaluate(initScript);
709,565
public SolrQueryResponse query(SolrQueryRequest req) throws SolrException {<NEW_LINE>final long startTime = System.currentTimeMillis();<NEW_LINE>// during the solr query we set the thread name to the query string to get more debugging info in thread dumps<NEW_LINE>final String threadname = Thread.currentThread().getNam...
StandardCharsets.UTF_8.name());
55,219
public static void main(String... args) {<NEW_LINE>Gson parser = gsonb.create();<NEW_LINE>IntegrationInput input = parser.fromJson(new InputStreamReader(System.in), IntegrationInput.class);<NEW_LINE>ClassLoader old = Thread<MASK><NEW_LINE>PrintStream oldout = System.out;<NEW_LINE>String output = "";<NEW_LINE>boolean ok...
.currentThread().getContextClassLoader();
65,021
public void stop() {<NEW_LINE>stopping = true;<NEW_LINE>taskExecutor.shutdown();<NEW_LINE>List<ListenableFuture<Void>> shutdownFutures = new ArrayList<>();<NEW_LINE>synchronized (tasks) {<NEW_LINE>for (ThreadingTaskRunnerWorkItem taskWorkItem : tasks.values()) {<NEW_LINE>shutdownFutures.add(scheduleTaskShutdown(taskWor...
LOGGER.info("Waiting up to %,dms for shutdown.", gracefulShutdownMillis);
1,490,949
public SchedulerFactoryBean schedulerFactoryBean() {<NEW_LINE>SchedulerFactoryBean factory = new SchedulerFactoryBean();<NEW_LINE>if (this.getClass().getClassLoader().getResource("processor.properties") != null) {<NEW_LINE>String fileUtl = this.getClass().getClassLoader().getResource("processor.properties").getPath();<...
quartzPropertie.setProperty("org.quartz.jobStore.clusterCheckinInterval", "20000");
936,027
public boolean generate(NodeLIRBuilder builder, int index, Node node, Block block, StructuredGraph.ScheduleResult schedule) {<NEW_LINE>DebugContext debug = node.getDebug();<NEW_LINE>assert index == schedule.getBlockToNodesMap().get(block).indexOf(node);<NEW_LINE>// Check that the basic shape matches<NEW_LINE>Result res...
), generatorMethod.getName());
256,219
// PUT /api/admin/dict/protwords/setting/{dictId}<NEW_LINE>@Execute<NEW_LINE>public JsonResponse<ApiResult> put$setting(final String dictId, final CreateBody body) {<NEW_LINE>body.dictId = dictId;<NEW_LINE>validateApi(body, messages -> {<NEW_LINE>});<NEW_LINE>body.crudMode = CrudMode.CREATE;<NEW_LINE>final ProtwordsIte...
-> messages.addErrorsCrudFailedToCreateInstance(GLOBAL));
187,044
public Map<String, ModelsMap> postProcessAllModels(Map<String, ModelsMap> objs) {<NEW_LINE>Map<String, ModelsMap> result = super.postProcessAllModels(objs);<NEW_LINE>for (ModelsMap entry : result.values()) {<NEW_LINE>for (ModelMap mo : entry.getModels()) {<NEW_LINE>CodegenModel cm = mo.getModel();<NEW_LINE>if (taggedUn...
imports.add(child.classname);