idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,426,385
public void customizeCellRenderer(@Nonnull JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) {<NEW_LINE>Color foreground = selected ? UIUtil.getTreeSelectionForeground() : UIUtil.getTreeForeground();<NEW_LINE>Color background = selected ? UIUtil.getTreeSelectionBackg...
append(", opaque", SimpleTextAttributes.GRAYED_ATTRIBUTES);
109,330
public void createIfNotExistsCodeSnippets() {<NEW_LINE>// BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.createIfNotExists<NEW_LINE>boolean result = client.createIfNotExists();<NEW_LINE>System.out.println("file system created: " + result);<NEW_LINE>// END: com.azure.storage.file.datalake.DataLakeFileSy...
"Create completed with status %d%n", response.getStatusCode());
902,869
public boolean onClick(@Nonnull MouseEvent e, int clickCount) {<NEW_LINE>CachedIntentions cachedIntentions = new CachedIntentions(project, psiFile, editor);<NEW_LINE>IntentionListStep step = new IntentionListStep(null, editor, psiFile, project, cachedIntentions);<NEW_LINE>HighlightInfo.IntentionActionDescriptor descrip...
FileLevelIntentionComponent.this.getHeight());
732,711
public HttpSession newHttpSession(HttpServletRequest request) {<NEW_LINE>long created = System.currentTimeMillis();<NEW_LINE>String id = _sessionIdManager.newSessionId(request, created);<NEW_LINE>Session session = _sessionCache.newSession(request, id, created, (_dftMaxIdleSecs > 0 ? _dftMaxIdleSecs * 1000L : -1));<NEW_...
baseRequest = Request.getBaseRequest(request);
98,459
// TreeSet implementation is ~70x faster than RankedFeatureVector -DM<NEW_LINE>public void printTopWords(PrintStream out, int numWords, boolean usingNewLines) {<NEW_LINE>for (int topic = 0; topic < numTopics; topic++) {<NEW_LINE>TreeSet<IDSorter> sortedWords = new TreeSet<IDSorter>();<NEW_LINE>for (int type = 0; type <...
> iterator = sortedWords.iterator();
550,263
private void checkModifyLimitation(LogicalModify logicalModify, ExecutionContext executionContext) {<NEW_LINE>List<RelOptTable> targetTables = logicalModify.getTargetTables();<NEW_LINE>// Currently, we don't support same table name from different schema name<NEW_LINE>boolean existsShardTable = false;<NEW_LINE>Map<Strin...
<>(String::compareToIgnoreCase));
244,186
public void deliverIbbPacket(Account account, IqPacket packet) {<NEW_LINE>final String sid;<NEW_LINE>final Element payload;<NEW_LINE>if (packet.hasChild("open", Namespace.IBB)) {<NEW_LINE>payload = packet.findChild("open", Namespace.IBB);<NEW_LINE>sid = payload.getAttribute("sid");<NEW_LINE>} else if (packet.hasChild("...
final JingleInBandTransport inBandTransport = (JingleInBandTransport) transport;
815,051
final GetWirelessDeviceStatisticsResult executeGetWirelessDeviceStatistics(GetWirelessDeviceStatisticsRequest getWirelessDeviceStatisticsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getWirelessDeviceStatisticsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetWirelessDeviceStatistics");
45,219
public double dot(SequentialSparseVector thatVector) {<NEW_LINE>double value = 0.0D;<NEW_LINE>Iterator<VectorEntry> thisIterator = this.iterator();<NEW_LINE>Iterator<Vector.VectorEntry> thatIterator = thatVector.iterator();<NEW_LINE>Vector.VectorEntry thisVectorEntry, thatVectorEntry;<NEW_LINE>if (thisIterator.hasNext(...
() * thatVectorEntry.get();
653,468
void debugValues() {<NEW_LINE>// NOI18N<NEW_LINE>LOGGER.finest("nProfiledSelects: " + nProfiledSelects);<NEW_LINE>// NOI18N<NEW_LINE>LOGGER.finest("stacksForSelects.length: " + debugLength(stacksForSelects));<NEW_LINE>LOGGER.finest("invocationsPerSelectId.length: " + debugLength(invocationsPerSelectId));<NEW_LINE>LOGGE...
: table.debug()));
757,307
private void visit(T item, Set<T> visited, List<T> sorted, Comparator<T> comparator) {<NEW_LINE>// If the item has not been visited<NEW_LINE>if (!visited.contains(item)) {<NEW_LINE>// We are visiting it now, so add it to the visited set<NEW_LINE>visited.add(item);<NEW_LINE>// Lookup the items dependencies<NEW_LINE>Set<...
throw new CyclicException(item, e);
67,497
public CreateTrafficMirrorSessionResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>CreateTrafficMirrorSessionResult createTrafficMirrorSessionResult = new CreateTrafficMirrorSessionResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1...
().unmarshall(context));
181,259
protected void buildTreeMap(SqlExecutionContext executionContext) throws SqlException {<NEW_LINE>filter.init(this, executionContext);<NEW_LINE>int keyCount = symbolKeys.size();<NEW_LINE>if (deferredSymbolKeys != null) {<NEW_LINE>keyCount += deferredSymbolKeys.size();<NEW_LINE>}<NEW_LINE>found.clear();<NEW_LINE>DataFram...
recordA.jumpTo(partitionIndex, 0);
669,688
private Route addRoute(HttpMethod httpMethod, String path, Object controller, Class<?> controllerType, Method method) {<NEW_LINE>// [/** | /*]<NEW_LINE>path = "*".equals(path) ? "/.*" : path;<NEW_LINE>path = path.replace("/**", "/.*").replace("/*", "/.*");<NEW_LINE>String key = path + "#" + httpMethod.toString();<NEW_L...
controllerType.getAnnotation(Order.class);
847,612
public Object execute(Evaluator evaluator, Argument[] arguments) {<NEW_LINE>if (resultDateMember != null) {<NEW_LINE>return resultDateMember;<NEW_LINE>}<NEW_LINE>// determine the current date<NEW_LINE>Object formatArg = arguments[1].evaluateScalar(evaluator);<NEW_LINE>final Locale locale = Locale.getDefault();<NEW_LINE...
valueOf(MatchType.class, matchStr);
1,350,381
public void createDestinationLocalization(BaseDestination config) throws Exception {<NEW_LINE>SibTr.entry(tc, "createDestinationLocalization", this);<NEW_LINE>try {<NEW_LINE>String meName = meConfig<MASK><NEW_LINE>JsDestinationCache dCache = bus.getDestinationCache();<NEW_LINE>BaseDestinationDefinition dd = dCache.addN...
.getMessagingEngine().getName();
435,426
public /* (non-Javadoc)<NEW_LINE>* @see com.ibm.jvm.dtfjview.spi.ISession#run()<NEW_LINE>*/<NEW_LINE>void run() {<NEW_LINE>// first check that we have a context to run against in case there was a fatal error during startup<NEW_LINE>if (currentContext == null) {<NEW_LINE>out.println("No current context - exiting");<NEW_...
Level.FINE, "Failed to start the session", e);
1,257,805
final DisconnectSourceServerResult executeDisconnectSourceServer(DisconnectSourceServerRequest disconnectSourceServerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disconnectSourceServerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
860,685
public DoubleMatrix solve(DoubleMatrix b) {<NEW_LINE>int nbRow = b.rowCount();<NEW_LINE>int nbCol = b.columnCount();<NEW_LINE>ArgChecker.isTrue(nbRow == _lArray.length, "b array of incorrect size");<NEW_LINE>double[][<MASK><NEW_LINE>// L Y = B (Y stored in x array)<NEW_LINE>for (int loopcol = 0; loopcol < nbCol; loopco...
] x = b.toArray();
1,103,253
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String schema = MAP.getAnnotationText() + " @public @buseventtype create schema MyDynoPropSchema as (key string);\n";<NEW_LINE>env.compileDeploy(schema, path);<NEW_LINE>String[] fields = "typeof(prop?),typeof(key)...
builder.run(env, false);
1,166,743
public InitiateBucketWormResult initiateBucketWorm(InitiateBucketWormRequest initiateBucketWormRequest) throws OSSException, ClientException {<NEW_LINE>assertParameterNotNull(initiateBucketWormRequest, "initiateBucketWormRequest");<NEW_LINE>String bucketName = initiateBucketWormRequest.getBucketName();<NEW_LINE>assertP...
(rawContent)).build();
173,267
private static List<List<String>> cacheTracingInfo(ResultSet resultSet, List<Integer> maxSizeList) throws Exception {<NEW_LINE>List<List<String>> lists = new ArrayList<>(2);<NEW_LINE>lists.add(0, new ArrayList<>());<NEW_LINE>lists.add(1, new ArrayList<>());<NEW_LINE>String ACTIVITY_STR = "Activity";<NEW_LINE>String ELA...
1, ELAPSED_TIME_STR.length());
139,416
private static void paintConstantButton(Graphics2D g, int xpos, int ypos, boolean constant, int value, float scale) {<NEW_LINE>int width = AppPreferences.getScaled(BoardManipulator.CONSTANT_BUTTON_WIDTH - 2, scale);<NEW_LINE>int height = AppPreferences.getScaled(BoardManipulator.CONSTANT_BAR_HEIGHT - 2, scale);<NEW_LIN...
g.setColor(Color.WHITE);
804,686
protected void createBatchPartsForParallelExecution(ProcessEngineConfigurationImpl engineConfiguration, Batch batch, long numberOfBatchParts) {<NEW_LINE>JobService jobService = engineConfiguration.getJobServiceConfiguration().getJobService();<NEW_LINE>ManagementService managementService = engineConfiguration.getManagem...
).getBusinessCalendar(CycleBusinessCalendar.NAME);
1,114,054
public void sendNotification(Customer customer, Alert alert, AlertChannel channel) throws PlatformNotificationException {<NEW_LINE>log.debug("sendNotification {}", alert);<NEW_LINE>AlertChannelEmailParams params = (AlertChannelEmailParams) channel.getParams();<NEW_LINE>String title = getNotificationTitle(alert, channel...
text = getNotificationText(alert, channel);
69,325
private /* static */<NEW_LINE>boolean isPushForType(AbstractInsnNode insn, Type type) {<NEW_LINE>int opcode = insn.getOpcode();<NEW_LINE>if (opcode == type.getOpcode(Opcodes.ILOAD)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>// b/62060793: AsyncAwait rewrites bytecode to convert java methods into state machine with<NE...
.LCONST_0 || opcode == Opcodes.LCONST_1;
182,060
public synchronized Map<String, Object> asMap(boolean withDetails) {<NEW_LINE>E.checkState(this.type != null, "Task type can't be null");<NEW_LINE>E.checkState(this.name != null, "Task name can't be null");<NEW_LINE>Map<String, Object> map = new HashMap<>();<NEW_LINE>map.put(Hidden.unHide(P.ID), this.id);<NEW_LINE>map....
.RETRIES), this.retries);
1,451,699
public static <T extends CoreMap> T createCoreMap(CoreMap cm, String text, int start, int end, CoreTokenFactory<T> factory) {<NEW_LINE>if (end > start) {<NEW_LINE><MASK><NEW_LINE>Integer cmCharStart = cm.get(CoreAnnotations.CharacterOffsetBeginAnnotation.class);<NEW_LINE>if (cmCharStart == null)<NEW_LINE>cmCharStart = ...
T token = factory.makeToken();
618,298
private Map<String, Object> createNumbersMap(List<TPS> tpsData) {<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>long dayAgo = now - TimeUnit.DAYS.toMillis(1L);<NEW_LINE>long weekAgo = now - TimeUnit.DAYS.toMillis(7L);<NEW_LINE>Map<String, Object> numbers = new HashMap<>();<NEW_LINE>TPSMutator tpsDataMonth = ...
(tpsDataMonth.averageCPU()));
1,718,474
public void addMessagesToGroup(Object groupId, Message<?>... messages) {<NEW_LINE>Assert.notNull(groupId, "'groupId' must not be null");<NEW_LINE>Assert.notNull(messages, "'messages' must not be null");<NEW_LINE>Lock lock = this.lockRegistry.obtain(groupId);<NEW_LINE>try {<NEW_LINE>lock.lockInterruptibly();<NEW_LINE>bo...
state(upperBound != null, UPPER_BOUND_MUST_NOT_BE_NULL);
27,944
private View buildView(LayoutInflater inflater) {<NEW_LINE>View view = inflater.inflate(R.layout.track_selection_dialog, null);<NEW_LINE>ViewGroup root = view.findViewById(R.id.root);<NEW_LINE>trackViews = new CheckedTextView[trackGroups.length][];<NEW_LINE>for (int groupIndex = 0; groupIndex < trackGroups.length; grou...
= new CheckedTextView[group.length];
533,396
public static double[] mean(double[][] x, boolean isAlongRows, int[] indicesOfX) {<NEW_LINE>double[] meanVector = null;<NEW_LINE>int i, j;<NEW_LINE>if (isAlongRows) {<NEW_LINE>meanVector = new double[x[indicesOfX[0]].length];<NEW_LINE>Arrays.fill(meanVector, 0.0);<NEW_LINE>for (i = 0; i < indicesOfX.length; i++) {<NEW_...
meanVector[j] /= indicesOfX.length;
64,245
public okhttp3.Call exportTenantThemeCall(final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/tenant-theme";<NEW_LINE>List<Pair> localVarQueryParams = new ArrayList<Pair>();<NEW_LINE>List<Pair> localVarCol...
HashMap<String, Object>();
1,016,650
public void arc(float x, float y, float radius, float start, float degrees, int segments) {<NEW_LINE>if (segments <= 0)<NEW_LINE>throw new IllegalArgumentException("segments must be > 0.");<NEW_LINE>float colorBits = color.toFloatBits();<NEW_LINE>float theta = (2 * MathUtils.PI * (degrees / 360.0f)) / segments;<NEW_LIN...
vertex(x, y, 0);
1,166,521
public VoidResult deleteBucketInventoryConfiguration(DeleteBucketInventoryConfigurationRequest deleteBucketInventoryConfigurationRequest) throws OSSException, ClientException {<NEW_LINE>assertParameterNotNull(deleteBucketInventoryConfigurationRequest, "deleteBucketInventoryConfigurationRequest");<NEW_LINE>String bucket...
params.put(SUBRESOURCE_INVENTORY, null);
802,309
private void startMppServer(SystemConfig system) {<NEW_LINE>if (TddlNode.getNodeId() == 0 && System.getProperty("nodeId") != null) {<NEW_LINE>TddlNode.setNodeId(Integer.parseInt(System.getProperty("nodeId")));<NEW_LINE>logger.warn("mpp set nodeId=" + TddlNode.getNodeId());<NEW_LINE>}<NEW_LINE>TaskResource.setDrdsContex...
TDataSource dataSource = schema.getDataSource();
359,851
public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE>org.apache.thrift.TSerializable msg;<NEW_LINE>getActiveTservers_result result = new getActiveTservers_result();<NEW_LINE>if (e instanceof org.apache.accumulo.core.clientImpl.thrift.ThriftSecurity...
_LOGGER.error("TTransportException inside handler", e);
436,180
public static ByteBuf serializeSingleMessageInBatchWithPayload(MessageMetadata msg, ByteBuf payload, ByteBuf batchBuffer) {<NEW_LINE>// build single message meta-data<NEW_LINE>SingleMessageMetadata smm = LOCAL_SINGLE_MESSAGE_METADATA.get();<NEW_LINE>smm.clear();<NEW_LINE>if (msg.hasPartitionKey()) {<NEW_LINE>smm.setPar...
setPartitionKeyB64Encoded(msg.isPartitionKeyB64Encoded());
193,265
private void updateStoreTableSize() throws ConnectionUnavailableException {<NEW_LINE>if (cacheEnabled && !queryStoreWithoutCheckingCache.get()) {<NEW_LINE>readWriteLock.writeLock().lock();<NEW_LINE>try {<NEW_LINE>// check if we need to check the size of store<NEW_LINE>if (storeTableSize == -1 || (!cacheExpiryEnabled &&...
stateEventForCaching, compiledConditionForCaching, compiledSelectionForCaching, outputAttributesForCaching);
1,015,247
private void registerAddMapLayerReceiver(@NonNull MapActivity mapActivity) {<NEW_LINE>final WeakReference<MapActivity> mapActivityRef = new WeakReference<>(mapActivity);<NEW_LINE>BroadcastReceiver addMapLayerReceiver = new BroadcastReceiver() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onReceive(Context context...
layer, connectedApp.getPack());
1,627,751
public ComponentDeploymentSpecification unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ComponentDeploymentSpecification componentDeploymentSpecification = new ComponentDeploymentSpecification();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i...
int originalDepth = context.getCurrentDepth();
312,419
private static void addContent(WorksheetPart sheet) throws JAXBException, Docx4JException {<NEW_LINE>// Minimal content already present<NEW_LINE>SheetData sheetData = sheet.getContents().getSheetData();<NEW_LINE>// Now add<NEW_LINE>Row row = Context.getsmlObjectFactory().createRow();<NEW_LINE>Cell cell = Context.getsml...
setId(rel.getId());
900,394
public RubyValue gsub_danger(RubyArray args, RubyBlock block) {<NEW_LINE>if (null == block) {<NEW_LINE>RubyString result = gsub(this, args);<NEW_LINE>if (result == this) {<NEW_LINE>return RubyConstant.QNIL;<NEW_LINE>} else {<NEW_LINE>return setString(result.toString());<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>if (null ==...
ArgumentErrorClass, "in `gsub!': wrong number of arguments (" + actual_argc + " for 1)");
587,100
private synchronized void doParse(Element element, ParserContext parserContext) {<NEW_LINE>String[] basePackages = StringUtils.tokenizeToStringArray(element.getAttribute("base-package"), ",; \t\n");<NEW_LINE>AopNamespaceUtils.registerAutoProxyCreatorIfNecessary(parserContext, element);<NEW_LINE>if (!parserContext.getRe...
getReaderContext().registerWithGeneratedName(configMapDef);
685,821
public Object load(BeanProperty prop) {<NEW_LINE>if (!rawSql && !prop.isLoadProperty(ctx.isDraftQuery())) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if ((bean == null) || (lazyLoading && ebi.isLoadedProperty(prop.propertyIndex())) || (type != null && !prop.isAssignableFrom(type))) {<NEW_LINE>// ignore this property<NE...
prop.propertyIndex(), e);
456,236
private void jbInit() throws Exception {<NEW_LINE>setIconImage(Images.getImage2(InfoBuilder.ACTION_InfoSchedule + "16"));<NEW_LINE>mainPanel.setLayout(mainLayout);<NEW_LINE>parameterPanel.setLayout(parameterLayout);<NEW_LINE>labelResourceType.setHorizontalTextPosition(SwingConstants.LEADING);<NEW_LINE>labelResourceType...
4), 0, 0));
1,670,444
protected String doIt() throws Exception {<NEW_LINE>m_C_ProjectPhase_ID = getRecord_ID();<NEW_LINE>log.info("doIt - C_ProjectPhase_ID=" + m_C_ProjectPhase_ID);<NEW_LINE>if (m_C_ProjectPhase_ID == 0)<NEW_LINE>throw new IllegalArgumentException("C_ProjectPhase_ID == 0");<NEW_LINE>MProjectPhase fromPhase = new MProjectPha...
fromPhase.getM_Product_ID(), true);
1,083,145
protected void createTrapezium(DXFVertex start, DXFVertex end) {<NEW_LINE>// we start at the start side<NEW_LINE>double c = 0.0;<NEW_LINE>if (start.getStartWidth() > 0.0) {<NEW_LINE>c = start.getStartWidth() / 2;<NEW_LINE>} else {<NEW_LINE>c = this.p.getStartWidth() / 2;<NEW_LINE>}<NEW_LINE>Vector v = this.p.getExtrusi...
v = MathUtils.normalize(v);
927,686
private MOrder createCounterDoc() {<NEW_LINE>// Is this itself a counter doc ?<NEW_LINE>if (getRef_Order_ID() != 0)<NEW_LINE>return null;<NEW_LINE>// Org Must be linked to BPartner<NEW_LINE>MOrg org = MOrg.get(getCtx(), getAD_Org_ID());<NEW_LINE>int counterC_BPartner_ID = org.getLinkedC_BPartner_ID(get_TrxName());<NEW_...
setDocAction(counterDT.getDocAction());
51,711
private Map<String, Object> createResponsesObject(final StructrSchemaDefinition schema, final String tag) {<NEW_LINE>final Map<String, Object> <MASK><NEW_LINE>// 200 OK<NEW_LINE>responses.put("ok", new OpenAPIRequestResponse("The request was executed successfully.", new OpenAPISchemaReference("ok"), new OpenAPIExampleA...
responses = new LinkedHashMap<>();
1,707,869
public void process(ActionRequest req, ActionResponse res, String path) throws IOException, ServletException {<NEW_LINE>ActionRequestImpl reqImpl = (ActionRequestImpl) req;<NEW_LINE>ActionResponseImpl resImpl = (ActionResponseImpl) res;<NEW_LINE>HttpServletRequest httpReq = reqImpl.getHttpServletRequest();<NEW_LINE>Htt...
.stripReferer(httpReq, forward));
1,774,900
private List<ViewHeaderPropertiesGroup> toViewHeaderProperties(final InvoiceCandidatesAmtSelectionSummary summary) {<NEW_LINE>final ImmutableList.Builder<ViewHeaderPropertiesGroup> result = ImmutableList.<ViewHeaderPropertiesGroup>builder().add(ViewHeaderPropertiesGroup.builder().entry(ViewHeaderProperty.builder().capt...
()).build());
393,023
public static boolean installEnterprisePolicy(AppAlias.Alias alias, boolean userOnly) {<NEW_LINE>if (SystemUtilities.isWindows()) {<NEW_LINE>String key = String.format("Software\\Policies\\%s\\%s\\Certificates", alias.getVendor(), alias.getName(true));<NEW_LINE>;<NEW_LINE>WindowsUtilities.addRegValue(userOnly ? WinReg....
HKEY_LOCAL_MACHINE, key, "ImportEnterpriseRoots", 1);
642,537
public Event[] execute() {<NEW_LINE>try {<NEW_LINE>StateEvent stateEvent = new StateEvent(1, outputAttributes.length);<NEW_LINE>StreamEvent streamEvent = new StreamEvent(metaStreamEvent.getBeforeWindowData().size(), metaStreamEvent.getOnAfterWindowData().size(), metaStreamEvent.getOutputData().size());<NEW_LINE><MASK><...
stateEvent.addEvent(0, streamEvent);
548,671
public static Http.ResponseStatus toHttpResponseStatus(Status status) {<NEW_LINE>Http.ResponseStatus httpStatus;<NEW_LINE>switch(status.getCode()) {<NEW_LINE>case OK:<NEW_LINE>httpStatus = Http.ResponseStatus.create(<MASK><NEW_LINE>break;<NEW_LINE>case INVALID_ARGUMENT:<NEW_LINE>httpStatus = Http.ResponseStatus.create(...
200, status.getDescription());
1,153,839
private static Class findInterfaceImplementation(Map<String, Object> properties, Class topClass, ClasspathImportService classpathImportService) throws ExprValidationException {<NEW_LINE>String message = "Failed to find implementation for interface " + topClass.getName();<NEW_LINE>// Allow to populate the special "class...
message + ", for interfaces please specified the '" + CLASS_PROPERTY_NAME + "' field that provides the class name either as a simple class name or fully qualified");
975,163
public void refresh(final ShardingSphereMetaData schemaMetaData, final FederationDatabaseMetaData database, final Map<String, OptimizerPlannerContext> optimizerPlanners, final Collection<String> logicDataSourceNames, final AlterIndexStatement sqlStatement, final ConfigurationProperties props) throws SQLException {<NEW_...
getAlteredTables().add(tableMetaData);
176,124
private SqlAndParamsExtractor<ImpDataLine> createInsertIntoImportTableSql() {<NEW_LINE>final String tableName = importTableDescriptor.getTableName();<NEW_LINE>final String keyColumnName = importTableDescriptor.getKeyColumnName();<NEW_LINE>final StringBuilder sqlColumns = new StringBuilder();<NEW_LINE>final StringBuilde...
(DB.TO_TABLESEQUENCE_NEXTVAL(tableName));
451,777
private void addListener(MessageListener listener, Collection<? extends Topic> topics) {<NEW_LINE>Assert.notNull(listener, "a valid listener is required");<NEW_LINE>Assert.notEmpty(topics, "at least one topic is required");<NEW_LINE>List<byte[]> channels = new ArrayList<>(topics.size());<NEW_LINE>List<byte[]> patterns ...
size()][]));
291,322
public void apply(String globalTxId, String localTxId, String parentTxId, String callbackMethod, Object... payloads) {<NEW_LINE>String oldGlobalTxId = omegaContext.globalTxId();<NEW_LINE>String oldLocalTxId = omegaContext.localTxId();<NEW_LINE>try {<NEW_LINE>omegaContext.setGlobalTxId(globalTxId);<NEW_LINE>omegaContext...
info("Callback transaction with global tx id [{}], local tx id [{}]", globalTxId, localTxId);
862,289
/* }}} List<Number> genericCompositeToNumber */<NEW_LINE>private void submitTable(List<Object> objects, ValueList vl, /* {{{ */<NEW_LINE>String instancePrefix) {<NEW_LINE>List<CompositeData> cdlist;<NEW_LINE>Set<String> keySet = null;<NEW_LINE>Iterator<String> keyIter;<NEW_LINE>cdlist = new ArrayList<CompositeData>();<...
values = genericCompositeToNumber(cdlist, key);
614,808
public void localeChanged() {<NEW_LINE>WorkspaceLabel.setText(S.get("FPGAWorkSpace"));<NEW_LINE>WorkSpaceButton.setText(S.get("Browse"));<NEW_LINE>EditSelectLabel.setText(S.get("EditColSel"));<NEW_LINE>EditHighligtLabel.setText(S.get("EditColHighlight"));<NEW_LINE>EditMoveLabel.setText(S.get("EditColMove"));<NEW_LINE>E...
(S.get("SelectMapCol"));
1,250,702
public Builder mergeFrom(name.abuchen.portfolio.model.proto.v1.PPortfolio other) {<NEW_LINE>if (other == name.abuchen.portfolio.model.proto.v1.PPortfolio.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (!other.getUuid().isEmpty()) {<NEW_LINE>uuid_ = other.uuid_;<NEW_LINE>onChanged();<NEW_LINE>}<NEW_LINE>if (!ot...
attributesBuilder_.addAllMessages(other.attributes_);
1,479,147
final UpdateBillingGroupResult executeUpdateBillingGroup(UpdateBillingGroupRequest updateBillingGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateBillingGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
addHandlerContext(HandlerContextKey.SERVICE_ID, "billingconductor");
208,994
private void mapJsonHeaders(Map<String, Object> headers, MessageProperties amqpMessageProperties) {<NEW_LINE>if (!amqpMessageProperties.getHeaders().containsKey(JsonHeaders.TYPE_ID.replaceFirst(JsonHeaders.PREFIX, ""))) {<NEW_LINE>Map<String, String> jsonHeaders = new HashMap<>();<NEW_LINE>for (String jsonHeader : Json...
), value.toString());
948,637
public Map.Entry<StubConfiguration, File> downloadAndUnpackStubJar(StubConfiguration stubConfiguration) {<NEW_LINE>try {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("Trying to find a contract for [" + stubConfiguration.toColonSeparatedDependencyNotation() + "]");<NEW_LINE>}<NEW_LINE>Resource repo = this.stu...
walker.foundFile.toFile());
638,270
public CompletableFuture<OutputT> execute(SdkHttpFullRequest input, RequestExecutionContext context) throws Exception {<NEW_LINE>CompletableFuture<OutputT> future = new CompletableFuture<>();<NEW_LINE>long apiCallTimeoutInMillis = resolveTimeoutInMillis(() -> context.requestConfig().apiCallTimeout(), clientConfig.optio...
requestPipeline.execute(input, context);
1,816,719
public void store(String agentId, List<GaugeValue> gaugeValues) throws Exception {<NEW_LINE>if (!agentRollupIdsWithV09Data.contains(agentId)) {<NEW_LINE>delegate.store(agentId, gaugeValues);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<GaugeValue> gaugeValuesV09 = new ArrayList<>();<NEW_LINE>List<GaugeValue> <MASK><NEW_LI...
gaugeValuesPostV09 = new ArrayList<>();
300,256
public void execute(ActionRequest request, ActionResponse response) {<NEW_LINE>Context context = request.getContext();<NEW_LINE>Map<String, Object> valueMapperMap = (Map<String, Object>) context.get("valueMapper");<NEW_LINE>ValueMapper mapper = Beans.get(ValueMapperRepository.class).find(Long.parseLong(valueMapperMap.g...
Object object = fullContext.getTarget();
887,656
public String read() throws Exception {<NEW_LINE>if (isCoordinatedBeforeRead()) {<NEW_LINE>coordinateWithMachine(false);<NEW_LINE>}<NEW_LINE>// getDriver().actuate(this, on);<NEW_LINE>URL obj = null;<NEW_LINE>obj = new URL(this.readUrl);<NEW_LINE>HttpURLConnection con = (HttpURLConnection) obj.openConnection();<NEW_LIN...
int responseCode = con.getResponseCode();
771,194
private void reportIfViolated(ASTComponentReference ref, Object data) {<NEW_LINE>ResolutionResult<ResolvableEntity> resolution = ref.getResolutionCandidates();<NEW_LINE>if (!resolution.isUnresolved()) {<NEW_LINE>// no false positive if not resolved at all<NEW_LINE>ResolvableEntity firstDecl = resolution.getBestCandidat...
getBestCandidates().get(0);
1,764,314
// GEN-LAST:event_deleteUnusedImagesActionPerformed<NEW_LINE>private void duplicateItemActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_duplicateItemActionPerformed<NEW_LINE>if (selectedResource != null && loadedResources.containsResource(selectedResource)) {<NEW_LINE>Box rename = new Box(B...
String val = field.getText();
1,405,272
final GetMapGlyphsResult executeGetMapGlyphs(GetMapGlyphsRequest getMapGlyphsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getMapGlyphsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,755,679
public ConnectorInsertTableHandle beginInsert(ConnectorSession session, ConnectorTableHandle tableHandle, List<ColumnHandle> columns, RetryMode retryMode) {<NEW_LINE>DeltaLakeTableHandle table = (DeltaLakeTableHandle) tableHandle;<NEW_LINE>if (!allowWrite(session, table)) {<NEW_LINE>String fileSystem = new Path(table.g...
session, table.getSchemaTableName());
146,562
private void refreshUpdateVersionViews() {<NEW_LINE>if (mPlugin.isInstalled()) {<NEW_LINE>mInstallButton.setVisibility(View.GONE);<NEW_LINE>if (isNotAutoManaged()) {<NEW_LINE>boolean isUpdateAvailable = PluginUtils.isUpdateAvailable(mPlugin);<NEW_LINE>boolean canUpdate = isUpdateAvailable && !mIsUpdatingPlugin;<NEW_LIN...
mUpdateButton.setVisibility(View.GONE);
814,977
public boolean visit(TypeDeclaration node) {<NEW_LINE>Type superclassType = node.getSuperclassType();<NEW_LINE>if (superclassType != null) {<NEW_LINE>this.wrapParentIndex = this.tm.lastIndexIn(node.getName(), -1);<NEW_LINE>this.wrapGroupEnd = this.tm.lastIndexIn(superclassType, -1);<NEW_LINE>this.wrapIndexes.add(this.t...
typeParameters(), TokenNameCOMMA, TokenNameLESS);
1,387,849
public void removeUsage(Long accountId, Long vmId, Date eventDate) {<NEW_LINE>TransactionLegacy txn = TransactionLegacy.open(TransactionLegacy.USAGE_DB);<NEW_LINE>try {<NEW_LINE>txn.start();<NEW_LINE>try (PreparedStatement pstmt = txn.prepareStatement(UPDATE_DELETED)) {<NEW_LINE>if (pstmt != null) {<NEW_LINE>pstmt.setS...
getTimeZone("GMT"), eventDate));
288,960
Changes computeAssignments() {<NEW_LINE>int[] assignments = new <MASK><NEW_LINE>ImmutableList<Parameter> formalsWithChange = formals.stream().filter(f -> assignments[f.index()] != f.index()).collect(toImmutableList());<NEW_LINE>if (formalsWithChange.isEmpty()) {<NEW_LINE>return Changes.empty();<NEW_LINE>}<NEW_LINE>Immu...
HungarianAlgorithm(costMatrix).execute();
1,850,567
protected void activate() {<NEW_LINE>filterBox.activate();<NEW_LINE>openOfferManager.getObservableList().addListener(openOfferListChangeListener);<NEW_LINE>tradeManager.getObservableList().addListener(tradeListChangeListener);<NEW_LINE>sortedList.comparatorProperty().bind(tableView.comparatorProperty());<NEW_LINE>table...
getScene().getWindow());
1,162,222
public void fetchAndDisplayAttachable() {<NEW_LINE>AtomicReference<TargetObject> available = new AtomicReference<>();<NEW_LINE>AtomicReference<Map<String, ? extends TargetObject>> procs = new AtomicReference<>();<NEW_LINE>AsyncUtils.sequence(TypeSpec.VOID).then(seq -> {<NEW_LINE>setStatusText("Fetching process list");<...
).handle(seq::next);
1,018,848
public RecordingGroup unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RecordingGroup recordingGroup = new RecordingGroup();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
)).unmarshall(context));
1,565,399
public void init() {<NEW_LINE>baseList = new Object[BaseListType.values().length][];<NEW_LINE>collections = new Collection[BaseListType.values().length][CollectionType.values().length];<NEW_LINE>maps = new Map[BaseListType.values().length][CollectionType.values().length];<NEW_LINE>// make an array of linear indices<NEW...
ConsPStack.empty(), list);
238,700
private void extractAmountAndType(@NonNull final ReportEntry2 ntry, @NonNull final EntryTransaction2 txDtls, @NonNull final ESRTransactionBuilder trxBuilder) {<NEW_LINE>// credit-or-debit indicator<NEW_LINE>final AmountAndCurrencyExchange3 transactionDetailAmt = txDtls.getAmtDtls();<NEW_LINE>final AmountAndCurrencyExch...
trxBuilder.trxType(ESRConstants.ESRTRXTYPE_CreditMemo);
797,787
public static void verifyJavaCompatibility(String compiledVersion) {<NEW_LINE>String runtimeVersion = System.getProperty(JAVA_VERSION);<NEW_LINE>if (compiledVersion == null || runtimeVersion == null || compiledVersion.equals(runtimeVersion)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String[] compiledVersionParts = compile...
0], compiledVersionParts[1]);
1,605,860
public static void toJSON(OutputWriter jsonWriter, AuthConfig authConfig) {<NEW_LINE>ArrayList<String> usersErrors = new ArrayList<>();<NEW_LINE>authConfig.getUsers().forEach(r -> usersErrors.addAll(r.errors().getAllOn("name")));<NEW_LINE>ArrayList<String> <MASK><NEW_LINE>authConfig.getRoles().forEach(r -> rolesErrors....
rolesErrors = new ArrayList<>();
1,232,605
public AccountUsage unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AccountUsage accountUsage = new AccountUsage();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_...
class).unmarshall(context));
444,361
public E relaxedPoll() {<NEW_LINE>final long[] sBuffer = sequenceBuffer;<NEW_LINE>final long mask = this.mask;<NEW_LINE>long cIndex;<NEW_LINE>long seqOffset;<NEW_LINE>long seq;<NEW_LINE>long expectedSeq;<NEW_LINE>do {<NEW_LINE>cIndex = lvConsumerIndex();<NEW_LINE><MASK><NEW_LINE>seq = lvLongElement(sBuffer, seqOffset);...
seqOffset = calcCircularLongElementOffset(cIndex, mask);
1,632,170
public Builder mergeFrom(io.kubernetes.client.proto.Meta.APIVersions other) {<NEW_LINE>if (other == io.kubernetes.client.proto.Meta.APIVersions.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (!other.versions_.isEmpty()) {<NEW_LINE>if (versions_.isEmpty()) {<NEW_LINE>versions_ = other.versions_;<NEW_LINE><MASK>...
bitField0_ = (bitField0_ & ~0x00000001);
921,272
protected DataViewComponent createComponent() {<NEW_LINE>JFRModel model = getModel();<NEW_LINE>if (model == null) {<NEW_LINE>MasterViewSupport masterView = new MasterViewSupport(model) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>void firstShown() {<NEW_LINE>}<NEW_LINE>};<NEW_LINE>return new DataViewComponent(masterView.get...
getDetailsView(), DataViewComponent.TOP_RIGHT);
1,111,017
public boolean fetch(@NonNull Context context) {<NEW_LINE>Log.d(TAG, "try to fetch certificate");<NEW_LINE>boolean result = false;<NEW_LINE>CertificatesTrustManager trustManager = new CertificatesTrustManager();<NEW_LINE>try {<NEW_LINE>SSLContext sslContext = SSLContext.getInstance("TLS");<NEW_LINE>TrustManager[] trust...
result = saveCertificate(context, trustManager);
246,172
private Future<EueWriteFeature.Chunk> submit(final ThreadPool pool, final Path file, final Local local, final BandwidthThrottle throttle, final StreamListener listener, final TransferStatus overall, final String url, final String resourceId, final int partNumber, final long offset, final long length, final ConnectionCa...
(length).withParameters(parameters);
873,511
protected void configure() {<NEW_LINE>mapping(FieldDto.class, FieldInfo.class, TypeMappingOptions.oneWay()).fields("type", "type", FieldsMappingOptions.customConverterId(ID_TYPE_CONVERTER)).fields("partition_key", "partitionKey", FieldsMappingOptions.copyByReference()).fields("source_type", "sourceType", FieldsMappingO...
, FieldsMappingOptions.customConverterId(ID_JSON_TYPE_CONVERTER));
670,743
public Object clone() throws CloneNotSupportedException {<NEW_LINE>DefaultXYDataset clone = (DefaultXYDataset) super.clone();<NEW_LINE>clone.seriesKeys = new ArrayList(this.seriesKeys);<NEW_LINE>clone.seriesList = new ArrayList(<MASK><NEW_LINE>for (int i = 0; i < this.seriesList.size(); i++) {<NEW_LINE>double[][] data ...
this.seriesList.size());
1,266,376
public void makeCall(Expression origin, Expression receiver, Expression message, Expression arguments, MethodCallerMultiAdapter adapter, boolean safe, boolean spreadSafe, boolean implicitThis) {<NEW_LINE>ClassNode sender = controller.getClassNode();<NEW_LINE>if (isSuperExpression(receiver) || (isThisExpression(receiver...
adapter, safe, spreadSafe, implicitThis);
601,564
private Mono<Response<BatchAccountInner>> updateWithResponseAsync(String resourceGroupName, String accountName, BatchAccountUpdateParameters parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is re...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
651,352
public void formatValue(Object value, StringBuilder builder) {<NEW_LINE>if (value == null) {<NEW_LINE>builder.append("NULL");<NEW_LINE>} else if (value instanceof Map) {<NEW_LINE>formatMap((Map<String, Object>) value, builder);<NEW_LINE>} else if (value instanceof Collection) {<NEW_LINE>formatIterable((Iterable<?>) val...
append(value.toString());
182,626
public static ListCityMapImageDetailsResponse unmarshall(ListCityMapImageDetailsResponse listCityMapImageDetailsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listCityMapImageDetailsResponse.setRequestId(_ctx.stringValue("ListCityMapImageDetailsResponse.RequestId"));<NEW_LINE>listCityMapImageDetailsResponse.setCode(_ct...
("ListCityMapImageDetailsResponse.Data[" + i + "].DataSourceId"));
654,634
public String run() throws Exception {<NEW_LINE>TableConfig tableConfig = _taskSpec.getTableConfig();<NEW_LINE>String tableName = tableConfig.getTableName();<NEW_LINE>Schema schema = _taskSpec.getSchema();<NEW_LINE>// init record reader config<NEW_LINE>String readerConfigClassName = _taskSpec.getRecordReaderSpec().getC...
ObjectMapper().valueToTree(configs);
1,074,107
private <R> R request(String urlSuffix, Http method, Format format, Object jsonValue) {<NEW_LINE>jsonValue = Json.toBindings(jsonValue);<NEW_LINE>urlSuffix = appendParams(urlSuffix);<NEW_LINE>Endpoint endpoint = urlSuffix != null ? <MASK><NEW_LINE>Object result = null;<NEW_LINE>switch(format) {<NEW_LINE>case Json:<NEW_...
_endpoint.withUrlSuffix(urlSuffix) : _endpoint;
1,064,253
public com.amazonaws.services.route53resolver.model.ValidationException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.route53resolver.model.ValidationException validationException = new com.amazonaws.services.route53resolver.model.ValidationException(null);<NE...
JsonToken token = context.getCurrentToken();