idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
692,087
private void clientStreamingMetrics(ProducerGrpcServiceClientImpl helper2, HttpServletResponse response) throws IOException {<NEW_LINE>// retrieve the metrics<NEW_LINE>int httpPort = Integer.parseInt<MASK><NEW_LINE>String metricValue = getMetric("localhost", httpPort, "/metrics/vendor/grpc.server.receivedMessages.total...
(ProducerUtils.getSysProp("bvt.prop.HTTP_default"));
250,002
protected boolean processSCTokens() {<NEW_LINE>List<WSSecurityEngineResult> tokenResults = new ArrayList<WSSecurityEngineResult>();<NEW_LINE>List<WSSecurityEngineResult> dktResults = new ArrayList<WSSecurityEngineResult>();<NEW_LINE>for (WSSecurityEngineResult wser : results) {<NEW_LINE>Integer actInt = (Integer) wser....
wser.get(WSSecurityEngineResult.TAG_SECRET);
432,548
final StopExperimentResult executeStopExperiment(StopExperimentRequest stopExperimentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopExperimentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
344,132
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') " + EventRepresentationChoice.AVRO.getAnnotationText() + " select 1 as myInt," + "{1L, 2L} as myLongArray," + EPLInsertIntoPopulateCreateStreamAvro.class.getName() + ".makeByteArray() as myByteArray, " + EPLInsertIntoPopulateCreateStreamAvr...
"myLongArray")).toArray());
1,482,601
public InputStream call() throws Exception {<NEW_LINE>URLConnection conn = url.openConnection();<NEW_LINE>configureConnection(conn, timeout);<NEW_LINE>// handle redirection here<NEW_LINE>int redirCount = 0;<NEW_LINE>URLConnection redir = conn;<NEW_LINE>do {<NEW_LINE>conn = redir;<NEW_LINE>redir = checkRedirect(conn, ti...
()).append("\n");
1,851,695
private void bindText(TextView textView, SearchResult searchResult, String searchText) {<NEW_LINE>String text = searchResult.text;<NEW_LINE>if (TextUtils.isEmpty(text))<NEW_LINE>return;<NEW_LINE>text = <MASK><NEW_LINE>if (TextUtils.isEmpty(searchText)) {<NEW_LINE>textView.setText(text);<NEW_LINE>} else {<NEW_LINE>int i...
text.replace("\n", " ");
1,418,831
public GetResult merge(List<PartitionGetResult> partResults) {<NEW_LINE>int resultSize = 0;<NEW_LINE>for (PartitionGetResult result : partResults) {<NEW_LINE>resultSize += ((PartGeneralGetResult) result).getNodeIds().length;<NEW_LINE>}<NEW_LINE>Long2ObjectOpenHashMap<Tuple3<long[], float[], int[]>> nodeIdToNeighbors = ...
(neighbors, accept, alias));
177,971
private void paintCorePaths() {<NEW_LINE>DisplayMetrics metrics = getResources().getDisplayMetrics();<NEW_LINE>Paint paint = mapView.getDefaultPathPaint();<NEW_LINE>paint.setColor(MaterialColors.getColor(mapView, R.attr.colorAccent));<NEW_LINE>paint.setStrokeWidth(2);<NEW_LINE>paint.setPathEffect(new CornerPathEffect(T...
positionList = new ArrayList<>();
1,576,949
final GetCachePolicyResult executeGetCachePolicy(GetCachePolicyRequest getCachePolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCachePolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.SERVICE_ID, "CloudFront");
1,509,769
public BoundingBox createBoundsForConnectionController(@Nonnull EnumFacing dir, @Nonnull Offset offset) {<NEW_LINE>Vector3d nonUniformScale = ForgeDirectionOffsets.forDirCopy(dir);<NEW_LINE>nonUniformScale.scale(0.5);<NEW_LINE>nonUniformScale.x = 0.8 * (1 - Math.abs(nonUniformScale.x));<NEW_LINE>nonUniformScale.y = 0.8...
bb = bb.translate(trans);
1,176,685
private void readHistoryFile() throws IOException {<NEW_LINE>ArrayList<Version> list <MASK><NEW_LINE>minVersion = 0;<NEW_LINE>curVersion = 0;<NEW_LINE>File historyFile = getHistoryFile();<NEW_LINE>BufferedReader in = new BufferedReader(new FileReader(historyFile));<NEW_LINE>try {<NEW_LINE>String line = in.readLine();<N...
= new ArrayList<Version>();
295,347
public static void buildOperatorClause(String[] operatorFunc, String[] operators, int clauseIndex, String operator, String timeCol, double timeInterval, TableSchema tableSchema, MLEnvironment env) {<NEW_LINE>operatorFunc[clauseIndex] = operator.split("\\(")[0].trim().toUpperCase();<NEW_LINE>if (isLastTime(operatorFunc[...
+ timeCol + ", " + timeInterval + ")";
204,257
public void testCaptureDebuggerMemoryBytesPlugin() throws Throwable {<NEW_LINE>try (UndoableTransaction tid = tb.startTransaction()) {<NEW_LINE>long snap = tb.trace.getTimeManager().<MASK><NEW_LINE>tb.trace.getMemoryManager().addRegion(".text", Range.atLeast(0L), tb.range(0x00400000, 0x0040ffff), Set.of(TraceMemoryFlag...
createSnapshot("First").getKey();
1,381,072
protected void encodeStrictList(FacesContext context, DataList list) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String clientId = list.getClientId(context);<NEW_LINE>boolean isDefinition = list.isDefinition();<NEW_LINE>UIComponent definitionFacet = list.getFacet("descrip...
String listItemTag = isDefinition ? "dt" : "li";
125,284
private TimeSeries createTimeSeries(Meter meter, TypedValue typedValue, MetricDescriptor.ValueType valueType, @Nullable String statistic, MetricDescriptor.MetricKind metricKind) {<NEW_LINE>Meter.Id id = meter.getId();<NEW_LINE>if (client != null)<NEW_LINE>createMetricDescriptorIfNecessary(client, id, valueType, statist...
build()).build();
1,180,518
static RoundingInfo[] buildRoundings(ZoneId timeZone, String minimumInterval) {<NEW_LINE>int indexToSliceFrom = 0;<NEW_LINE>RoundingInfo[] roundings = new RoundingInfo[6];<NEW_LINE>roundings[0] = new RoundingInfo(Rounding.DateTimeUnit.SECOND_OF_MINUTE, timeZone, 1000L, "s", 1, 5, 10, 30);<NEW_LINE>roundings[1] = new Ro...
10, 20, 50, 100);
1,058,189
// Example usage of topological sort<NEW_LINE>public static void main(String[] args) {<NEW_LINE>// Graph setup<NEW_LINE>final int N = 7;<NEW_LINE>Map<Integer, List<Edge>> graph = new HashMap<>();<NEW_LINE>for (int i = 0; i < N; i++) graph.put(i, new ArrayList<>());<NEW_LINE>graph.get(0).add(new Edge(0, 1, 3));<NEW_LINE...
ordering = topologicalSort(graph, N);
1,510,604
protected void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception {<NEW_LINE>final ItemStack item = user.getBase().getItemInHand();<NEW_LINE>if (MaterialUtil.isAir(item.getType())) {<NEW_LINE>throw new Exception(tl("itemloreInvalidItem"));<NEW_LINE>}<NEW_LINE>if (...
, 1)).trim();
470,053
public RTTexture readBack(Rectangle view) {<NEW_LINE>RenderTarget rt = getRenderTarget();<NEW_LINE>context.flushVertexBuffer();<NEW_LINE>context.validateLCDBuffer(rt);<NEW_LINE>RTTexture lcdrtt = context.getLCDBuffer();<NEW_LINE>Texture bbtex = ((<MASK><NEW_LINE>float x1 = view.x;<NEW_LINE>float y1 = view.y;<NEW_LINE>f...
ReadbackRenderTarget) rt).getBackBuffer();
1,798,686
public Integer debug(@NonNull final FileObject startFile, @NonNull final ExecutionDescriptor executionDescriptor, @NullAllowed final ExecutionDescriptor.InputProcessorFactory2 outProcessorFactory) throws ExecutionException {<NEW_LINE>if (!EventQueue.isDispatchThread()) {<NEW_LINE>return debugInternal(startFile, executi...
}, Bundle.PhpExecutable_debug_progress());
112,796
public Plan plan(Analysis analysis, Stage stage) {<NEW_LINE>PlanNode root = planStatement(analysis, analysis.getStatement());<NEW_LINE>planChecker.validateIntermediatePlan(root, session, metadata, sqlParser, variableAllocator.getTypes(), warningCollector);<NEW_LINE>boolean enableVerboseRuntimeStats = SystemSessionPrope...
TypeProvider types = variableAllocator.getTypes();
617,783
public PoolTaskRest findByItem(@Parameter(value = "uuid", required = true) UUID itemUUID) {<NEW_LINE>PoolTask poolTask = null;<NEW_LINE>try {<NEW_LINE>Context context = obtainContext();<NEW_LINE>Item item = itemService.find(context, itemUUID);<NEW_LINE>if (item == null) {<NEW_LINE>throw new UnprocessableEntityException...
e.getMessage(), e);
341,439
private MLocator findOldestLocatorWithSameWarehouse(final int M_Locator_ID) {<NEW_LINE>String trxName = null;<NEW_LINE>MLocator retValue = null;<NEW_LINE>String sql = "SELECT * FROM M_Locator l " + "WHERE IsActive = 'Y' AND IsDefault='Y'" + " AND EXISTS (SELECT * FROM M_Locator lx " + "WHERE l.M_Warehouse_ID=lx.M_Ware...
getCtx(), rs, trxName);
520,906
ActionResult<Wo> execute(EffectivePerson effectivePerson, String flag, String portalFlag) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wo wo = null;<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Bu...
getClass(), flag, portalFlag);
135,559
public void onValidate(@NonNull String purchaseData, @NonNull ValidationStatus status, boolean isTrial) {<NEW_LINE>LOGGER.i(TAG, "Validation status of '" + mType + "': " + status);<NEW_LINE>if (status == ValidationStatus.VERIFIED)<NEW_LINE>Statistics.INSTANCE.trackPurchaseEvent(Statistics.EventName.INAPP_PURCHASE_VALID...
TAG, "'" + mType + "' subscription deactivated");
1,603,919
private void publishNotification(final String arn, @Nullable final String fallbackArn, final SNSMessage<?> message, final QualifiedName name, final String errorMessage, final String counterKey) {<NEW_LINE>this.notificationMetric.recordTime(message, Metrics.TimerNotificationsBeforePublishDelay.getMetricName());<NEW_LINE...
errorMessage, counterKey, message, e);
1,421,014
public static DescribeLifecycleHooksResponse unmarshall(DescribeLifecycleHooksResponse describeLifecycleHooksResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeLifecycleHooksResponse.setRequestId(_ctx.stringValue("DescribeLifecycleHooksResponse.RequestId"));<NEW_LINE>describeLifecycleHooksResponse.setTotalCount(_ct...
("DescribeLifecycleHooksResponse.LifecycleHooks[" + i + "].ScalingGroupId"));
897,639
public ExternalWorkflowExecutionCancelRequestedEventAttributes unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ExternalWorkflowExecutionCancelRequestedEventAttributes externalWorkflowExecutionCancelRequestedEventAttributes = new ExternalWorkflowExecutionCancelRequestedEventAttributes();<NEW_LINE...
class).unmarshall(context));
802,441
public HbaseSchemaManagerTask create(ProgramCommand programCommand, ProgramOptions programOptions) {<NEW_LINE>if (programCommand == ProgramCommand.EMPTY) {<NEW_LINE>return new HelpTask();<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>Command command = Command.fromValue(commandString);<NEW_LINE>if (command == null) {<NEW_LINE>ret...
String commandString = programCommand.getCommand();
688,878
private void warnMissingSemi(int pos, int end) {<NEW_LINE>// Should probably change this to be a CompilerEnvirons setting,<NEW_LINE>// with an enum Never, Always, Permissive, where Permissive means<NEW_LINE>// don't warn for 1-line functions like function (s) {return x+2}<NEW_LINE>if (compilerEnv.isStrictMode()) {<NEW_...
ts.getLine(end, linep);
1,586,815
public List<VolumeVO> returnAttachableVolumes(VmInstanceInventory vm, List<VolumeVO> candidates) {<NEW_LINE>// find instantiated volumes<NEW_LINE>List<String> volUuids = CollectionUtils.transformToList(candidates, new Function<String, VolumeVO>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String call(VolumeVO arg) ...
hostUuid = ret.get(0);
142,910
static OrientDBInternal remote(String[] hosts, OrientDBConfig configuration) {<NEW_LINE>OrientDBInternal factory;<NEW_LINE>try {<NEW_LINE>String className = "com.orientechnologies.orient.core.db.OrientDBRemote";<NEW_LINE>ClassLoader loader;<NEW_LINE>if (configuration != null) {<NEW_LINE>loader = configuration.getClassL...
new ODatabaseException("OrientDB client API missing"), e);
1,824,550
public void itemWritten(@Nullable final Object written) {<NEW_LINE>FlushBoundary boundary;<NEW_LINE>try {<NEW_LINE>boundary = flushBoundaryProvider.detectBoundary(written);<NEW_LINE>} catch (Throwable cause) {<NEW_LINE>// Exceptions are not supported, consider this a boundary to force a flush. This may happen if there ...
throw new IllegalArgumentException("Unknown flush boundary: " + boundary);
1,598,853
public CreateShareUploadChannelResponse createShareUploadChannel(CreateShareUploadChannelRequest body, String accessKey) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the r...
= new ArrayList<Pair>();
814,464
public ProgramFragment createFragment(String fragmentName) throws DuplicateNameException {<NEW_LINE>lock.acquire();<NEW_LINE>try {<NEW_LINE>checkDeleted();<NEW_LINE>if (moduleAdapter.getModuleRecord(fragmentName) != null || fragmentAdapter.getFragmentRecord(fragmentName) != null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>D...
throw new DuplicateNameException(fragmentName + " already exists");
1,388,199
private void _processPortletRequest(HttpServletRequest req, HttpServletResponse res, boolean action) throws Exception {<NEW_LINE>String contentType = req.getHeader("Content-Type");<NEW_LINE>if ((contentType != null) && (contentType.startsWith("multipart/form-data"))) {<NEW_LINE>UploadServletRequest uploadReq = (UploadS...
user, layout, windowState, portletMode);
303,486
protected final ForLoopTree rewriteChildren(ForLoopTree tree) {<NEW_LINE>List<? extends StatementTree> init = translate(tree.getInitializer());<NEW_LINE>ExpressionTree cond = (ExpressionTree) translate(tree.getCondition());<NEW_LINE>List<? extends ExpressionStatementTree> step = translate(tree.getUpdate());<NEW_LINE>St...
, model.getType(tree));
449,935
public State mouseWheelMoved(Widget widget, WidgetMouseWheelEvent event) {<NEW_LINE>Scene scene = widget.getScene();<NEW_LINE>int modifiers = scene.getInputBindings().getZoomActionModifiers();<NEW_LINE>if ((event.getModifiers() & modifiers) != modifiers)<NEW_LINE>return State.REJECTED;<NEW_LINE>int amount = event.getWh...
center = scene.convertSceneToView(center);
354,656
void respondToRequest(WorkRequest request, RequestInfo requestInfo) throws IOException {<NEW_LINE>int exitCode;<NEW_LINE>StringWriter sw = new StringWriter();<NEW_LINE>try (PrintWriter pw = new PrintWriter(sw)) {<NEW_LINE>try {<NEW_LINE>exitCode = <MASK><NEW_LINE>} catch (InterruptedException e) {<NEW_LINE>exitCode = 1...
callback.apply(request, pw);
405,740
public boolean[] findNativePointers(MethodReference method, ProgramReader program) {<NEW_LINE>IntDeque stack = new IntArrayDeque();<NEW_LINE>for (int i = 0; i < method.parameterCount(); ++i) {<NEW_LINE>if (isNativeType(method.parameterType(i))) {<NEW_LINE>stack.addLast(i + 1);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>Analyzer an...
= analyzer.assignmentGraph.build();
1,084,627
public String encryptMessage(final String message, final String id, final Ejson ejson) {<NEW_LINE>try {<NEW_LINE>Room room = readRoom(ejson);<NEW_LINE>if (room == null || !room.encrypted || room.e2eKey == null) {<NEW_LINE>return message;<NEW_LINE>}<NEW_LINE>String e2eKey = <MASK><NEW_LINE>if (e2eKey == null) {<NEW_LINE...
decryptRoomKey(room.e2eKey, ejson);
118,286
public static void renderSizeLabel(Font fontRenderer, float xPos, float yPos, String text, boolean largeFonts) {<NEW_LINE>final float scaleFactor = largeFonts ? 0.85f : 0.5f;<NEW_LINE>final float inverseScaleFactor = 1.0f / scaleFactor;<NEW_LINE>final int offset = largeFonts ? 0 : -1;<NEW_LINE>Transformation tm = new /...
getInstance().getBuilder());
1,120,689
public static boolean isValidScope(String scopes, AuthorizationRequestContext authorizationRequestContext, ClientModel client) {<NEW_LINE>if (scopes == null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (authorizationRequestContext.getAuthorizationDetailEntries() == null || authorizationRequestContext.getAuthorizatio...
requestedScopes.remove(OAuth2Constants.SCOPE_OPENID);
1,809,175
public ObjectName createName(String type, String domain, String name) {<NEW_LINE>try {<NEW_LINE>ObjectName objectName;<NEW_LINE>Hashtable<String, String> properties = new Hashtable<>();<NEW_LINE>properties.put("name", name);<NEW_LINE>properties.put("type", type);<NEW_LINE>objectName = new ObjectName(domain, properties)...
domain = ObjectName.quote(domain);
559,424
final UpdateLicenseConfigurationResult executeUpdateLicenseConfiguration(UpdateLicenseConfigurationRequest updateLicenseConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateLicenseConfigurationRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecut...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,744,079
public SubTaskGroup createPlacementInfoTask(Collection<NodeDetails> blacklistNodes) {<NEW_LINE>SubTaskGroup subTaskGroup = getTaskExecutor().createSubTaskGroup("UpdatePlacementInfo", executor);<NEW_LINE>UpdatePlacementInfo.Params params = new UpdatePlacementInfo.Params();<NEW_LINE>// Add the universe uuid.<NEW_LINE>par...
blacklistNodeNames.add(node.nodeName);
1,527,674
protected IDeserializationConverter createInternalConverter(String type) {<NEW_LINE>switch(type.toUpperCase(Locale.ENGLISH)) {<NEW_LINE>case "BOOL":<NEW_LINE>case "BOOLEAN":<NEW_LINE>return val -> new BooleanColumn(Boolean.parseBoolean<MASK><NEW_LINE>case "INT8":<NEW_LINE>case "TINYINT":<NEW_LINE>return val -> new Byte...
(val.toString()));
1,787,534
static void updateColumnNames(String rawTableName, PinotQuery pinotQuery, boolean isCaseInsensitive, Map<String, String> columnNameMap) {<NEW_LINE>Map<String, String> aliasMap = new HashMap<>();<NEW_LINE>if (pinotQuery != null) {<NEW_LINE>boolean hasStar = false;<NEW_LINE>for (Expression expression : pinotQuery.getSele...
Expression havingExpression = pinotQuery.getHavingExpression();
688,112
public void handleConditionalStatementIsPresentGet(IfTree node) {<NEW_LINE>ExpressionTree condExpr = TreeUtils.withoutParens(node.getCondition());<NEW_LINE>Pair<Boolean, ExpressionTree> isPresentCall = isCallToIsPresent(condExpr);<NEW_LINE>if (isPresentCall == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>StatementTree ...
methodString.substring(dotPos + 1);
1,301,058
final ListProjectsResult executeListProjects(ListProjectsRequest listProjectsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listProjectsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
825,682
private void bindToService() {<NEW_LINE>Context context = getContextReference();<NEW_LINE>if (context == null || requestQueue.isEmpty() && isStopped) {<NEW_LINE>// fix issue 40. Thx Shussu<NEW_LINE>// fix issue 246.<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>lockAcquireService.lock();<NEW_LINE>lockSendRequestsToService.lock(...
"ApplicationContext is " + context.getApplicationContext());
1,632,349
public static <In extends ImageBase<In>, Out extends ImageBase<Out>, K extends Kernel1D> void vertical(K kernel, In input, Out output) {<NEW_LINE>switch(input.getImageType().getFamily()) {<NEW_LINE>case GRAY -><NEW_LINE>{<NEW_LINE>if (input instanceof GrayF32) {<NEW_LINE>ConvolveImageNoBorder.vertical((Kernel1D_F32) ke...
) input, (GrayI16) output);
1,594,181
private JsonResponseComposite toJson(@NonNull final BPartnerComposite bpartnerComposite) {<NEW_LINE>final BPartner bpartner = bpartnerComposite.getBpartner();<NEW_LINE>try (final MDCCloseable ignored = MDC.putCloseable("method", "JsonRetrieverService.toJson(BPartnerComposite)");<NEW_LINE>final MDCCloseable ignored1 = T...
builder().orgCode(orgCode);
1,819,826
private void completionOnMemberAccess(ASTNode astNode, ASTNode enclosingNode, Binding qualifiedBinding, Scope scope, boolean insideTypeAnnotation) {<NEW_LINE>this.insideQualifiedReference = true;<NEW_LINE>CompletionOnMemberAccess access = (CompletionOnMemberAccess) astNode;<NEW_LINE>long completionPosition = access.nam...
null, -1, -1);
392,333
protected void updateLayoutState() {<NEW_LINE>if (list.getLayoutOrientation() != JList.VERTICAL) {<NEW_LINE>super.updateLayoutState();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// pasted from BasicListUI to provide min-height<NEW_LINE>int fixedCellHeight = list.getFixedCellHeight();<NEW_LINE>int fixedCellWidth = list.getFix...
> renderer = list.getCellRenderer();
1,166,145
private String constructReply(String[] result) throws Exception {<NEW_LINE>String reply = new String();<NEW_LINE>StringWriter writer = new StringWriter();<NEW_LINE>DecimalFormat typeFormatter = new DecimalFormat("00");<NEW_LINE>DecimalFormat sizeFormatter = new DecimalFormat("000000");<NEW_LINE>writer.write(typeFormatt...
+ sizeFormatter.format(0));
31,713
// deleteLanguageById.<NEW_LINE>private void dbUpsert(final Language language) throws DotDataException {<NEW_LINE>if (language.getId() == 0) {<NEW_LINE>language.setId(APILocator.getDeterministicIdentifierAPI().generateDeterministicIdBestEffort(language));<NEW_LINE>}<NEW_LINE>Language tester = getLanguage(language.getId...
addParam(language.getCountry());
741,820
public AjaxResult microPayReverse(@RequestParam("outTradeNo") String outTradeNo) {<NEW_LINE>try {<NEW_LINE>Map<String, String> params = OrderQueryModel.builder().service(ServiceEnum.MICRO_PAY_REVERSE.toString()).mch_id(unionPayBean.getMachId()).out_trade_no(outTradeNo).nonce_str(WxPayKit.generateStr()).build().createSi...
getKey(), SignType.MD5);
40,767
final CreateDatasetResult executeCreateDataset(CreateDatasetRequest createDatasetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createDatasetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,818,407
protected void partialFinish(ManufOrder manufOrder, int inOrOut) throws AxelorException {<NEW_LINE>if (inOrOut != PART_FINISH_IN && inOrOut != PART_FINISH_OUT) {<NEW_LINE>throw new IllegalArgumentException(I18n.get(IExceptionMessage.IN_OR_OUT_INVALID_ARG));<NEW_LINE>}<NEW_LINE>Company company = manufOrder.getCompany();...
newStockMove.setOriginTypeSelect(StockMoveRepository.ORIGIN_MANUF_ORDER);
605,697
public void resolveComponentMetaData(ModuleComponentIdentifier moduleComponentIdentifier, ComponentOverrideMetadata requestMetaData, BuildableModuleComponentMetaDataResolveResult result) {<NEW_LINE>ComponentOverrideMetadata forced = requestMetaData.withChanging();<NEW_LINE>delegate.getRemoteAccess().resolveComponentMet...
metadataProcessor.getRulesHash(), processedMetadata);
1,304,919
public static void rookAttack(List<List<Integer>> A) {<NEW_LINE>int m = A.size(), n = A.get(0).size();<NEW_LINE>boolean hasFirstRowZero = A.get<MASK><NEW_LINE>boolean hasFirstColumnZero = A.stream().anyMatch(row -> row.get(0) == 0);<NEW_LINE>for (int i = 1; i < m; ++i) {<NEW_LINE>for (int j = 1; j < n; ++j) {<NEW_LINE>...
(0).contains(0);
464,160
public static ImportNacosConfigResponse unmarshall(ImportNacosConfigResponse importNacosConfigResponse, UnmarshallerContext _ctx) {<NEW_LINE>importNacosConfigResponse.setRequestId(_ctx.stringValue("ImportNacosConfigResponse.RequestId"));<NEW_LINE>importNacosConfigResponse.setHttpStatusCode(_ctx.integerValue("ImportNaco...
(_ctx.stringValue("ImportNacosConfigResponse.Message"));
717,239
private void checkMailForAccount(Account account, boolean ignoreLastCheckedTime, boolean notify, MessagingListener listener) {<NEW_LINE>Timber.i("Synchronizing account %s", account);<NEW_LINE>NotificationState notificationState = new NotificationState();<NEW_LINE>sendPendingMessages(account, listener);<NEW_LINE>refresh...
notificationController.clearNewMailNotifications(account, false);
5,355
public String extractBamlXml(String xml) throws AxelorException {<NEW_LINE>if (xml == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DocumentBuilderFactory docBuilderFactory = new XPathParse().getDocumentBuilderFactory();<NEW_LINE>try {<NEW_LINE>docBuilderFactory.setNamespaceAware(false);<NEW_LINE>DocumentBuilder bu...
.item(i), true);
134,078
public void addEvidence(final Map<String, List<EVIDENCE>> evidenceBySample, final double initialLikelihood) {<NEW_LINE>for (final Map.Entry<String, List<EVIDENCE>> entry : evidenceBySample.entrySet()) {<NEW_LINE>final String sample = entry.getKey();<NEW_LINE>final List<EVIDENCE<MASK><NEW_LINE>final int sampleIndex = sa...
> newSampleEvidence = entry.getValue();
1,445,963
public static OnsTrendTopicInputTpsResponse unmarshall(OnsTrendTopicInputTpsResponse onsTrendTopicInputTpsResponse, UnmarshallerContext _ctx) {<NEW_LINE>onsTrendTopicInputTpsResponse.setRequestId(_ctx.stringValue("OnsTrendTopicInputTpsResponse.RequestId"));<NEW_LINE>onsTrendTopicInputTpsResponse.setHelpUrl<MASK><NEW_LI...
(_ctx.stringValue("OnsTrendTopicInputTpsResponse.HelpUrl"));
1,574,885
public ListPage<String> listTopicName(Integer pageIndex, Integer pageSize) throws BrokerException {<NEW_LINE>try {<NEW_LINE>ListPage<String> listPage = new ListPage<>();<NEW_LINE>Tuple3<BigInteger, BigInteger, List<String>> result = this.topicController.listTopicName(BigInteger.valueOf(pageIndex), BigInteger.valueOf(pa...
throw new BrokerException(ErrorCode.WEB3SDK_RPC_ERROR);
264,046
public List<String> expendGroupRoleToPerson(List<String> groupList, List<String> roleList) throws Exception {<NEW_LINE>List<String> groupIds = new ArrayList<>();<NEW_LINE>List<String> expendGroupIds = new ArrayList<>();<NEW_LINE>List<String> <MASK><NEW_LINE>for (String s : ListTools.trim(groupList, true, true)) {<NEW_L...
personIds = new ArrayList<>();
1,112,104
private void enableV3OnionService(int localPort, int onionPort, String name) {<NEW_LINE>ContentValues fields = new ContentValues();<NEW_LINE>fields.put(OnionServiceContentProvider.OnionService.PORT, localPort);<NEW_LINE>fields.put(OrbotService.OnionService.NAME, name);<NEW_LINE>fields.put(OnionServiceContentProvider.On...
OnionServiceContentProvider.OnionService.ENABLED, 1);
176,314
protected void doCloudOp(IProgressMonitor monitor) throws Exception, OperationCanceledException {<NEW_LINE>monitor.beginTask("Refresh services", 2);<NEW_LINE>boolean success = false;<NEW_LINE>try {<NEW_LINE>ClientRequests client = getClientRequests();<NEW_LINE>monitor.worked(1);<NEW_LINE>if (client != null) {<NEW_LINE>...
setServices(services.build());
804,756
public static void convolve(Kernel2D_F32 kernel, GrayF32 src, GrayF32 dest) {<NEW_LINE>final float[] dataKernel = kernel.data;<NEW_LINE>final float[] dataSrc = src.data;<NEW_LINE>final float[] dataDst = dest.data;<NEW_LINE>final int width = src.getWidth();<NEW_LINE>final int height = src.getHeight();<NEW_LINE>int offse...
.width - kernel.offset - 1;
1,756,085
private void fillSegmentInfo(SegmentReader segmentReader, boolean verbose, boolean search, Map<String, Segment> segments) {<NEW_LINE>SegmentCommitInfo info = segmentReader.getSegmentInfo();<NEW_LINE>assert segments.containsKey(info.info.name) == false;<NEW_LINE>Segment segment = new Segment(info.info.name);<NEW_LINE>se...
.info.name), e);
1,469,879
public PCollection<T> expand(PBegin input) {<NEW_LINE>checkArgument(getScanResponseMapperFn() != null, "withScanResponseMapperFn() is required");<NEW_LINE>checkArgument(getScanRequestFn() != null, "withScanRequestFn() is required");<NEW_LINE>ScanRequest scanRequest = getScanRequestFn().apply(null);<NEW_LINE>checkArgume...
() > 0), "TotalSegments is required with withScanRequestFn() and greater zero");
258,344
public DescribeWebsiteCertificateAuthorityResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeWebsiteCertificateAuthorityResult describeWebsiteCertificateAuthorityResult = new DescribeWebsiteCertificateAuthorityResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE...
"unixTimestamp").unmarshall(context));
1,733,159
private UpdateItemRequest buildUpdateStatement(OnboardingEvent onboardingEvent) {<NEW_LINE>HashMap<String, AttributeValue> compositeKey = new HashMap<>();<NEW_LINE>AttributeValue primaryKeyValue = AttributeValue.builder().s(String.format("%s%s%s", TENANT_PREFIX, ATTRIBUTE_DELIMITER, onboardingEvent.getTenantId())).buil...
s(CONFIG_SORT_KEY_VALUE).build();
761,932
public void updateContext() {<NEW_LINE>String columnName = m_vo.ColumnNameAlias.isEmpty() ? m_vo.ColumnName : m_vo.ColumnNameAlias;<NEW_LINE>// Set Context<NEW_LINE>if (m_vo.displayType == DisplayType.Text || m_vo.displayType == DisplayType.Memo || m_vo.displayType == DisplayType.TextLong || m_vo.displayType == Display...
.setTime((Date) m_value);
768,307
private static boolean matchStart(boolean advanced, PsiBuilder builder, int level, IElementType begin) {<NEW_LINE>if (begin == DO) {<NEW_LINE>return matchEnd(advanced, builder, level, TokenSet.EMPTY, END_SET);<NEW_LINE>} else if (begin == REPEAT) {<NEW_LINE>return matchEnd(advanced, builder, level, TokenSet.EMPTY, REPE...
builder, level, THEN_SKIPS2, END_SET);
1,834,956
public void expandAll(@Nullable final Runnable onDone) {<NEW_LINE>final JTree tree = getTree();<NEW_LINE>if (tree.getRowCount() > 0) {<NEW_LINE>final int expandRecursionDepth = Math.max(2<MASK><NEW_LINE>new TreeRunnable("AbstractTreeUi.expandAll") {<NEW_LINE><NEW_LINE>private int myCurrentRow;<NEW_LINE><NEW_LINE>privat...
, Registry.intValue("ide.tree.expandRecursionDepth"));
443,283
public final void layout(N rootNode) {<NEW_LINE>if (rootNode == null)<NEW_LINE>return;<NEW_LINE>Collection<N> allNodes = scene.getNodes();<NEW_LINE>ArrayList<N> nodesToResolve = new ArrayList<N>(allNodes);<NEW_LINE>HashSet<N> loadedSet = new HashSet<N>();<NEW_LINE>Node root = new Node(rootNode, loadedSet);<NEW_LINE>nod...
root.resolveHorizontally(originX, originY);
1,709,005
public static String convertToStr(RestRequest restRequest) {<NEW_LINE>if (Objects.isNull(restRequest)) {<NEW_LINE>return "RestRequest: null";<NEW_LINE>}<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("RestRequest: [");<NEW_LINE>sb.append("Method: " + ((restRequest.getRestMethod() == null) ? "null" ...
: account.toString()));
263,457
public long handle(Emulator<?> emulator) {<NEW_LINE>RegisterContext context = emulator.getContext();<NEW_LINE>UnidbgPointer clazz = context.getPointerArg(1);<NEW_LINE>UnidbgPointer jmethodID = context.getPointerArg(2);<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("CallStaticDoubleMethod clazz=" + clazz + ", ...
ret, context.getLRPointer());
1,314,871
public static BatchJoinMeetingInternationalResponse unmarshall(BatchJoinMeetingInternationalResponse batchJoinMeetingInternationalResponse, UnmarshallerContext _ctx) {<NEW_LINE>batchJoinMeetingInternationalResponse.setRequestId(_ctx.stringValue("BatchJoinMeetingInternationalResponse.RequestId"));<NEW_LINE>batchJoinMeet...
(_ctx.booleanValue("BatchJoinMeetingInternationalResponse.Success"));
1,054,273
private ReportResult exportAsExcel(final JasperPrint jasperPrint) throws JRException {<NEW_LINE>final ByteArrayOutputStream out = new ByteArrayOutputStream();<NEW_LINE>final MetasJRXlsExporter exporter = new MetasJRXlsExporter();<NEW_LINE>// Output<NEW_LINE>exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, out);...
setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
1,039,234
/* Merges a and b<NEW_LINE>Lists are merged: a + b = [*a, *b]<NEW_LINE>Strings are not allowed, they will throw an error<NEW_LINE>*/<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>public static Map<String, Object> mergeManifestContext(Map<String, Object> a, Map<String, Object> b) throws RuntimeException {<NEW_LINE>Ma...
objA == null ? objB : objA);
762,316
public void deleteRow() throws SQLException {<NEW_LINE>loggerExternal.entering(getClassNameLogging(), "deleteRow");<NEW_LINE>if (loggerExternal.isLoggable(Level.FINER) && Util.isActivityTraceOn()) {<NEW_LINE>loggerExternal.finer(toString() + " ActivityId: " + ActivityCorrelator.getNext().toString());<NEW_LINE>}<NEW_LIN...
super("DeleteRowRPC", 0, 0);
1,098,890
private static void configureAnalyzer(Project proj, Circuit circuit, Analyzer analyzer, Map<Instance, String> pinNames, ArrayList<Var> inputVars, ArrayList<Var> outputVars) {<NEW_LINE>analyzer.getModel(<MASK><NEW_LINE>// If there are no inputs or outputs, we stop with that tab selected<NEW_LINE>if (inputVars.size() == ...
).setVariables(inputVars, outputVars);
1,045,975
private void addComponents() {<NEW_LINE>Components incomingComponents = OAInProgress.getComponents();<NEW_LINE>if (incomingComponents == null)<NEW_LINE>return;<NEW_LINE>Map m = null;<NEW_LINE>m = handleMapRename(incomingComponents.getExamples(), OA_COMPONENTS_EXAMPLES);<NEW_LINE>incomingComponents.setExamples(m);<NEW_L...
incomingComponents.getRequestBodies(), OA_COMPONENTS_REQUEST_BODIES);
1,107,935
private void importRealm(RealmRepresentation rep, String from) {<NEW_LINE>KeycloakSession session = factory.create();<NEW_LINE>boolean exists = false;<NEW_LINE>try {<NEW_LINE>session.getTransactionManager().begin();<NEW_LINE>try {<NEW_LINE>RealmManager manager = new RealmManager(session);<NEW_LINE>if (rep.getId() != nu...
rep.getRealm(), cause);
457,854
public <T> Flux<T> map(BiFunction<Row, RowMetadata, ? extends T> f) {<NEW_LINE>Assert.requireNonNull(f, "f must not be null");<NEW_LINE>return this.messages.handle((message, sink) -> {<NEW_LINE>try {<NEW_LINE>if (message instanceof ErrorResponse) {<NEW_LINE>this.factory.handleErrorResponse<MASK><NEW_LINE>return;<NEW_LI...
(message, (SynchronousSink) sink);
1,219,018
public static void initConnectivity(@NonNull Context context) {<NEW_LINE>context = context.getApplicationContext();<NEW_LINE>ConnectivityManager cm = (ConnectivityManager) <MASK><NEW_LINE>assert cm != null;<NEW_LINE>if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {<NEW_LINE>NetworkRequest.Builder builder = n...
context.getSystemService(Context.CONNECTIVITY_SERVICE);
616,249
@Nonnull<NEW_LINE>public EnumActionResult onItemUse(@Nonnull EntityPlayer player, @Nonnull World world, @Nonnull BlockPos pos, @Nonnull EnumHand hand, @Nonnull EnumFacing side, float hitX, float hitY, float hitZ) {<NEW_LINE>if (world.isRemote) {<NEW_LINE>return EnumActionResult.SUCCESS;<NEW_LINE>}<NEW_LINE>Block condui...
stack = player.getHeldItem(hand);
1,810,482
private JsonNode stats(Collection<String> indices, Collection<String> metrics, Consumer<Request> prepareRequest) {<NEW_LINE><MASK><NEW_LINE>if (!indices.isEmpty()) {<NEW_LINE>final String joinedIndices = String.join(",", indices);<NEW_LINE>endpoint.append("/");<NEW_LINE>endpoint.append(joinedIndices);<NEW_LINE>}<NEW_LI...
final StringBuilder endpoint = new StringBuilder();
62,186
private static boolean isomorphic(PropFuncArg pfa1, PropFuncArg pfa2, NodeIsomorphismMap labelMap) {<NEW_LINE>if (pfa1 == null && pfa2 == null)<NEW_LINE>return true;<NEW_LINE>if (pfa1 == null)<NEW_LINE>return false;<NEW_LINE>if (pfa2 == null)<NEW_LINE>return false;<NEW_LINE>if (pfa1.isList() && pfa2.isList()) {<NEW_LIN...
pfa2.getArg(), labelMap);
1,811,233
public void invoke(@NotNull Project project, @NotNull PsiFile file, @Nullable("is null when called from inspection") Editor editor, @NotNull PsiElement startElement, @NotNull PsiElement endElement) {<NEW_LINE>if (editor == null) {<NEW_LINE>LOG.error("Cannot run quick fix without editor: " + getClass().getSimpleName(), ...
PsiTreeUtil.findPrevParent(file, call);
1,708,135
public void run() {<NEW_LINE>mPoster.setKeepScreenOn(playing);<NEW_LINE>if (!playing) {<NEW_LINE>mPlayPauseButton.setImageResource(R.drawable.ic_play);<NEW_LINE>mPlayPauseButton.setContentDescription(getString(R.string.lbl_play));<NEW_LINE>} else {<NEW_LINE>mPlayPauseButton.setImageResource(R.drawable.ic_pause);<NEW_LI...
(R.string.lbl_pause));
1,578,071
public HttpResult doDelete(CloseableHttpClient httpClient, String url, Map<String, String> header) throws Exception {<NEW_LINE>HttpDelete httpDelete = new HttpDelete(url);<NEW_LINE>httpDelete.addHeader("Connection", "close");<NEW_LINE>if (header != null) {<NEW_LINE>header.forEach((k, v) -> {<NEW_LINE>httpDelete.setHead...
logger.warn("", e);
1,142,754
private static void pointAdd(PointExt p, PointExt r) {<NEW_LINE>int[] a = F.create();<NEW_LINE>int[] b = F.create();<NEW_LINE>int[] c = F.create();<NEW_LINE>int[] d = F.create();<NEW_LINE>int[] e = F.create();<NEW_LINE>int[] f = F.create();<NEW_LINE>int[] g = F.create();<NEW_LINE>int[] h = F.create();<NEW_LINE>F.mul(p....
f, h, r.x);
1,710,118
public Request<UpdateCustomMetricRequest> marshall(UpdateCustomMetricRequest updateCustomMetricRequest) {<NEW_LINE>if (updateCustomMetricRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(UpdateCustomMetricRequest)");<NEW_LINE>}<NEW_LINE>Request<UpdateCustomMetricRequest> r...
(updateCustomMetricRequest.getMetricName()));
195,598
public void marshall(Template _template, Request<?> request, String _prefix) {<NEW_LINE>String prefix;<NEW_LINE>if (_template.getTemplateName() != null) {<NEW_LINE>prefix = _prefix + "TemplateName";<NEW_LINE>String templateName = _template.getTemplateName();<NEW_LINE>request.addParameter(prefix, StringUtils.fromString(...
String htmlPart = _template.getHtmlPart();