idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,372,038
public Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcException {<NEW_LINE>if (omegaContext != null) {<NEW_LINE>String globalTxId = invocation.getAttachment(GLOBAL_TX_ID_KEY);<NEW_LINE>if (globalTxId == null) {<NEW_LINE>LOG.debug("Cannot inject transaction ID, no such omega context global id: {}", G...
, omegaContext.localTxId() });
1,122,684
public void generateTicketPdf(@PathVariable("eventName") String eventName, @PathVariable("ticketIdentifier") String ticketIdentifier, HttpServletResponse response) {<NEW_LINE>ticketReservationManager.fetchCompleteAndAssigned(eventName, ticketIdentifier).ifPresentOrElse(data -> {<NEW_LINE>Ticket ticket = data.getRight()...
(ticket.getId()));
1,674,020
public void createDataStream(CreateDataStreamClusterStateUpdateRequest request, ActionListener<AcknowledgedResponse> finalListener) {<NEW_LINE>AtomicReference<String> firstBackingIndexRef = new AtomicReference<>();<NEW_LINE>ActionListener<ClusterStateUpdateResponse> listener = ActionListener.wrap(response -> {<NEW_LINE...
createDataStream(metadataCreateIndexService, currentState, request);
1,182,117
public static void main(String[] args) {<NEW_LINE>String fileName = UtilIO.pathExample("background/street_intersection.mp4");<NEW_LINE>// String fileName = UtilIO.pathExample("background/rubixfire.mp4"); // dynamic background<NEW_LINE>// String fileName = UtilIO.pathExample("background/horse_jitter.mp4"); // degraded p...
segmented.height, BufferedImage.TYPE_INT_RGB);
1,553,732
public void load() {<NEW_LINE>jTFLogFileName.setText(ConfigOptions.sLogFileName);<NEW_LINE>jTFPath.setText(ConfigOptions.sPaths);<NEW_LINE>try {<NEW_LINE>List<String> mainPaths = ConfigFile.getConfigFile().getRecentMainPaths(ConfigFile.APP_DM);<NEW_LINE>String[] paths = null;<NEW_LINE>if (mainPaths != null && !mainPath...
textNullStrings.setText(ConfigOptions.sNullStrings);
393,296
private static void mergeResults(Map<String, Response> remoteResponses, List<ResolvedIndex> indices, List<ResolvedAlias> aliases, List<ResolvedDataStream> dataStreams) {<NEW_LINE>for (Map.Entry<String, Response> responseEntry : remoteResponses.entrySet()) {<NEW_LINE>String clusterAlias = responseEntry.getKey();<NEW_LIN...
Response response = responseEntry.getValue();
117,003
private TransformMatrix2D parseTransform(String string) {<NEW_LINE>TransformMatrix2D result = TransformMatrix2D.UNITY_MATRIX;<NEW_LINE>if (string != null) {<NEW_LINE>Matcher matcher1 = TRANSFORM_PATTERN1.matcher(string);<NEW_LINE>int transformCount1 = 0;<NEW_LINE>while (matcher1.lookingAt()) transformCount1++;<NEW_LINE...
matcher1.lookingAt()) transformCount2++;
1,657,630
public void completing(DelegateExecution execution, DelegateExecution subProcessInstance) throws Exception {<NEW_LINE>// only data. no control flow available on this execution.<NEW_LINE>ExpressionManager expressionManager = CommandContextUtil<MASK><NEW_LINE>// copy process variables<NEW_LINE>ExecutionEntity executionEn...
.getProcessEngineConfiguration().getExpressionManager();
1,327,771
final ListPermissionsResult executeListPermissions(ListPermissionsRequest listPermissionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPermissionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListPermissions");
1,150,755
void createMaster(String opName, int kernelDOF, boolean hasDivisor) {<NEW_LINE>String kernel = "Kernel" + kernelDOF + "D_" + typeKernel;<NEW_LINE>String workParam = hasDivisor && (opName.equals("convolve") || opName.equals("vertical")) ? ", GrowArray<" + workType + "> work" : "";<NEW_LINE>String workVar = hasDivisor &&...
typeInput + " image, " + typeOutput + " dest");
1,687,661
public void onSetting(PluginSetting setting) {<NEW_LINE>Common.logger.add(new LogEntry(LogEntry.PB_LOG_DEBUG, "Start"));<NEW_LINE>if (mCommandArea == null) {<NEW_LINE>Common.logger.add(new LogEntry(LogEntry.PB_LOG_ERROR, "CommandArea is null"));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (setting == null) {<NEW_LINE>Commo...
(LogEntry.PB_LOG_DEBUG, "Height"));
961,557
public void updateAttributesFromInfo(String reason) {<NEW_LINE>SBBreakpoint bpt = (SBBreakpoint) getModelObject();<NEW_LINE>String description = getDescription(1);<NEW_LINE>String[] split = description.split(",");<NEW_LINE>if (split[1].contains("regex")) {<NEW_LINE>expression = split[1];<NEW_LINE>expression = expressio...
, TargetObject> cachedElements = getCachedElements();
4,426
public static DescribeNavigationConfigResponse unmarshall(DescribeNavigationConfigResponse describeNavigationConfigResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeNavigationConfigResponse.setRequestId(_ctx.stringValue("DescribeNavigationConfigResponse.RequestId"));<NEW_LINE>GreetingConfig greetingConfig = new Gr...
("DescribeNavigationConfigResponse.AskingBackConfig.NegativeFeedbackUtterances[" + i + "]"));
1,283,857
private BlockAddedEvent appendBlockHelper(final BlockWithReceipts blockWithReceipts) {<NEW_LINE>final Block block = blockWithReceipts.getBlock();<NEW_LINE>final List<TransactionReceipt> receipts = blockWithReceipts.getReceipts();<NEW_LINE>final Hash hash = block.getHash();<NEW_LINE>final Difficulty td = calculateTotalD...
Updater updater = blockchainStorage.updater();
1,347,742
public boolean execute(@Nonnull PsiFileSystemItem element) {<NEW_LINE>if (!filter.shouldShow(element)) {<NEW_LINE>// skip<NEW_LINE>} else if (element instanceof PsiDirectory) {<NEW_LINE>result.add(new PsiDirectoryNode(project, (PsiDirectory) element, settings, filter) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Coll...
? null : value.getLanguage();
254,352
final GlobalCluster executeDeleteGlobalCluster(DeleteGlobalClusterRequest deleteGlobalClusterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteGlobalClusterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Reques...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
633,861
public static DisableApplicationScalingRuleResponse unmarshall(DisableApplicationScalingRuleResponse disableApplicationScalingRuleResponse, UnmarshallerContext _ctx) {<NEW_LINE>disableApplicationScalingRuleResponse.setRequestId(_ctx.stringValue("DisableApplicationScalingRuleResponse.RequestId"));<NEW_LINE>disableApplic...
(_ctx.integerValue("DisableApplicationScalingRuleResponse.AppScalingRule.MinReplicas"));
776,209
public FieldBinding addSyntheticFieldForClassLiteral(TypeBinding targetType, BlockScope blockScope) {<NEW_LINE>if (!isPrototype())<NEW_LINE>throw new IllegalStateException();<NEW_LINE>if (this.synthetics == null)<NEW_LINE>this.synthetics = new Map[MAX_SYNTHETICS];<NEW_LINE>if (this.synthetics[SourceTypeBinding.CLASS_LI...
.CLASS_LITERAL_EMUL].get(targetType);
930,444
private FList<TextRange> findLongestMatchingPrefix(int patternIndex, int nameIndex, int fragmentLength, int minFragment, @Nonnull ErrorState errorState) {<NEW_LINE>if (patternIndex + fragmentLength >= patternLength(errorState)) {<NEW_LINE>int errors = errorState.countErrors(patternIndex, patternIndex + fragmentLength);...
, nameIndex + i, errors));
219,016
public Rule build() {<NEW_LINE>return logicalFilter(logicalOlapScan()).when(p -> !p.child().isPartitionPruned()).thenApply(ctx -> {<NEW_LINE>LogicalFilter<LogicalOlapScan> filter = ctx.root;<NEW_LINE>LogicalOlapScan scan = filter.child();<NEW_LINE>Expression predicate = filter.getPredicates();<NEW_LINE>OlapTable table ...
expressionList = ExpressionUtils.extractConjunction(predicate);
757,108
public CompletableFuture<Void> start() {<NEW_LINE>if (closeFuture != null) {<NEW_LINE>return Futures.<MASK><NEW_LINE>}<NEW_LINE>actorSchedulingService.submitActor(topologyManager);<NEW_LINE>return partitionService.start().thenApply(ps -> {<NEW_LINE>LOGGER.info("Registering Partition Manager");<NEW_LINE>healthCheckServi...
exceptionalFuture(new IllegalStateException("PartitionManager is closed"));
1,630,680
// Liberty code change start<NEW_LINE>private void findContextSetterMethods(Class<?> cls, Object provider, ProviderContextInfo contextInfo) {<NEW_LINE>if (contextInfo == null || contextInfo.methodNames != null) {<NEW_LINE>// Liberty code change end<NEW_LINE>for (Method m : cls.getMethods()) {<NEW_LINE>// Liberty code c...
get(superCls.getName());
532,679
protected GoVisitor buildGoVisitor(@NotNull ProblemsHolder holder, @NotNull LocalInspectionToolSession session) {<NEW_LINE>return new GoVisitor() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void visitConditionalExpr(@NotNull GoConditionalExpr o) {<NEW_LINE>GoExpression left = o.getLeft();<NEW_LINE>GoExpression right...
, right), GoIndexOrSliceExpr.class);
1,745,904
public static void initialize() throws Exception {<NEW_LINE>log.info("Initializing. \n Properties: \n\tkpay.rest.port = {}\n\tkpay.resources.folder = {}\n\tboostrap.servers = {}\n\t", port, resourcesFolder, boostrapServers);<NEW_LINE>System.out.println("Path:" + new File(".").getAbsolutePath());<NEW_LINE>server = new S...
KPayResource.class.getCanonicalName());
1,549,705
private URLConnection openConnection() throws IOException {<NEW_LINE>URLConnection connection = this.source.openConnection();<NEW_LINE>connection.setConnectTimeout((int) connectTimeout.toMillis());<NEW_LINE>for (Entry<String, String> entry : this.parameters.entrySet()) {<NEW_LINE>connection.setRequestProperty(entry.get...
newUrl = connection.getHeaderField("location");
1,463,670
String heapHistogram(@BindAgentId String agentId) throws Exception {<NEW_LINE>checkNotNull(liveJvmService);<NEW_LINE>HeapHistogram heapHistogram;<NEW_LINE>try {<NEW_LINE>heapHistogram = liveJvmService.heapHistogram(agentId);<NEW_LINE>} catch (AgentNotConnectedException e) {<NEW_LINE>logger.debug(e.getMessage(), e);<NEW...
"count", classInfo.getCount());
186,921
private static DataTable buildEmptyDataTableForDistinctQuery(QueryContext queryContext) throws IOException {<NEW_LINE>AggregationFunction[] aggregationFunctions = queryContext.getAggregationFunctions();<NEW_LINE>assert aggregationFunctions != null && aggregationFunctions.length == 1 && aggregationFunctions[0] instanceo...
dataTableBuilder.setColumn(0, distinctTable);
1,163,170
public void show(boolean restoreBounds) {<NEW_LINE>myFocusedCallback = AsyncResult.undefined();<NEW_LINE>if (myProject != null) {<NEW_LINE>IdeFocusManager.getInstance(myProject).typeAheadUntil(myFocusedCallback);<NEW_LINE>}<NEW_LINE>final Window frame = getFrame();<NEW_LINE>if (myStatusBar != null) {<NEW_LINE>consulo.u...
).setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
342,211
private List<Robot> sendGetRobots(String accessToken) {<NEW_LINE>Properties headers = new Properties();<NEW_LINE><MASK><NEW_LINE>headers.setProperty("Authorization", "Token token=" + accessToken);<NEW_LINE>try {<NEW_LINE>String resultString = HttpUtil.executeUrl("GET", "https://beehive.neatocloud.com/dashboard", header...
headers.setProperty("Accept", "application/vnd.neato.nucleo.v1");
1,405,317
private boolean addInterfaces(ExposedClass exposedCls, ClassReader cls) {<NEW_LINE>boolean added = false;<NEW_LINE>for (String ifaceName : cls.getInterfaces()) {<NEW_LINE>if (exposedCls.implementedInterfaces.contains(ifaceName)) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>ClassReader iface = hierarchy.getClassSource().get...
method.getDescriptor(), name);
1,165,535
private void configureAction(final Map<String, Object> configuration) {<NEW_LINE>for (Entry<String, Object> entry : configuration.entrySet()) {<NEW_LINE>String key = entry.getKey();<NEW_LINE>String value = entry.getValue().toString();<NEW_LINE>String[] parts = key.split("\\.");<NEW_LINE>if (parts.length == 2) {<NEW_LIN...
parts[1].trim();
1,307,829
public static InstalledCode compileAndInstallMethod(StructuredGraph graph) {<NEW_LINE>ResolvedJavaMethod method = graph.method();<NEW_LINE>GraalJVMCICompiler graalCompiler = (GraalJVMCICompiler) JVMCI.getRuntime().getCompiler();<NEW_LINE>RuntimeProvider capability = graalCompiler.getGraalRuntime().getCapability(Runtime...
compilationID = backend.getCompilationIdentifier(method);
1,116,410
public static RandomForest fit(Formula formula, DataFrame data, Properties params) {<NEW_LINE>int ntrees = Integer.parseInt(params.getProperty("smile.random_forest.trees", "500"));<NEW_LINE>int mtry = Integer.parseInt(params.getProperty("smile.random_forest.mtry", "0"));<NEW_LINE>SplitRule rule = SplitRule.valueOf(para...
.getProperty("smile.random_forest.sampling_rate", "1.0"));
447,172
public int compare(Object o1, Object o2) {<NEW_LINE>if (o1 == o2) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>// if one of the object is long type, compare by long.<NEW_LINE>if (o1 instanceof Long || o2 instanceof Long) {<NEW_LINE>Long packedLong1 = makePackedLong(o1);<NEW_LINE>Long packedLong2 = makePackedLong(o2);<NEW_L...
l1 = TimeStorage.packDate(d1);
1,102,311
@SuppressWarnings("unchecked")<NEW_LINE>@Operation(summary = "Add elements to device group", description = "Add elements to device group")<NEW_LINE>public Response addDeviceGroupElements(@Parameter(description = "Unique token that identifies device group", required = true) @PathParam("groupToken") String groupToken, @R...
= new ArrayList<IDeviceGroupElement>();
1,440,079
private // to the frozen case (below)!!<NEW_LINE>long hash(FSTCompiler.UnCompiledNode<T> node) {<NEW_LINE>final int PRIME = 31;<NEW_LINE>// System.out.println("hash unfrozen");<NEW_LINE>long h = 0;<NEW_LINE>// TODO: maybe if number of arcs is high we can safely subsample?<NEW_LINE>for (int arcIdx = 0; arcIdx < node.num...
^ (n >> 32));
110,449
ActionResult<Wo> execute(String applicationId, String unit, String person) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE><MASK><NEW_LINE>Wo wo = new Wo();<NEW_LINE>List<DateRange> os = ...
Business business = new Business(emc);
1,829,296
public Request<DescribeClustersRequest> marshall(DescribeClustersRequest describeClustersRequest) {<NEW_LINE>if (describeClustersRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<DescribeClustersRequest> request = new DefaultRequest<Describ...
request.addParameter("Version", "2012-12-01");
607,784
public static List<String> autocomplete(String input) {<NEW_LINE>if (TextUtils.isEmpty(MAPS_API_KEY)) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>ArrayList<String> resultList = null;<NEW_LINE>HttpURLConnection conn = null;<NEW_LINE>InputStreamReader in = null;<NEW_LINE>StringBuilder jsonResults = new...
i).getString("description"));
1,735,554
private void addEarningTransaction(Account account, AccountTransaction transaction, MutableMoney mEarnings, Map<Security, MutableMoney> earningsBySecurity, MutableMoney mFees, MutableMoney mTaxes, Map<Security, MutableMoney> feesBySecurity, Map<Security, MutableMoney> taxesBySecurity) {<NEW_LINE>Money earned = transact...
AccountTransaction>(account, transaction));
1,059,752
public Status isUserExists(@FormParam("userNo") String userNo) {<NEW_LINE>try {<NEW_LINE>Status status = Status.ERROR();<NEW_LINE>if (userNo == null || userNo.isEmpty()) {<NEW_LINE>status.setInfo(userNumberNullMessage);<NEW_LINE>return status;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>LoginUser user = BeanGetter.getDaoOfLogin...
() : e.getMessage();
1,561,716
public static boolean isCorrectAsset(Asset asset, OSType osType) {<NEW_LINE>if (isJMBECreator(asset)) {<NEW_LINE>String name = asset.getName();<NEW_LINE>switch(osType) {<NEW_LINE>case LINUX_AARCH_64:<NEW_LINE>return name.contains("linux") && name.contains("aarch64");<NEW_LINE>case LINUX_ARM_32:<NEW_LINE>return name.con...
) && name.contains("_64");
1,326,612
private boolean copyColumn(Domain domain, Column targetColumn) {<NEW_LINE>Table targetTable = targetColumn.getTable();<NEW_LINE>if (dropAction == ConstraintActionType.RESTRICT) {<NEW_LINE>throw DbException.get(ErrorCode.CANNOT_DROP_2, <MASK><NEW_LINE>}<NEW_LINE>String columnName = targetColumn.getName();<NEW_LINE>Array...
domainName, targetTable.getCreateSQL());
1,449,081
public static FragmentDirectiveCollector collect(DataFetchingEnvironment env, ExecutionStepInfo step) {<NEW_LINE>FragmentDirectiveCollector fragmentDirectiveCollector = new FragmentDirectiveCollector(env);<NEW_LINE>// This is safe because top-level fields don't get to here and all deeper fields at least have a parent (...
.getParent().getParent();
718,483
public static DescribeTagsResponse unmarshall(DescribeTagsResponse describeTagsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeTagsResponse.setRequestId(_ctx.stringValue("DescribeTagsResponse.RequestId"));<NEW_LINE>describeTagsResponse.setTotalCount<MASK><NEW_LINE>describeTagsResponse.setPageNumber(_ctx.longValu...
(_ctx.longValue("DescribeTagsResponse.TotalCount"));
794,557
public IAllocationRequest requestQtyToAllocate(final IAllocationRequest request) {<NEW_LINE>assertQtyAllocationDeallocationAllowed();<NEW_LINE>// Check: Qty shall be positive or zero<NEW_LINE>final BigDecimal qtyRequired = request.getQty();<NEW_LINE>Check.assume(qtyRequired.signum(<MASK><NEW_LINE>//<NEW_LINE>// Zero Qt...
) >= 0, "qtyRequired({}) >= 0", qtyRequired);
1,620,740
public void marshall(UpdateReplicationConfigurationTemplateRequest updateReplicationConfigurationTemplateRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateReplicationConfigurationTemplateRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<N...
updateReplicationConfigurationTemplateRequest.getReplicationConfigurationTemplateID(), REPLICATIONCONFIGURATIONTEMPLATEID_BINDING);
1,569,543
public static DescribeGatewayModificationClassesResponse unmarshall(DescribeGatewayModificationClassesResponse describeGatewayModificationClassesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeGatewayModificationClassesResponse.setRequestId(_ctx.stringValue("DescribeGatewayModificationClassesResponse.RequestId")...
(_ctx.stringValue("DescribeGatewayModificationClassesResponse.Message"));
1,151,277
private static final List<FieldValueExtractor> extractFieldNamesFromLookup(final DocumentEntityDescriptor.Builder entityDescriptor) {<NEW_LINE>try {<NEW_LINE>final DocumentFieldDescriptor.<MASK><NEW_LINE>if (idField == null || idField.isVirtualField()) {<NEW_LINE>return ImmutableList.of();<NEW_LINE>}<NEW_LINE>final ILo...
Builder idField = entityDescriptor.getSingleIdFieldBuilderOrNull();
699,901
public Map<String, Object> evaluateVerifyCredentialsResponse(String responseBody) {<NEW_LINE>String endpoint = TwitterConstants.TWITTER_ENDPOINT_VERIFY_CREDENTIALS;<NEW_LINE>Map<MASK><NEW_LINE>try {<NEW_LINE>responseValues = populateJsonResponse(responseBody);<NEW_LINE>} catch (JoseException e) {<NEW_LINE>return create...
<String, Object> responseValues = null;
1,781,345
final GetAddressBookResult executeGetAddressBook(GetAddressBookRequest getAddressBookRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAddressBookRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
191,270
public static void partialRadixSort(int[] data) {<NEW_LINE>int[] low = new int[257];<NEW_LINE>int[] high = new int[257];<NEW_LINE>for (int value : data) {<NEW_LINE>++low[((value >>> <MASK><NEW_LINE>++high[(value >>> 24) + 1];<NEW_LINE>}<NEW_LINE>// avoid passes over the data if it's not required<NEW_LINE>boolean sortLo...
16) & 0xFF) + 1];
1,826,130
void resolveDependencies(DependencyResolution dependencyResolution) {<NEW_LINE>Set<ModuleDependency> moduleDependencies = new HashSet<>();<NEW_LINE>if (this.project.kind() == ProjectKind.BALA_PROJECT) {<NEW_LINE>for (ModuleDescriptor dependencyModDesc : moduleDescDependencies) {<NEW_LINE>// Dependencies loaded from cac...
scope(), moduleDependencies, dependencyResolution);
301,391
public boolean delete(String groupId, String operator) {<NEW_LINE>LOGGER.debug("begin to delete inlong group, groupId={}", groupId);<NEW_LINE>Preconditions.checkNotNull(groupId, Constant.GROUP_ID_IS_EMPTY);<NEW_LINE>InlongGroupEntity entity = groupMapper.selectByGroupId(groupId);<NEW_LINE>if (entity == null) {<NEW_LINE...
String.format("Current state=%s was not allowed to delete", curState);
1,032,443
public StateMachineInstance toObject(ResultSet resultSet) throws SQLException {<NEW_LINE>StateMachineInstanceImpl stateMachineInstance = new StateMachineInstanceImpl();<NEW_LINE>stateMachineInstance.setId(resultSet.getString("id"));<NEW_LINE>stateMachineInstance.setMachineId(resultSet.getString("machine_id"));<NEW_LINE...
(resultSet.getTimestamp("gmt_end"));
504,713
final SetTopicAttributesResult executeSetTopicAttributes(SetTopicAttributesRequest setTopicAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(setTopicAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
133,254
protected HugeEdge parseEdge(TableBackendEntry.Row row, HugeVertex vertex, HugeGraph graph) {<NEW_LINE>Object ownerVertexId = row.column(HugeKeys.OWNER_VERTEX);<NEW_LINE>Number dir = row.column(HugeKeys.DIRECTION);<NEW_LINE>boolean direction = EdgeId.isOutDirectionFromCode(dir.byteValue());<NEW_LINE>Number label = row....
row.column(HugeKeys.OTHER_VERTEX);
1,165,146
public Object deserializeFromObject(JsonParser p, DeserializationContext ctxt) throws IOException {<NEW_LINE>if (_nonStandardCreation) {<NEW_LINE>if (_unwrappedPropertyHandler != null) {<NEW_LINE>return deserializeWithUnwrapped(p, ctxt);<NEW_LINE>}<NEW_LINE>if (_externalTypeIdHandler != null) {<NEW_LINE>return deserial...
p, ctxt, bean, propName);
635,548
protected void okPressed() {<NEW_LINE>// disable the buttons until commit is done<NEW_LINE>getButton(IDialogConstants.CANCEL_ID).setEnabled(false);<NEW_LINE>getButton(IDialogConstants.OK_ID).setEnabled(false);<NEW_LINE>// try the commit<NEW_LINE>IStatus status = gitRepository.index(<MASK><NEW_LINE>if (status.isOK()) {<...
).commit(getCommitMessage());
867,274
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see org.eclipse.paho.client.mqttv3.IMqttAsyncClient#subscribe(java.lang.<NEW_LINE>* String[], int[], java.lang.Object,<NEW_LINE>* org.eclipse.paho.client.mqttv3.IMqttActionListener)<NEW_LINE>*/<NEW_LINE>public IMqttToken subscribe(String[] topicFilters, int[] qos, Obje...
topicFilters, qos, userContext, callback);
406,972
public boolean onDeadCallback() {<NEW_LINE>GameEvent event = new DeathEvent(this);<NEW_LINE>GameServer.INSTANCE.getEventDispatcher().dispatch(event);<NEW_LINE>reset();<NEW_LINE>// Teleport to spawn point<NEW_LINE>this.getWorld().removeObject(this);<NEW_LINE>this.getWorld().decUpdatable();<NEW_LINE>IServerConfiguration ...
.getWorld().incUpdatable();
1,068,997
public void serialize(ByteBuf buf) {<NEW_LINE>// sample happens here to avoid memory copy on servers<NEW_LINE>Random rand = new Random(System.currentTimeMillis());<NEW_LINE>// write partition id first<NEW_LINE>buf.writeInt(partId);<NEW_LINE>buf.writeBoolean(sampleTypes);<NEW_LINE><MASK><NEW_LINE>int writeIndex = buf.wr...
buf.writeInt(keys.length);
214,318
public void run(RegressionEnvironment env) {<NEW_LINE>// External clocking<NEW_LINE>sendTimer(0, env);<NEW_LINE>// Set up a timer:within<NEW_LINE>env.compileDeploy("@name('s0') select b.theString as id from pattern[a=SupportBean -> (every b=SupportBean) where timer:within(a.intPrimitive seconds)]");<NEW_LINE>env.addLis...
assertEqualsNew("s0", "id", "E3");
590,922
protected String preprocessSnippet(String originalSnippet, Widget w) {<NEW_LINE>String snippet = originalSnippet;<NEW_LINE>snippet = StringUtils.replace(snippet, "%widget_id%", itemUIRegistry.getWidgetId(w));<NEW_LINE>snippet = StringUtils.replace(snippet, <MASK><NEW_LINE>snippet = StringUtils.replace(snippet, "%item%"...
"%icon_type%", config.getIconType());
796,470
public void registerMap() {<NEW_LINE>// Channel<NEW_LINE>map(Type.STRING);<NEW_LINE>handler(new PacketHandler() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void handle(PacketWrapper wrapper) throws Exception {<NEW_LINE>String channel = wrapper.get(Type.STRING, 0);<NEW_LINE>if (channel.equals("minecraft:trader_list")...
wrapper.passthrough(Type.INT);
277,531
private void createVarFieldArray(RuleMethod method, InsnList instructions, AbstractInsnNode ret) {<NEW_LINE>int count = method.getLocalVarVariables().size();<NEW_LINE>// stack:<NEW_LINE>instructions.insertBefore(ret, new IntInsnNode(BIPUSH, count));<NEW_LINE>// stack: <length><NEW_LINE>instructions.insertBefore(ret, ne...
(ALOAD, var.index));
1,347,028
public static DescribeDcdnUserDomainsResponse unmarshall(DescribeDcdnUserDomainsResponse describeDcdnUserDomainsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDcdnUserDomainsResponse.setRequestId(_ctx.stringValue("DescribeDcdnUserDomainsResponse.RequestId"));<NEW_LINE>describeDcdnUserDomainsResponse.setPageNumb...
("DescribeDcdnUserDomainsResponse.Domains[" + i + "].DomainStatus"));
1,668,431
public Token refreshToken(Client client, String refreshToken, String[] scope) throws OAuthException {<NEW_LINE>DBObject token = tokens.findOne(new BasicDBObject(REFRESH_TOKEN, refreshToken));<NEW_LINE>if (token == null) {<NEW_LINE>throw new OAuthException(OAuthError.invalid_grant, "Invalid refresh token.", null);<NEW_L...
put(ACCESS_TOKEN, generateRawToken());
42,183
static If suppressSummarizedPrefixes(Configuration c, String vrfName, Stream<Prefix> summaryOnlyPrefixes) {<NEW_LINE>Iterator<Prefix> prefixesToSuppress = summaryOnlyPrefixes.iterator();<NEW_LINE>if (!prefixesToSuppress.hasNext()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// Create a RouteFilterList that matches any ...
matchLonger.getName(), matchLonger);
1,457,132
private String performBasicAuthRequest(String url, String requestMethod, String requestBody, String userOperation) throws IOException {<NEW_LINE>HttpURLConnection connection = NetworkUtils.getHttpURLConnection(url);<NEW_LINE>connection.setConnectTimeout(15000);<NEW_LINE>connection.setRequestMethod(requestMethod);<NEW_L...
"Response : " + connection.getResponseMessage());
1,077,746
private void makeStringValue(StringBuilder sb, Value value, Type type, SrcLinkedClass srcClass) {<NEW_LINE>if (value instanceof ArrayValue) {<NEW_LINE>sb.append("new ");<NEW_LINE>SrcType srcType = makeSrcType(srcClass, type, false);<NEW_LINE>srcType.render(sb, 0);<NEW_LINE>sb.append('[');<NEW_LINE>for (Value elem : ((A...
.getName(), false));
1,542,628
public LinkDataDuplexMap createMap(Application application, LinkSelectContext linkSelectContext) {<NEW_LINE>logger.debug("Finding Caller/Callee link data for {}", application);<NEW_LINE>final Range range = linkSelectContext.getRange();<NEW_LINE>LinkDataDuplexMap searchResult = new LinkDataDuplexMap();<NEW_LINE>final bo...
linkDataMapService.selectCallerLinkDataMap(application, range);
973,364
public ObjectInspector initialize(ObjectInspector[] arg0) throws UDFArgumentException {<NEW_LINE>if (arg0.length < 2) {<NEW_LINE>throw new UDFArgumentException("combine_sketch takes at least two arguments; a set of array<string> or a set of array<bigint>");<NEW_LINE>}<NEW_LINE>if (arg0[0].getCategory() != Category.LIST...
)))).getPrimitiveCategory();
714,097
public static List<Unit> loadUnits(String filename) throws IOException {<NEW_LINE>Pattern commaPattern = Pattern.compile("\\s*,\\s*");<NEW_LINE>BufferedReader br = IOUtils.readerFromString(filename);<NEW_LINE>String headerString = br.readLine();<NEW_LINE>String[] header = commaPattern.split(headerString);<NEW_LINE>Map<...
iDefaultUnit = headerIndex.get("defaultUnit");
1,511,978
public void testLogViewerInvalidOption() throws Exception {<NEW_LINE>CommonTasks.writeLogMsg(Level.INFO, <MASK><NEW_LINE>// generate a random option that is between 3 and 15 characters long startServering with "bad".<NEW_LINE>String alphabet = "abcdefghijklmnopqrstuvwxyz";<NEW_LINE>StringBuffer invalidOption = new Stri...
"executing logViewer on " + server.getServerName());
334,295
public synchronized void open() throws IOException {<NEW_LINE>HugeConfig config = this.config();<NEW_LINE>String hosts = config.get(HbaseOptions.HBASE_HOSTS);<NEW_LINE>int port = config.get(HbaseOptions.HBASE_PORT);<NEW_LINE>String znodeParent = config.get(HbaseOptions.HBASE_ZNODE_PARENT);<NEW_LINE>boolean isEnableKerb...
config.get(HbaseOptions.HBASE_HBASE_SITE);
855,854
final DeleteApnsVoipChannelResult executeDeleteApnsVoipChannel(DeleteApnsVoipChannelRequest deleteApnsVoipChannelRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteApnsVoipChannelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
(super.beforeMarshalling(deleteApnsVoipChannelRequest));
1,833,082
private boolean processUnqualifiedResolve(@NotNull GoFile file, @NotNull GoScopeProcessor processor, @NotNull ResolveState state, boolean localResolve) {<NEW_LINE>GoScopeProcessorBase delegate = createDelegate(processor);<NEW_LINE><MASK><NEW_LINE>Collection<? extends GoNamedElement> result = delegate.getVariants();<NEW...
ResolveUtil.treeWalkUp(myElement, delegate);
1,283,191
private Publisher<DataChunk> createBodyPartPublisher(final WriteableBodyPart bodyPart) {<NEW_LINE>// start boundary<NEW_LINE>StringBuilder sb = new StringBuilder("--").append(boundary).append("\r\n");<NEW_LINE>// headers lines<NEW_LINE>Map<String, List<String>> headers = bodyPart.headers().toMap();<NEW_LINE>for (Map.En...
(StandardCharsets.UTF_8))));
1,481,580
public OAuth2AccessToken sendPasswordGrant(String username, String password) {<NEW_LINE>HttpHeaders reqHeaders = new HttpHeaders();<NEW_LINE>reqHeaders.setContentType(MediaType.APPLICATION_FORM_URLENCODED);<NEW_LINE>MultiValueMap<String, String> formParams = new LinkedMultiValueMap<>();<NEW_LINE>formParams.set("usernam...
HttpClientErrorException(responseEntity.getStatusCode());
1,602,734
public static QueryLocalFileUploadJobResponse unmarshall(QueryLocalFileUploadJobResponse queryLocalFileUploadJobResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryLocalFileUploadJobResponse.setRequestId(_ctx.stringValue("QueryLocalFileUploadJobResponse.RequestId"));<NEW_LINE>queryLocalFileUploadJobResponse.setSuccess(...
+ "].FileList[" + j + "].FileName"));
1,170,248
private ConfigurationDocument createConfigFile(StringToStringMap values, Interface modelItem) {<NEW_LINE>ConfigurationDocument configDocument = ConfigurationDocument.Factory.newInstance();<NEW_LINE>Configuration config = configDocument.addNewConfiguration();<NEW_LINE>WsdlType wsdl = config.addNewWsdl();<NEW_LINE>wsdl.s...
(values.get(NAMESPACE_MAPPING));
1,130,393
public static DescribeTraceInfoDetailResponse unmarshall(DescribeTraceInfoDetailResponse describeTraceInfoDetailResponse, UnmarshallerContext context) {<NEW_LINE>describeTraceInfoDetailResponse.setRequestId(context.stringValue("DescribeTraceInfoDetailResponse.RequestId"));<NEW_LINE>describeTraceInfoDetailResponse.setSu...
("DescribeTraceInfoDetailResponse.TraceInfoDetail.EdgeList[" + i + "].Time"));
972,302
private void doExperiment() {<NEW_LINE>int[] treeSizes = { 10000, 100000, 1000000 };<NEW_LINE>int numberOfExperiments = 100;<NEW_LINE>for (int size = 0; size < treeSizes.length; size++) {<NEW_LINE>int totalNodesCount = treeSizes[size] * numberOfExperiments;<NEW_LINE>int totalRedNodesCount = 0;<NEW_LINE>for (int trial =...
StdRandom.uniform(Integer.MAX_VALUE);
678,193
protected void addListenersToWallet() {<NEW_LINE>super.addListenersToWallet();<NEW_LINE>wallet.addCoinsReceivedEventListener((wallet, tx, prevBalance, newBalance) -> updateBsqWalletTransactions());<NEW_LINE>wallet.addCoinsSentEventListener((wallet, tx, prevBalance, newBalance) -> updateBsqWalletTransactions());<NEW_LIN...
, isAddingScripts) -> updateBsqWalletTransactions());
1,415,342
final PutDedicatedIpWarmupAttributesResult executePutDedicatedIpWarmupAttributes(PutDedicatedIpWarmupAttributesRequest putDedicatedIpWarmupAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putDedicatedIpWarmupAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
652,319
final DeleteNamedQueryResult executeDeleteNamedQuery(DeleteNamedQueryRequest deleteNamedQueryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteNamedQueryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteNamedQuery");
715,049
public void addPages() {<NEW_LINE>// Custom code begin<NEW_LINE>domainModelPage = new OpenDDSDiagramDomainModelWizardPage("DomainModel");<NEW_LINE>domainModelPage.setTitle("OpenDDS SDK Model");<NEW_LINE>domainModelPage.setDescription("Create a new OpenDDS SDK model");<NEW_LINE>addPage(domainModelPage);<NEW_LINE>// Cust...
) - ".opendds_diagram".length());
115,239
private Mono<Response<Void>> resetProductionSlotConfigWithResponseAsync(String resourceGroupName, String name, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<...
error(new IllegalArgumentException("Parameter name is required and cannot be null."));
1,307,194
private CompletableFuture<List<Wo>> searchScript(final Wi wi, final List<String> appIdList, final List<String> designerIdList) {<NEW_LINE>CompletableFuture<List<Wo>> cf = CompletableFuture.supplyAsync(() -> {<NEW_LINE>List<Wo> resWos = new ArrayList<>();<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainer...
setDesignerName(woScript.getName());
1,593,136
public void chooseContactsDialog() {<NEW_LINE>logDebug("chooseContactsDialog");<NEW_LINE>if (megaApi != null && megaApi.getRootNode() != null) {<NEW_LINE>ArrayList<MegaUser<MASK><NEW_LINE>if (contacts == null) {<NEW_LINE>showSnackbar(SNACKBAR_TYPE, getString(R.string.no_contacts_invite), -1);<NEW_LINE>} else {<NEW_LINE...
> contacts = megaApi.getContacts();
796,388
private static void initComparatorTypeMap() {<NEW_LINE>Map<ComparatorType, String> tmpMap = new HashMap<ComparatorType, String>();<NEW_LINE>tmpMap.put(ComparatorType.ASCIITYPE, "ASCII");<NEW_LINE>tmpMap.put(ComparatorType.BYTESTYPE, "BLOB");<NEW_LINE>tmpMap.put(ComparatorType.BOOLEANTYPE, "BOOLEAN");<NEW_LINE>tmpMap.pu...
put(ComparatorType.UTF8TYPE, "TEXT");
567,007
public static void decompressOverMemory(Program program, ArtCompression compression, TaskMonitor monitor) throws Exception {<NEW_LINE>if (compression.getStorageMode() != ArtStorageMode.kStorageModeUncompressed) {<NEW_LINE>Address sourceAddress = program.getMinAddress().add(compression.getCompressedOffset());<NEW_LINE>b...
.add(decompressedBytes.length));
319,326
private Node<K, V> addNode(@ParametricNullness K key, @ParametricNullness V value, @CheckForNull Node<K, V> nextSibling) {<NEW_LINE>Node<K, V> node = new Node<>(key, value);<NEW_LINE>if (head == null) {<NEW_LINE>// empty list<NEW_LINE>head = tail = node;<NEW_LINE>keyToKeyList.put(key, new KeyList<<MASK><NEW_LINE>modCou...
K, V>(node));
1,190,956
private void generateMovements() {<NEW_LINE>log.info("DD_Order_ID=" + m_DD_Order_ID);<NEW_LINE>log.info("MovementDate" + m_MovementDate);<NEW_LINE>String trxName = Trx.createTrxName("IOG");<NEW_LINE>// trx needs to be committed too<NEW_LINE>Trx trx = Trx.get(trxName, true);<NEW_LINE>// prevents from being called twice<...
MDDOrderLine(m_ctx, DD_OrderLine_ID, trxName);
448,488
// try to read using JP2ForAndroid<NEW_LINE>private Bitmap readJPX(InputStream input, DecodeOptions options, DecodeResult result) throws IOException {<NEW_LINE>try {<NEW_LINE>Class.forName("com.gemalto.jp2.JP2Decoder");<NEW_LINE>} catch (ClassNotFoundException ex) {<NEW_LINE>throw new MissingImageReaderException("Canno...
WIDTH, image.getWidth());
526,859
final GetAlarmsResult executeGetAlarms(GetAlarmsRequest getAlarmsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAlarmsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,137,951
private void addNewTracks() {<NEW_LINE>tracker.spawnTracks();<NEW_LINE>List<PointTrack> spawned = tracker.getNewTracks(null);<NEW_LINE>// estimate 3D coordinate using stereo vision<NEW_LINE>for (PointTrack t : spawned) {<NEW_LINE>// lint:forbidden ignore_line<NEW_LINE>// System.out.println("track spawn "+t.x+" "+t.y);<...
.ground.x = pointing.z;
280,847
final DescribeOrganizationOverviewResult executeDescribeOrganizationOverview(DescribeOrganizationOverviewRequest describeOrganizationOverviewRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeOrganizationOverviewRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,352,885
final DescribeUserResult executeDescribeUser(DescribeUserRequest describeUserRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeUserRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);