idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
18,852
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>String storeName = request.getParameter("store");<NEW_LINE>String format = request.getParameter("format");<NEW_LINE>if ("json".equals(format)) {<NEW_LINE>outputJSON(response);<NEW_LINE>return;<...
response.sendError(HttpServletResponse.SC_BAD_REQUEST);
482,101
private static Explanation parseExplanation(XContentParser parser) throws IOException {<NEW_LINE>ensureExpectedToken(XContentParser.Token.START_OBJECT, parser.currentToken(), parser::getTokenLocation);<NEW_LINE>XContentParser.Token token;<NEW_LINE>Float value = null;<NEW_LINE>String description = null;<NEW_LINE>List<Ex...
parser.getTokenLocation(), "missing explanation description");
801,176
public List<FileUploadPartEntity> beginUpload(String path, BeginUploadPathBody body) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'path' is set<NEW_LINE>if (path == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'path' when callin...
String[] localVarContentTypes = { "application/json" };
572,368
private ExceptionResponse summarizeException(ExceptionResponse response1) {<NEW_LINE>Map<String, ExceptionDatum> <MASK><NEW_LINE>for (ExceptionDatum edp : response1.getExceptionDatapointList()) {<NEW_LINE>// Get classname by splitting on first colon<NEW_LINE>int pos = edp.getStackTrace().indexOf(':');<NEW_LINE>if (pos ...
exceptionSummary = new HashMap<>();
1,681,747
private static void writeTransactionThread(ThreadDump.Transaction transaction, JsonGenerator jg) throws IOException {<NEW_LINE>jg.writeStartObject();<NEW_LINE>jg.writeStringField("traceId", transaction.getTraceId());<NEW_LINE>jg.writeStringField(<MASK><NEW_LINE>jg.writeStringField("transactionType", transaction.getTran...
"headline", transaction.getHeadline());
642,864
private static DirectedGraph<?> loadAltGraph(String className, Body b) {<NEW_LINE>try {<NEW_LINE>Class<?> graphClass = AltClassLoader.v().loadClass(className);<NEW_LINE>Constructor<?> constructor = graphClass.getConstructor(Body.class);<NEW_LINE>DirectedGraph<?> result = (DirectedGraph<?>) constructor.newInstance(b);<N...
e.getMessage(), e);
1,671,866
final UpdateApplicationResult executeUpdateApplication(UpdateApplicationRequest updateApplicationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateApplicationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,405,413
private Mono<PagedResponse<DeviceInner>> listSinglePageAsync(Integer limit, String skipToken, ManagementState deviceManagementType, 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 ...
this.client.mergeContext(context);
1,468,950
public void menuAboutToShow(IMenuManager manager) {<NEW_LINE>manager.appendToGroup(DashboardView.INFO_MENU_GROUP_NAME, new LabelOnly(getReportingPeriod().toString()));<NEW_LINE>MenuManager subMenu = new MenuManager(Messages.LabelReportingPeriod);<NEW_LINE>subMenu.add(new LabelOnly(reportingPeriod != null ? getReporting...
getDefaultReportingPeriods().add(rp);
142,229
private void headerExpression(ParserContext parserContext, ManagedMap<String, Object> expressions, ManagedMap<String, Object> nullResultHeaderExpressions, Element subElement, String name, String valueElementValue, boolean hasAttributeValue, boolean hasAttributeExpression, boolean hasAttributeNullResultExpression) {<NEW...
IntegrationNamespaceUtils.createExpressionDefIfAttributeDefined("null-result-expression", subElement);
1,389,913
public void deleteByIdWithResponse(String id, Context context) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missin...
Utils.getValueFromIdByName(id, "tagRules");
468,897
public static void attestationOptionsSnippets() {<NEW_LINE>BinaryData sgxQuote = null;<NEW_LINE>// BEGIN: com.azure.security.attestation.models..fromEvidence#byte<NEW_LINE>AttestationOptions options = new AttestationOptions(sgxQuote);<NEW_LINE>// END: com.azure.security.attestation.models..fromEvidence#byte<NEW_LINE>Bi...
(inittimeData, AttestationDataInterpretation.BINARY));
1,512,383
private static final void exportIndex0(InformationSchema result, Table<?> t, Index index) {<NEW_LINE>org.jooq.util.xml.jaxb.Index i = new org.jooq.util.xml.jaxb.Index();<NEW_LINE>String catalogName = catalogName(t);<NEW_LINE>String schemaName = schemaName(t);<NEW_LINE>if (!isBlank(catalogName))<NEW_LINE>i.withIndexCata...
(catalogName).withTableCatalog(catalogName);
573,617
public com.amazonaws.services.codedeploy.model.MultipleIamArnsProvidedException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codedeploy.model.MultipleIamArnsProvidedException multipleIamArnsProvidedException = new com.amazonaws.services.codedeploy.model.Multi...
String currentParentElement = context.getCurrentParentElement();
36,459
private void declareBindings(final Channel channel, final Binding... bindings) throws IOException {<NEW_LINE>for (Binding binding : bindings) {<NEW_LINE>if (this.logger.isDebugEnabled()) {<NEW_LINE>this.logger.debug("Binding destination [" + binding.getDestination() + " (" + binding.getDestinationType() + ")] to exchan...
logOrRethrowDeclarationException(binding, "binding", e);
1,577,019
public DescribeElasticGpusResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeElasticGpusResult describeElasticGpusResult = new DescribeElasticGpusResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isSta...
().unmarshall(context));
150,116
protected static void updateExtractRule(AnnotationExtractRule r, Env env, String expr, Expression action, Expression result) {<NEW_LINE>final MatchedExpression.SingleAnnotationExtractor annotationExtractor = createAnnotationExtractor(env, r);<NEW_LINE>Pattern pattern = env.getStringPattern(expr);<NEW_LINE>StringMatchRe...
StringMatchResultExtractor(env, action, result);
1,828,249
private void insert(int indexObs, int K, double xk) {<NEW_LINE>int start = 27 * 4 * indexObs + 9 * K;<NEW_LINE>// i = 1, l = 1<NEW_LINE>int indexT33 = 8;<NEW_LINE>int indexTi3 = 2;<NEW_LINE>int indexT3l = 6;<NEW_LINE>int indexTil = 0;<NEW_LINE>A.data[start + indexT33] = xk * p2_norm.x * p3_norm.x;<NEW_LINE>A.data[start...
* p2_norm.y * p3_norm.x;
411,066
private static ListPopup createMainPopup(@Nonnull DataContext context, @Nonnull Runnable disposeCallback) {<NEW_LINE>ActionGroup.Builder group = ActionGroup.newImmutableBuilder();<NEW_LINE>for (SettingsEntryPointActionProvider provider : SettingsEntryPointActionProvider.EP_NAME.getExtensionList()) {<NEW_LINE>Collection...
Presentation presentation = action.getTemplatePresentation();
1,193,556
public boolean apply(Game game, Ability source) {<NEW_LINE>Permanent permanent = getTargetPointer().getFirstTargetPermanentOrLKI(game, source);<NEW_LINE>if (permanent != null) {<NEW_LINE>CreateTokenCopyTargetEffect effect = new <MASK><NEW_LINE>effect.setTargetPointer(targetPointer);<NEW_LINE>effect.apply(game, source);...
CreateTokenCopyTargetEffect(permanent.getControllerId());
1,157,196
private OptionalDouble residualVariance(int n, Array2DRowRealMatrix x, Array2DRowRealMatrix y, Array2DRowRealMatrix z) {<NEW_LINE>if (n == 1) {<NEW_LINE>return OptionalDouble.of(statistics.stats[3 * N - 1] - statistics.stats[2 * N - 1] * statistics.stats[2 * N - 1]);<NEW_LINE>}<NEW_LINE>for (int i = 0; i < n; ++i) {<NE...
transpose().multiply(r);
94,192
public void marshall(CreateScheduledQueryRequest createScheduledQueryRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createScheduledQueryRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(cre...
createScheduledQueryRequest.getClientToken(), CLIENTTOKEN_BINDING);
425,677
public void scheduleJob(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, DotIndexException {<NEW_LINE>Map<String, String[]> map = request.getParameterMap();<NEW_LINE>String date = DateUtil.getCurrentDate();<NEW_LINE>SiteSearchConfig config = new SiteSearchConfig();<NEW_LIN...
response, e.getMessage());
1,163,836
public ResourceInterceptorsBuildItem buildResourceInterceptors(List<ResourceInterceptorsContributorBuildItem> scanningTasks, ApplicationResultBuildItem applicationResultBuildItem, BuildProducer<AdditionalBeanBuildItem> additionalBeanBuildItemBuildProducer, List<WriterInterceptorBuildItem> writerInterceptors, List<Reade...
Builder beanBuilder = AdditionalBeanBuildItem.builder();
1,144,376
public void serialize(ErrorResource value, JsonGenerator gen, SerializerProvider serializers) throws IOException, JsonProcessingException {<NEW_LINE>Map<String, List<String>> json = new HashMap<>();<NEW_LINE>gen.writeStartObject();<NEW_LINE>gen.writeObjectFieldStart("errors");<NEW_LINE>for (FieldErrorResource fieldErro...
writeArrayFieldStart(pair.getKey());
500,159
public static int romanToInt(String romanNumber) {<NEW_LINE>if (!romanNumber.matches("[IVXLCDM]+")) {<NEW_LINE>// Not a roman number<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>String num = "IVXLCDM";<NEW_LINE>int[] value = { 1, 5, 10, 50, 100, 500, 1000 };<NEW_LINE>int sum = 0;<NEW_LINE>for (int i = romanNumber.length() - 1; ...
throw new NumberFormatException("Not a roman number: " + romanNumber);
1,693,537
public List<Comic> parseCategory(String html, int page) {<NEW_LINE>List<Comic> list = new LinkedList<>();<NEW_LINE>Node body = new Node(html);<NEW_LINE>int total = Integer.parseInt(StringUtils.match("\\d+", body.list("div.phan-trang > a").get(4).href(), 0));<NEW_LINE>if (page <= total) {<NEW_LINE>for (Node node : body....
, cover, update, author));
344,725
public static String forXmlTag(String intag) {<NEW_LINE>if (XMLChar.isValidName(intag) || LangUtils.isEmpty(intag)) {<NEW_LINE>return intag;<NEW_LINE>}<NEW_LINE>StringBuilder sb = new StringBuilder(intag.length());<NEW_LINE>sb.append(intag);<NEW_LINE>char c;<NEW_LINE>for (int i = sb.length() - 1; i >= 0; i--) {<NEW_LIN...
sb.insert(0, '_');
1,637,031
public List<String> expendUnitToUnit(List<String> unitList) throws Exception {<NEW_LINE>List<String> unitIds = new ArrayList<>();<NEW_LINE>List<String> expendUnitIds = new ArrayList<>();<NEW_LINE>if (ListTools.isNotEmpty(unitList)) {<NEW_LINE>for (String s : unitList) {<NEW_LINE>Unit u = this.unit().pick(s);<NEW_LINE>i...
trim(expendUnitIds, true, true);
713,979
private void createNewConstructor() {<NEW_LINE>// the constructor name has to be <init><NEW_LINE>String uniqueName = "<init>";<NEW_LINE>// NOTICE args of this constructor are argsOne followed by the<NEW_LINE>// DavaSuperHandler<NEW_LINE>List args = new ArrayList();<NEW_LINE>args.addAll(argsOneTypes);<NEW_LINE>// create...
("DavaSuperHandler")).getType();
411,269
public void addRecipes(Consumer<FinishedRecipe> consumer) {<NEW_LINE>String basePath = "factory/";<NEW_LINE>String basicPath = basePath + "basic/";<NEW_LINE>String advancedPath = basePath + "advanced/";<NEW_LINE>String elitePath = basePath + "elite/";<NEW_LINE>String ultimatePath = basePath + "ultimate/";<NEW_LINE>TagK...
getFactory(FactoryTier.ADVANCED, type);
434,526
private void updateForeignPluginLabel(AbstractMessage message) {<NEW_LINE>if (message != null) {<NEW_LINE>final Throwable throwable = message.getThrowable();<NEW_LINE>ErrorReportSubmitter submitter = getSubmitter(throwable);<NEW_LINE>if (submitter == null) {<NEW_LINE>PluginId pluginId = findFirstPluginId(throwable);<NE...
String contactInfo = plugin.getVendorUrl();
153,632
private void parseRegularKeyShare(KeyShareExtensionMessage msg) {<NEW_LINE>LOGGER.debug("Parsing KeyShareExtensionMessage as regular KeyShareExtension");<NEW_LINE>parseKeyShareListLength(msg);<NEW_LINE>if (msg.getKeyShareListLength().getValue() + ExtensionByteLength.KEY_SHARE_LIST_LENGTH == msg.getExtensionLength().get...
getPointer() - ExtensionByteLength.KEY_SHARE_LIST_LENGTH);
1,237,023
public int delete(Uri uri, String selection, String[] selectionArgs) {<NEW_LINE>if (uri == null) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>String fileUuidFromUri = uri.getLastPathSegment();<NEW_LINE>if (fileUuidFromUri != null) {<NEW_LINE>selection = DatabaseUtil.concatenateWhere(selection, TemporaryFileColumns.COLUMN_U...
new String[] { fileUuidFromUri });
1,513,400
public void addGraph(Graph graph, boolean joinBlankNodes) throws IOException, AccessDeniedException {<NEW_LINE>Map bNodesMap = null;<NEW_LINE>ValueFactory factory = null;<NEW_LINE>if (!joinBlankNodes) {<NEW_LINE>bNodesMap = new HashMap();<NEW_LINE>factory = getValueFactory();<NEW_LINE>}<NEW_LINE>StatementIterator iter ...
Resource) bNodesMap.get(bNodeId);
100,908
public DescribePatchBaselinesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribePatchBaselinesResult describePatchBaselinesResult = new DescribePatchBaselinesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentPar...
class).unmarshall(context));
711,244
private void showRemoteRotateMenu() {<NEW_LINE>PopupMenu popupMenu = new PopupMenu(<MASK><NEW_LINE>popupMenu.getMenuInflater().inflate(R.menu.renderparams_rotate, popupMenu.getMenu());<NEW_LINE>popupMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public bo...
this, mLLRemoteRotate, Gravity.TOP);
1,557,808
private RequestFormatType negotiateProtocol(InputStream input, OutputStream output) throws IOException {<NEW_LINE>input.mark(3);<NEW_LINE>byte[] protoBytes = new byte[3];<NEW_LINE><MASK><NEW_LINE>RequestFormatType requestFormat;<NEW_LINE>try {<NEW_LINE>String proto = ByteUtils.getString(protoBytes, "UTF-8");<NEW_LINE>r...
ByteUtils.read(input, protoBytes);
964,019
public void run() {<NEW_LINE>boolean compressed = (mode & EFILE_COMPRESSED) > 0;<NEW_LINE>if (compressed && log.isLoggable(Level.FINE)) {<NEW_LINE>log.fine("EFile.open_compressed " + file_name);<NEW_LINE>}<NEW_LINE>boolean append = (mode & EFILE_MODE_APPEND) > 0;<NEW_LINE>if ((mode & ~(EFILE_MODE_APPEND | EFILE_MODE_RE...
Level.WARNING, "failed to open file", e);
208,276
public static <T> T deepCopy(T value, JAXBContext jc) {<NEW_LINE>if (value == null) {<NEW_LINE>throw new IllegalArgumentException("Can't clone a null argument");<NEW_LINE>}<NEW_LINE>JAXBElement<T> elem;<NEW_LINE>try {<NEW_LINE>if (value instanceof JAXBElement<?>) {<NEW_LINE>Object wrapped = ((JAXBElement) value).getVal...
= new JAXBSource(jc, contentObject);
588,137
public static String[] splitOnToken(String receiver, String token, int limit) {<NEW_LINE>// Check if it's even possible to perform a split<NEW_LINE>if (receiver == null || receiver.length() == 0 || token == null || token.length() == 0 || receiver.length() < token.length()) {<NEW_LINE>return new String[] { receiver };<N...
= idx + token.length();
8,686
public Request<ModifyEventSubscriptionRequest> marshall(ModifyEventSubscriptionRequest modifyEventSubscriptionRequest) {<NEW_LINE>if (modifyEventSubscriptionRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ModifyEventSubscriptionRequest> r...
(modifyEventSubscriptionRequest.getSnsTopicArn()));
71,926
private Object parseRpcProxyAnnotation(RpcProxy rpcProxy, Class serviceInterface, DefaultListableBeanFactory beanFactory) throws Exception {<NEW_LINE>RpcProxyFactoryBean rpcProxyFactoryBean;<NEW_LINE>String factoryBeanName = "&" + serviceInterface.getSimpleName();<NEW_LINE>try {<NEW_LINE>rpcProxyFactoryBean = beanFacto...
getBean(factoryBeanName, RpcProxyFactoryBean.class);
446,571
public void actionPerformed(ActionEvent e) {<NEW_LINE>if (e.getActionCommand().equals("annotate")) {<NEW_LINE>annotate(annotationList.getSelectedIndex() == 0);<NEW_LINE>} else if (e.getActionCommand().equals("Settings")) {<NEW_LINE>PreferencesFrame.showFPGAPreferences();<NEW_LINE>} else if (e.getActionCommand().equals(...
MyBoardInformation.fpga.getVendor());
1,715,282
public void initialise(List<String> nodeAddresses) {<NEW_LINE>synchronized (lock) {<NEW_LINE>if (enabled.compareAndSet(false, true)) {<NEW_LINE>startScheduler(nodeAddresses.size() + 1);<NEW_LINE>} else {<NEW_LINE>scheduler.setCorePoolSize(nodeAddresses.size() + 1);<NEW_LINE>}<NEW_LINE>List<String> newNodeAddresses = ne...
= new ArrayList<>(processors);
1,210,314
private FileTransportStatusEntity addFileTransportRecord(UploadChunkParam chunkParam) {<NEW_LINE>FileTransportStatusEntity status = transportStatusRepository.queryByBrokerIdAndGroupIdAndTopicNameAndFileName(chunkParam.getBrokerId(), chunkParam.getFileChunksMeta().getGroupId(), chunkParam.getFileChunksMeta().getTopic(),...
getFileChunksMeta().getGroupId());
928,029
public static SargableConditionInference infer(SubqueryWrapperLabel wrapperLabel, List<RexNode> predicates, List<RelDataTypeField> fields, ExtractorContext context) {<NEW_LINE>final RelOptCluster cluster = wrapperLabel.getRel().getCluster();<NEW_LINE>final RelDataType rowType = RelUtils.buildRowType(fields, cluster);<N...
collect(Collectors.toList());
1,360,978
public void marshall(AssessmentMetadataItem assessmentMetadataItem, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (assessmentMetadataItem == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>pr...
assessmentMetadataItem.getName(), NAME_BINDING);
1,834,374
public static void convertDataPropertiesToJson(List<ValuedDataObject> dataObjects, ObjectNode propertiesNode) {<NEW_LINE>ObjectNode dataPropertiesNode = objectMapper.createObjectNode();<NEW_LINE>ArrayNode itemsNode = objectMapper.createArrayNode();<NEW_LINE>for (ValuedDataObject dObj : dataObjects) {<NEW_LINE>ObjectNod...
(dObjValue).toString("yyyy-MM-dd'T'hh:mm:ss");
133,385
protected DateControl createControl() {<NEW_LINE>monthView = new MonthView();<NEW_LINE>CalendarSource calendarSource = new CalendarSource();<NEW_LINE>HelloCalendar calendar1 = new HelloCalendar(monthView.getYearMonth());<NEW_LINE>HelloCalendar calendar2 = new HelloCalendar(monthView.getYearMonth());<NEW_LINE>HelloCalen...
calendar2.setStyle(Style.STYLE2);
1,049,794
public void deleteApiDefinition(String organizationId, String apiId, String version) throws OrganizationNotFoundException, ApiVersionNotFoundException, NotAuthorizedException {<NEW_LINE>securityContext.checkPermissions(PermissionType.apiEdit, organizationId);<NEW_LINE>try {<NEW_LINE>storage.beginTx();<NEW_LINE>ApiVersi...
setModifiedBy(securityContext.getCurrentUser());
925,639
private void createQtyReportEvent(final IContextAware context, final I_PMM_Product pmmProduct, final SyncProductSupply syncProductSupply) {<NEW_LINE>logger.debug("Creating QtyReport event from {} ({})", syncProductSupply, pmmProduct);<NEW_LINE>final List<String> errors = new ArrayList<>();<NEW_LINE>final I_PMM_QtyRepor...
newInstance(I_PMM_QtyReport_Event.class, context);
338,777
public PointSensitivityBuilder rateSensitivity(OvernightAveragedDailyRateComputation computation, LocalDate startDate, LocalDate endDate, RatesProvider provider) {<NEW_LINE><MASK><NEW_LINE>OvernightIndexRates rates = provider.overnightIndexRates(index);<NEW_LINE>LocalDate lastFixingDate = computation.getEndDate();<NEW_...
OvernightIndex index = computation.getIndex();
1,253,186
public void print(StringBuilder toStringBuilder) {<NEW_LINE>toStringBuilder.append("MailConfiguration: [");<NEW_LINE>toStringBuilder.append<MASK><NEW_LINE>toStringBuilder.append(", jndiName=").append(jndiName);<NEW_LINE>toStringBuilder.append(", enabled=").append(enabled);<NEW_LINE>toStringBuilder.append(", storeProtoc...
("description=").append(description);
1,456,624
final UpdatePhoneNumberSettingsResult executeUpdatePhoneNumberSettings(UpdatePhoneNumberSettingsRequest updatePhoneNumberSettingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updatePhoneNumberSettingsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
(super.beforeMarshalling(updatePhoneNumberSettingsRequest));
1,704,523
public static GetLindormInstanceResponse unmarshall(GetLindormInstanceResponse getLindormInstanceResponse, UnmarshallerContext _ctx) {<NEW_LINE>getLindormInstanceResponse.setRequestId(_ctx.stringValue("GetLindormInstanceResponse.RequestId"));<NEW_LINE>getLindormInstanceResponse.setVpcId(_ctx.stringValue("GetLindormInst...
(_ctx.stringValue("GetLindormInstanceResponse.ZoneId"));
1,565,383
public static void partialReduceFloatAdd(float[] inputArray, float[] outputArray, int gidx) {<NEW_LINE>float[] localArray = (float[]) NewArrayNode.newUninitializedArray(float.class, LOCAL_WORK_GROUP_SIZE);<NEW_LINE>int localIdx = PTXIntrinsics.get_local_id(0);<NEW_LINE>int localGroupSize = PTXIntrinsics.get_local_size(...
+ 1] = localArray[0];
1,105,997
public RuleResult execute(final Map<String, String> ruleParam, Map<String, String> resourceAttributes) {<NEW_LINE>logger.debug("========ACMCertificateExpiryRule started=========");<NEW_LINE>Annotation annotation = null;<NEW_LINE>Date validTo = null;<NEW_LINE>String expiredDate = resourceAttributes.get("expirydate");<NE...
ruleParam.get(PacmanRuleConstants.SEVERITY);
63,209
public void truncateAndFlush(Context ctx, long timestamp) {<NEW_LINE>MessageTree tree = ctx.m_tree;<NEW_LINE>Stack<Transaction> stack = ctx.m_stack;<NEW_LINE>Message message = tree.getMessage();<NEW_LINE>if (message instanceof DefaultTransaction) {<NEW_LINE><MASK><NEW_LINE>if (id == null) {<NEW_LINE>id = nextMessageId(...
String id = tree.getMessageId();
712,485
void afterTypeDiscovery(@Observes AfterTypeDiscovery event, BeanManager bm) {<NEW_LINE>event.addAnnotatedType(bm.createAnnotatedType(AfterTypeInterface.class), <MASK><NEW_LINE>event.addAnnotatedType(bm.createAnnotatedType(AfterTypeBean.class), AfterTypeBean.class.getName());<NEW_LINE>event.addAnnotatedType(bm.createAnn...
AfterTypeInterface.class.getName());
744,867
private void postponeFormatting(@Nonnull FileViewProvider viewProvider, @Nonnull ASTNode child) {<NEW_LINE>if (!CodeEditUtil.isNodeGenerated(child) && child.getElementType() != TokenType.WHITE_SPACE) {<NEW_LINE>final int <MASK><NEW_LINE>LOG.assertTrue(oldIndent >= 0, "for not generated items old indentation must be def...
oldIndent = CodeEditUtil.getOldIndentation(child);
1,389,759
private static void addTorRules(List<String> cmds, List<Integer> uids, Boolean whitelist, Boolean ipv6) {<NEW_LINE>for (Integer uid : uids) {<NEW_LINE>if (uid != null && uid >= 0) {<NEW_LINE>if (G.enableInbound() || ipv6) {<NEW_LINE>cmds.add("-A " + AFWALL_CHAIN_NAME + "-tor-reject -m owner --uid-owner " + uid + " -j a...
uid + " -j " + AFWALL_CHAIN_NAME + "-tor-filter");
1,130,056
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = new String[] { "fZero()", "fOne(t)", "fTwo(t,t)", "fThree(t,t)" };<NEW_LINE>String eplDeclared = "@Name('s0') " + "expression fZero {10} " + "expression fOne {x => x.intPrimitive} " + "expression fTwo {(x,y) => x.intPrimitive+y.intPrimitive} " + "e...
+ NEWLINE + "select fZero(), fOne(t), fTwo(t,t), fThree(t,t)" + NEWLINE + "from SupportBean as t";
372,477
public void run() {<NEW_LINE>try {<NEW_LINE>final InputStream istream = this.getClass().getResourceAsStream("/iris.csv");<NEW_LINE>if (istream == null) {<NEW_LINE><MASK><NEW_LINE>System.exit(1);<NEW_LINE>}<NEW_LINE>final DataSet ds = DataSet.load(istream);<NEW_LINE>istream.close();<NEW_LINE>// The following ranges are ...
System.out.println("Cannot access data set, make sure the resources are available.");
1,252,949
private Arguments httpArguments(List<KeyValue> list) {<NEW_LINE>Arguments arguments = new Arguments();<NEW_LINE>list.stream().filter(KeyValue::isValid).filter(KeyValue::isEnable).forEach(keyValue -> {<NEW_LINE>try {<NEW_LINE>String value = StringUtils.isNotEmpty(keyValue.getValue()) && keyValue.getValue().startsWith("@...
)) : keyValue.getValue();
567,108
private void updateReminders() {<NEW_LINE>Context context = requireContext();<NEW_LINE>SimpleTask.run(getViewLifecycleOwner().getLifecycle(), () -> {<NEW_LINE>if (UnauthorizedReminder.isEligible(context)) {<NEW_LINE>return Optional.of(new UnauthorizedReminder(context));<NEW_LINE>} else if (ExpiredBuildReminder.isEligib...
of(new OutdatedBuildReminder(context));
588,830
public boolean sendMail(String title, String mailTemplatePath, NotificationEvent event) {<NEW_LINE>Properties props = new Properties();<NEW_LINE><MASK><NEW_LINE>props.setProperty("mail.smtp.port", smtpPort);<NEW_LINE>props.setProperty("mail.transport.protocol", "smtp");<NEW_LINE>props.setProperty("mail.smtp.auth", "tru...
props.setProperty("mail.smtp.host", smtpHost);
1,036,635
final UpdateByteMatchSetResult executeUpdateByteMatchSet(UpdateByteMatchSetRequest updateByteMatchSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateByteMatchSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,590,378
public void execute(String[] args, Console console) {<NEW_LINE>if (args.length > 0) {<NEW_LINE>String subCommand = args[0];<NEW_LINE>switch(subCommand) {<NEW_LINE>case SUBCMD_LIST:<NEW_LINE>listMetadata(console, args.length > 1 ? args[1] : null, args.length > 2 ? args[2] : null, false);<NEW_LINE>break;<NEW_LINE>case SU...
println("Unknown command '" + subCommand + "'");
1,519,283
private static AlertDialog.Builder buildDeleteFor(@NonNull Context context, @NonNull Recipient recipient, @NonNull Runnable onDelete, @NonNull Runnable onBlockAndDelete) {<NEW_LINE>final Recipient resolved = recipient.resolve();<NEW_LINE>AlertDialog.Builder builder = new MaterialAlertDialogBuilder(context);<NEW_LINE>Re...
(R.string.BlockUnblockDialog_delete_this_contact));
1,172,529
private void moveProperty(JsObject newParent, JsObject property) {<NEW_LINE>JsObject newProperty = newParent.getProperty(property.getName());<NEW_LINE>if (property.getParent() != null) {<NEW_LINE>property.getParent().getProperties().remove(property.getName());<NEW_LINE>}<NEW_LINE>if (newProperty == null) {<NEW_LINE>((J...
) property).setParent(newParent);
1,779,023
public double differentiateTwiceX1(PiecewisePolynomialResult2D pp, double x0Key, double x1Key) {<NEW_LINE>ArgChecker.notNull(pp, "pp");<NEW_LINE>int order0 = pp.getOrder()[0];<NEW_LINE>int order1 = pp.getOrder()[1];<NEW_LINE>ArgChecker.<MASK><NEW_LINE>DoubleArray knots0 = pp.getKnots0();<NEW_LINE>DoubleArray knots1 = p...
isFalse(order1 < 3, "polynomial degree of x1 < 2");
592,601
public static void destroy(String userName, String password, String appId) throws SaturnJobConsoleException {<NEW_LINE>String urlStr = SaturnEnvProperties.VIP_SATURN_DCOS_REST_URI + API_VERSION_DES + appId;<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>HttpDelete httpDelete = new HttpDelete(urlStr);<NEW_LINE>httpDelete.setHe...
CloseableHttpClient httpClient = HttpClients.createDefault();
1,080,410
public Constructor<?> constructor() {<NEW_LINE>Class<?>[] parameterTypes = new Class<?>[parameterTypeNames.length];<NEW_LINE>int index = 0;<NEW_LINE>for (String parameterTypeName : parameterTypeNames) {<NEW_LINE>if (PRIMITIVES.containsKey(parameterTypeName)) {<NEW_LINE>parameterTypes[index++] = PRIMITIVES.get(parameter...
false, type.getClassLoader());
291,936
protected void castObject(Register sourceReg, Type castType) {<NEW_LINE>TypeReference castTypeItem = DexPrinter.toTypeReference(castType);<NEW_LINE>if (sourceReg.getNumber() == destinationReg.getNumber()) {<NEW_LINE>// simplyfied case if reg numbers do not differ<NEW_LINE>stmtV.addInsn(new Insn21c(Opcode.CHECK_CAST<MAS...
, destinationReg, castTypeItem), origStmt);
902,659
public void marshall(CreateResponsePlanRequest createResponsePlanRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createResponsePlanRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createRes...
createResponsePlanRequest.getTags(), TAGS_BINDING);
1,353,693
public static DataWriter create(FileSystemContext context, long blockId, long blockSize, WorkerNetAddress address, OutStreamOptions options) throws IOException {<NEW_LINE>AlluxioConfiguration alluxioConf = context.getClusterConf();<NEW_LINE>boolean shortCircuit = alluxioConf.getBoolean(PropertyKey.USER_SHORT_CIRCUIT_EN...
alluxioConf.getBoolean(PropertyKey.USER_FILE_UFS_TIER_ENABLED);
1,261,800
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_square_widget);<NEW_LINE>boolean playing = (state & PlaybackService.FLAG_PLAYING) != 0;<NEW_LIN...
getIntent(context, PlaybackService.ACTION_NEXT_SONG);
191,082
public void dispatchLoadEvent(final long frame, final int state, String url, String contentType, double progress, int errorCode) {<NEW_LINE>final Settings settings = SettingsManager.settings();<NEW_LINE>if (settings == null) {<NEW_LINE>throw new RuntimeException("Request made after browser closed. Ignoring...");<NEW_LI...
get()).getMainFrame();
1,490,405
public <T> void addUIBlock(final int tag, final UIBlock<T> block, final Class<T> tClass) {<NEW_LINE>getContext().getNativeModule(UIManagerModule.class).addUIBlock(new abi43_0_0.com.facebook.react.uimanager.UIBlock() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void execute(NativeViewHierarchyManager nativeViewHierarc...
(tClass.cast(view));
444,303
void checkConsistency() {<NEW_LINE>for (VirtualFile file : new ArrayList<>(getVFileToViewProviderMap().keySet())) {<NEW_LINE>// complete delayed validity checks<NEW_LINE>findCachedViewProvider(file);<NEW_LINE>}<NEW_LINE>Map<VirtualFile, FileViewProvider> fileToViewProvider = new HashMap<>(getVFileToViewProviderMap());<...
assertTrue(vFile.isValid());
1,313,012
public void testCancelByException() throws Exception {<NEW_LINE>CountDownLatch beginLatch = new CountDownLatch(1);<NEW_LINE>CountDownLatch continueLatch = new CountDownLatch(1);<NEW_LINE>try {<NEW_LINE>BlockableSupplier<String> supplier = new BlockableSupplier<String>("testCancelByException", beginLatch, continueLatch)...
get(1, TimeUnit.NANOSECONDS);
913,354
private Schema buildSchema10Schema() {<NEW_LINE>Schema result = new Schema();<NEW_LINE>// create the root element<NEW_LINE>ISchemaElement root = result.<MASK><NEW_LINE>// tell schema this is the root<NEW_LINE>result.setRootElement(Element.SCHEMA.name);<NEW_LINE>// create element element and add as child of root<NEW_LIN...
createElement(Element.SCHEMA.name);
678,325
private static Optional<String> maybeChooseUncompactedTable(Map<String, Long> tableToLastTimeSwept, Map<String, Long> tableToLastTimeCompacted) {<NEW_LINE>List<String> uncompactedTables = tableToLastTimeSwept.keySet().stream().filter(table -> !tableToLastTimeCompacted.keySet().contains(table)).<MASK><NEW_LINE>if (uncom...
collect(Collectors.toList());
287,978
// </editor-fold>//GEN-END:initComponents<NEW_LINE>private void bnTestMultiUserActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_bnTestMultiUserActionPerformed<NEW_LINE>lbTestResultText.setForeground(Color.BLACK);<NEW_LINE>lbTestResultText.setText(NbBundle.getMessage(AutoIngestSettingsPanel....
testResult = MultiUserTestTool.runTest(resultsFolderPath);
1,391,980
static <T> int lastIndexOfSlice(LinearSeq<T> source, Iterable<? extends T> slice, int end) {<NEW_LINE>if (end < 0) {<NEW_LINE>return -1;<NEW_LINE>} else if (source.isEmpty()) {<NEW_LINE>return Collections.isEmpty(slice) ? 0 : -1;<NEW_LINE>} else if (Collections.isEmpty(slice)) {<NEW_LINE>final int len = source.length()...
T> _slice = toLinearSeq(slice);
173,676
private String authenticateJwt(Map<String, String> headers) {<NEW_LINE>String authHeader = (headers.get("authorization") != null) ? headers.get("authorization") : headers.get("Authorization");<NEW_LINE>if (authHeader != null) {<NEW_LINE>String idToken = authHeader.split(" ")[1];<NEW_LINE>// If the provided ID token has...
throw new ResponseStatusException(HttpStatus.UNAUTHORIZED);
623,181
public InviteAccountToOrganizationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>InviteAccountToOrganizationResult inviteAccountToOrganizationResult = new InviteAccountToOrganizationResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI...
int originalDepth = context.getCurrentDepth();
1,823,812
public ChallengeResponseType unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ChallengeResponseType challengeResponseType = new ChallengeResponseType();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token =...
String currentParentElement = context.getCurrentParentElement();
452,615
public static void validateOutputLayer(String layerName, Layer layer) {<NEW_LINE>IActivation activation;<NEW_LINE>ILossFunction loss;<NEW_LINE>long nOut;<NEW_LINE>boolean isLossLayer = false;<NEW_LINE>if (layer instanceof BaseOutputLayer && !(layer instanceof OCNNOutputLayer)) {<NEW_LINE>activation = ((BaseOutputLayer)...
CnnLossLayer) layer).getLossFn();
1,698,240
private void drainReadBuffer(int bufferIndex) {<NEW_LINE>// amount of writes to the buffer at the moment<NEW_LINE>final long bufferWriteCount = readBufferWriteCount[bufferIndex].get();<NEW_LINE>final AtomicReference<OClosableEntry<K, V>>[] buffer = readBuffers[bufferIndex];<NEW_LINE>// position of previous flush<NEW_LI...
(int) (bufferCounter & READ_BUFFER_INDEX_MASK);
969,477
public void check(ResourceCheckRule... rules) {<NEW_LINE>if (null == rules) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>AgentFeatureComponent afc = (AgentFeatureComponent) getConfigManager().getComponent("procscan", "ProcDetectAgent");<NEW_LINE>if (afc != null) {<NEW_LINE><MASK><NEW_LINE>OSProcess procState = (OSProcess) af...
String pid = JVMToolHelper.getCurrentProcId();
1,476,791
final ListConnectorEntitiesResult executeListConnectorEntities(ListConnectorEntitiesRequest listConnectorEntitiesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listConnectorEntitiesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
invoke(request, responseHandler, executionContext);
457,888
private void onEmbeddableId(EntityMetadata entityMetadata, MetamodelImpl metaModel, Table schemaTable, Object entity, Row row) throws InstantiationException, IllegalAccessException {<NEW_LINE>FieldDef fieldMetadata;<NEW_LINE>FieldValue value;<NEW_LINE>EmbeddableType embeddableType = metaModel.embeddable(entityMetadata....
.getBindableJavaType().newInstance();
515,185
public AnnotatedSaga<T> doCreateInstance(String sagaIdentifier, Supplier<T> sagaFactory) {<NEW_LINE>try {<NEW_LINE>UnitOfWork<?> unitOfWork = CurrentUnitOfWork.get(), processRoot = unitOfWork.root();<NEW_LINE>T sagaRoot = sagaFactory.get();<NEW_LINE>resourceInjector.injectResources(sagaRoot);<NEW_LINE>AnnotatedSaga<T> ...
emptySet(), sagaRoot, sagaModel);
1,550,216
public Long download(Set<Long> roids, String jsonQuery, Long serializerOid, Boolean sync) throws ServerException, UserException {<NEW_LINE>try {<NEW_LINE>String username = getAuthorization().getUsername();<NEW_LINE>DatabaseSession session = getBimServer().getDatabase().createSession(OperationType.READ_ONLY);<NEW_LINE>P...
).getPluginClassName(), true);
556,991
private void writeObject(CSVWriter csvWriter, PermissionAssistant assistant, Integer size, ResourceBundle bundle) {<NEW_LINE>MetaField userField = assistant.getMetaField();<NEW_LINE>for (MetaModel object : assistant.getObjectSet()) {<NEW_LINE>int colIndex = header.size() + 1;<NEW_LINE>String[] row = new String[size];<N...
field, row, colIndex, permName);
883,719
public RollingMaintenanceResponse createRollingMaintenanceResponse(Boolean success, String details, List<RollingMaintenanceManager.HostUpdated> hostsUpdated, List<RollingMaintenanceManager.HostSkipped> hostsSkipped) {<NEW_LINE>RollingMaintenanceResponse response = new RollingMaintenanceResponse(success, details);<NEW_L...
updated = new ArrayList<>();
1,238,410
public void run() {<NEW_LINE>String prevRev = pri.getPreviousRevision();<NEW_LINE><MASK><NEW_LINE>if (prevRev != null && showing) {<NEW_LINE>popupMenu.setVisible(false);<NEW_LINE>prevRev = prevRev.substring(0, 7);<NEW_LINE>// NOI18N<NEW_LINE>String format = loc.getString("CTL_MenuItem_ShowAnnotationsPrevious.revision")...
boolean showing = popupMenu.isShowing();
866,071
private void printStartupInfo() {<NEW_LINE>boolean corsEnabled = _config.getBoolean(WebServerConfig.WEBSERVER_HTTP_CORS_ENABLED_CONFIG);<NEW_LINE>String webApiUrlPrefix = _config.getString(WebServerConfig.WEBSERVER_API_URLPREFIX_CONFIG);<NEW_LINE>String uiUrlPrefix = _config.getString(WebServerConfig.WEBSERVER_UI_URLPR...
out.println(">> Web UI available on : " + uiUrlPrefix);