idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,668,116
public FLClientStatus updateModel() {<NEW_LINE>String url = Common.generateUrl(flParameter.isUseElb(), flParameter.getServerNum(), flParameter.getDomainName());<NEW_LINE>UpdateModel updateModelBuf = UpdateModel.getInstance();<NEW_LINE>byte[] updateModelBuffer = updateModelBuf.getRequestUpdateFLJob(iteration, secureProt...
getMessage(), ResponseCode.RequestError);
27,759
private ActionListener<RevertModelSnapshotAction.Response> wrapDeleteOldAnnotationsListener(ActionListener<RevertModelSnapshotAction.Response> listener, ModelSnapshot modelSnapshot, String jobId) {<NEW_LINE>return ActionListener.wrap(response -> {<NEW_LINE>Date deleteAfter = modelSnapshot.getLatestResultTimeStamp() == ...
l.onResponse(response)));
137,849
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.impetus.kundera.client.Client#findIdsByColumn(java.lang.String,<NEW_LINE>* java.lang.String, java.lang.String, java.lang.Object, java.lang.Class)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public Object[] findIdsByColumn(String schemaName, String tableName, String...
(columnName), operator, valueInBytes);
1,013,833
private SingularityDeployResult checkCanaryMaybeFinished(SingularityRequest request, SingularityDeploy deploy, SingularityPendingDeploy pendingDeploy, Collection<SingularityTaskId> deployActiveTasks, Optional<SingularityUpdatePendingDeployRequest> updatePendingDeployRequest, Collection<SingularityTaskId> inactiveDeploy...
request, DeployState.SUCCEEDED, otherActiveTasks);
862,107
public boolean matches() {<NEW_LINE>final ExprEval eval = selector.getObject();<NEW_LINE>if (eval.type().isArray()) {<NEW_LINE>switch(eval.elementType().getType()) {<NEW_LINE>case LONG:<NEW_LINE>final Long[] lResult = eval.asLongArray();<NEW_LINE>if (lResult == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>return ...
).anyMatch(Evals::asBoolean);
291,307
private boolean containsStreamingSource(SqlNode node) {<NEW_LINE>class FindStreamingTablesVisitor extends SqlBasicVisitor<Void> {<NEW_LINE><NEW_LINE>boolean found;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Void visit(SqlIdentifier id) {<NEW_LINE>SqlValidatorTable table = getCatalogReader().getTable(id.names);<NEW_LI...
SqlOperator operator = call.getOperator();
1,583,123
public static BatchPublishScreensResponse unmarshall(BatchPublishScreensResponse batchPublishScreensResponse, UnmarshallerContext _ctx) {<NEW_LINE>batchPublishScreensResponse.setRequestId(_ctx.stringValue("BatchPublishScreensResponse.RequestId"));<NEW_LINE>List<ScreensItem> screens = new ArrayList<ScreensItem>();<NEW_L...
("BatchPublishScreensResponse.Screens[" + i + "].SnapshotId"));
808,686
public ListMemberAccountsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListMemberAccountsResult listMemberAccountsResult = new ListMemberAccountsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE...
class).unmarshall(context));
505,548
protected void init() throws IOException {<NEW_LINE>byte[] bom = new byte[4];<NEW_LINE>int n, unread;<NEW_LINE>n = this.read(bom, 0, bom.length);<NEW_LINE>if ((bom[0] == _0xEF) && (bom[1] == _0xBB) && (bom[2] == _0xBF)) {<NEW_LINE>detectedCharset = Charset.forName("UTF-8");<NEW_LINE>unread = n - 3;<NEW_LINE>} else if (...
detectedCharset = Charset.forName("UTF-16BE");
185,846
public static QueryGovernanceKubernetesClusterResponse unmarshall(QueryGovernanceKubernetesClusterResponse queryGovernanceKubernetesClusterResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryGovernanceKubernetesClusterResponse.setRequestId(_ctx.stringValue("QueryGovernanceKubernetesClusterResponse.RequestId"));<NEW_LIN...
("QueryGovernanceKubernetesClusterResponse.Data.Result[" + i + "].Region"));
479,400
protected void createOptions(IFormatterControlManager manager, Composite parent) {<NEW_LINE>Group wrappingGroup = SWTFactory.createGroup(parent, Messages.CSSFormatterWhiteSpacesPage_spacingSettings, 1, 1, GridData.FILL_HORIZONTAL);<NEW_LINE>// Punctuation Group (we only have one group, so we expand it by default)<NEW_L...
20, 1, GridData.FILL_HORIZONTAL);
81,684
public void onDataNodeConfigChange(Iterable<DataNodeConfig> configs) {<NEW_LINE>try {<NEW_LINE>synchronized (notificationLock) {<NEW_LINE>if (!instanceConfigInitialized) {<NEW_LINE>logger.info("Received initial notification for instance config change from {}", dcName);<NEW_LINE>} else {<NEW_LINE>logger.info("Instance c...
error("Exception occurred when initializing instances in {}: ", dcName, e);
389,682
public static // between the strings str1 and str2 in O(nm)<NEW_LINE>String lcs(char[] A, char[] B) {<NEW_LINE>if (A == null || B == null)<NEW_LINE>return null;<NEW_LINE>final int n = A.length;<NEW_LINE>final int m = B.length;<NEW_LINE>if (n == 0 || m == 0)<NEW_LINE>return null;<NEW_LINE>int[][] dp = new int[n + 1][m +...
] = A[i - 1];
1,417,315
public static Tradable fromProto(protobuf.SellerAsTakerTrade sellerAsTakerTradeProto, BtcWalletService btcWalletService, CoreProtoResolver coreProtoResolver) {<NEW_LINE>protobuf.Trade proto = sellerAsTakerTradeProto.getTrade();<NEW_LINE>ProcessModel processModel = ProcessModel.fromProto(<MASK><NEW_LINE>String uid = Pro...
proto.getProcessModel(), coreProtoResolver);
820,697
private TransportProtos.GetAttributeRequestMsg processGetAttributeRequestMsg(MqttPublishMessage inbound, String topicBase) throws AdaptorException {<NEW_LINE>String topicName = inbound<MASK><NEW_LINE>try {<NEW_LINE>TransportProtos.GetAttributeRequestMsg.Builder result = TransportProtos.GetAttributeRequestMsg.newBuilder...
.variableHeader().topicName();
690,079
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>selectorLabel = new javax.swing.JLabel();<NEW_LINE>performEncapsulate = new javax.swing.JCheckBox();<NEW_LINE>setLayout(new...
java.awt.GridBagLayout());
1,218,639
private static void tryAssertion17IStream(RegressionEnvironment env, String stmtText, String outputLimit, AtomicInteger milestone) {<NEW_LINE>sendTimer(env, 0);<NEW_LINE>env.compileDeploy(stmtText).addListener("s0");<NEW_LINE>String[] fields = new String[<MASK><NEW_LINE>ResultAssertTestResult expected = new ResultAsser...
] { "symbol", "volume", "price" };
1,618,889
public com.amazonaws.services.robomaker.model.ServiceUnavailableException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.robomaker.model.ServiceUnavailableException serviceUnavailableException = new com.amazonaws.services.robomaker.model.ServiceUnavailableExcep...
JsonToken token = context.getCurrentToken();
823,939
public static ListCabInstancesResponse unmarshall(ListCabInstancesResponse listCabInstancesResponse, UnmarshallerContext context) {<NEW_LINE>listCabInstancesResponse.setRequestId(context.stringValue("ListCabInstancesResponse.RequestId"));<NEW_LINE>listCabInstancesResponse.setSuccess<MASK><NEW_LINE>listCabInstancesRespo...
(context.booleanValue("ListCabInstancesResponse.Success"));
1,800,602
private void postorderAdd() {<NEW_LINE>// start with hash to add<NEW_LINE>final var startNode = getCurrentNode();<NEW_LINE>// long for adapting the hash of the parent<NEW_LINE>BigInteger hashCodeForParent = BigInteger.ZERO;<NEW_LINE>// adapting the parent if the current node is no structural one.<NEW_LINE>if (!(startNo...
(hashCodeForParent.multiply(PRIME));
1,235,200
private <T extends Statement> int validate(final ServiceContext serviceContext, final ConfiguredStatement<T> configured, final SessionProperties sessionProperties, final KsqlExecutionContext executionContext, final Injector injector) throws KsqlStatementException {<NEW_LINE>final Statement statement = configured.getSta...
>) customValidators.get(statementClass);
1,612,473
public ExprNode validate(ExprValidationContext validationContext) throws ExprValidationException {<NEW_LINE>this.compileTimeServices = validationContext.getStatementCompileTimeService();<NEW_LINE>this<MASK><NEW_LINE>// rewrite expression into a table-access expression<NEW_LINE>if (validationContext.getStreamTypeService...
.statementRawInfo = validationContext.getStatementRawInfo();
624,929
private final void init(ClassInfo classInfo) throws Exception {<NEW_LINE>Class clazz = classInfo.clazz;<NEW_LINE>ClassDescriptor desc = ClassDescriptor.getDecodingClassDescriptor(classInfo, true);<NEW_LINE>for (Binding param : desc.ctor.parameters) {<NEW_LINE>addBinding(classInfo, param);<NEW_LINE>}<NEW_LINE>this.desc ...
JsonException("no constructor for: " + desc.clazz);
253,924
public void syncAll() throws SyncConnectionException, IOException, TException {<NEW_LINE>// 1. Connect to sync receiver and confirm identity<NEW_LINE>establishConnection(config.getServerIp(), config.getServerPort());<NEW_LINE>confirmIdentity();<NEW_LINE>serviceClient.startSync();<NEW_LINE>// 2. Sync Schema<NEW_LINE>syn...
info("There are {} data dirs to be synced.", dataDirs.length);
377,818
public void drawCustomQuad(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4) {<NEW_LINE>sprite.bindTexture();<NEW_LINE>double uMin = sprite.getInterpU(0);<NEW_LINE>double uMax = sprite.getInterpU(1);<NEW_LINE>double vMin = sprite.getInterpV(0);<NEW_LINE>double vMax = sprite.getInte...
, 0, q[2]);
174,103
public K firstKey() {<NEW_LINE>atomicOperationsManager.acquireReadLock(this);<NEW_LINE>try {<NEW_LINE>acquireSharedLock();<NEW_LINE>try {<NEW_LINE>final OAtomicOperation atomicOperation = atomicOperationsManager.getCurrentOperation();<NEW_LINE>final BucketSearchResult searchResult = firstItem(atomicOperation);<NEW_LINE...
searchResult.getLastPathItem(), false);
35,832
public void run(RegressionEnvironment env) {<NEW_LINE>if (env.isHA()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String epl = "@name('flow') create dataflow RollingTopWords\n" + "create objectarray schema WordEvent (word string),\n" + "Emitter -> wordstream<WordEvent> {name:'a'} // Produces word stream\n" + "Select(wordstr...
][]) row[0];
572,462
public void propagate(InstanceState circState) {<NEW_LINE>Object trigger = circState.getAttributeValue(StdAttr.EDGE_TRIGGER);<NEW_LINE>final var state = getTtyState(circState);<NEW_LINE>final var <MASK><NEW_LINE>final var clock = circState.getPortValue(CK);<NEW_LINE>final var enable = circState.getPortValue(WE);<NEW_LI...
clear = circState.getPortValue(CLR);
222,252
private void coalesce(FileUseMapEntry<?> entry) {<NEW_LINE>Preconditions.checkArgument(entry.isFree(), "!entry.isFree()");<NEW_LINE>FileUseMapEntry<?> prevToMerge = null;<NEW_LINE>long start = entry.getStart();<NEW_LINE>if (start > 0) {<NEW_LINE>prevToMerge = map.floor(FileUseMapEntry.makeFree(start - 1, start));<NEW_L...
.makeFree(newStart, newEnd));
905,699
private List<TermValueSetConcept> findByValueSetResourcePidSystemAndCode(ResourcePersistentId theResourcePid, String theSystem, String theCode) {<NEW_LINE>assert TransactionSynchronizationManager.isSynchronizationActive();<NEW_LINE>List<TermValueSetConcept> retVal = new ArrayList<>();<NEW_LINE>Optional<TermValueSetConc...
versionIndex = theSystem.indexOf("|");
1,571,040
public void markRunAs(@NonNull RunId runId, @NonNull RunState runState, @Nullable Instant transitionedAt) {<NEW_LINE>log.debug("Marking run with ID '{}' as '{}'...", runId, runState);<NEW_LINE>if (transitionedAt == null) {<NEW_LINE>transitionedAt = Instant.now();<NEW_LINE>}<NEW_LINE>ExtendedRunRow runRow = findRunByUui...
bagOfJobVersionInfo.getOutputs())));
1,433,880
public void writeStringToFile(String filename, String content) {<NEW_LINE>Log.i("minko-java", <MASK><NEW_LINE>try {<NEW_LINE>File outputFile = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS), filename);<NEW_LINE>// Separate name from format in filename.<NEW_LINE>int dotIndex = fi...
"[WebViewJSInterface] writeStringToFile: " + filename + ": " + content);
1,813,891
public ListSecurityConfigurationsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListSecurityConfigurationsResult listSecurityConfigurationsResult = new ListSecurityConfigurationsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = conte...
)).unmarshall(context));
1,108,799
protected void paintBackground(Graphics g, JComponent c) {<NEW_LINE>if (isTabButton(c)) {<NEW_LINE>int height = c.getHeight();<NEW_LINE>int width = c.getWidth();<NEW_LINE>boolean selected = ((AbstractButton) c).isSelected();<NEW_LINE>Color enabledColor = selected ? clientPropertyColor(c, TAB_BUTTON_SELECTED_BACKGROUND,...
super.paintBackground(g, c);
248,653
public Object fromString(final String str) {<NEW_LINE>final int len = str.length();<NEW_LINE>if (len == 0) {<NEW_LINE>throw new NumberFormatException("For input string: \"\"");<NEW_LINE>}<NEW_LINE>if (len < 17) {<NEW_LINE>return Long.decode(str);<NEW_LINE>}<NEW_LINE>final char c0 = str.charAt(0);<NEW_LINE>if (c0 != '0'...
, 10), 16) << 32;
391,006
public static ImmutableSet<TypeElement> referencedTypes(TypeMirror type) {<NEW_LINE>checkNotNull(type);<NEW_LINE>ImmutableSet.Builder<TypeElement> elements = ImmutableSet.builder();<NEW_LINE>type.accept(new SimpleTypeVisitor6<Void, ImmutableSet.Builder<TypeElement>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Void...
).accept(this, p);
417,031
private static void buildColorTable() {<NEW_LINE>synchronized (TiColorHelper.class) {<NEW_LINE>colorTable <MASK><NEW_LINE>colorTable.put("black", Color.BLACK);<NEW_LINE>colorTable.put("red", Color.RED);<NEW_LINE>colorTable.put("purple", Color.rgb(0x80, 0, 0x80));<NEW_LINE>colorTable.put("orange", Color.rgb(0xff, 0x80, ...
= new HashMap<>(20);
1,655,244
public final Object sendResponse(final Map<String, Object> event, final Context context, final String responseStatus, ObjectNode responseData) {<NEW_LINE>String responseUrl = (String) event.get("ResponseURL");<NEW_LINE>LOGGER.info("ResponseURL: {}", responseUrl);<NEW_LINE>try {<NEW_LINE>URL url = new URL(responseUrl);<...
(Utils.getFullStackTrace(e));
1,657,142
protected BatchPart createSafe() {<NEW_LINE>BatchPartEntityManager partEntityManager = batchServiceConfiguration.getBatchPartEntityManager();<NEW_LINE>BatchPartEntity batchPart = partEntityManager.create();<NEW_LINE>batchPart.setBatchId(batch.getId());<NEW_LINE>batchPart.setBatchType(batch.getBatchType());<NEW_LINE>bat...
setBatchSearchKey2(batch.getBatchSearchKey2());
1,723,136
public Request<PutRolePermissionsBoundaryRequest> marshall(PutRolePermissionsBoundaryRequest putRolePermissionsBoundaryRequest) {<NEW_LINE>if (putRolePermissionsBoundaryRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<PutRolePermissionsBou...
request.setHttpMethod(HttpMethodName.POST);
1,270,067
public void marshall(AwsEc2VpnConnectionDetails awsEc2VpnConnectionDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (awsEc2VpnConnectionDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(awsEc2...
awsEc2VpnConnectionDetails.getCustomerGatewayId(), CUSTOMERGATEWAYID_BINDING);
851,038
public Description matchBinary(BinaryTree tree, VisitorState state) {<NEW_LINE>if (!BINARY_TREE_MATCHER.matches(tree, state)) {<NEW_LINE>return Description.NO_MATCH;<NEW_LINE>}<NEW_LINE>int intValue = ((Number) ((LiteralTree) tree.getRightOperand()).<MASK><NEW_LINE>Fix fix;<NEW_LINE>if (intValue >= 32 && intValue <= 63...
getValue()).intValue();
1,027,584
private void parseHistory(List<V1ControllerRevision> historyList, PodTemplateParser parser) throws ApiException, KubectlException {<NEW_LINE>Map<Long, V1ControllerRevision> <MASK><NEW_LINE>for (V1ControllerRevision history : historyList) {<NEW_LINE>historyInfo.put(history.getRevision(), history);<NEW_LINE>}<NEW_LINE>if...
historyInfo = new HashMap<>();
408,510
private static List<TypeSignatureParameter> translateParameters(DateTimeDataType type, Set<String> typeVariables) {<NEW_LINE>List<TypeSignatureParameter> parameters = new ArrayList<>();<NEW_LINE>if (type.getPrecision().isPresent()) {<NEW_LINE>DataTypeParameter precision = type.getPrecision().get();<NEW_LINE>if (precisi...
).getValue())));
185,724
public void run() {<NEW_LINE>// Deletes are implemented per BootDashModel. So sort selection into bins per model.<NEW_LINE>Multimap<BootDashModel, BootDashElement> sortingBins = HashMultimap.create();<NEW_LINE>for (BootDashElement e : getSelectedElements()) {<NEW_LINE>BootDashModel model = e.getBootDashModel();<NEW_LIN...
BootDashModel model = workitem.getKey();
711,434
public int cb(http_parser.lolevel.HTTPParser p) {<NEW_LINE><MASK><NEW_LINE>if (callback_object != null) {<NEW_LINE>if (((RubyObject) callback_object).respond_to_p(runtime.newSymbol("on_headers_complete")).toJava(Boolean.class) == Boolean.TRUE) {<NEW_LINE>ThreadContext context = callback_object.getRuntime().getCurrentCo...
IRubyObject ret = runtime.getNil();
596,155
public boolean apply(Game game, Ability source) {<NEW_LINE>Player opponent = game.getPlayer(source.getFirstTarget());<NEW_LINE>Player controller = game.<MASK><NEW_LINE>if (opponent == null || controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>opponent.revealCards(source, opponent.getHand(), game);<NEW_LIN...
getPlayer(source.getControllerId());
1,606,897
private void addDemandDetailToBuilder(@Nullable final DemandDetailsQuery demandDetailsQuery, @NonNull final IQueryBuilder<I_MD_Candidate> builder) {<NEW_LINE>if (demandDetailsQuery == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final IQueryBuilder<I_MD_Candidate_Demand_Detail> demandDetailsSubQueryBuilder = Services.g...
= demandDetailsQuery.getForecastLineId() != UNSPECIFIED_REPO_ID;
1,116,793
public void sendChunkData(String topic, String groupId, String fileId, int chunkIndex, byte[] data) throws BrokerException {<NEW_LINE>// check file context exist<NEW_LINE>FileChunksMeta fileChunksMeta = this.getSenderFileChunksMeta(topic, groupId, fileId);<NEW_LINE>log.info("send chunk data via AMOP channel, {}#{}", fi...
FileEvent.EventType.FileChannelData, fileId);
580,899
public void onBackPressed() {<NEW_LINE>logDebug("onBackPressed");<NEW_LINE>if (psaWebBrowser != null && psaWebBrowser.consumeBack())<NEW_LINE>return;<NEW_LINE>retryConnectionsAndSignalPresence();<NEW_LINE>if (fileLinkFolderLink) {<NEW_LINE>fileLinkFragmentContainer.setVisibility(View.GONE);<NEW_LINE>fragmentContainer.s...
emptyImageView.setVisibility(View.GONE);
1,584,081
public void serialize(DataOutput out) throws IOException {<NEW_LINE>int startOffset = 0;<NEW_LINE>boolean hasrun = hasRunContainer();<NEW_LINE>if (hasrun) {<NEW_LINE>out.writeInt(Integer.reverseBytes(SERIAL_COOKIE | ((size <MASK><NEW_LINE>byte[] bitmapOfRunContainers = new byte[(size + 7) / 8];<NEW_LINE>for (int i = 0;...
- 1) << 16)));
1,146,719
public static void main(String[] args) throws UnknownFunctionException, UnparsableExpressionException, InvalidCustomFunctionException {<NEW_LINE>// Test 1<NEW_LINE>// ======<NEW_LINE>Calculable calc1 = new ExpressionBuilder("x * y - 2").withVariableNames("x", "y").build();<NEW_LINE>calc1.setVariable(new Variable("x", 1...
10, 10, 15 }));
1,802,773
public static Statistics estimateColumnToColumnComparison(ScalarOperator leftColumn, ColumnStatistic leftColumnStatistic, ScalarOperator rightColumn, ColumnStatistic rightColumnStatistic, BinaryPredicateOperator predicate, Statistics statistics) {<NEW_LINE>switch(predicate.getBinaryType()) {<NEW_LINE>case EQ:<NEW_LINE>...
rightColumn, rightColumnStatistic, statistics, false);
1,536,120
public PageInfo<InlongStreamListResponse> listByCondition(InlongStreamPageRequest request) {<NEW_LINE>LOGGER.debug("begin to list inlong stream page by {}", request);<NEW_LINE>PageHelper.startPage(request.getPageNum(), request.getPageSize());<NEW_LINE>Page<InlongStreamEntity> entityPage = (Page<InlongStreamEntity>) str...
String sinkType = request.getSinkType();
1,041,067
public void createZipAndUpload(final ProjectManager projectManager, final User user, final String reportalStorageUser) throws Exception {<NEW_LINE>// Create temp folder to make the zip file for upload<NEW_LINE>final File tempDir = Utils.createTempDir();<NEW_LINE>final File dataDir = new File(tempDir, "data");<NEW_LINE>...
"", dependentJob, reportalStorageUser, extras);
1,562,371
final ListSolutionVersionsResult executeListSolutionVersions(ListSolutionVersionsRequest listSolutionVersionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listSolutionVersionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,295,545
public void addLineageMappings(String userId, String serverName, List<LineageMapping> lineageMappings, FFDCResponseBase response, String externalSourceName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException {<NEW_LINE>final String methodName = "addLineageMappings";<NEW_LINE>log.debug...
getDataEngineSchemaTypeHandler(userId, serverName, methodName);
1,056,720
public void run() {<NEW_LINE>CobubLog.d(UmsConstants.LOG_TAG, <MASK><NEW_LINE>CobubLog.d(UmsConstants.LOG_TAG, SaveInfo.class, "json data " + arrObj.toString());<NEW_LINE>if (arrObj.length() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>File file = new File(filePath);<NEW_LINE>long filesize = prefUtil.getValue("file_siz...
SaveInfo.class, "Save cache file " + filePath);
641,915
private Multimap<String, JMethod> findAllSetters(JClassType fieldType) {<NEW_LINE>Multimap<String, JMethod> allSetters = LinkedHashMultimap.create();<NEW_LINE>for (JMethod method : fieldType.getInheritableMethods()) {<NEW_LINE>if (!isSetterMethod(method)) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>// Take out "set"<NEW_L...
allSetters.put(beanPropertyName, method);
916,058
public synchronized boolean saveRecentSearch(String query) {<NEW_LINE>// prevent duplicate entries<NEW_LINE>String historyEntry = queryMap.get(query);<NEW_LINE>if (historyEntry != null) {<NEW_LINE>searchHistory.remove(historyEntry);<NEW_LINE>}<NEW_LINE>// add new entry<NEW_LINE>String now = Instant.now().with(ChronoFie...
now + " " + query, query);
1,515,250
private void handleNonDictionaryBasedColumn(SegmentDirectory.Writer segmentWriter, ColumnMetadata columnMetadata, GeoSpatialIndexCreatorProvider indexCreatorProvider) throws Exception {<NEW_LINE>File indexDir = _segmentMetadata.getIndexDir();<NEW_LINE>String columnName = columnMetadata.getColumnName();<NEW_LINE>try (Fo...
ForwardIndexReaderContext readerContext = forwardIndexReader.createContext();
1,237,074
public void cancelBorrowRequest(Long id, Account borrower) {<NEW_LINE>Book book = bookDao.findOne(id);<NEW_LINE>if (!book.status.equals(Book.STATUS_REQUEST)) {<NEW_LINE>logger.error("User cancel the book not reqesting, user id:" + borrower.id + ",book id:" + id + ",status:" + book.status);<NEW_LINE>throw new <MASK><NEW...
ServiceException("The book is not requesting", ErrorCode.BOOK_STATUS_WRONG);
1,274,409
private <T> T createInstance(Class<? extends T> implementation) {<NEW_LINE>Constructor<?> constructor = null;<NEW_LINE>for (Constructor<?> c : implementation.getConstructors()) {<NEW_LINE>if (c.isAnnotationPresent(Inject.class)) {<NEW_LINE>constructor = c;<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>// fallback to d...
T) constructor.newInstance(args);
703,999
private List<TrkSegment> createSimplifiedSegments(@NonNull GPXFile gpxFile, @NonNull List<RouteColorizationPoint> colorizationPoints, @NonNull GradientScaleType scaleType) {<NEW_LINE>List<TrkSegment> simplifiedSegments = new ArrayList<>();<NEW_LINE><MASK><NEW_LINE>int id = 0;<NEW_LINE>int colorPointIdx = 0;<NEW_LINE>fo...
ColorizationType colorizationType = scaleType.toColorizationType();
812,650
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View root = super.onCreateView(inflater, container, savedInstanceState);<NEW_LINE>emptyView.<MASK><NEW_LINE>emptyView.setTitle(R.string.no_fav_episodes_head_label);<NEW_LINE>emptyView.setMessage(R.strin...
setIcon(R.drawable.ic_star);
358,613
final UnmonitorInstancesResult executeUnmonitorInstances(UnmonitorInstancesRequest unmonitorInstancesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(unmonitorInstancesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
endClientExecution(awsRequestMetrics, request, response);
3,231
private void recordRootSpan(SpanRecorder recorder, AMQConnection amqConnection, String exchange, String routingKey, Map<String, Object> headers) {<NEW_LINE>recorder.recordServiceType(RabbitMQClientConstants.RABBITMQ_CLIENT);<NEW_LINE>recorder.recordApi(CONSUMER_ENTRY_METHOD_DESCRIPTOR);<NEW_LINE>String endPoint = Rabbi...
LocalAddressAccessor) frameHandler)._$PINPOINT$_getLocalAddress();
1,698,957
void uploadResults() {<NEW_LINE>System.out.format("ReportUploader: destination= '%s'\n", destination);<NEW_LINE>try {<NEW_LINE>if (isNullOrEmpty(destination)) {<NEW_LINE>System.out.format("ReportUploader: no destination given, skipping...\n");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (String key : UPLOAD_FUNCTIONS.keyS...
e.printStackTrace(System.out);
788,331
public int minFallingPathSum(int[][] A) {<NEW_LINE>int size = A.length;<NEW_LINE>int[][] dp = new int[size][size];<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE>for (int j = 0; j < size; j++) {<NEW_LINE>if (i == 0) {<NEW_LINE>dp[i][j] = A[i][j];<NEW_LINE>} else {<NEW_LINE>int lastRow = dp[i - 1][j];<NEW_LINE>if (j...
size - 1][i]);
824,110
Node createJSCompMakeIteratorCall(Node iterable, StaticScope scope) {<NEW_LINE>Node makeIteratorName = createQName(scope, "$jscomp.makeIterator");<NEW_LINE>final Type type;<NEW_LINE>switch(this.typeMode) {<NEW_LINE>case JSTYPE:<NEW_LINE>// Since createCall (currently) doesn't handle templated functions, fill in the tem...
createCall(makeIteratorName, type, iterable);
1,524,456
public INDArray preProcess(INDArray input, int miniBatchSize, LayerWorkspaceMgr workspaceMgr) {<NEW_LINE>// Need to reshape FF activations (2d) activations to 3d (for input into RNN layer)<NEW_LINE>if (input.rank() != 2) {<NEW_LINE>if (input.rank() < 2) {<NEW_LINE>input = input.reshape(1, input.length());<NEW_LINE>} el...
val shape = input.shape();
50,676
public static String encode(byte[] in) {<NEW_LINE>StringBuilder out = s_workBuffer.get();<NEW_LINE>out.setLength(0);<NEW_LINE>int inLength = in.length;<NEW_LINE>int nFullGroups = inLength / 3;<NEW_LINE>int nBytesInPartialGroup = inLength - 3 * nFullGroups;<NEW_LINE>int inIndex = 0;<NEW_LINE>for (int i = 0; i < nFullGro...
s_encodeTable[byte0 >> 2]);
343,344
public List<StatChart> selectAgentChartList(String agentId, TimeWindow timeWindow) {<NEW_LINE>Objects.requireNonNull(agentId, "agentId");<NEW_LINE>Objects.requireNonNull(timeWindow, "timeWindow");<NEW_LINE>List<SampledDataSourceList> sampledAgentStatList = this.<MASK><NEW_LINE>if (CollectionUtils.isEmpty(sampledAgentSt...
sampledDataSourceDao.getSampledAgentStatList(agentId, timeWindow);
1,015,026
public boolean isPPOrderInvoicedForMaterialTracking(@NonNull final I_PP_Order ppOrder, @NonNull final I_M_Material_Tracking materialTrackingRecord) {<NEW_LINE>final IQueryBL queryBL = Services.get(IQueryBL.class);<NEW_LINE>return queryBL.createQueryBuilder(I_C_Invoice_Detail.class, ppOrder).addOnlyActiveRecordsFilter()...
.create().anyMatch();
701,998
private static void deleteManagedLedgers(MetadataStore metadataStore, ManagedLedgerFactory managedLedgerFactory) {<NEW_LINE>final String managedLedgersRoot = "/managed-ledgers";<NEW_LINE>metadataStore.getChildren(managedLedgersRoot).join().forEach(tenant -> {<NEW_LINE>final String tenantRoot = managedLedgersRoot + "/" ...
delete(topicName.getPersistenceNamingEncoding());
1,717,397
public Set<String> assignRoleToUsers(String roleName, Set<String> userIds, String operatorUserId) {<NEW_LINE>Role role = findRoleByRoleName(roleName);<NEW_LINE>Preconditions.checkState(role != null, "Role %s doesn't exist!", roleName);<NEW_LINE>List<UserRole> existedUserRoles = userRoleRepository.findByUserIdInAndRoleI...
collect(Collectors.toList());
1,689,657
public EventLogEntryEntity generateEventLogEntry(CommandContext commandContext) {<NEW_LINE>FlowableEntityEvent entityEvent = (FlowableEntityEvent) event;<NEW_LINE>ExecutionEntity processInstanceEntity = (ExecutionEntity) entityEvent.getEntity();<NEW_LINE>Map<String, Object> data = new HashMap<>();<NEW_LINE>putInMapIfNo...
ID, processInstanceEntity.getId());
673,254
private void decryptAttachments(@NotNull final SmimeParseResultBuilder smimeBuilder, @NotNull final List<AttachmentResource> attachments, @Nullable final Pkcs12Config pkcs12Config) {<NEW_LINE>LOGGER.debug("checking for S/MIME signed / encrypted attachments...");<NEW_LINE>List<AttachmentDecryptionResult> decryptedAttach...
getDecryptedAttachmentResults().get(0);
1,597,235
public void ensureFoldExists(FoldHierarchyTransaction transaction) {<NEW_LINE>if (isSolitaire() || !isStartMark()) {<NEW_LINE>throw new IllegalStateException();<NEW_LINE>}<NEW_LINE>if (fold == null) {<NEW_LINE>try {<NEW_LINE>if (!startMark) {<NEW_LINE>// NOI18N<NEW_LINE>throw new IllegalStateException("Not start mark: ...
= pairMark.getOffset() + endGuardedLength;
1,077,727
private void recoverAllTables(RecycleDatabaseInfo dbInfo) throws DdlException {<NEW_LINE>Database db = dbInfo.getDb();<NEW_LINE>Set<String> tableNames = Sets.newHashSet(dbInfo.getTableNames());<NEW_LINE>long dbId = db.getId();<NEW_LINE>Iterator<Map.Entry<Long, RecycleTableInfo>> iterator = idToTable.entrySet().iterator...
remove(table.getName());
373,916
public void execute(final Map<String, Object> properties) throws FrameworkException {<NEW_LINE>final String oldKey = (<MASK><NEW_LINE>final String newKey = (String) properties.get("newKey");<NEW_LINE>String type = null;<NEW_LINE>if (StringUtils.isNotBlank(oldKey) && StringUtils.isNotBlank(newKey)) {<NEW_LINE>if (proper...
String) properties.get("oldKey");
1,254,781
public DeleteCollectionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteCollectionResult deleteCollectionResult = new DeleteCollectionResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_...
int originalDepth = context.getCurrentDepth();
1,640,520
public static CommandDescriptor descriptor() {<NEW_LINE>return createDescriptor("remove", "Removes one or more Keys from a Key-Value table.").withArg("scoped-kvt-name", "Name of the Scoped Key-Value Table to remove from.").withArg("[key-family]", "(Optional) Key Family to remove Keys for.").withArg("entries", "A JSON A...
"Conditionally removes 'key1' and 'key2' from 'scope1/kvt1' " + "conditioned on `key1` having version 'seg1:ver1'.").build();
1,248,222
static void init(final Configuration configuration) {<NEW_LINE>StringCast.datetimeFormat = configuration.getString("common.column.datetimeFormat", StringCast.datetimeFormat);<NEW_LINE>StringCast.dateFormat = configuration.getString("common.column.dateFormat", StringCast.dateFormat);<NEW_LINE>StringCast.timeFormat = con...
StringCast.dateFormat, StringCast.timeZoner);
1,033,537
public ProcessStatus restIntruderDataHandler(final PwmRequest pwmRequest) throws PwmUnrecoverableException, IOException {<NEW_LINE>final int max = readMaxParameter(pwmRequest, 1000, 10 * 1000);<NEW_LINE>final TreeMap<String, List<PublicIntruderRecord>> <MASK><NEW_LINE>try {<NEW_LINE>for (final IntruderRecordType record...
returnData = new TreeMap<>();
687,061
public void init(List<String> keys, List<ParamValue> values) {<NEW_LINE>keys.add(CommonConstants.VERSION_KEY);<NEW_LINE>values.add(new DynamicValues(null));<NEW_LINE>keys.add(CommonConstants.SIDE_KEY);<NEW_LINE>values.add(new FixedParamValue(CommonConstants.CONSUMER_SIDE, CommonConstants.PROVIDER_SIDE));<NEW_LINE>keys....
keys.add(CommonConstants.DUBBO_VERSION_KEY);
281,379
public void doPaint(Graphics2D g) {<NEW_LINE>// Draw legend content inside legend box<NEW_LINE>double startx = xOffset + chart.getStyler().getLegendPadding();<NEW_LINE>double starty = yOffset + chart.getStyler().getLegendPadding();<NEW_LINE>Object oldHint = g.getRenderingHint(RenderingHints.KEY_ANTIALIASING);<NEW_LINE>...
setRenderingHint(RenderingHints.KEY_ANTIALIASING, oldHint);
1,017,544
default void dispatchResized(Rect frame) {<NEW_LINE>Rect emptyRect = new Rect(<MASK><NEW_LINE>int apiLevel = RuntimeEnvironment.getApiLevel();<NEW_LINE>if (apiLevel <= Build.VERSION_CODES.JELLY_BEAN) {<NEW_LINE>dispatchResized(frame.width(), frame.height(), emptyRect, emptyRect, true, null);<NEW_LINE>} else if (apiLeve...
0, 0, 0, 0);
1,247,118
private void initControl() {<NEW_LINE>detailDao = new DetailDao(this, mUrl);<NEW_LINE>detailTitle = (TextView) findViewById(R.id.details_textview_title);<NEW_LINE>detailTitle.setText(mTitle);<NEW_LINE>loadLayout = (LinearLayout) findViewById(R.id.view_loading);<NEW_LINE>failLayout = (LinearLayout) findViewById(R.id.vie...
findViewById(R.id.imageview_details_discuss);
1,455,836
private SQLStatement parseFullTextCharFilter() {<NEW_LINE>MysqlCreateFullTextCharFilterStatement stmt = new MysqlCreateFullTextCharFilterStatement();<NEW_LINE>SQLName name = this.exprParser.name();<NEW_LINE>stmt.setName(name);<NEW_LINE>accept(Token.LPAREN);<NEW_LINE>for (; ; ) {<NEW_LINE>SQLAssignItem assignItem <MASK>...
= this.exprParser.parseAssignItem();
675,508
private static void validateTopicConfig(final String name, final KsqlConfig ksqlConfig, final KafkaTopicClient topicClient) {<NEW_LINE>final TopicDescription description = topicClient.describeTopic(name);<NEW_LINE>final int actualPartitionCount = description.partitions().size();<NEW_LINE>if (actualPartitionCount != INT...
existingConfig = topicClient.getTopicConfig(name);
1,333,937
public static RandomScoreFunctionBuilder fromXContent(XContentParser parser) throws IOException, ParsingException {<NEW_LINE>RandomScoreFunctionBuilder randomScoreFunctionBuilder = new RandomScoreFunctionBuilder();<NEW_LINE>String currentFieldName = null;<NEW_LINE>XContentParser.Token token;<NEW_LINE>while ((token = pa...
seed(parser.text());
1,422,078
public static <T> byte[] toByteArray(T message, Schema<T> schema, LinkedBuffer buffer) {<NEW_LINE>if (buffer.start != buffer.offset)<NEW_LINE>throw new IllegalArgumentException("Buffer previously used and had not been reset.");<NEW_LINE>final XmlXOutput output <MASK><NEW_LINE>final String name = schema.messageName();<N...
= new XmlXOutput(buffer, schema);
1,393,069
protected JRTemplateGenericPrintElement createInteractiveElement(String chunkId, boolean floatingHeaders) {<NEW_LINE>// TODO lucianc cache<NEW_LINE>JRTemplateGenericElement genericElementTemplate = new JRTemplateGenericElement(getElementOrigin(), defaultStyleProvider, CROSSTAB_INTERACTIVE_ELEMENT_TYPE);<NEW_LINE>JRTemp...
CrosstabInteractiveJsonHandler.ELEMENT_PARAMETER_START_COLUMN_INDEX, crosstabFiller.startColumnIndex);
1,333,607
public static void main(String[] args) throws Exception {<NEW_LINE>if (args.length != 4) {<NEW_LINE>System.err.printf("Expected 4 parameters, got %d\n", args.length);<NEW_LINE>System.err.println("Usage: java SignatureExample sign/verify key-file input-file signature-file");<NEW_LINE>System.exit(1);<NEW_LINE>}<NEW_LINE>...
err.println("Cannot create primitive, got error: " + ex);
1,633,688
public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasMinLengthAndAllElementsNotNull(sources, 2);<NEW_LINE>Date date = null;<NEW_LINE>if (sources[0] instanceof Date) {<NEW_LINE>date = (Date) sources[0];<NEW_LINE>} else...
caller, getParametersAsString(sources) });
11,870
public ActionTypeId unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ActionTypeId actionTypeId = new ActionTypeId();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_...
class).unmarshall(context));
772,273
private String _getRenderFlashMapTokenFromPreviousRequest(FacesContext facesContext) {<NEW_LINE>ExternalContext externalContext = facesContext.getExternalContext();<NEW_LINE>String tokenValue = null;<NEW_LINE><MASK><NEW_LINE>if (clientWindow != null) {<NEW_LINE>if (facesContext.getApplication().getStateManager().isSavi...
ClientWindow clientWindow = externalContext.getClientWindow();
674,934
private void chooseAndSearchLibrary(List<Player> usingPlayers, Player player, int xValue, Ability source, MageObject sourceObject, Game game) {<NEW_LINE>if (player.chooseUse(Outcome.PutCardInPlay, "Search your library for up " + xValue + " creature cards and put them into your hand?", source, game)) {<NEW_LINE>usingPla...
) + ')', cards, game);
409,828
private File download(String uri, File tmpDir, String relativePath) {<NEW_LINE>File file = null;<NEW_LINE>FileOutputStream fos = null;<NEW_LINE>ReadableByteChannel rbc = null;<NEW_LINE>try {<NEW_LINE>file = new File(tmpDir, relativePath);<NEW_LINE>Files.createDirectories(file.getParentFile().toPath());<NEW_LINE><MASK><...
URL website = new URL(uri);