idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,300,417 | private void registerHandlers(RaftServerProtocol protocol) {<NEW_LINE>protocol.registerOpenSessionHandler(request -> runOnContextIfReady(() -> role.onOpenSession(request), OpenSessionResponse::builder));<NEW_LINE>protocol.registerCloseSessionHandler(request -> runOnContextIfReady(() -> role.onCloseSession(request), Clo... | request), QueryResponse::builder)); |
45,791 | public void newRevision(BimServerClientInterface bimServerClientInterface, long poid, long roid, String userToken, long soid, SObjectType settings) throws ServerException, UserException {<NEW_LINE>try {<NEW_LINE>Long topicId = bimServerClientInterface.getRegistry().registerProgressOnRevisionTopic(SProgressTopicType.RUN... | ).updateProgressTopic(topicId, state); |
642,871 | private void flush() {<NEW_LINE>if (readOnly)<NEW_LINE>return;<NEW_LINE>if (// Append mode<NEW_LINE>out != null)<NEW_LINE>return;<NEW_LINE>if (// No file-backing<NEW_LINE>path == null)<NEW_LINE>return;<NEW_LINE>if (opts.verbose >= 2) {<NEW_LINE>LogInfo.begin_track("FileStringCache FLUSH (dump mode)");<NEW_LINE>LogInfo.... | "\t" + entry.getValue()); |
1,778,824 | final UpdateJourneyResult executeUpdateJourney(UpdateJourneyRequest updateJourneyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateJourneyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,041,942 | public void itemStateChanged(ItemEvent e) {<NEW_LINE>// If selected: disable buttons, set their bg values from default setting, set sample bg & fg<NEW_LINE>// If deselected: enable buttons, set their bg values from current setting, set sample bg & bg<NEW_LINE>Color newBackground = null;<NEW_LINE>Color newForeground = n... | [position].setEnabled(true); |
734,585 | private void processIntersectingRange(@Nonnull UsageInfo2UsageAdapter usageInfo2UsageAdapter, @Nonnull final CharSequence chars, int hiStart, final int hiEnd, @Nonnull final TextAttributesKey[] tokenHighlights, final boolean selectUsageWithBold, @Nonnull final List<TextChunk> result) {<NEW_LINE>final TextAttributes ori... | originalAttrs, false, null, result); |
1,247,294 | private soot.Value createLiteral(polyglot.ast.Lit lit) {<NEW_LINE>if (lit instanceof polyglot.ast.IntLit) {<NEW_LINE>polyglot.ast.IntLit intLit = (polyglot.ast.IntLit) lit;<NEW_LINE>long litValue = intLit.value();<NEW_LINE>if (intLit.kind() == polyglot.ast.IntLit.INT) {<NEW_LINE>return soot.jimple.IntConstant.v((int) l... | jimple.IntConstant.v(litValue); |
1,769,345 | final GetQueryStatisticsResult executeGetQueryStatistics(GetQueryStatisticsRequest getQueryStatisticsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getQueryStatisticsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | resolvedHostPrefix = String.format("query-"); |
1,431,185 | private String createPeopleFile(String baseUrl, String containerUrl, Map<String, VCard> importedPeople, SolidUtilities utilities) throws Exception {<NEW_LINE>Model peopleModel = ModelFactory.createDefaultModel();<NEW_LINE>Resource indexResource = peopleModel.createResource("index.ttl#this");<NEW_LINE>for (String insert... | insertedPerson = importedPeople.get(insertedId); |
1,832,469 | private void write(Object msg, boolean flush, ChannelPromise promise) {<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>if (isNotValidPromise(promise, true)) {<NEW_LINE>ReferenceCountUtil.release(msg);<NEW_LINE>// cancelled<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>} catch (RuntimeException e) {<NEW_LINE>ReferenceCountUtil.release(... | ObjectUtil.checkNotNull(msg, "msg"); |
130,037 | private void onShardResultConsumed(Result result, SearchShardIterator shardIt) {<NEW_LINE>successfulOps.incrementAndGet();<NEW_LINE>// clean a previous error on this shard group (note, this code will be serialized on the same shardIndex value level<NEW_LINE>// so its ok concurrency wise to miss potentially the shard fa... | result.getShardIndex(), null); |
1,796,600 | public void handle(PrimaryStorageInventory dstPsInv, NfsToNfsMigrateBitsMsg msg, ReturnValueCompletion<NfsToNfsMigrateBitsReply> completion) {<NEW_LINE>HostVO hostVO = dbf.findByUuid(msg.<MASK><NEW_LINE>if (hostVO == null) {<NEW_LINE>throw new OperationFailureException(operr("The chosen host[uuid:%s] to perform storage... | getHostUuid(), HostVO.class); |
168,018 | public static ReprState dict(Object key, ReprState s, @Cached LookupAndCallUnaryDynamicNode keyReprNode, @Cached LookupAndCallUnaryDynamicNode valueReprNode, @Cached CastToJavaStringNode castStr, @Cached PRaiseNode raiseNode, @Cached ConditionProfile lengthCheck, @Cached BranchProfile keyNullBranch, @Cached BranchProfi... | append(s.result, valueReprString); |
641,610 | private synchronized void updateProgressNotification() {<NEW_LINE>// refresh UI every 1 seconds to avoid too much workload on main thread<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>if (now - lastUpdated > ONTRANSFERUPDATE_REFRESH_MILLIS) {<NEW_LINE>lastUpdated = now;<NEW_LINE>} else {<NEW_LINE>return;<NEW... | 0, mIntent, PendingIntent.FLAG_IMMUTABLE); |
941,899 | public void unbind(final ShaderProgram shader, final int[] locations) {<NEW_LINE>final GL20 gl = Gdx.gl20;<NEW_LINE>final int numAttributes = attributes.size();<NEW_LINE>if (locations == null) {<NEW_LINE>for (int i = 0; i < numAttributes; i++) {<NEW_LINE>final VertexAttribute attribute = attributes.get(i);<NEW_LINE>fin... | glBindBuffer(GL20.GL_ARRAY_BUFFER, 0); |
745,913 | private void patchLafFonts(UIDefaults uiDefaults) {<NEW_LINE>// if (JBUI.isHiDPI()) {<NEW_LINE>// HashMap<Object, Font> newFonts = new HashMap<Object, Font>();<NEW_LINE>// for (Object key : uiDefaults.keySet().toArray()) {<NEW_LINE>// Object val = uiDefaults.get(key);<NEW_LINE>// if (val instanceof Font) {<NEW_LINE>// ... | uiSettings.FONT_SIZE / UIUtil.DEF_SYSTEM_FONT_SIZE); |
615,535 | void parseChessboard(int index, String[] args) {<NEW_LINE>int rows <MASK><NEW_LINE>double width = 1;<NEW_LINE>for (; index < args.length; index++) {<NEW_LINE>String arg = args[index];<NEW_LINE>if (!arg.startsWith("--")) {<NEW_LINE>throw new RuntimeException("Expected flags for chessboard calibration fiducial");<NEW_LIN... | = -1, cols = -1; |
1,088,033 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.sitewhere.grpc.service.AssetManagementGrpc.AssetManagementImplBase#<NEW_LINE>* deleteAsset(com.sitewhere.grpc.service.GDeleteAssetRequest,<NEW_LINE>* io.grpc.stub.StreamObserver)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void deleteAsset(GDeleteAssetReques... | (AssetModelConverter.asGrpcAsset(apiResult)); |
281,525 | protected String doIt() throws Exception {<NEW_LINE>String[] tables = new String[] { "AD_Window_Access", "AD_Process_Access", "AD_Form_Access", "AD_Workflow_Access", "AD_Task_Access", "AD_Document_Action_Access", X_AD_Role_Included.Table_Name };<NEW_LINE>String[] keycolumns = new String[] { "AD_Window_ID", "AD_Process_... | table.equals(X_AD_Role_Included.Table_Name); |
859,909 | public void visitEnd() {<NEW_LINE>checkState(!hasState || hasFactory, "Expected factory method for capturing lambda %s", getInternalName());<NEW_LINE>if (lambdaInfo.sourceFilename().isPresent()) {<NEW_LINE>super.visitSource(lambdaInfo.sourceFilename().get(), /* debug= */<NEW_LINE>null);<NEW_LINE>}<NEW_LINE>if (!hasStat... | Opcodes.NEW, getInternalName()); |
474,719 | public void createContents(Composite page) {<NEW_LINE>tagsSearchBox = new Text(page, SWT.SINGLE | SWT.BORDER | <MASK><NEW_LINE>tagsSearchBox.setMessage("Type tags, projects, or working set names to match (incl. * and ? wildcards)");<NEW_LINE>tagsSearchBox.setLayoutData(GridDataFactory.fillDefaults().grab(true, false).c... | SWT.SEARCH | SWT.ICON_CANCEL); |
378,704 | public GetDedicatedIpsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetDedicatedIpsResult getDedicatedIpsResult = new GetDedicatedIpsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t... | class).unmarshall(context)); |
869,982 | protected void doExecute(Editor editor, @Nullable Caret caret, DataContext dataContext) {<NEW_LINE>final TemplateState templateState = TemplateManagerImpl.getTemplateState(editor);<NEW_LINE>if (templateState != null && !templateState.isFinished()) {<NEW_LINE>final TextRange range = templateState.getCurrentVariableRange... | .getSelectionModel().getLeadSelectionOffset(); |
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... | sendSupportBean(env, "S1", 3); |
1,314,890 | public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException {<NEW_LINE>final List<UpdateClasspathRequest> requests;<NEW_LINE>synchronized (this.queue) {<NEW_LINE>requests = new ArrayList<>(this.queue);<NEW_LINE>this.queue.clear();<NEW_LINE>}<NEW_LINE>Map<IJavaProject, UpdateClasspathRequest> mergedRequ... | addAll(request.getInclude()); |
1,108,700 | private void cleanup(String logicalSwitchUuid, LogicalSwitchPort lSwitchPort, NiciraNvpApi niciraNvpApi) {<NEW_LINE>s_logger.warn("Deleting previously created Logical Switch Port " + lSwitchPort.getUuid() + " (" + lSwitchPort.<MASK><NEW_LINE>try {<NEW_LINE>niciraNvpApi.deleteLogicalSwitchPort(logicalSwitchUuid, lSwitch... | getDisplayName() + ") from Logical Switch " + logicalSwitchUuid); |
46,451 | public void announcementGet(String columns, final Response.Listener<List<Announcement>> responseListener, final Response.ErrorListener errorListener) {<NEW_LINE>Object postBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String path = "/announcement".replaceAll("\\{format\\}", "json");<NEW_LINE>// query ... | HashMap<String, String>(); |
932,986 | public SvmActiveDirectoryConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SvmActiveDirectoryConfiguration svmActiveDirectoryConfiguration = new SvmActiveDirectoryConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = origi... | String currentParentElement = context.getCurrentParentElement(); |
1,178,304 | public void run(ActionRequest request, ActionResponse response) {<NEW_LINE>ImportConfiguration importConfiguration = request.getContext().asType(ImportConfiguration.class);<NEW_LINE>try {<NEW_LINE>ImportHistory importHistory = Beans.get(ImportService.class).run(importConfiguration);<NEW_LINE>response.setValue("statusSe... | getTodayDateTime().toLocalDateTime()); |
515,151 | private void addSslToJMXConnector(Config config, ActionReport report) {<NEW_LINE>AdminService adminService = config.getAdminService();<NEW_LINE>// ensure we have the specified listener<NEW_LINE>JmxConnector jmxConnector = null;<NEW_LINE>for (JmxConnector jmxConn : adminService.getJmxConnector()) {<NEW_LINE>if (jmxConn.... | , "JMX Connector named {0} to which this ssl element is " + "being added does not exist.", listenerId)); |
37,981 | protected void layout(GuiPanel container, int width, int height) {<NEW_LINE>size(progressBar, width, 20);<NEW_LINE>pos(title, width / 2 - width(title) / 2, 0);<NEW_LINE>pos(imagePanel, 0, y(title) + height(title) + 5);<NEW_LINE>pos(buttonPanel, width / 2 - width(buttonPanel) / 2, height - height(buttonPanel));<NEW_LINE... | - 10 - height(previewCheckbox)); |
1,774,557 | public void run() {<NEW_LINE>Element <MASK><NEW_LINE>Document document = data.getOwnerDocument();<NEW_LINE>// NOI18N<NEW_LINE>NodeList nameList = data.getElementsByTagNameNS(ClientSideProjectType.PROJECT_CONFIGURATION_NAMESPACE, "name");<NEW_LINE>Element nameElement;<NEW_LINE>if (nameList.getLength() == 1) {<NEW_LINE>n... | data = projectHelper.getPrimaryConfigurationData(true); |
26,134 | public void forModelUpdate(Table table, Map<String, Object> attrs, Set<String> modifyFlag, StringBuilder sql, List<Object> paras) {<NEW_LINE>sql.append("update ").append(table.getName<MASK><NEW_LINE>String[] pKeys = table.getPrimaryKey();<NEW_LINE>for (Map.Entry<String, Object> e : attrs.entrySet()) {<NEW_LINE>String c... | ()).append(" set "); |
536,320 | public static UsersPrivilegesMetadata swapPrivileges(UsersPrivilegesMetadata usersPrivileges, RelationName source, RelationName target) {<NEW_LINE>HashMap<String, Set<Privilege>> <MASK><NEW_LINE>for (Map.Entry<String, Set<Privilege>> userPrivileges : usersPrivileges.usersPrivileges.entrySet()) {<NEW_LINE>String user = ... | privilegesByUser = new HashMap<>(); |
992,041 | public ResponseEntity<Void> updateUserWithHttpInfo(String username, User body) throws RestClientException {<NEW_LINE>Object postBody = body;<NEW_LINE>// verify the required parameter 'username' is set<NEW_LINE>if (username == null) {<NEW_LINE>throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the requi... | apiClient.expandPath("/user/{username}", uriVariables); |
1,742,340 | public static ProgressDialogDescriptor createProgressDialog(String title, ProgressHandle handle, ActionListener cancelationListener) {<NEW_LINE>assert SwingUtilities.isEventDispatchThread();<NEW_LINE>Component progress = ProgressHandleFactory.createProgressComponent(handle);<NEW_LINE>JLabel label = ProgressHandleFactor... | = java.awt.GridBagConstraints.WEST; |
412,909 | public void initializeChildrenFromFields(List<Field> children) {<NEW_LINE>checkArgument(children.size() == 1, "Maps have one List child. Found: %s", children.isEmpty() ? "none" : children);<NEW_LINE>Field structField = children.get(0);<NEW_LINE>MinorType minorType = Types.getMinorTypeForArrowType(structField.getType())... | ) == 2, "Map data should be a struct with 2 children. Found: %s", children); |
449,446 | // <http://127.0.0.1:8080/lraresource/status>; rel="status"; title="status URI"; type="text/plain"<NEW_LINE>static Link valueOf(String linkVal) {<NEW_LINE>String[] <MASK><NEW_LINE>Link link = new Link();<NEW_LINE>for (String token : tokens) {<NEW_LINE>Matcher uriMatcher = URI_PROP_PATTERN.matcher(token);<NEW_LINE>if (u... | tokens = linkVal.split(";"); |
125,260 | protected void doIterationPDS(SparkDl4jMultiLayer network, SparkComputationGraph graph, JavaRDD<PortableDataStream> split, int splitNum, int numSplits) {<NEW_LINE>log.info("Starting training of split {} of {}. workerMiniBatchSize={}, averagingFreq={}, Configured for {} workers", splitNum, numSplits, batchSizePerWorker,... | .partitions().size(); |
165,114 | public void run(RegressionEnvironment env) {<NEW_LINE>AtomicInteger milestone = new AtomicInteger();<NEW_LINE>String epl = "@name('s0') select " + "first(sa.doublePrimitive + sa.intPrimitive), " + "first(sa.intPrimitive), " + "window(sa.*), " + "last(*) from SupportBean#length(2) as sa";<NEW_LINE>env.compileDeploy(epl)... | (epl).addListener("s0"); |
815,468 | protected void addInfluencer(Class<Influencer> type, ParticleController controller) {<NEW_LINE>if (controller.findInfluencer(type) != null)<NEW_LINE>return;<NEW_LINE>try {<NEW_LINE>controller.end();<NEW_LINE>Influencer newInfluencer = type.newInstance();<NEW_LINE>boolean replaced = false;<NEW_LINE>if (ColorInfluencer.c... | .class, (ParticleControllerInfluencer) newInfluencer); |
737,640 | public static void processOilGenExcludeIMC(IMCEvent event, IMCMessage m) {<NEW_LINE>try {<NEW_LINE>String biomeID = m.getStringValue().trim();<NEW_LINE>int id = Integer.valueOf(biomeID);<NEW_LINE>if (id >= BiomeGenBase.getBiomeGenArray().length) {<NEW_LINE>throw new IllegalArgumentException("Biome ID must be less than ... | BiomeGenBase.getBiomeGenArray().length); |
919,197 | public static VerifyFaceMaskResponse unmarshall(VerifyFaceMaskResponse verifyFaceMaskResponse, UnmarshallerContext _ctx) {<NEW_LINE>verifyFaceMaskResponse.setRequestId(_ctx.stringValue("VerifyFaceMaskResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>data.setMask(_ctx.integerValue("VerifyFaceMaskResponse.... | (_ctx.integerValue("VerifyFaceMaskResponse.Data.MaskRef")); |
1,573,489 | Mono<Response<PathInfo>> flushWithResponse(long position, boolean retainUncommittedData, boolean close, PathHttpHeaders httpHeaders, DataLakeRequestConditions requestConditions, Context context) {<NEW_LINE>httpHeaders = httpHeaders == <MASK><NEW_LINE>requestConditions = requestConditions == null ? new DataLakeRequestCo... | null ? new PathHttpHeaders() : httpHeaders; |
1,473,444 | private static ITranslatableString extractDescription(final Field field) {<NEW_LINE>final ViewColumn viewColumnAnn = field.getAnnotation(ViewColumn.class);<NEW_LINE>final String captionKey = !Check.isEmpty(viewColumnAnn.captionKey()) ? viewColumnAnn.captionKey() : extractFieldName(field);<NEW_LINE>final TranslationSour... | msgBL.translatable(captionKey + "/Description"); |
707,790 | private IQueryFilter<I_M_Tour_Instance> createTourInstanceMatcher(final ITourInstanceQueryParams params) {<NEW_LINE>Check.assumeNotNull(params, "params not null");<NEW_LINE>final IQueryBL queryBL = Services.get(IQueryBL.class);<NEW_LINE>final ICompositeQueryFilter<I_M_Tour_Instance> filters = queryBL.createCompositeQue... | Date deliveryDate = params.getDeliveryDate(); |
1,054,111 | public void onBindGroupViewHolder(@NonNull MyGroupViewHolder holder, int groupPosition, int viewType) {<NEW_LINE>// child item<NEW_LINE>final AbstractExpandableDataProvider.BaseData item = mProvider.getGroupItem(groupPosition);<NEW_LINE>// set text<NEW_LINE>holder.mTextView.setText(item.getText());<NEW_LINE>// mark as ... | expandState.isExpanded(), animateIndicator); |
1,602,254 | private void addDisplay(int parentM_Product_ID, int M_Product_ID, String bomType, String name, BigDecimal lineQty, int PP_Product_BOM_ID, String M_Feature, int PP_Product_BOMLine_ID) {<NEW_LINE>log.fine("M_Product_ID=" + M_Product_ID + ",Type=" + bomType + ",Name=" + name + ",Qty=" + lineQty);<NEW_LINE>//<NEW_LINE>bool... | JCheckBox cb = new JCheckBox(title); |
112,983 | public static void main(String[] args) {<NEW_LINE>Exercise32_HamiltonianPathInDAGs hamiltonianPathInDAGs = new Exercise32_HamiltonianPathInDAGs();<NEW_LINE>Digraph digraph1 = new Digraph(5);<NEW_LINE>digraph1.addEdge(0, 1);<NEW_LINE>digraph1.addEdge(0, 2);<NEW_LINE>digraph1.addEdge(1, 2);<NEW_LINE>digraph1.addEdge(2, 3... | digraph3.addEdge(4, 5); |
1,403,293 | public double calculateAverageWeightedDegree(Graph graph, boolean isDirected, boolean updateAttributes) {<NEW_LINE>double averageWeightedDegree = 0;<NEW_LINE>DirectedGraph directedGraph = null;<NEW_LINE>if (isDirected) {<NEW_LINE>directedGraph = (DirectedGraph) graph;<NEW_LINE>}<NEW_LINE>Progress.start(progress, graph.... | 1.0) * graph.getNodeCount(); |
1,625,131 | public void deleteByIdWithResponse(String id, Context context) {<NEW_LINE>String sharedPrivateLinkResourceName = <MASK><NEW_LINE>if (sharedPrivateLinkResourceName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'sha... | Utils.getValueFromIdByName(id, "sharedPrivateLinkResources"); |
982,672 | final DescribeJobLogItemsResult executeDescribeJobLogItems(DescribeJobLogItemsRequest describeJobLogItemsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeJobLogItemsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | (super.beforeMarshalling(describeJobLogItemsRequest)); |
473,046 | private boolean handleTopicAssignmentOnline(String topic, String srcCluster, String dstCluster) {<NEW_LINE>HelixMirrorMakerManager helixManager = _currentControllerInstance.getHelixResourceManager();<NEW_LINE>if (helixManager.isTopicExisted(topic)) {<NEW_LINE>LOGGER.warn("Topic {} already exists from cluster {} to {}",... | topicPartitionInfo = topicObserver.getTopicPartitionWithRefresh(topic); |
227,350 | private Map<String, String> parseEnvironment(final String[] entries) {<NEW_LINE>final Map<String, String> map = new HashMap<>();<NEW_LINE>if (entries.length > 1) {<NEW_LINE>// Skip the last entry it contains the cron expression no variables.<NEW_LINE>for (int i = 0; i < entries.length - 1; i++) {<NEW_LINE>final String ... | n = entry.indexOf('='); |
1,643,289 | public void receiveEmptyMessage(final EmptyMessage message, final EndpointReceiver receiver) {<NEW_LINE>// an empty ACK or RST always is received as a reply to a message<NEW_LINE>// exchange originating locally, i.e. the message will echo an MID<NEW_LINE>// that has been created here<NEW_LINE>EndpointContext context = ... | message.getType(), idByMID); |
714,427 | private void loadNode797() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.Server_Namespaces_OPCUANamespaceUri_NamespaceVersion, new QualifiedName(0, "NamespaceVersion"), new LocalizedText("en", "NamespaceVersion"), LocalizedText.NULL_VALUE, UInteger.va... | this.nodeManager.addNode(node); |
1,379,378 | public // * scale(i) * (i+1)! (M+1-(i+1)-1)!/(M+1)! / (i! (M-i-1)!/ M!), whence += scale(i) * (i+1) / (M+1).<NEW_LINE>int extend(double fractionZero, double fractionOne, int featureIndex, int nextIndex) {<NEW_LINE>setValues(nextIndex, fractionOne, fractionZero, featureIndex);<NEW_LINE>setScale(nextIndex, nextIndex == 0... | + getScale(i) * countDown); |
798,892 | static int showBugReportDialog(final String title, final String question, final int messageType, final Object[] options, final Object firstChoice, final String reportName, final String log) {<NEW_LINE>final Box messagePane = Box.createVerticalBox();<NEW_LINE>final JLabel messageLabel = new JLabel(question);<NEW_LINE>me... | historyPane.setAlignmentX(JLabel.LEFT_ALIGNMENT); |
440,678 | private int generateObjectMethodsBootStrapMethods(List<TypeBinding> recordList, int localContentsOffset, final int contentsEntries) {<NEW_LINE>ReferenceBinding javaLangRuntimeObjectMethods = this.referenceBinding.scope.getJavaLangRuntimeObjectMethods();<NEW_LINE>int numberOfBootstraps = recordList.size();<NEW_LINE>int ... | byte) (recordIndex >> 8); |
714,512 | public DeletePortfolioShareResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeletePortfolioShareResult deletePortfolioShareResult = new DeletePortfolioShareResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentEleme... | JsonToken token = context.getCurrentToken(); |
382,512 | private String workWithFeature(HttpServletResponse res, String operation, String uid) throws IOException {<NEW_LINE>String message = null;<NEW_LINE>if (OP_DISABLE.equalsIgnoreCase(operation)) {<NEW_LINE>getFf4j().getFeatureStore().disable(uid);<NEW_LINE>res.setContentType(CONTENT_TYPE_HTML);<NEW_LINE>res.getWriter().pr... | getFeatureStore().enable(uid); |
1,516,441 | private Map<String, Object> updateDagSchedule(User loginUser, long projectCode, long processDefinitionCode, String scheduleJson) {<NEW_LINE>Map<String, Object> result = new HashMap<>();<NEW_LINE>Schedule schedule = JSONUtils.parseObject(scheduleJson, Schedule.class);<NEW_LINE>if (schedule == null) {<NEW_LINE>putMsg(res... | setCrontab(schedule.getCrontab()); |
1,332,119 | private SeekMap buildSeekMap(@Nullable LongArray cueTimesUs, @Nullable LongArray cueClusterPositions) {<NEW_LINE>if (segmentContentPosition == C.POSITION_UNSET || durationUs == C.TIME_UNSET || cueTimesUs == null || cueTimesUs.size() == 0 || cueClusterPositions == null || cueClusterPositions.size() != cueTimesUs.size())... | lastDurationUs = durationsUs[cuePointsSize - 1]; |
1,203,904 | public static void addNodes(@Nonnull List<? extends PackagingElement<?>> elements, @Nonnull CompositePackagingElementNode parentNode, @Nonnull CompositePackagingElement parentElement, @Nonnull ArtifactEditorContext context, @Nonnull ComplexElementSubstitutionParameters substitutionParameters, @Nonnull Collection<Packag... | ), nodes, artifactType, processed); |
1,823,755 | public com.squareup.okhttp.Call apisApiIdGetCall(String apiId, String tenantDomain, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map vari... | = new ArrayList<Pair>(); |
185,628 | private void loadNode8() {<NEW_LINE>UaVariableTypeNode node = new UaVariableTypeNode(this.context, Identifiers.ServerStatusType, new QualifiedName(0, "ServerStatusType"), new LocalizedText("en", "ServerStatusType"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Variant.NULL_VALUE), I... | .expanded(), true)); |
748,380 | private Unmarshaller createUnmarshaller() {<NEW_LINE>try {<NEW_LINE>Unmarshaller um = databinding.getJAXBUnmarshaller();<NEW_LINE>if (setEventHandler) {<NEW_LINE>um.setEventHandler(new WSUIDValidationHandler(veventHandler));<NEW_LINE>}<NEW_LINE>// If the unmarshaller has already been filled with all the initializing pr... | .getMessage()), ex); |
578,797 | public void onEnable() {<NEW_LINE>PlanSpongeComponent component = DaggerPlanSpongeComponent.builder().plan(this).abstractionLayer(abstractionLayer).game(Sponge.getGame()).build();<NEW_LINE>try {<NEW_LINE>system = component.system();<NEW_LINE>serverShutdownSave = component.serverShutdownSave();<NEW_LINE>locale = system.... | .getPluginInformation().getVersion(); |
956,702 | public static Point2D showText(PdfContentByte cb, BaseFont baseFont, float fontSize, String text) {<NEW_LINE>GlyphVector glyphVector = computeGlyphVector(baseFont, fontSize, text);<NEW_LINE>if (!hasAdjustments(glyphVector)) {<NEW_LINE>cb.showText(glyphVector);<NEW_LINE>Point2D p = glyphVector.getGlyphPosition(glyphVect... | glyphVector, i, i + 1); |
1,399,575 | public EurekaHttpResponse<InstanceInfo> sendHeartBeat(String appName, String id, InstanceInfo info, InstanceStatus overriddenStatus) {<NEW_LINE>String urlPath = "apps/" + appName + '/' + id;<NEW_LINE>Response response = null;<NEW_LINE>try {<NEW_LINE>WebTarget webResource = jerseyClient.target(serviceUrl).path(urlPath).... | ("{}", MediaType.APPLICATION_JSON_TYPE)); |
990,564 | private SolutionOrNogood<VAR, VAL> backtrack(CSP<VAR, VAL> csp, Assignment<VAR, VAL> assignment) {<NEW_LINE>SolutionOrNogood<VAR, VAL> result = new SolutionOrNogood<>();<NEW_LINE>if (assignment.isComplete(csp.getVariables()) || Tasks.currIsCancelled()) {<NEW_LINE>result.solution = assignment;<NEW_LINE>} else {<NEW_LINE... | nogood.addAll(res.nogood); |
817,718 | // ----- protected methods -----<NEW_LINE>static java.io.File defaultGetFileOnDisk(final File fileBase, final boolean create) {<NEW_LINE>final String uuid = fileBase.getUuid();<NEW_LINE>final String filePath = Settings.FilesPath.getValue();<NEW_LINE>final String uuidPath = AbstractFile.getDirectoryPath(uuid);<NEW_LINE>... | .getParentFile().mkdirs(); |
669,714 | public boolean onInterceptTouchEvent(MotionEvent ev) {<NEW_LINE>if (!mEnabled)<NEW_LINE>return false;<NEW_LINE>final int action = ev.getAction() & MotionEventCompat.ACTION_MASK;<NEW_LINE>if (action == MotionEvent.ACTION_DOWN && DEBUG)<NEW_LINE>Log.v(TAG, "Received ACTION_DOWN");<NEW_LINE>if (action == MotionEvent.ACTIO... | Math.abs(y - mLastMotionY); |
938,519 | public static QueryTicketResponse unmarshall(QueryTicketResponse queryTicketResponse, UnmarshallerContext context) {<NEW_LINE>queryTicketResponse.setRequestId<MASK><NEW_LINE>queryTicketResponse.setPageNum(context.integerValue("QueryTicketResponse.PageNum"));<NEW_LINE>queryTicketResponse.setPageSize(context.integerValue... | (context.stringValue("QueryTicketResponse.RequestId")); |
1,629,100 | public void init(final SortedKeyValueIterator<Key, Value> source, final Map<String, String> options, final IteratorEnvironment env) throws IOException {<NEW_LINE>super.init(source, options, env);<NEW_LINE>try {<NEW_LINE>schema = Schema.fromJson(options.get(AccumuloStoreConstants.SCHEMA).getBytes(CommonConstants.UTF_8))... | ).split(encodedColumns))); |
1,037,493 | private <R> R sessionAware(UserModel user, String scopeParam, BiFunction<UserSessionModel, ClientSessionContext, R> function) {<NEW_LINE>AuthenticationSessionModel authSession = null;<NEW_LINE>AuthenticationSessionManager authSessionManager = new AuthenticationSessionManager(session);<NEW_LINE>try {<NEW_LINE>RootAuthen... | function.apply(userSession, clientSessionCtx); |
1,762,397 | protected void showValueOnSummary(String prefKey) {<NEW_LINE>Preference pref = findPreference(prefKey);<NEW_LINE>if (sharedPrefs.contains(prefKey) && pref instanceof EditTextPreference && !TextUtils.isEmpty(sharedPrefs.getString(prefKey, "")) && !isPasswordPref((EditTextPreference) pref)) {<NEW_LINE>// Non-password edi... | listPreference.getValue())]); |
391,537 | public List<ProjectEntity> queryPageList(String userName, String column, String order, int pageNo, int pageSize) throws Exception {<NEW_LINE>LOG.info("queryPageList owner:{}, column:{}, order:{}, pageNo:{}, pageSize:{}", userName, column, order, pageNo, pageSize);<NEW_LINE>List<ProjectEntity> list = null;<NEW_LINE>try ... | sqlSession.getMapper(ProjectFilesMapper.class); |
70,900 | private static void addMember(PythonLanguage language, Object clsPtr, Object tpDictPtr, Object namePtr, int memberType, int offset, int canSet, Object docPtr, AsPythonObjectNode asPythonObjectNode, CastToJavaStringNode castToJavaStringNode, FromCharPointerNode fromCharPointerNode, InteropLibrary docPtrLib, PythonObject... | clazz, memberName, memberType, offset); |
180,113 | public <A> void createUnidirectional(DeployBeanDescriptor<?> targetDesc, Class<A> targetType, BeanTable beanTable, DeployTableJoin oneToManyJoin) {<NEW_LINE>// create the 'shadow' unidirectional property<NEW_LINE>// which is put on the target descriptor<NEW_LINE>DeployBeanPropertyAssocOne<A> unidirectional = new Deploy... | oneToManyJoin.columns(), true); |
1,062,022 | private void initOrUpdateSink(InlongStreamInfo streamInfo) {<NEW_LINE>List<StreamSink> streamSinks = <MASK><NEW_LINE>// delete or update the sink info<NEW_LINE>List<String> updateSinkNames = Lists.newArrayList();<NEW_LINE>for (StreamSink sink : streamSinks) {<NEW_LINE>final String sinkName = sink.getSinkName();<NEW_LIN... | sinkClient.listSinks(inlongGroupId, inlongStreamId); |
1,215,788 | public void write(SerializedFile serialized) throws IOException {<NEW_LINE>this.serialized = serialized;<NEW_LINE>// header is always big endian<NEW_LINE>out.order(ByteOrder.BIG_ENDIAN);<NEW_LINE>writeHeader(out);<NEW_LINE>SerializedFileHeader header = serialized.header();<NEW_LINE>// newer formats use little endian fo... | out.order(ByteOrder.LITTLE_ENDIAN); |
926,024 | final CreateExperienceResult executeCreateExperience(CreateExperienceRequest createExperienceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createExperienceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,673,001 | private Map<String, LineageSpec> buildLineageSpecs(EntityRegistry entityRegistry) {<NEW_LINE>// 1. Flatten relationship annotations into a list of lineage edges (source, dest, type, isUpstream)<NEW_LINE>Collection<LineageEdge> lineageEdges = // If there are multiple edges with the same source, dest, edge type, get one ... | .type, RelationshipDirection.INCOMING)); |
103,489 | void addSpawnResult(SpawnMetrics metrics, @Nullable String runnerName, String runnerSubtype, boolean wasRemote) {<NEW_LINE>// Mark this component as having remote components if _any_ spawn result contributing<NEW_LINE>// to it contains meaningful remote metrics. Subsequent non-remote spawns in an action<NEW_LINE>// mus... | .longestRunningTotalDuration = metrics.totalTime(); |
598,277 | private String takeHeapdumpHit() {<NEW_LINE>TargetAppRunner runner = Profiler.getDefault().getTargetAppRunner();<NEW_LINE>if (runner.getProfilingSessionStatus().remoteProfiling) {<NEW_LINE>return Bundle.TimedTakeSnapshotProfilingPoint_NoDataRemoteMsg();<NEW_LINE>}<NEW_LINE>if (!runner.hasSupportedJDKForHeapDump()) {<NE... | File file = new File(dumpFileName); |
1,073,414 | public static List<FilePatch> buildPatch(final Project project, final Collection<Change> changes, final String basePath, final boolean reversePatch, final boolean includeBaseText) throws VcsException {<NEW_LINE>final Collection<BeforeAfter<AirContentRevision>> revisions;<NEW_LINE>if (project != null) {<NEW_LINE>revisio... | ArrayList<Change>(changes)); |
1,464,877 | public MergePullRequestBySquashResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>MergePullRequestBySquashResult mergePullRequestBySquashResult = new MergePullRequestBySquashResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe... | int originalDepth = context.getCurrentDepth(); |
1,066,945 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>MageObject sourceObject = game.getObject(source);<NEW_LINE>if (controller == null || sourceObject == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (controller.getLibrary().hasCards()... | controller.getLogName() + " puts the revealed card back to the top of the library."); |
920,566 | public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {<NEW_LINE>if (FlipperUtils.shouldEnableFlipper(context)) {<NEW_LINE>final FlipperClient client = AndroidFlipperClient.getInstance(context);<NEW_LINE>client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.wi... | .addPlugin(new FrescoFlipperPlugin()); |
843,618 | public boolean updateDatabase() {<NEW_LINE>try {<NEW_LINE>if (!Files.exists(databasesDirectory)) {<NEW_LINE>Files.createDirectories(databasesDirectory);<NEW_LINE>}<NEW_LINE>} catch (IOException ex) {<NEW_LINE>LOGGER.error(databasesDirectory.toString() + " does not exist and cannot be created!");<NEW_LINE>return false;<... | ).getSimpleName() + "] Skipping download/update: database URL is null"); |
1,293,053 | protected int open(int maxRows) {<NEW_LINE>// log.config( "MTable Loader.open");<NEW_LINE>// Get Number of Rows<NEW_LINE>int rows = 0;<NEW_LINE>PreparedStatement pstmt = null;<NEW_LINE>ResultSet rs = null;<NEW_LINE>try {<NEW_LINE>pstmt = DB.prepareStatement(m_SQL_Count, null);<NEW_LINE>setParameter(pstmt, true);<NEW_LI... | (" - MaxRows=").append(maxRows); |
1,075,220 | private static Table rowPercents(Table xTabCounts) {<NEW_LINE>Table pctTable = Table.create("Crosstab Row Proportions: ");<NEW_LINE>StringColumn labels = StringColumn.create(LABEL_COLUMN_NAME);<NEW_LINE>pctTable.addColumns(labels);<NEW_LINE>for (int i = 0; i < xTabCounts.rowCount(); i++) {<NEW_LINE>labels.append(xTabCo... | xTabCounts.columnCount() - 1]; |
1,695,111 | public void handle(String method, String path, HashMap<String, String> headers, Map<String, String> queries, InputStream input, EmbedHttpServer.ResponseOutputStream response) throws Exception {<NEW_LINE>Log.<MASK><NEW_LINE>String dst = FreelineCore.getBundleFilePathByPackageId("base-res");<NEW_LINE>File dstFile = new F... | i(TAG, "receive full res pack: " + path); |
1,144,846 | private boolean addExpected(StringBuilder sb, int position, boolean expected) {<NEW_LINE>MyList<Variant> list = expected ? variants : unexpected;<NEW_LINE>String[] strings = new String[list.size()];<NEW_LINE>long[] hashes = new long[strings.length];<NEW_LINE>Arrays.fill(strings, "");<NEW_LINE>int count = 0;<NEW_LINE>lo... | ? s : '\'' + s + '\''; |
1,381,200 | public static void installApplication(final String url) {<NEW_LINE>Thread bgThread = new Thread(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>try {<NEW_LINE>final RhodesService r = RhodesService.getInstance();<NEW_LINE>final File <MASK><NEW_LINE>if (tmpFile != null) {<NEW_LINE>PerformOnUiThread.exec(... | tmpFile = r.downloadPackage(url); |
952,459 | public void init(ServletConfig config) throws ServletException {<NEW_LINE>super.init(config);<NEW_LINE>// Verify that we were not accessed using the invoker servlet<NEW_LINE>String servletName = getServletConfig().getServletName();<NEW_LINE>if (servletName == null)<NEW_LINE>servletName = "";<NEW_LINE>if (servletName.st... | getServletConfig().getInitParameter("executable"); |
326,550 | public void killAllProcesses(long blockTimeMS) {<NEW_LINE>// remove already dead processes from the GUI<NEW_LINE>SwingUtilities.invokeLater(() -> {<NEW_LINE>DefaultListModel<ActiveProcess> model = (DefaultListModel<ActiveProcess>) processList.getModel();<NEW_LINE>for (int i = model.size() - 1; i >= 0; i--) {<NEW_LINE>r... | = System.currentTimeMillis() + blockTimeMS; |
829,566 | protected void exec() {<NEW_LINE>TMPDIR = super.tmpdir;<NEW_LINE>DIR = super.location;<NEW_LINE>datafile = super.filenames.get(0);<NEW_LINE>FileOps.ensureDir(TMPDIR);<NEW_LINE>FileOps.clearAll(TMPDIR);<NEW_LINE>if (!TMPDIR.equals(DIR)) {<NEW_LINE>FileOps.ensureDir(DIR);<NEW_LINE>FileOps.clearAll(DIR);<NEW_LINE>}<NEW_LI... | System.out.println("STEP 3 - build indexes"); |
272,091 | public static GetQosAttributeResponse unmarshall(GetQosAttributeResponse getQosAttributeResponse, UnmarshallerContext _ctx) {<NEW_LINE>getQosAttributeResponse.setRequestId(_ctx.stringValue("GetQosAttributeResponse.RequestId"));<NEW_LINE>getQosAttributeResponse.setErrorConfigSmartAGCount(_ctx.integerValue("GetQosAttribu... | ("GetQosAttributeResponse.QosPolicies[" + i + "].IpProtocol")); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.