idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,478,948
public IngestConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>IngestConfiguration ingestConfiguration = new IngestConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
().unmarshall(context));
630,757
private void collectExtensionDependencies(Project project, Configuration deploymentConfiguration, Map<ArtifactKey, ResolvedDependencyBuilder> appDependencies) {<NEW_LINE>final ResolvedConfiguration rc = deploymentConfiguration.getResolvedConfiguration();<NEW_LINE>for (ResolvedArtifact a : rc.getResolvedArtifacts()) {<N...
dep.clearFlag(DependencyFlags.RELOADABLE);
1,412,050
private <T extends RemoteFile> void list(String remoteFilePath, Map<String, T> remoteFiles, Class<T> remoteFileClass) throws StorageException {<NEW_LINE>logger.log(Level.INFO, "Listing folder for files matching " + remoteFileClass.getSimpleName() + ": " + remoteFilePath);<NEW_LINE>Map<String, FileType> folderList = pat...
FileType fileType = folderListEntry.getValue();
1,388,502
/* Answer true if the method use is considered deprecated.<NEW_LINE>* An access in the same compilation unit is allowed.<NEW_LINE>*/<NEW_LINE>public final boolean isMethodUseDeprecated(MethodBinding method, Scope scope, boolean isExplicitUse, InvocationSite invocation) {<NEW_LINE>// ignore references insing Javadoc com...
.environment() : module.environment;
436,473
private static IRubyObject collectCommon(ThreadContext context, IRubyObject self, final Block block, String methodName) {<NEW_LINE>final Ruby runtime = context.runtime;<NEW_LINE>if (block.isGiven()) {<NEW_LINE>final <MASK><NEW_LINE>eachSite(context).call(context, self, self, CallBlock19.newCallClosure(self, runtime.get...
RubyArray result = runtime.newArray();
441,174
public static Document parseFromString(final HtmlUnitScriptable scriptable, final String str, final Object type) throws IOException {<NEW_LINE>if (type == null || Undefined.isUndefined(type)) {<NEW_LINE>throw Context.reportRuntimeError("Missing 'type' parameter");<NEW_LINE>}<NEW_LINE>if (MimeType.TEXT_XML.equals(type) ...
Window window = webWindow.getScriptableObject();
830,383
public float call(ItemStack stack, @Nullable ClientWorld worldIn, @Nullable LivingEntity entityIn) {<NEW_LINE>final float IDLE_FRAME_INDEX = 0.0F;<NEW_LINE>final float FULLY_CHARGED_INDEX = 1.0F;<NEW_LINE>World world = worldIn;<NEW_LINE>if (worldIn == null && entityIn != null) {<NEW_LINE>world = entityIn.world;<NEW_LIN...
chargeTicksSoFar / (double) ItemNBTAnimate.CHARGE_UP_DURATION_TICKS;
282,484
public static Scaler of(String scaler, double[] data) {<NEW_LINE>if (scaler == null || scaler.isEmpty())<NEW_LINE>return null;<NEW_LINE>scaler = scaler.trim().toLowerCase(Locale.ROOT);<NEW_LINE>if (scaler.equals("minmax")) {<NEW_LINE>return Scaler.minmax(data);<NEW_LINE>}<NEW_LINE>Pattern winsor = Pattern.compile(Strin...
m = standardizer.matcher(scaler);
883,841
private void run(String[] argv) throws Exception {<NEW_LINE>MaxwellBootstrapUtilityConfig config = new MaxwellBootstrapUtilityConfig(argv);<NEW_LINE>if (config.log_level != null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>ConnectionPool connectionPool = getConnectionPool(config);<NEW_LINE>ConnectionPool replConnectionPool =...
Logging.setLevel(config.log_level);
1,734,465
public void buy() {<NEW_LINE>mSession = new Session();<NEW_LINE>mSession.addOnJoinListener(this::onJoin);<NEW_LINE>mSession.addOnLeaveListener(this::onLeave);<NEW_LINE>mSession.addOnDisconnectListener(this::onDisconnected);<NEW_LINE>ECKeyPair keyPair = ECKeyPair.create(Numeric.hexStringToByteArray(MEMBER_ETH_KEY));<NEW...
create(keyPair).getAddress();
451,144
protected Map<String, Object> loadParams(MenuItem item) {<NEW_LINE>Element descriptor = item.getDescriptor();<NEW_LINE>if (descriptor == null) {<NEW_LINE>return Collections.emptyMap();<NEW_LINE>}<NEW_LINE>ImmutableMap.Builder<String, Object> builder = ImmutableMap.builder();<NEW_LINE>for (Element element : descriptor.e...
.attributeValue("name"), booleanValue);
307,240
private void validateGELFMessage(JsonNode jsonNode, UUID id, ResolvableInetSocketAddress remoteAddress) {<NEW_LINE>final String prefix = "GELF message <" + id + "> " + (remoteAddress == null ? "" : "(received from <" + remoteAddress + ">) ");<NEW_LINE>final JsonNode hostNode = jsonNode.path("host");<NEW_LINE>if (hostNo...
"has invalid \"short_message\": " + shortMessageNode.asText());
298,580
protected void init() {<NEW_LINE>setTitle(Msg.translate(Env.getCtx(), "C_DocType_ID"));<NEW_LINE>// North<NEW_LINE>parameterPanel.setLayout(new MigLayout("fill", "", "[50][50][]"));<NEW_LINE>parameterPanel.setBorder(new TitledBorder(Msg.getMsg(ctx, "Query")));<NEW_LINE>//<NEW_LINE>CLabel lname = new CLabel(Msg.translat...
s_sqlFrom, s_sqlWhere, false, "C_DocType");
834,779
public SizeConstraintSetUpdate unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SizeConstraintSetUpdate sizeConstraintSetUpdate = new SizeConstraintSetUpdate();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI...
JsonToken token = context.getCurrentToken();
1,759,336
public double[][] chooseInitialMeans(Relation<? extends NumberVector> relation, int k, NumberVectorDistance<?> distance) {<NEW_LINE>double[][] minmax = RelationUtil.computeMinMax(relation);<NEW_LINE>final int dim = minmax[0].length;<NEW_LINE>double[] min = minmax[0], scale = minmax[1];<NEW_LINE>for (int d = 0; d < dim;...
Random random = rnd.getSingleThreadedRandom();
675,265
static <T> void handleOldApiRequest(final Server server, final RoutingContext routingContext, final Class<T> requestClass, final Optional<MetricsCallbackHolder> metricsCallbackHolder, final BiFunction<T, ApiSecurityContext, CompletableFuture<EndpointResponse>> requestor) {<NEW_LINE>final long startTimeNanos = Time.SYST...
(t), metricsCallbackHolder, startTimeNanos);
1,802,413
protected List<? extends SoapUIAction> registerActions(List<? extends SoapUIAction> actions) {<NEW_LINE>// sort actions so references work consistently<NEW_LINE>Collections.sort(actions, new Comparator<SoapUIAction>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int compare(SoapUIAction o1, SoapUIAction o2) {<NEW_LIN...
getAnnotation(action, ActionConfigurations.class);
1,319,898
private void encodeUserInfo(AAssociateRQAC rqac) {<NEW_LINE>encodeItemHeader(ItemType.USER_INFO, rqac.userInfoLength());<NEW_LINE>encodeMaxPDULength(rqac.getMaxPDULength());<NEW_LINE>encodeStringItem(ItemType.<MASK><NEW_LINE>if (rqac.isAsyncOps())<NEW_LINE>encodeAsyncOpsWindow(rqac);<NEW_LINE>for (RoleSelection rs : rq...
IMPL_CLASS_UID, rqac.getImplClassUID());
1,114,026
// suppressing warnings because I expect headers and query strings to be checked by the underlying<NEW_LINE>// servlet implementation<NEW_LINE>@SuppressFBWarnings({ "SERVLET_HEADER", "SERVLET_QUERY_STRING" })<NEW_LINE>private ContainerRequest servletRequestToContainerRequest(ServletRequest request) {<NEW_LINE>Timer.sta...
servletRequest.getHeaders(headerKey)));
1,572,468
private DonutChartModel initDonutModel() {<NEW_LINE>DonutChartModel model = new DonutChartModel();<NEW_LINE>Map<String, Number> circle1 = new LinkedHashMap<String, Number>();<NEW_LINE><MASK><NEW_LINE>circle1.put("Brand 2", 400);<NEW_LINE>circle1.put("Brand 3", 200);<NEW_LINE>circle1.put("Brand 4", 10);<NEW_LINE>model.a...
circle1.put("Brand 1", 150);
1,036,262
private void rollback(Workflow wf, WorkflowContext ctxt, Failure failure, int lastCompletedStepIdx) {<NEW_LINE>ctxt = refresh(ctxt);<NEW_LINE>final List<WorkflowStepData> steps = wf.getSteps();<NEW_LINE>for (int stepIdx = lastCompletedStepIdx; stepIdx >= 0; --stepIdx) {<NEW_LINE>WorkflowStepData wsd = steps.get(stepIdx...
rollbackStep(step, ctxt, failure);
162,848
public final // JPA2.g:199:1: where_clause : wh= 'WHERE' conditional_expression -> ^( T_CONDITION[$wh] conditional_expression ) ;<NEW_LINE>JPA2Parser.where_clause_return where_clause() throws RecognitionException {<NEW_LINE>JPA2Parser.where_clause_return retval = new JPA2Parser.where_clause_return();<NEW_LINE>retval.st...
add(conditional_expression134.getTree());
326,611
protected void registerDefaultAnnotationBinders(Map<Class<? extends Annotation>, RequestArgumentBinder> byAnnotation) {<NEW_LINE>DefaultBodyAnnotationBinder bodyBinder = new DefaultBodyAnnotationBinder(conversionService);<NEW_LINE>byAnnotation.put(Body.class, bodyBinder);<NEW_LINE>CookieAnnotationBinder<Object> cookieA...
= new ParameterAnnotationBinder<>(conversionService);
47,338
void pushBatch(NettyMessage message) {<NEW_LINE>if (message == null || message.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>synchronized (writeLock) {<NEW_LINE><MASK><NEW_LINE>if (channel == null) {<NEW_LINE>messageBuffer.add(message, false);<NEW_LINE>LOG.debug("Pending requested message, the size is {}, because c...
Channel channel = channelRef.get();
822,296
public static DescribeInstanceAutoRenewAttributeResponse unmarshall(DescribeInstanceAutoRenewAttributeResponse describeInstanceAutoRenewAttributeResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeInstanceAutoRenewAttributeResponse.setRequestId(_ctx.stringValue("DescribeInstanceAutoRenewAttributeResponse.RequestId")...
(_ctx.integerValue("DescribeInstanceAutoRenewAttributeResponse.TotalCount"));
945,428
public static TypeConstraint of(TypeVariable owner, com.vaticle.typeql.lang.pattern.constraint.TypeConstraint constraint, VariableRegistry registry) {<NEW_LINE>if (constraint.isLabel())<NEW_LINE>return LabelConstraint.of(owner, constraint.asLabel());<NEW_LINE>else if (constraint.isSub())<NEW_LINE>return SubConstraint.o...
owner, constraint.asValueType());
904,299
private void appendAverageDistinctDerivedProjection(final AggregationDistinctProjection averageDistinctProjection) {<NEW_LINE>String innerExpression = averageDistinctProjection.getInnerExpression();<NEW_LINE>String distinctInnerExpression = averageDistinctProjection.getDistinctInnerExpression();<NEW_LINE>String countAl...
getDerivedAggregationProjections().add(sumDistinctProjection);
797,806
public static QuerySavingPlanInstanceInnerResponse unmarshall(QuerySavingPlanInstanceInnerResponse querySavingPlanInstanceInnerResponse, UnmarshallerContext _ctx) {<NEW_LINE>querySavingPlanInstanceInnerResponse.setRequestId(_ctx.stringValue("QuerySavingPlanInstanceInnerResponse.RequestId"));<NEW_LINE>querySavingPlanIns...
= new ArrayList<SpnInstanceDetailDTO>();
1,509,066
public void process() {<NEW_LINE>StringBuilder sb = new StringBuilder(100);<NEW_LINE>// for request Data<NEW_LINE>StringBuilder rd = new StringBuilder(20);<NEW_LINE>SampleResult sr = new SampleResult();<NEW_LINE>sr.setSampleLabel(getName());<NEW_LINE>sr.sampleStart();<NEW_LINE>JMeterContext threadContext = getThreadCon...
setAllThreads(JMeterContextService.getNumberOfThreads());
948,755
public void undoScale(SceneStructureProjective structure, SceneObservations observations) {<NEW_LINE>if (!structure.homogenous) {<NEW_LINE>double scale = desiredDistancePoint / medianDistancePoint;<NEW_LINE>undoNormPoints3D(structure, scale);<NEW_LINE>DMatrixRMaj A = new DMatrixRMaj(3, 3);<NEW_LINE>DMatrixRMaj A_inv = ...
worldToView, 0, 0, A);
1,714,514
public int maxSumMinProduct(int[] nums) {<NEW_LINE>int n = nums.length;<NEW_LINE>long[] preSum = new long[n + 1];<NEW_LINE>for (int i = 1; i < n + 1; ++i) {<NEW_LINE>preSum[i] = preSum[i - 1] + nums[i - 1];<NEW_LINE>}<NEW_LINE>Deque<Integer> <MASK><NEW_LINE>int[] nextLesser = new int[n];<NEW_LINE>Arrays.fill(nextLesser...
stack = new ArrayDeque<>();
1,653,677
public void run() {<NEW_LINE>switch(opCode) {<NEW_LINE>case FIND_LINE_NUMBER:<NEW_LINE>{<NEW_LINE>Element paragraphsParent = findLineRootElement(doc);<NEW_LINE>// argInt is offset<NEW_LINE>retInt = paragraphsParent.getElementIndex(argInt);<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>case FIND_LINE_COLUMN:<NEW_LINE>{<NEW_LINE>E...
line = paragraphsParent.getElement(argInt);
1,616,237
final PrepareQueryResult executePrepareQuery(PrepareQueryRequest prepareQueryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(prepareQueryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,553,762
protected void parseClause(JRQueryChunkHandler chunkHandler, String clauseChunk) {<NEW_LINE>List<String> tokens = new ArrayList<>();<NEW_LINE>boolean wasClauseToken = false;<NEW_LINE>char separator = determineClauseTokenSeparator(clauseChunk);<NEW_LINE>String <MASK><NEW_LINE>StringTokenizer tokenizer = new StringTokeni...
separatorString = String.valueOf(separator);
709,061
public static String format(Locale locale, String pattern, Object[] arguments, boolean translateArguments) throws LanguageException {<NEW_LINE>String value = null;<NEW_LINE>User fakeUser = new User();<NEW_LINE>fakeUser.setLocale(locale);<NEW_LINE>String pattern2 = get(fakeUser, pattern);<NEW_LINE>if (!pattern.equals(pa...
debug(LanguageUtil.class, pattern);
124,018
public void layoutContainer(Container c) {<NEW_LINE>if (lastOrientation != getOrientation()) {<NEW_LINE>if (leftButton != null) {<NEW_LINE>leftButton.setIcon(getOrientation() == JSplitPane.VERTICAL_SPLIT ? upArrow : leftArrow);<NEW_LINE>leftButton.setMinimumSize(getOrientation() == JSplitPane.VERTICAL_SPLIT ? new Dimen...
2, 2, 8, 6);
792,330
public static Map<String, Object> buildCodestartProjectData(Collection<Codestart> baseCodestarts, Collection<Codestart> extraCodestarts) {<NEW_LINE>final HashMap<String, Object> data = new HashMap<>();<NEW_LINE>baseCodestarts.forEach((c) -> data.put(INPUT_BASE_CODESTART_KEY_PREFIX + c.getSpec().getType().toString().toL...
(Collectors.toList()));
790,385
private DeviceAuthorization createDeviceAuthorization(String rawResponse) throws IOException {<NEW_LINE>final JsonNode response = OBJECT_MAPPER.readTree(rawResponse);<NEW_LINE>final DeviceAuthorization deviceAuthorization = new DeviceAuthorization(extractRequiredParameter(response, "device_code", rawResponse).textValue...
setVerificationUriComplete(verificationUriComplete.asText());
174,759
public static void init(String[] args, ClientBaseConfig config, boolean createEndpoint) throws IOException {<NEW_LINE>CommandLine cmd = new CommandLine(config);<NEW_LINE>config.register(cmd);<NEW_LINE>try {<NEW_LINE>ParseResult <MASK><NEW_LINE>if (result.isVersionHelpRequested()) {<NEW_LINE>String version = StringUtil....
result = cmd.parseArgs(args);
761,940
public int match(Annotation node, MatchingNodeSet nodeSet) {<NEW_LINE>if (!this.pattern.findReferences)<NEW_LINE>return IMPOSSIBLE_MATCH;<NEW_LINE>MemberValuePair[] pairs = node.memberValuePairs();<NEW_LINE>if (pairs == null || pairs.length == 0)<NEW_LINE>return IMPOSSIBLE_MATCH;<NEW_LINE>int length = pairs.length;<NEW...
) ? (ASTNode) node : pair;
1,382,813
private FlowScope traverseAdd(Node n, FlowScope scope) {<NEW_LINE><MASK><NEW_LINE>Node right = left.getNext();<NEW_LINE>scope = traverseChildren(n, scope);<NEW_LINE>JSType leftType = left.getJSType();<NEW_LINE>JSType rightType = right.getJSType();<NEW_LINE>JSType type = unknownType;<NEW_LINE>if (leftType != null && rig...
Node left = n.getFirstChild();
1,189,234
public void onFocusChange(View v, boolean hasFocus) {<NEW_LINE>mHasFocus = mAddressStreetView.hasFocus() || mAddressExtendedStreetView.hasFocus() || mAddressCityView.hasFocus() || mAddressPostcodeView.hasFocus() || mAddressPoBoxView.hasFocus() || mAddressRegionView.hasFocus() || mAddressCountryView.hasFocus();<NEW_LINE...
= countryAddress == null ? "" : countryAddress;
961,219
public void index(Record record) {<NEW_LINE>if (directory == null)<NEW_LINE>init();<NEW_LINE>if (!overwrite && path != null)<NEW_LINE>delete(record);<NEW_LINE>Document doc = new Document();<NEW_LINE>for (String propname : record.getProperties()) {<NEW_LINE>Property prop = config.getPropertyByName(propname);<NEW_LINE>if...
)) doc.add(f);
1,641,924
public static GetElastictaskResponse unmarshall(GetElastictaskResponse getElastictaskResponse, UnmarshallerContext _ctx) {<NEW_LINE>getElastictaskResponse.setRequestId(_ctx.stringValue("GetElastictaskResponse.RequestId"));<NEW_LINE>Result result = new Result();<NEW_LINE>ElasticExpansionTask elasticExpansionTask = new E...
(_ctx.stringValue("GetElastictaskResponse.Result.elasticExpansionTask.cronExpression"));
1,083,084
public BeanDefinition parse(Element element, ParserContext parserContext) {<NEW_LINE>this.headerWriters = new ManagedList<>();<NEW_LINE>BeanDefinitionBuilder builder = BeanDefinitionBuilder.rootBeanDefinition(HeaderWriterFilter.class);<NEW_LINE>boolean disabled = element != null && "true".equals(resolveAttribute(parser...
parseXssElement(addIfNotPresent, element, parserContext);
1,764,011
public SubnetAssociation unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>SubnetAssociation subnetAssociation = new SubnetAssociation();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetD...
XMLEvent xmlEvent = context.nextEvent();
129,500
public void marshall(CreateGraphqlApiRequest createGraphqlApiRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createGraphqlApiRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createGraphqlAp...
e.getMessage(), e);
168,048
public static LocalVariableAnnotation findUniqueBestMatchingParameter(ClassContext classContext, Method method, String name, String signature) {<NEW_LINE>LocalVariableAnnotation match = null;<NEW_LINE>int localsThatAreParameters = PreorderVisitor.getNumberArguments(method.getSignature());<NEW_LINE>int startIndex = 0;<N...
> signatureIterator = parser.parameterSignatureIterator();
486,658
public void listen(UpdateRefusedEvent updateRefusedEvent) {<NEW_LINE>jabRefFrame.getDialogService().notify(Localization.lang("Update refused."));<NEW_LINE>BibEntry localBibEntry = updateRefusedEvent.getLocalBibEntry();<NEW_LINE>BibEntry sharedBibEntry = updateRefusedEvent.getSharedBibEntry();<NEW_LINE>StringBuilder mes...
), ButtonType.CANCEL, merge);
1,501,026
private void writeResponse(SolrQueryRequest solrReq, SolrQueryResponse solrRsp, HttpServletResponse response, QueryResponseWriter responseWriter, Method reqMethod) throws IOException {<NEW_LINE>try {<NEW_LINE>Object invalidStates = solrReq.getContext().get(CloudSolrClient.STATE_VERSION);<NEW_LINE>// This is the last it...
add(CloudSolrClient.STATE_VERSION, invalidStates);
1,149,880
public final Condition lessThan(Field<T1> t1, Field<T2> t2, Field<T3> t3, Field<T4> t4, Field<T5> t5, Field<T6> t6, Field<T7> t7, Field<T8> t8, Field<T9> t9, Field<T10> t10, Field<T11> t11, Field<T12> t12, Field<T13> t13, Field<T14> t14, Field<T15> t15, Field<T16> t16, Field<T17> t17, Field<T18> t18) {<NEW_LINE>return ...
t15, t16, t17, t18);
407,761
/*<NEW_LINE>* This method takes in a node as an argument and will create a new one if<NEW_LINE>* it should be displayed in the tree. If it is to be displayed, it also<NEW_LINE>* figures out if it is a leaf or not (i.e. should it have a + sign in the<NEW_LINE>* tree).<NEW_LINE>*<NEW_LINE>* It does NOT create children no...
final DisplayableItemNode diNode = (DisplayableItemNode) origNode;
1,596,625
@Consumes({ MediaType.APPLICATION_JSON, SmileMediaTypes.APPLICATION_JACKSON_SMILE })<NEW_LINE>public // used only to get request content-type<NEW_LINE>Response // used only to get request content-type<NEW_LINE>serviceAnnouncementPOSTAll(// used only to get request content-type<NEW_LINE>final InputStream inputStream, @C...
(e)).build();
1,335,008
public void onTestStart(ITestResult result) {<NEW_LINE>// create new folder for test report<NEW_LINE>ReportContext.createTestDir();<NEW_LINE>LOGGER.debug("AbstractTestListener->onTestStart");<NEW_LINE>LOGGER.debug("Test Directory: {}", ReportContext.<MASK><NEW_LINE>IRetryAnalyzer curRetryAnalyzer = getRetryAnalyzer(res...
getTestDir().getName());
110,304
public <T, X> void processObserverMethod(@Observes ProcessObserverMethod<T, X> pot) {<NEW_LINE>AnnotatedMethod<X> annotatedMethod = pot.getAnnotatedMethod();<NEW_LINE>if (annotatedMethod != null) {<NEW_LINE>List<AnnotatedParameter<X>> parameters = annotatedMethod.getParameters();<NEW_LINE>for (AnnotatedParameter<X> par...
annotatedMethod.getJavaMember(), configException);
1,070,947
public ErrorCode preAction(Request request, Response response) {<NEW_LINE>if (!adminLimiter.isGranted("admin")) {<NEW_LINE>return ErrorCode.ERROR_CODE_OVER_FREQUENCY;<NEW_LINE>}<NEW_LINE>if (APIPath.Health.equals(request.getUri())) {<NEW_LINE>return ErrorCode.ERROR_CODE_SUCCESS;<NEW_LINE>}<NEW_LINE>String nonce = reque...
localSign = DigestUtils.sha1Hex(str);
989,417
private void saveAttachmentToFile() {<NEW_LINE>int index = cbContent.getSelectedIndex();<NEW_LINE>log.info("index=" + index);<NEW_LINE>if (m_attachment.getEntryCount() < index)<NEW_LINE>return;<NEW_LINE>String fileName = getFileName(index);<NEW_LINE>String ext = fileName.substring<MASK><NEW_LINE>log.config("Ext=" + ext...
(fileName.lastIndexOf('.'));
1,272,080
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException {<NEW_LINE>builder.startObject("shard_indexing_pressure");<NEW_LINE>builder.startObject("stats");<NEW_LINE>for (Map.Entry<ShardId, IndexingPressurePerShardStats> entry : shardIndexingPressureStore.entrySet()) {<NEW_L...
builder.field("enabled", shardIndexingPressureEnabled);
1,627,338
public static DescribeScheduledTasksResponse unmarshall(DescribeScheduledTasksResponse describeScheduledTasksResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeScheduledTasksResponse.setRequestId(_ctx.stringValue("DescribeScheduledTasksResponse.RequestId"));<NEW_LINE>describeScheduledTasksResponse.setTotalCount(_ct...
("DescribeScheduledTasksResponse.ScheduledTasks[" + i + "].LaunchExpirationTime"));
519,858
public static ObjectNode mapLinks(List<Link> links) {<NEW_LINE>ObjectNode result = nodeFactory.objectNode();<NEW_LINE>Map<String, List<Link>> byRel = new LinkedHashMap<>();<NEW_LINE>links.forEach((it) -> byRel.computeIfAbsent(it.getRel(), (k) -> new ArrayList<>()).add(it));<NEW_LINE>byRel.forEach((rel, l) -> {<NEW_LINE...
= JsonNodeFactory.instance.arrayNode();
367,321
public static int HSLtoRGB(int hue, int saturation, int lightness) {<NEW_LINE>int red = 0;<NEW_LINE>int green = 0;<NEW_LINE>int blue = 0;<NEW_LINE>float hueRatio = hue / 360f;<NEW_LINE>float saturationRatio = saturation / 100f;<NEW_LINE>float lightnessRatio = lightness / 100f;<NEW_LINE>if (saturationRatio == 0) {<NEW_L...
hslComponentToRgbComponent(p, q, hueRatio);
1,321,447
private static Object applyToField(Object obj, String fieldName, String key, Object value, Predicate<Field> predicate) throws UnknownStyleException, IllegalArgumentException {<NEW_LINE>Class<?> cls = obj.getClass();<NEW_LINE>for (; ; ) {<NEW_LINE>try {<NEW_LINE>Field f = cls.getDeclaredField(fieldName);<NEW_LINE>if (pr...
String superclassName = cls.getName();
672,142
public void installMovementKeys(PointerTool callback, Map<KeyStroke, Action> actionMap) {<NEW_LINE>System.out.println("install iso movement keys");<NEW_LINE>if (movementKeys == null) {<NEW_LINE>// This is 13/0.75, rounded up<NEW_LINE>movementKeys = new HashMap<KeyStroke, Action>(18);<NEW_LINE>int size = getSize();<NEW_...
callback, -size, 0));
1,076,805
public static DescribeElbAvailableResourceInfoResponse unmarshall(DescribeElbAvailableResourceInfoResponse describeElbAvailableResourceInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeElbAvailableResourceInfoResponse.setRequestId(_ctx.stringValue("DescribeElbAvailableResourceInfoResponse.RequestId"));<NEW_LIN...
= new ArrayList<ElbAvailableResourceInfoItem>();
444,330
final GetBotChannelAssociationResult executeGetBotChannelAssociation(GetBotChannelAssociationRequest getBotChannelAssociationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getBotChannelAssociationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,618,195
public void requestRemoveFriend(final String userID, OnRequestRemoveFriendCompleteListener onRequestRemoveFriendCompleteListener) {<NEW_LINE>super.requestRemoveFriend(userID, onRequestRemoveFriendCompleteListener);<NEW_LINE>VKRequest request = VKApi.friends().delete(VKParameters.from(VKApiConst.USER_ID, userID));<NEW_L...
onRequestRemoveFriendComplete(getID(), userID);
65,691
public ListenableFuture<?> execute(RenameColumn statement, TransactionManager transactionManager, Metadata metadata, AccessControl accessControl, Session session, List<Expression> parameters, WarningCollector warningCollector) {<NEW_LINE>QualifiedObjectName tableName = createQualifiedObjectName(session, statement, stat...
getValue().toLowerCase(ENGLISH);
809,465
public void guess(TypeReference typeRef, Scope scope, GuessedTypeRequestor requestor) {<NEW_LINE>this.substituedTypes = new HashMap();<NEW_LINE>this.originalTypes = new HashMap();<NEW_LINE>this.combinationsCount = 1;<NEW_LINE>TypeReference convertedType = convert(typeRef);<NEW_LINE>if (convertedType == null)<NEW_LINE>r...
.resolveType((BlockScope) scope);
800,110
public void exportFieldRadio(JRPrintElement element) throws IOException {<NEW_LINE>String fieldName = element.getPropertiesMap().getProperty(PDF_FIELD_NAME);<NEW_LINE>fieldName = fieldName == null || fieldName.trim().length() == 0 ? "FIELD_" + element.getUUID() : fieldName;<NEW_LINE>PdfRadioCheck radioField = pdfProduc...
().getProperty(PDF_FIELD_CHECK_TYPE));
145,276
private void initThreadPool(final TarsRegisterConfig config) {<NEW_LINE>if (Objects.nonNull(threadPool)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>switch(config.getThreadpool()) {<NEW_LINE>case Constants.SHARED:<NEW_LINE>try {<NEW_LINE>threadPool = SpringBeanUtils.getInstance().getBean(ShenyuThreadPoolExecutor.class);<NEW...
SynchronousQueue<>(), factory);
402,156
void colorB_actionPerformed(ActionEvent e) {<NEW_LINE>// Fix until Sun's JVM supports more locales...<NEW_LINE>UIManager.put("ColorChooser.swatchesNameText", Local.getString("Swatches"));<NEW_LINE>UIManager.put("ColorChooser.hsbNameText", Local.getString("HSB"));<NEW_LINE>UIManager.put("ColorChooser.rgbNameText", Local...
, Local.getString("R"));
1,134,635
public void stop() {<NEW_LINE>_isStopping = true;<NEW_LINE>LOGGER.info("Awaiting segment metadata commits: maxWaitTimeMillis = {}", MAX_LLC_SEGMENT_METADATA_COMMIT_TIME_MILLIS);<NEW_LINE>long millisToWait = MAX_LLC_SEGMENT_METADATA_COMMIT_TIME_MILLIS;<NEW_LINE>// Busy-wait for all segments that are committing metadata ...
"Wait completed: Number of completing segments = {}", _numCompletingSegments.get());
1,482,213
public void prepareExportClassAndResourceCache() {<NEW_LINE>for (Plugin plugin : pluginManagerService.getPluginsInOrder()) {<NEW_LINE>for (String exportIndex : plugin.getExportPackageNodes()) {<NEW_LINE>exportNodeAndClassLoaderMap.putIfAbsent(exportIndex, plugin.getPluginClassLoader());<NEW_LINE>}<NEW_LINE>for (String ...
add(plugin.getPluginClassLoader());
1,341,247
protected IStatus loadAttributes(Object attributes) {<NEW_LINE>if (!(attributes instanceof Object[])) {<NEW_LINE>return createErrorStatus(Messages.AbstractConfigurationProcessor_expectedArrayError + attributes);<NEW_LINE>}<NEW_LINE>Object[] attrArray = (Object[]) attributes;<NEW_LINE>if (attrArray.length == 1 || attrAr...
= new String[attrURL.length];
1,701,650
private JExpression handleSystemGetProperty(JMethodCall gwtGetPropertyCall) {<NEW_LINE>assert (gwtGetPropertyCall.getArgs().size() == 1 || gwtGetPropertyCall.getArgs().size() == 2);<NEW_LINE>JExpression propertyNameExpression = gwtGetPropertyCall.getArgs().get(0);<NEW_LINE>boolean defaultVersionCalled = gwtGetPropertyC...
).get(1) : null;
226,338
private static void drawHistogram(double[] runningTimesHistogram, double minValue, double rangeOfRunningTimesPerBucket, int arraySizePowerOf10) {<NEW_LINE>StdDraw.setCanvasSize(1024, 512);<NEW_LINE>double maxCount = 0;<NEW_LINE>for (int i = 0; i < runningTimesHistogram.length; i++) {<NEW_LINE>if (runningTimesHistogram[...
maxCount + 1, "N = 10^" + arraySizePowerOf10);
693,726
final UpdateAnalysisPermissionsResult executeUpdateAnalysisPermissions(UpdateAnalysisPermissionsRequest updateAnalysisPermissionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateAnalysisPermissionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
endClientExecution(awsRequestMetrics, request, response);
894,534
private static <T> Entry<Constructor<T>, List<AnnotatedValueResolver>> findConstructor(BeanFactoryId beanFactoryId, List<RequestObjectResolver> objectResolvers) {<NEW_LINE>Entry<Constructor<T>, List<AnnotatedValueResolver>> candidate = null;<NEW_LINE>final Set<Constructor> constructors = getConstructors(beanFactoryId.t...
constructor, ImmutableList.of());
643,668
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>jCheckBox1 = new javax.swing.JCheckBox();<NEW_LINE>jPanel1 = new javax.swing.JPanel();<NEW_LINE>setRequestFocusEnabled(fals...
java.awt.GridBagLayout());
390,101
public Expression optimize(SessionLocal session) {<NEW_LINE>if (over != null) {<NEW_LINE>over.optimize(session);<NEW_LINE>ArrayList<QueryOrderBy> orderBy = over.getOrderBy();<NEW_LINE>if (orderBy != null) {<NEW_LINE>overOrderBySort = createOrder(<MASK><NEW_LINE>} else if (!isAggregate()) {<NEW_LINE>overOrderBySort = ne...
session, orderBy, getNumExpressions());
45,994
public boolean tryOnNext(T t) {<NEW_LINE>if (done) {<NEW_LINE>Operators.onNextDropped(t, ctx);<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>K k;<NEW_LINE>try {<NEW_LINE>k = Objects.requireNonNull(keyExtractor.apply(t), "The distinct extractor returned a null value.");<NEW_LINE>} catch (Throwable e) {<NEW_LINE>onError(Oper...
Operators.onDiscard(t, ctx);
920,591
private void saveImageOriginalBytes(ResourceFieldLocation imageLocation) {<NEW_LINE>Data data = imageLocation.getResourceData();<NEW_LINE>if (data == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>GhidraFileChooser chooser = new GhidraFileChooser(tool.getActiveWindow());<NEW_LINE>chooser.setFileSelectionMo...
] bytes = data.getBytes();
639,765
private void handleUnsplittableFiles(List<InputSplit> splits, List<FileInfo> unSplittableFiles, long maxSize, float compressFactor) throws IOException {<NEW_LINE>if (unSplittableFiles.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long totalFileSize = 0L;<NEW_LINE>for (FileInfo fileInfo : unSplittableFiles) {<NEW_LI...
, new ArrayList<>());
534,477
public OAuthClient updateOAuthClient(UpdateOAuthClientRequest body, String clientId, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parame...
(clientId.toString()));
1,128,601
public static boolean threshold(PathObjectHierarchy hierarchy, ImageServer<BufferedImage> densityServer, Map<Integer, ? extends Number> thresholds, String pathClassName, CreateObjectOptions... options) throws IOException {<NEW_LINE>logger.debug("Thresholding {} with thresholds {}, options", densityServer, thresholds, A...
PathClassFactory.getPathClass(StandardPathClasses.IGNORE);
1,576,837
public void actionPerformed(@Nonnull AnActionEvent e) {<NEW_LINE>ExternalServiceConfiguration configuration = myExternalServiceConfigurationProvider.get();<NEW_LINE>if (configuration.getEmail() != null) {<NEW_LINE>Alerts.yesNo().asWarning().text(LocalizeValue.localizeTODO("Do logout?")).showAsync().doWhenDone(value -> ...
tokenForAuth = RandomStringUtils.randomAlphabetic(48);
875,173
public boolean onBlockActivated(@Nonnull World world, @Nonnull BlockPos pos, @Nonnull IBlockState state, @Nonnull EntityPlayer entityPlayer, @Nonnull EnumHand hand, @Nonnull EnumFacing side, float hitX, float hitY, float hitZ) {<NEW_LINE>T machine = getTileEntity(world, pos);<NEW_LINE>ItemStack <MASK><NEW_LINE>if (Prep...
heldItem = entityPlayer.getHeldItem(hand);
825,379
public void validateOfflineSegment(String offlineTableName, SegmentMetadata segmentMetadata, File tempSegmentDir) {<NEW_LINE>TableConfig offlineTableConfig = ZKMetadataProvider.getOfflineTableConfig(_pinotHelixResourceManager.getPropertyStore(), offlineTableName);<NEW_LINE>if (offlineTableConfig == null) {<NEW_LINE>thr...
), Response.Status.INTERNAL_SERVER_ERROR);
944,681
protected void encodeDefaultFilter(FacesContext context, DataTable table, UIColumn column, ResponseWriter writer) throws IOException {<NEW_LINE>String separator = String.valueOf(UINamingContainer.getSeparatorChar(context));<NEW_LINE>boolean disableTabbing = table.getScrollWidth() != null;<NEW_LINE>String filterId = col...
context, table, column, filterId);
529,581
protected CodeExpression readComponentCode(CodeStatement statement, CodeGroup componentCode) {<NEW_LINE>if (getSimpleAddMethod().equals(statement.getMetaObject())) {<NEW_LINE>CodeExpression compExp = statement.getStatementParameters()[0];<NEW_LINE>componentCode.addStatement(statement);<NEW_LINE>AbsoluteLayoutConstraint...
boundsStatement.getStatementParameters(), 0);
419,762
private void _updateEJBXML() throws Exception {<NEW_LINE>File xmlFile = new File("classes/META-INF/ejb-jar.xml");<NEW_LINE>StringBuffer methodsSB = new StringBuffer();<NEW_LINE>SAXReader reader = new SAXReader();<NEW_LINE>reader.setEntityResolver(new EntityResolver());<NEW_LINE>Document doc = reader.read(xmlFile);<NEW_...
(Element) itr.next();
323,757
public static DescribeCustomEventAttributeResponse unmarshall(DescribeCustomEventAttributeResponse describeCustomEventAttributeResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeCustomEventAttributeResponse.setRequestId(_ctx.stringValue("DescribeCustomEventAttributeResponse.RequestId"));<NEW_LINE>describeCustomEven...
(_ctx.stringValue("DescribeCustomEventAttributeResponse.Message"));
163,538
public static DescribePersonMachineListResponse unmarshall(DescribePersonMachineListResponse describePersonMachineListResponse, UnmarshallerContext context) {<NEW_LINE>describePersonMachineListResponse.setRequestId(context.stringValue("DescribePersonMachineListResponse.RequestId"));<NEW_LINE>describePersonMachineListRe...
(context.stringValue("DescribePersonMachineListResponse.PersonMachineRes.HasConfiguration"));
1,155,066
protected void exportDefinition(HttpServletResponse response, AbstractModel definitionModel, DmnJsonConverterContext converterContext) {<NEW_LINE>try {<NEW_LINE>JsonNode editorJsonNode = objectMapper.readTree(definitionModel.getModelEditorJson());<NEW_LINE>// URLEncoder.encode will replace spaces with '+', to keep the ...
LOGGER.error("Could not export decision table model", e);
118,292
public String reorganizeString(String s) {<NEW_LINE>HashMap<Character, Integer> map = new HashMap<>();<NEW_LINE>for (int i = 0; i < s.length(); i++) {<NEW_LINE>map.put(s.charAt(i), map.getOrDefault(s.charAt(<MASK><NEW_LINE>}<NEW_LINE>PriorityQueue<Map.Entry<Character, Integer>> pq = new PriorityQueue<>((a, b) -> b.getV...
i), 0) + 1);
250,192
private static boolean roughlyEqual(String expectedRaw, String requestedPathRaw) {<NEW_LINE>LOG.debug("Comparing expected [{}] vs requested [{}]", expectedRaw, requestedPathRaw);<NEW_LINE>if (StringUtils.isEmpty(expectedRaw)) {<NEW_LINE>LOG.debug("False: empty expected");<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>try ...
LOG.warn("Exception encountered while comparing paths", e);
31,712
// [START add_rating]<NEW_LINE>private Task<Void> addRating(final DocumentReference restaurantRef, final float rating) {<NEW_LINE>// Create reference for new rating, for use inside the transaction<NEW_LINE>final DocumentReference ratingRef = restaurantRef.collection("ratings").document();<NEW_LINE>// In a transaction, ...
data.put("rating", rating);
1,777,019
private void loadNode927() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.ServerDiagnosticsType_ServerDiagnosticsSummary_SecurityRejectedSessionCount, new QualifiedName(0, "SecurityRejectedSessionCount"), new LocalizedText("en", "SecurityRejectedSessionCount"), Localiz...
.expanded(), false));
1,211,164
public ListFirewallPoliciesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListFirewallPoliciesResult listFirewallPoliciesResult = new ListFirewallPoliciesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentEleme...
)).unmarshall(context));
1,631,549
public void save() {<NEW_LINE>logger.debug(<MASK><NEW_LINE>try {<NEW_LINE>// ensure full path exists<NEW_LINE>file.getParentFile().mkdirs();<NEW_LINE>final List<NeeoDevice> devices = new ArrayList<>();<NEW_LINE>// filter for only things that are still valid<NEW_LINE>final ThingRegistry thingRegistry = context.getThingR...
"Saving devices to {}", file.toPath());