idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
776,042 | public static String createColumnDefinition(TableInfo tableInfo, Field field) {<NEW_LINE>StringBuilder definition = new StringBuilder();<NEW_LINE>Class<?<MASK><NEW_LINE>final String name = tableInfo.getColumnName(field);<NEW_LINE>final TypeSerializer typeSerializer = Cache.getParserForType(field.getType());<NEW_LINE>fi... | > type = field.getType(); |
346,575 | private ArgumentBuilder buildArgs(StringToStringMap values, Interface modelItem) {<NEW_LINE>ArgumentBuilder builder = new ArgumentBuilder(values);<NEW_LINE>values.put(XSBTARGET, Tools.ensureDir(values.get(XSBTARGET), ""));<NEW_LINE>values.put(SRCTARGET, Tools.ensureDir(values.get(SRCTARGET), ""));<NEW_LINE>builder.star... | javac + File.separatorChar + "javac"); |
867,346 | private EditorEx createEditor(Project project, IdeDocumentHistoryImpl.PlaceInfo placeInfo) {<NEW_LINE>RangeMarker positionOffset = placeInfo.getCaretPosition();<NEW_LINE>if (positionOffset == null || !positionOffset.isValid()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>assert positionOffset.getStartOffset() == positio... | scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); |
764,701 | public Set<? extends TCReferable> update(TCReferable definition) {<NEW_LINE>if (definition instanceof TCDefReferable && ((TCDefReferable) definition).getTypechecked() == null) {<NEW_LINE>return Collections.emptySet();<NEW_LINE>}<NEW_LINE>Set<TCReferable> updated = new HashSet<>();<NEW_LINE>Stack<TCReferable> stack = ne... | additional = new HashSet<>(); |
970,367 | public void toObjectAsyncTypeReferenceDefaultJsonSerializerGeneric() throws InterruptedException {<NEW_LINE>// BEGIN: com.azure.core.util.BinaryData.toObjectAsync#TypeReference-generic<NEW_LINE>final Person person1 = new Person().setName("John");<NEW_LINE>final Person person2 = new Person().setName("Jack");<NEW_LINE>Li... | person.getName()))); |
71,951 | public void configureBootstraps(NettyRequestSender requestSender) {<NEW_LINE>final AsyncHttpClientHandler httpHandler = new HttpHandler(config, this, requestSender);<NEW_LINE>wsHandler = new WebSocketHandler(config, this, requestSender);<NEW_LINE>final LoggingHandler loggingHandler = new LoggingHandler(LogLevel.TRACE);... | pipeline.addFirst(LOGGING_HANDLER, loggingHandler); |
675,315 | public static // Note that if the matrix contains large values and of a large size, one may get overflow<NEW_LINE>double determinant(double[][] matrix) {<NEW_LINE>double result = 0.0;<NEW_LINE>if (matrix.length == 1)<NEW_LINE>return determinant(matrix[0]);<NEW_LINE>if (matrix.length == 1 && matrix[0].length == 1)<NEW_L... | = matrix[j][k]; |
1,692,859 | final ListLocalDisksResult executeListLocalDisks(ListLocalDisksRequest listLocalDisksRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listLocalDisksRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
26,643 | private boolean partialDirRefresh(@Nonnull NewVirtualFileSystem fs, @Nonnull PersistentFS persistence, @Nonnull HashingStrategy<String> strategy, @Nonnull VirtualDirectoryImpl dir) {<NEW_LINE>Pair<List<VirtualFile>, List<String>> snapshot = ReadAction.compute(() -> {<NEW_LINE>checkCancelled(dir);<NEW_LINE>return pair(d... | childRecord(fs, dir, name); |
869,252 | private void step() throws IOException {<NEW_LINE>// Handle incoming data.<NEW_LINE>byte[] buffer;<NEW_LINE>synchronized (mReadBufferLock) {<NEW_LINE>buffer = mReadBuffer.array();<NEW_LINE>}<NEW_LINE>int len = mSerialPort.read(buffer, mReadTimeout);<NEW_LINE>if (len > 0) {<NEW_LINE>if (DEBUG) {<NEW_LINE>Log.d(TAG, "Rea... | 0, data, 0, len); |
199,346 | private static // parses the row to a trade<NEW_LINE>FxNdfTrade parseRow(CsvRow row, TradeInfo info) {<NEW_LINE>CurrencyAmount settlementNotional;<NEW_LINE>Currency settlementCurrency;<NEW_LINE>Currency nonDeliverableCurrency;<NEW_LINE>Optional<String> leg1NotionalOpt = row.findValue(LEG_1_NOTIONAL_FIELD);<NEW_LINE>Opt... | leg2NotionalOpt = row.findValue(LEG_2_NOTIONAL_FIELD); |
88,050 | protected void handleTransportDisconnect(DiscoveryNode node) {<NEW_LINE>synchronized (masterNodeMutex) {<NEW_LINE>if (!node.equals(this.masterNode)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (connectOnNetworkDisconnect) {<NEW_LINE>try {<NEW_LINE>transportService.connectToNode(node);<NEW_LINE>// if all is well, make sur... | notifyMasterFailure(masterNode, null, "transport disconnected (with verified connect)"); |
44,357 | private Value finish() {<NEW_LINE>if (targetObject != null) {<NEW_LINE>return targetObject;<NEW_LINE>}<NEW_LINE>StringBuilder message = null;<NEW_LINE>for (int i = 0; i < constructorArgs.length; i++) {<NEW_LINE>if (constructorArgs[i] != null)<NEW_LINE>continue;<NEW_LINE>ConstructorArgInfo arg = constructorArgInfos.get(... | (']').toString()); |
1,538,185 | protected void recheckSettings() {<NEW_LINE>if (level == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>BlockPos <MASK><NEW_LINE>solarCheck = new AdvancedSolarCheck(level, topPos);<NEW_LINE>float totalPeak = solarCheck.getPeakMultiplier();<NEW_LINE>for (int i = 0; i < solarChecks.length; i++) {<NEW_LINE>if (i < 3) {<NEW_... | topPos = worldPosition.above(2); |
778,057 | public void createPartControl(Composite parent) {<NEW_LINE>Server server = ServerManager.getInstance().getServer(serverId);<NEW_LINE>ActiveDbInfo activeDBList = ActiveDbInfo.getInstance();<NEW_LINE>if (server != null) {<NEW_LINE>this.setPartName("CUBRID ServerInfo" + "[" + server.getName() + "]");<NEW_LINE>activeDBList... | .setContentProvider(new ArrayContentProvider()); |
911,062 | public Object convert(Class type, Object value) {<NEW_LINE>Object result;<NEW_LINE>Object factory = objectFactory(destObjClass, beanContainer);<NEW_LINE>Class<?> factoryClass = factory.getClass();<NEW_LINE>Class<?> destClass = value.getClass();<NEW_LINE>Class<?> valueClass = value.getClass();<NEW_LINE>String methodName... | converter.convert(destClass, param); |
1,731,153 | public void testBeanSubmitsManagedTaskThatInvokesTxNever() throws Exception {<NEW_LINE>Future<?> future = submitterBean.submit(new Callable<Object>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Object call() throws Exception {<NEW_LINE>Object beanTxKey = bean.runAsNever();<NEW_LINE>if (beanTxKey != null)<NEW_LINE>th... | get(TIMEOUT, TimeUnit.MILLISECONDS); |
1,054,599 | private static Component.Builder makeTransparencyEnabledCardClip(ComponentContext c, int backgroundColor, @Nullable DynamicValue<Integer> backgroundColorDv, int clippingColor, float cornerRadius, boolean disableClipTopLeft, boolean disableClipTopRight, boolean disableClipBottomLeft, boolean disableClipBottomRight, @Nul... | layerType(LayerType.LAYER_TYPE_SOFTWARE, null); |
1,211,792 | public Object apply(final ActionContext ctx, final Object caller, Object[] sources) throws FrameworkException {<NEW_LINE>final SecurityContext securityContext = SecurityContext.getSuperUserInstance();<NEW_LINE>try {<NEW_LINE>if (sources == null) {<NEW_LINE>throw new IllegalArgumentException();<NEW_LINE>}<NEW_LINE>final... | logger.warn("Error in find_privileged(): type '{}' not found.", typeString); |
1,170,675 | private MockValue call(Jooby router, String method, String path, Context ctx, Consumer<MockResponse> consumer) {<NEW_LINE>MockContext findContext = ctx instanceof MockContext ? (MockContext) ctx : newContext();<NEW_LINE>findContext.setMethod(method.toUpperCase());<NEW_LINE>findContext.setRequestPath(path);<NEW_LINE>fin... | setPathMap(match.pathMap()); |
1,488,781 | public com.amazonaws.services.clouddirectory.model.NotNodeException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.clouddirectory.model.NotNodeException notNodeException = new com.amazonaws.services.clouddirectory.model.NotNodeException(null);<NEW_LINE><MASK><N... | int originalDepth = context.getCurrentDepth(); |
662,166 | protected static void _addConnectors(PyObject dict) throws PyException {<NEW_LINE>PyObject connector = Py.None;<NEW_LINE>Properties props = new Properties();<NEW_LINE>props.put("connect", "com.ziclix.python.sql.connect.Connect");<NEW_LINE>props.put("lookup", "com.ziclix.python.sql.connect.Lookup");<NEW_LINE>props.put("... | nextElement()).trim(); |
934,708 | public ResponseData<String> send(TransmissionRequest<?> request) {<NEW_LINE>try {<NEW_LINE>logger.info("[HttpTransmission.send] this is http transmission and the service type is: {}", request.getServiceType());<NEW_LINE>if (request.getTransType() != TransType.HTTP && request.getTransType() != TransType.HTTPS) {<NEW_LIN... | doPost("", params, false); |
1,564,182 | private boolean isProcessQueueItem(final PrintArchiveParameters printArchiveParameters) {<NEW_LINE>if (printArchiveParameters.isEnforceEnqueueToPrintQueue()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>final de.metas.printing.model.I_AD_Archive archive = printArchiveParameters.getArchive();<NEW_LINE>// If we are explic... | "IsProcessQueueItem - AD_Archive has C_Doc_Outbound_Config_ID={} which has IsDirectProcessQueueItem=true; -> return true", archive.getC_Doc_Outbound_Config_ID()); |
1,616,071 | private static boolean isInstanceOf(FileObject f, Class clazz, boolean exactMatch) {<NEW_LINE>try {<NEW_LINE>DataObject d = DataObject.find(f);<NEW_LINE>InstanceCookie ic = d.getLookup().lookup(InstanceCookie.class);<NEW_LINE>if (ic != null) {<NEW_LINE>if (ic instanceof InstanceCookie.Of) {<NEW_LINE>if (!exactMatch) {<... | return ic.instanceClass() == clazz; |
36,484 | public HttpResponse testBodyWithFileSchemaForHttpResponse(FileSchemaTestClass body, Map<String, Object> params) throws IOException {<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new IllegalArgumentException("Missing the required parameter 'body' when calling testBo... | , (Object[]) value); |
543,176 | public void parse(byte[] vmsdFileContent) throws IOException {<NEW_LINE>BufferedReader in = null;<NEW_LINE>try {<NEW_LINE>in = new BufferedReader(new InputStreamReader(new ByteArrayInputStream(vmsdFileContent), "UTF-8"));<NEW_LINE>String line;<NEW_LINE>while ((line = in.readLine()) != null) {<NEW_LINE>// TODO, remember... | _properties.put(name, value); |
526,210 | public void run(RegressionEnvironment env) {<NEW_LINE>String stmtTextSet = "@name('set') on SupportBean set var1OND = intPrimitive, var2OND = var1OND + 1, var3OND = var1OND + var2OND";<NEW_LINE>env.compileDeploy(stmtTextSet).addListener("set");<NEW_LINE>String[] fieldsVar = new String[] { "var1OND", "var2OND", "var3OND... | 3, 4, 7 } }); |
23,242 | static void writeAar(Path aar, final MergedAndroidData data, Path manifest, Path rtxt, Path classes, List<Path> proguardSpecs) throws IOException {<NEW_LINE>try (final ZipOutputStream zipOut = new ZipOutputStream(new BufferedOutputStream(Files.newOutputStream(aar)))) {<NEW_LINE><MASK><NEW_LINE>manifestEntry.setTime(DEF... | ZipEntry manifestEntry = new ZipEntry("AndroidManifest.xml"); |
1,673,983 | private static // Remove when QuadPatterns roll through from ARQ.<NEW_LINE>void formatQuads(IndentedLineBuffer out, QuadPattern quads) {<NEW_LINE>SerializationContext sCxt = SSE.sCxt(SSE.getPrefixMapWrite());<NEW_LINE>boolean first = true;<NEW_LINE>for (Quad qp : quads) {<NEW_LINE>if (!first) {<NEW_LINE>if (!MultiLines... | qp.getSubject(), sCxt); |
948,756 | protected void initChannel(Channel ch) {<NEW_LINE>ChannelPipeline pipeline = ch.pipeline();<NEW_LINE>pipeline.addLast(new LoggingHandler());<NEW_LINE>pipeline.addLast("http-client-codec", new HttpClientCodec());<NEW_LINE>if (gzipEnabled) {<NEW_LINE>pipeline.addLast(encoderEventLoopGroup, <MASK><NEW_LINE>}<NEW_LINE>pipe... | "gzip-encoder", new GzipEncoder(registry)); |
981,908 | private double calculateExprValue(int id, BitSet types, ParameterContext paramContext) {<NEW_LINE>String value = values[id];<NEW_LINE>Number cacheValue = cacheValues[id];<NEW_LINE>if (cacheValue != null) {<NEW_LINE>return cacheValue.doubleValue();<NEW_LINE>}<NEW_LINE>Object o = null;<NEW_LINE>if (value instanceof Strin... | BitSet(mask.length()); |
1,742,164 | public void readFunctionSection() throws IOException {<NEW_LINE>if (log.isLoggable(Level.FINE))<NEW_LINE>log.fine("readFunctionSection");<NEW_LINE>int nFunctions = in.read4BE();<NEW_LINE>anonymousFuns = new AnonFun[nFunctions];<NEW_LINE>if (log.isLoggable(Level.FINE))<NEW_LINE>log.fine("Number of function descrs: " + n... | i, module_md5, index, free_vars); |
104,048 | public static ErrorMessage sendErrorMessage(ChannelHandlerContext ctx, Throwable cause) throws Exception {<NEW_LINE>String message = cause.getMessage();<NEW_LINE>long statusCode = StatusCodes.Bad_UnexpectedError;<NEW_LINE>if (cause instanceof UaException) {<NEW_LINE>UaException ex = (UaException) cause;<NEW_LINE>messag... | Throwable innerCause = cause.getCause(); |
634,622 | public final double calcDistance(PointList pointList) {<NEW_LINE>double prevLat = Double.NaN;<NEW_LINE>double prevLon = Double.NaN;<NEW_LINE>double prevEle = Double.NaN;<NEW_LINE>double dist = 0;<NEW_LINE>for (int i = 0; i < pointList.size(); i++) {<NEW_LINE>if (i > 0) {<NEW_LINE>if (pointList.is3D())<NEW_LINE>dist += ... | , pointList.getLon(i)); |
434,387 | private void drawColorWheel() {<NEW_LINE>colorWheelCanvas.drawColor(0, PorterDuff.Mode.CLEAR);<NEW_LINE>currentColorCanvas.drawColor(0, PorterDuff.Mode.CLEAR);<NEW_LINE>if (renderer == null)<NEW_LINE>return;<NEW_LINE>float half = colorWheelCanvas.getWidth() / 2f;<NEW_LINE>float strokeWidth = STROKE_RATIO <MASK><NEW_LIN... | * (1f + ColorWheelRenderer.GAP_PERCENTAGE); |
290,886 | public void deployResource(Object resource, String applicationName, String moduleName) throws Exception {<NEW_LINE>ContextService contextServiceRes = (ContextService) resource;<NEW_LINE>if (contextServiceRes == null) {<NEW_LINE>_logger.log(Level.WARNING, LogFacade.DEPLOY_ERROR_NULL_CONFIG, "ContextService");<NEW_LINE>r... | String contextInfo = contextServiceRes.getContextInfo(); |
1,324,443 | private void popTabMenu() {<NEW_LINE>try {<NEW_LINE>add(createMenuItem("Set Type", new PopTabAction(PopTabAction.SET_TYPE)));<NEW_LINE>createMenuSeperator();<NEW_LINE>add(createMenuItem("Move Tab", new PopTabAction(PopTabAction.MOVE_TAB)));<NEW_LINE>add(createMenuItem("Duplicate", new PopTabAction(PopTabAction.DUPLICAT... | PopTabAction(PopTabAction.RESET))); |
1,005,995 | public okhttp3.Call deleteAPISpecificOperationPolicyByPolicyIdCall(String apiId, String operationPolicyId, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/{apiId}/operation-policies/{operationPoli... | final String[] localVarContentTypes = {}; |
352,144 | // [END maps_current_place_on_options_item_selected]<NEW_LINE>// [START maps_current_place_on_map_ready]<NEW_LINE>@Override<NEW_LINE>public void onMapReady(GoogleMap map) {<NEW_LINE>this.map = map;<NEW_LINE>// [START_EXCLUDE]<NEW_LINE>// [START map_current_place_set_info_window_adapter]<NEW_LINE>// Use a custom info wi... | .id.map), false); |
1,413,885 | public void completed(AbstractBuild r) {<NEW_LINE>if (skipOnMatrixChildren(r)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String key = BuildKey.format(r);<NEW_LINE>AbstractProject<?, ?> project = r.getProject();<NEW_LINE>AbstractBuild<?, ?> previousBuild = project.getLastBuild();<NEW_LINE>if (null != previousBuild) {<NEW_L... | ), notifier.getIncludeCustomMessage()); |
1,028,094 | void submitPin(@NonNull String pin, @NonNull TokenData tokenData, @NonNull Callback<PinResultData> callback) {<NEW_LINE>executor.execute(() -> {<NEW_LINE>try {<NEW_LINE>Stopwatch stopwatch = new Stopwatch("PinSubmission");<NEW_LINE>KbsPinData kbsData = KbsRepository.restoreMasterKey(pin, tokenData.getEnclave(), tokenDa... | (PinResult.SUCCESS, tokenData)); |
1,577,565 | // called when a column is moved in the default-values table (by user)<NEW_LINE>private void moveColumn(int fromIndex, int toIndex) {<NEW_LINE><MASK><NEW_LINE>updateSettingsTable();<NEW_LINE>int selCol;<NEW_LINE>if (defSelectedRow >= 0) {<NEW_LINE>if (defSelectedColumn == fromIndex)<NEW_LINE>selCol = toIndex;<NEW_LINE>... | model.moveColumn(fromIndex, toIndex); |
671,520 | public HttpRouteAction unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>HttpRouteAction httpRouteAction = new HttpRouteAction();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep... | JsonToken token = context.getCurrentToken(); |
582,329 | public static void toJSON(OutputWriter jsonWriter, StageInstanceModel stageInstanceModel) {<NEW_LINE>jsonWriter.add("name", stageInstanceModel.getName());<NEW_LINE>jsonWriter.add("counter", stageInstanceModel.getCounter());<NEW_LINE>jsonWriter.add("approval_type", stageInstanceModel.getApprovalType());<NEW_LINE>jsonWri... | "rerun_of_counter", stageInstanceModel.getRerunOfCounter()); |
724,505 | public void export(long activityId, Writer writer) throws IOException {<NEW_LINE>ActivityEntity ae = new ActivityEntity();<NEW_LINE>ae.readByPrimaryKey(mDB, activityId);<NEW_LINE>long startTime = ae.getStartTime();<NEW_LINE>double distance = ae.getDistance();<NEW_LINE>long duration = ae.getTime();<NEW_LINE>String comme... | JsonWriter w = new JsonWriter(writer); |
9,956 | public void error(DbLoadContext context) {<NEW_LINE>boolean dumpThisEvent = context.getPipeline().getParameters().isDumpEvent() || context.getPipeline().getParameters().isDryRun();<NEW_LINE>if (dump && dumpThisEvent && logger.isInfoEnabled()) {<NEW_LINE>synchronized (LogLoadInterceptor.class) {<NEW_LINE>try {<NEW_LINE>... | ().getPipelineId())); |
1,755,879 | private void applyUserChangesInTrx0(@NonNull ShipmentScheduleUserChangeRequestsList userChanges) {<NEW_LINE>final Set<ShipmentScheduleId<MASK><NEW_LINE>final Map<ShipmentScheduleId, I_M_ShipmentSchedule> recordsById = shipmentSchedulePA.getByIds(shipmentScheduleIds);<NEW_LINE>for (final ShipmentScheduleId shipmentSched... | > shipmentScheduleIds = userChanges.getShipmentScheduleIds(); |
1,085,884 | private // region helpers<NEW_LINE>void startGeofencing() {<NEW_LINE>Context context = getContext();<NEW_LINE>if (context == null) {<NEW_LINE><MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!LocationHelpers.isAnyProviderAvailable(context)) {<NEW_LINE>Log.w(TAG, "There is no location provider available.");<NEW_LINE>retu... | Log.w(TAG, "The context has been abandoned."); |
857,738 | private List<DevServiceDescriptionBuildItem> buildServiceDescriptions(DockerStatusBuildItem dockerStatusBuildItem, List<DevServicesResultBuildItem> devServicesResults, Optional<DevServicesLauncherConfigResultBuildItem> devServicesLauncherConfig) {<NEW_LINE>// Fetch container infos<NEW_LINE>Set<String> containerIds = de... | configKeysFromDevServices = new HashSet<>(); |
1,726,640 | protected void updatePageComplete() {<NEW_LINE>setPageComplete(false);<NEW_LINE>String resultsInfo = new String();<NEW_LINE>String newSource = modelFileField.getText();<NEW_LINE>if (newSource == null || newSource.isEmpty()) {<NEW_LINE>parsedModelFile.reset();<NEW_LINE>} else {<NEW_LINE>parsedModelFile.setSourceName(new... | findMember(new Path(newTarget)); |
5,720 | // private void removeWsdlFolderContents(){<NEW_LINE>// FileObject wsdlFolder = getJAXWSClientSupport().getLocalWsdlFolderForClient(getName(), false);<NEW_LINE>// if(wsdlFolder != null){<NEW_LINE>// FileLock lock = null;<NEW_LINE>//<NEW_LINE>// FileObject[] files = wsdlFolder.getChildren();<NEW_LINE>// for(int i = 0; i... | project = FileOwnerQuery.getOwner(wsdlFileObject); |
1,504,889 | protected String doIt() throws Exception {<NEW_LINE>final I_M_Product product = productDAO.getById(getRecord_ID());<NEW_LINE>final IQueryBL queryBL = Services.get(IQueryBL.class);<NEW_LINE>final IQueryFilter<I_M_Product> productFilter = queryBL.createCompositeQueryFilter(I_M_Product.class).addOnlyActiveRecordsFilter().... | .asLocalDate(discontinuedFromTimestamp, zoneId)); |
1,727,959 | final CreateMediaCapturePipelineResult executeCreateMediaCapturePipeline(CreateMediaCapturePipelineRequest createMediaCapturePipelineRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createMediaCapturePipelineRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
129,454 | private Map<String, List<BlackboardArtifact>> buildMap() throws TskCoreException, SQLException {<NEW_LINE>Map<String, List<BlackboardArtifact>> <MASK><NEW_LINE>List<BlackboardArtifact> contactList = Case.getCurrentCase().getSleuthkitCase().getBlackboardArtifacts(BlackboardArtifact.ARTIFACT_TYPE.TSK_CONTACT);<NEW_LINE>f... | acctMap = new HashMap<>(); |
881,509 | private static MySQLBinlogSource parseMySQLBinlogSource(BinlogSourceListResponse response) {<NEW_LINE>MySQLBinlogSource binlogSource = new MySQLBinlogSource();<NEW_LINE>binlogSource.setSourceName(response.getSourceName());<NEW_LINE>binlogSource.setHostname(response.getHostname());<NEW_LINE>binlogSource.setDataFormat(Da... | setAllMigration(response.isAllMigration()); |
367,288 | public static boolean sendForgotPassword(User user, String newPassword, String hostId) throws DotDataException, DotSecurityException {<NEW_LINE>HostAPI hostAPI = APILocator.getHostAPI();<NEW_LINE>// build a decent default context<NEW_LINE>Context context = VelocityUtil.getBasicContext();<NEW_LINE><MASK><NEW_LINE>contex... | context.put("user", user); |
793,658 | public static DescribeVmMigrationPlanResponse unmarshall(DescribeVmMigrationPlanResponse describeVmMigrationPlanResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeVmMigrationPlanResponse.setRequestId(_ctx.stringValue("DescribeVmMigrationPlanResponse.RequestId"));<NEW_LINE>describeVmMigrationPlanResponse.setSuccess(... | ("DescribeVmMigrationPlanResponse.Migrations[" + i + "].ClientId")); |
892,370 | protected void select_instances() {<NEW_LINE>List<Object> selected_packages = list.getSelectedValuesList();<NEW_LINE>if (selected_packages.size() <= 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>app.freerouting.board.RoutingBoard routing_board = board_frame<MASK><NEW_LINE>java.util.Set<app.freerouting.board.Item> board_ins... | .board_panel.board_handling.get_routing_board(); |
660,350 | void updateAgentsSafely(Collection<AgentBean> updateBeans, Map<String, String> errorMessages) {<NEW_LINE>LOG.debug("Update agent beans with the following: {}", updateBeans);<NEW_LINE>for (AgentBean bean : updateBeans) {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>if (errorNo != null && errorNo != 0) {<NEW_LINE>String error... | Integer errorNo = bean.getLast_err_no(); |
1,644,328 | protected Control createContents(Composite parent) {<NEW_LINE>Composite main = new Composite(parent, SWT.NONE);<NEW_LINE>main.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));<NEW_LINE>GridLayout layout = new GridLayout(2, false);<NEW_LINE>layout.marginHeight = 0;<NEW_LINE>layout.marginWidth = 0;<NEW_LINE>ma... | label.setText(Messages.SynchronizationPropertyPage_lastSyncConnection); |
750,007 | public static DescribeDomainPathDataResponse unmarshall(DescribeDomainPathDataResponse describeDomainPathDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDomainPathDataResponse.setDomainName(_ctx.stringValue("DescribeDomainPathDataResponse.DomainName"));<NEW_LINE>describeDomainPathDataResponse.setStartTime(_c... | ("DescribeDomainPathDataResponse.PathDataPerInterval[" + i + "].Time")); |
815,524 | protected void onBindView(BaseViewHolder holder, int position) {<NEW_LINE>TimelineModel model = getItem(position);<NEW_LINE>if (model.getType() == TimelineModel.HEADER) {<NEW_LINE>((IssueDetailsViewHolder) holder).bind(model);<NEW_LINE>} else if (model.getType() == TimelineModel.EVENT) {<NEW_LINE>((IssueTimelineViewHol... | ) holder).bind(model); |
381,444 | public boolean intersects(long minimum, long supremum) {<NEW_LINE>rangeSanityCheck(minimum, supremum);<NEW_LINE>if (supremum <= minimum) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int minKey = (int) (minimum >>> 16);<NEW_LINE>int supKey = (int) (supremum >>> 16);<NEW_LINE>int length = highLowContainer.size;<NEW_LINE>... | ).intersects(offset, limit); |
779,910 | private static ModelNode spiProvider(JsonNode providerNode, PathAddress providerAddr) {<NEW_LINE>ModelNode op = Util.createAddOperation(providerAddr);<NEW_LINE>ModelNode properties = new ModelNode();<NEW_LINE>Iterator<String<MASK><NEW_LINE>while (propNames.hasNext()) {<NEW_LINE>String propName = propNames.next();<NEW_L... | > propNames = providerNode.fieldNames(); |
1,088,081 | public void exitEvalEqualsExpression(EsperEPL2GrammarParser.EvalEqualsExpressionContext ctx) {<NEW_LINE>if (ctx.getChildCount() < 2) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ExprNode exprNode;<NEW_LINE>boolean isNot = ctx.ne != null || ctx.isnot != null || ctx.sqlne != null;<NEW_LINE>if (ctx.a == null) {<NEW_LINE>boolean... | > subselect = ctx.subSelectGroupExpression(); |
1,052,888 | private void limit(int inputRecordCount) {<NEW_LINE>int endRecordIndex;<NEW_LINE>if (numberOfRecords == Integer.MIN_VALUE) {<NEW_LINE>endRecordIndex = inputRecordCount;<NEW_LINE>} else {<NEW_LINE>endRecordIndex = Math.min(inputRecordCount, recordStartOffset + numberOfRecords);<NEW_LINE>numberOfRecords -= Math.max(0, en... | (svIndex, (char) i); |
1,375,764 | private void loadNode799() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.Server_Namespaces_OPCUANamespaceUri_IsNamespaceSubset, new QualifiedName(0, "IsNamespaceSubset"), new LocalizedText("en", "IsNamespaceSubset"), LocalizedText.NULL_VALUE, UInteger... | String xml = sb.toString(); |
1,032,325 | public void marshall(ComponentVersion componentVersion, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (componentVersion == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMarshaller.m... | componentVersion.getArn(), ARN_BINDING); |
911,472 | public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief buildPartial() {<NEW_LINE>emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief result = new emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>result.uid_ = uid_;<NEW_LINE>result... | .showAvatarInfoList_ = showAvatarInfoListBuilder_.build(); |
497,015 | public void hierarchyChanged(PathObjectHierarchyEvent event) {<NEW_LINE>if (hierarchy == null) {<NEW_LINE>listCounts<MASK><NEW_LINE>return;<NEW_LINE>} else if (!Platform.isFxApplicationThread()) {<NEW_LINE>Platform.runLater(() -> hierarchyChanged(event));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Collection<PathObject> newL... | .getItems().clear(); |
1,313,230 | private Trie split(TrieKeySlice commonPath) {<NEW_LINE>int commonPathLength = commonPath.length();<NEW_LINE>TrieKeySlice newChildSharedPath = sharedPath.slice(commonPathLength + 1, sharedPath.length());<NEW_LINE>Trie newChildTrie = new Trie(this.store, newChildSharedPath, this.value, this.left, this.right, this.valueLe... | this.store, newChildTrie, null); |
1,291,877 | private void cmd_zoomAcross() {<NEW_LINE>final int record_ID = m_curTab.getRecord_ID();<NEW_LINE>if (record_ID <= 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Query<NEW_LINE>MQuery query = new MQuery();<NEW_LINE>// Current row<NEW_LINE>String link = m_curTab.getKeyColumnName();<NEW_LINE>// Link for detail records<NEW_L... | m_curTab.getAdWindowId(), query); |
1,473,463 | public void testCreateSharedDurableConsumerWithMsgSelector_2Subscribers(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>JMSContext jmsContextReceiver = jmsTCFBindings.createContext();<NEW_LINE>JMSConsumer jmsConsumer1 = jmsContextReceiver.createSharedDurableConsumer(jmsTopic1, "DUR... | msgOut = jmsContextReceiver.createTextMessage("This is a test message"); |
1,111,920 | private int shiftIndentInside(final TextRange elementRange, final int shift) {<NEW_LINE>final StringBuilder buffer = new StringBuilder();<NEW_LINE>StringBuilder afterWhiteSpace = new StringBuilder();<NEW_LINE>int whiteSpaceLength = 0;<NEW_LINE>boolean insideWhiteSpace = true;<NEW_LINE>int line = 0;<NEW_LINE>for (int i ... | getCharsSequence().charAt(i); |
1,435,736 | protected Map<String, String> parse(String text) {<NEW_LINE>Map<String, String> map = new HashMap<>();<NEW_LINE>String[] lines = StringUtil.splitNewline(text);<NEW_LINE>int line = 0;<NEW_LINE>for (String lineStr : lines) {<NEW_LINE>line++;<NEW_LINE>// Skip initial header<NEW_LINE>if (lineStr.startsWith("v1\t"))<NEW_LIN... | map.put(obfClass, renamedClass); |
710,006 | protected void updateHessian(Tuple3<Double, Double, Vector> labelVector, DenseVector coefVector, DenseMatrix updateHessian) {<NEW_LINE>Vector vec = labelVector.f2;<NEW_LINE>double eta = getEta(labelVector, coefVector);<NEW_LINE>double deriv = this.unaryLossFunc.secondDerivative(eta, labelVector.f1) * labelVector.f0;<NE... | SparseVector) vec).getIndices(); |
1,685,404 | public void learnFernNoise(boolean positive, ImageRectangle r) {<NEW_LINE>float rectWidth = r.getWidth();<NEW_LINE>float rectHeight = r.getHeight();<NEW_LINE>float c_x = r.x0 + (rectWidth - 1) / 2.0f;<NEW_LINE>float c_y = r.y0 + (rectHeight - 1) / 2.0f;<NEW_LINE>for (int i = 0; i < ferns.length; i++) {<NEW_LINE>// firs... | , rectHeight, ferns[i]); |
231,261 | public void createFolder(@NotNull String title) {<NEW_LINE>logDebug("createFolder");<NEW_LINE>if (!isOnline(this)) {<NEW_LINE>showSnackbar(getString(R.string.error_server_connection_problem));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (isFinishing()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long parentHandle = -1;<NEW_LINE... | nL = megaApi.getChildren(parentNode); |
626,431 | public List<GenTaskBySqlBuilder> updateAndGetTasks(int projectId) throws SQLException {<NEW_LINE>FreeSelectSqlBuilder<List<GenTaskBySqlBuilder>> builder = new FreeSelectSqlBuilder<>(dbCategory);<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("SELECT id, project_id, db_name,table_name,class_name,me... | result = new ArrayList<>(); |
1,819,727 | public static ListRdsDBInstancesResponse unmarshall(ListRdsDBInstancesResponse listRdsDBInstancesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listRdsDBInstancesResponse.setRequestId(_ctx.stringValue("ListRdsDBInstancesResponse.RequestId"));<NEW_LINE>listRdsDBInstancesResponse.setTotalCount(_ctx.integerValue("ListRdsD... | ("ListRdsDBInstancesResponse.RdsInstances[" + i + "].VSwitchId")); |
14,941 | public static BlockPos readBlockPos(NBTBase base) {<NEW_LINE>if (base == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>switch(base.getId()) {<NEW_LINE>case Constants.NBT.TAG_INT_ARRAY:<NEW_LINE>{<NEW_LINE>int[] array = ((NBTTagIntArray) base).getIntArray();<NEW_LINE>if (array.length == 3) {<NEW_LINE>return new Bloc... | j = nbt.getInteger("j"); |
1,090,514 | public void doReportStat(SofaTracerSpan sofaTracerSpan) {<NEW_LINE>// tags<NEW_LINE>Map<String, String> tagsWithStr = sofaTracerSpan.getTagsWithStr();<NEW_LINE>StatMapKey statKey = new StatMapKey();<NEW_LINE>String appName = tagsWithStr.get(CommonSpanTags.LOCAL_APP);<NEW_LINE>// service name<NEW_LINE>String serviceName... | SofaTracerConstant.STAT_FLAG_SUCCESS : SofaTracerConstant.STAT_FLAG_FAILS); |
42,756 | public RegisterWorkerPResponse call() throws Exception {<NEW_LINE>// If an error was received earlier, the stream is no longer open<NEW_LINE>Preconditions.checkState(mErrorReceived.get() == null, "The stream has been closed due to an earlier error received: %s", mErrorReceived.get());<NEW_LINE>// Initialize the context... | create(mBlockMaster, workerId, workerRequestObserver); |
1,337,502 | public boolean eventOccurred(UISWTViewEvent event) {<NEW_LINE>switch(event.getType()) {<NEW_LINE>case UISWTViewEvent.TYPE_CREATE:<NEW_LINE>swtView = event.getView();<NEW_LINE>swtView.setTitle(MessageText<MASK><NEW_LINE>swtView.setToolBarListener(this);<NEW_LINE>break;<NEW_LINE>case UISWTViewEvent.TYPE_DESTROY:<NEW_LINE... | .getString(getData())); |
1,650,562 | private void addFileToConfigFileManager(final Set<ConfigFileGroup> selectedGroups, final File file) throws IOException {<NEW_LINE>final ConfigFileManager manager = getConfigFileManager(Templates.getProject(wizard));<NEW_LINE>try {<NEW_LINE>manager.mutex().writeAccess(new ExceptionAction<Void>() {<NEW_LINE><NEW_LINE>pub... | new ArrayList<File>(origFiles); |
1,618,005 | public Object execute(CommandContext commandContext) {<NEW_LINE>if (resultType == ResultType.LIST) {<NEW_LINE>return executeList(commandContext, getParameterMap(), 0, Integer.MAX_VALUE);<NEW_LINE>} else if (resultType == ResultType.LIST_PAGE) {<NEW_LINE>Map<String, Object> parameterMap = getParameterMap();<NEW_LINE>par... | parameterMap.put("lastRow", lastRow); |
330,755 | private void processEntitlementNotification(final EntitlementNotificationKey key, final InternalCallContext internalCallContext, final CallContext callContext) {<NEW_LINE>final Entitlement entitlement;<NEW_LINE>try {<NEW_LINE>entitlement = entitlementInternalApi.getEntitlementForId(key.getEntitlementId(), internalCallC... | EntitlementNotificationKeyAction entitlementNotificationKeyAction = key.getEntitlementNotificationKeyAction(); |
1,598,214 | private VisualSampleEntry createSampleEntry(@NonNull final ArrayList<ByteBuffer> sps, @NonNull final ArrayList<ByteBuffer> pps, @NonNull final ArrayList<ByteBuffer> vps, @Nullable final SequenceParameterSetRbsp spsStruct) {<NEW_LINE>final <MASK><NEW_LINE>visualSampleEntry.setDataReferenceIndex(1);<NEW_LINE>visualSample... | VisualSampleEntry visualSampleEntry = new VisualSampleEntry("hvc1"); |
257,005 | public InputDestinationRequest unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>InputDestinationRequest inputDestinationRequest = new InputDestinationRequest();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<... | int originalDepth = context.getCurrentDepth(); |
695,891 | public SqlNode toSql(RexProgram program, RexNode rex) {<NEW_LINE>if (rex.getKind().equals(SqlKind.LITERAL)) {<NEW_LINE>final RexLiteral literal = (RexLiteral) rex;<NEW_LINE>SqlTypeName name = literal.getTypeName();<NEW_LINE>SqlTypeFamily family = name.getFamily();<NEW_LINE>if (SqlTypeName.TIMESTAMP_WITH_LOCAL_TIME_ZONE... | literal.getValueAs(ByteString.class); |
824,892 | private void lumaCode(EncodingContext ctx, Picture pic, int mbX, int mbY, BitWriter out, int qp, EncodedMB outMB, int[] predType, int[][] _coeff, int cbpLuma) {<NEW_LINE>int cbp = 0;<NEW_LINE>for (int i8x8 = 0; i8x8 < 4; i8x8++) {<NEW_LINE>int bx = (mbX << 2) | (<MASK><NEW_LINE>int by = (mbY << 2) | (i8x8 & 2);<NEW_LIN... | (i8x8 << 1) & 2); |
25,777 | private String expand(String value, ErrorReporter reporter) {<NEW_LINE>int restart = 0;<NEW_LINE>StringBuilder result = new StringBuilder(value.length());<NEW_LINE>while (true) {<NEW_LINE>// (1) Find '$(<fname> '.<NEW_LINE>int start = value.indexOf("$(", restart);<NEW_LINE>if (start == -1) {<NEW_LINE>result.append(valu... | start + 2, nextWhitespace))); |
1,555,233 | protected void addNewHistoryCommit(Directory indexDirectory, Terminal terminal, boolean updateLocalCheckpoint) throws IOException {<NEW_LINE>final <MASK><NEW_LINE>terminal.println("Marking index with the new history uuid : " + historyUUID);<NEW_LINE>// commit the new history id<NEW_LINE>final IndexWriterConfig iwc = //... | String historyUUID = UUIDs.randomBase64UUID(); |
482,421 | public void createPreflightNodeCheckTasks(Universe universe, Collection<Cluster> clusters) {<NEW_LINE>Set<Cluster> onPremClusters = clusters.stream().filter(cluster -> cluster.userIntent.providerType == CloudType.onprem).<MASK><NEW_LINE>if (onPremClusters.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>SubTaskGroup s... | collect(Collectors.toSet()); |
649,487 | public static Map<String, RexNode> permutePredicateOnFullColumn(Mapping fullColumnMapping, Map<String, RexNode> predicates) {<NEW_LINE>final Mapping inverted = fullColumnMapping.inverse();<NEW_LINE>final List<Integer> sourceList = new ArrayList<>();<NEW_LINE>for (IntPair intPair : inverted) {<NEW_LINE>sourceList.add(in... | call = rexNode.accept(permute); |
1,191,170 | public void sendHttpRequest(final HttpRequest httpRequest, final HttpResponseListener httpResultListener) {<NEW_LINE>if (httpRequest.getUrl() == null) {<NEW_LINE>httpResultListener.failed(new GdxRuntimeException("can't process a HTTP request without URL set"));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final String method =... | request, new IOException("HTTP request failed")); |
639,478 | private List<String> list(Business business, EffectivePerson effectivePerson) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Portal.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<String> cq = cb.createQuery(String.class);<NEW_LINE>Root<Portal>... | cb.and(p, who); |
1,088,934 | private void sharpenBorder4(AutoTypeImage image) {<NEW_LINE>String name = image.getSingleBandName();<NEW_LINE>String cast = image.getTypeCastFromSum();<NEW_LINE><MASK><NEW_LINE>out.print("\tpublic static void sharpenBorder4( " + name + " input , " + name + " output , " + sumtype + " minValue , " + sumtype + " maxValue ... | String sumtype = image.getSumType(); |
519,455 | private void createCreateReflectorMethod1(String newClassPrefix, CtClass reflectorFactoryImpl) throws NotFoundException, CannotCompileException {<NEW_LINE>CtClass[] parameters = new CtClass[2];<NEW_LINE>parameters[0] = pool.get(<MASK><NEW_LINE>parameters[1] = pool.get(Reflector.class.getName());<NEW_LINE>CtMethod metho... | Class.class.getName()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.