idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,169,351 | boolean execute(Object test, InteropLibrary interop, HostContext context) {<NEW_LINE>for (int i = 0; i < otherMappingNodes.length; i++) {<NEW_LINE>HostTargetMapping mapping = otherMappings[i];<NEW_LINE>if (mapping.hostPriority > priority) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>Object result = otherMappingNodes[i].execut... | mapping, context, interop, true); |
1,703,469 | private void read00(RevisionDataInput source, CreateReaderGroupEventBuilder eb) throws IOException {<NEW_LINE>eb.requestId(source.readLong());<NEW_LINE>eb.scope(source.readUTF());<NEW_LINE>eb.rgName(source.readUTF());<NEW_LINE>eb.createTimeStamp(source.readLong());<NEW_LINE>eb.groupRefreshTimeMillis(source.readLong());... | readerGroupId(source.readUUID()); |
1,026,808 | private void removeUnnecessaryWhitespaceAroundDiagram() {<NEW_LINE>Rectangle diaWithoutWhite = getContentBounds(0, getGridElements());<NEW_LINE>Dimension viewSize = getViewableDiagrampanelSize();<NEW_LINE>int horSbPos = _scr.getHorizontalScrollBar().getValue();<NEW_LINE>int verSbPos = _scr<MASK><NEW_LINE>horSbPos = han... | .getVerticalScrollBar().getValue(); |
461,359 | private boolean refresh(final Set<BaseFileObj> all2Refresh, RefreshSlow slow, final boolean expected, File[] files) {<NEW_LINE>int add = 0;<NEW_LINE>Iterator<BaseFileObj<MASK><NEW_LINE>while (it.hasNext()) {<NEW_LINE>BaseFileObj fo = null;<NEW_LINE>if (slow != null) {<NEW_LINE>BaseFileObj pref = slow.preferrable();<NEW... | > it = all2Refresh.iterator(); |
1,727,182 | private JoinNode makeBNFJoin(JoinRelationDag root, Comparator<JoinRelationDag> joinCmp) {<NEW_LINE>List<JoinRelationDag> <MASK><NEW_LINE>for (JoinRelationDag tree : root.rightNodes) {<NEW_LINE>if (--tree.degree == 0) {<NEW_LINE>zeroDegreeList.add(tree);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>final JoinNodeBuilder joinNodeBuild... | zeroDegreeList = new ArrayList<>(); |
676,123 | public void initializeGraphDB(AuditLog auditLog) throws OpenLineageException {<NEW_LINE>this.auditLog = auditLog;<NEW_LINE>try {<NEW_LINE>this.graphHelper = new GraphHelper();<NEW_LINE>this.graphHelper.openGraph(connectionProperties.getConnectorType().getConnectorProviderClassName(), connectionProperties.getConfigurati... | ), error.getReportedUserAction()); |
689,483 | final UpdateEnvironmentResult executeUpdateEnvironment(UpdateEnvironmentRequest updateEnvironmentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateEnvironmentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
495,152 | protected boolean createKeys(List<BlackboardArtifactTag> keys) {<NEW_LINE>try {<NEW_LINE>// Use the blackboard artifact tags bearing the specified tag name as the keys.<NEW_LINE>List<BlackboardArtifactTag> artifactTags = (filteringDSObjId > 0) ? Case.getCurrentCaseThrows().getServices().getTagsManager().getBlackboardAr... | userName = System.getProperty(USER_NAME_PROPERTY); |
959,477 | private void readMap(DataReader reader) throws IOException {<NEW_LINE>logger.fine("Map section; at offset " + reader.getByteOffset());<NEW_LINE>reader.readOpeningTag(TAG_MAP);<NEW_LINE>dtaMap = new DTADataMap();<NEW_LINE>long dta_offset_stata_data = reader.readULong();<NEW_LINE>logger.fine("dta_offset_stata_data: " + d... | long dta_offset_variable_labels = reader.readULong(); |
110,222 | public static void putValue(final SharedPreferences.Editor editor, final SettingsType type, final String key, final String value) throws XmlPullParserException, NumberFormatException {<NEW_LINE>switch(type) {<NEW_LINE>case TYPE_STRING:<NEW_LINE>editor.putString(key, value);<NEW_LINE>break;<NEW_LINE>case TYPE_LONG:<NEW_... | , Float.parseFloat(value)); |
1,193,062 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String vpnSiteName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<... | error(new IllegalArgumentException("Parameter vpnSiteName is required and cannot be null.")); |
1,821,985 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>setTitle(R.string.activity_main_title);<NEW_LINE>if (savedInstanceState == null) {<NEW_LINE>mBluetoothAdapter = ((BluetoothManager) getSystemService(Context.BLUETOO... | = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE); |
152,606 | private void sendBatches() {<NEW_LINE>List<Map.Entry<String, AddDocumentsRequest>> requests;<NEW_LINE>synchronized (this.records) {<NEW_LINE>requests = this.records.entrySet().stream().filter(e -> e.getValue().size() > 0).map((e) -> {<NEW_LINE>AddDocumentsRequest adr = new AddDocumentsRequest();<NEW_LINE>e.getValue().f... | e.getKey(), adr); |
1,519,415 | void configureReturner(Query q, SqlObjectStatementConfiguration cfg) {<NEW_LINE>UseRowMapper useRowMapper = getMethod().getAnnotation(UseRowMapper.class);<NEW_LINE>UseRowReducer useRowReducer = getMethod(<MASK><NEW_LINE>if (useRowReducer != null && useRowMapper != null) {<NEW_LINE>throw new IllegalStateException("Canno... | ).getAnnotation(UseRowReducer.class); |
377,183 | protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>Parser parser = new Parser(PATTERN, (String) msg);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Position position = new Position(getProtocolName());<NEW_LINE>DeviceSession deviceS... | (Parser.CoordinateFormat.HEM_DEG_MIN)); |
1,250,990 | final public Void visit(final ASTGraphGraphPattern node, Object data) throws VisitorException {<NEW_LINE>final <MASK><NEW_LINE>final Scope oldScope = graphPattern.getStatementPatternScope();<NEW_LINE>final TermNode newContext = (TermNode) node.jjtGetChild(0).jjtAccept(this, null);<NEW_LINE>// @see https://jira.blazegra... | TermNode oldContext = graphPattern.getContext(); |
87,293 | public TransferDomainToAnotherAwsAccountResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TransferDomainToAnotherAwsAccountResult transferDomainToAnotherAwsAccountResult = new TransferDomainToAnotherAwsAccountResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurren... | int originalDepth = context.getCurrentDepth(); |
1,027,388 | final UpdateApplicationResult executeUpdateApplication(UpdateApplicationRequest updateApplicationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateApplicationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateApplication"); |
1,396,610 | public static DynamicConfigAddMapConfigCodec.RequestParameters decodeRequest(ClientMessage clientMessage) {<NEW_LINE>ClientMessage.ForwardFrameIterator iterator = clientMessage.frameIterator();<NEW_LINE>RequestParameters request = new RequestParameters();<NEW_LINE>ClientMessage.Frame initialFrame = iterator.next();<NEW... | inMemoryFormat = StringCodec.decode(iterator); |
610,702 | public final ClassIdentifierContext classIdentifier() throws RecognitionException {<NEW_LINE>ClassIdentifierContext _localctx = new ClassIdentifierContext(_ctx, getState());<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>int _alt;<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(2859);<NEW_LINE>((ClassIdenti... | enterRule(_localctx, 418, RULE_classIdentifier); |
909,543 | public SubjectAreaOMASAPIResponse<UsedInContext> updateUsedInContext(String serverName, String userId, String guid, UsedInContext usedInContext, boolean isReplace) {<NEW_LINE>String restAPIName = "updateUsedInContext";<NEW_LINE>RESTCallToken token = restCallLogger.<MASK><NEW_LINE>SubjectAreaOMASAPIResponse<UsedInContex... | logRESTCall(serverName, userId, restAPIName); |
683,331 | public void updateTopicUnitSubFlag(final String topic, final boolean hasUnitSub) {<NEW_LINE>TopicConfig topicConfig = <MASK><NEW_LINE>if (topicConfig != null) {<NEW_LINE>int oldTopicSysFlag = topicConfig.getTopicSysFlag();<NEW_LINE>if (hasUnitSub) {<NEW_LINE>topicConfig.setTopicSysFlag(TopicSysFlag.setUnitSubFlag(oldTo... | this.topicConfigTable.get(topic); |
107,031 | private void processParenPad(Map<String, String> moduleProps, Properties props) {<NEW_LINE>String option = getPropertyValue(moduleProps, "option", "nospace");<NEW_LINE>String space = "space".equals(option) ? "true" : "false";<NEW_LINE>List<Token> tokens = getApplicableTokens(moduleProps, "tokens");<NEW_LINE>if (tokens.... | props.setProperty(PROP_SPACE_WITHIN_METHOD_CALL_PAREN, space); |
675,210 | public AirbyteConnectionStatus check(final JsonNode config) {<NEW_LINE>try {<NEW_LINE>final PulsarDestinationConfig pulsarConfig = PulsarDestinationConfig.getPulsarDestinationConfig(config);<NEW_LINE>final String testTopic = pulsarConfig.getTestTopic();<NEW_LINE>if (!testTopic.isBlank()) {<NEW_LINE>final String key = U... | messageId = producer.send(value); |
183,082 | public void initialize(CmdLineOpts configuration) {<NEW_LINE>CommandLine commandLine = configuration.getCommandLine();<NEW_LINE>// --------------------- Setting Input source (Cassandra table or file) -----------------------\\<NEW_LINE>if (commandLine.hasOption("wordcount_input_file") && commandLine.hasOption("wordcount... | inputTableName = commandLine.getOptionValue("wordcount_input_table"); |
682,621 | public void showSource(Field v, final boolean reportUnknownSource) {<NEW_LINE>String fieldName = ((Field) v).getName();<NEW_LINE>String url = null;<NEW_LINE>JPDAClassType declaringClass = v.getDeclaringClass();<NEW_LINE>if (declaringClass != null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>final String className = ((Field) ... | url = getClassURL(declaringClass, null); |
36,868 | protected void checkImport() {<NEW_LINE>for (ImportInfo parameters : ((OntologyImportWizard) getWizard()).getImports()) {<NEW_LINE>if (parameters.getOntologyID() != null) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>MasterOntologyIDExtractor extractor = new MasterOntologyIDExtractor();<NEW_LINE>Optional<OWLO... | setOntologyID(id.get()); |
110,625 | @Operation(summary = "List database service versions", tags = "services", description = "Get a list of all the versions of a database service identified by `id`", responses = { @ApiResponse(responseCode = "200", description = "List of database service versions", content = @Content(mediaType = "application/json", schema... | (decryptOrNullify(securityContext, databaseService)); |
1,684,431 | protected void mutate(BackendAction item) {<NEW_LINE>BackendEntry e = item.entry();<NEW_LINE>assert e instanceof TextBackendEntry;<NEW_LINE>TextBackendEntry entry = (TextBackendEntry) e;<NEW_LINE>InMemoryDBTable table = this.table(entry.type());<NEW_LINE>switch(item.action()) {<NEW_LINE>case INSERT:<NEW_LINE>LOG.debug(... | store, entry.id()); |
982,761 | public void update(String gatewayId, UpdateGatewayBean gatewayToUpdate) throws GatewayNotFoundException, NotAuthorizedException {<NEW_LINE>securityContext.checkAdminPermissions();<NEW_LINE>try {<NEW_LINE>storage.beginTx();<NEW_LINE>Date now = new Date();<NEW_LINE>GatewayBean gateway = storage.getGateway(gatewayId);<NEW... | setConfiguration(gatewayToUpdate.getConfiguration()); |
621,095 | public void load(PolicyMappings policyMappings) {<NEW_LINE>ASN1Sequence policyMappingsSeq = (ASN1Sequence) policyMappings.toASN1Primitive();<NEW_LINE>// convert and sort<NEW_LINE>ASN1Encodable[] asn1EncArray = policyMappingsSeq.toArray();<NEW_LINE>PolicyMapping[] policyMappingsArray = new PolicyMapping[asn1EncArray.len... | [i][1] = policyMapping; |
1,093,336 | public void writeReturn(final ReturnStatement statement) {<NEW_LINE>controller.getAcg().onLineNumber(statement, "visitReturnStatement");<NEW_LINE>writeStatementLabel(statement);<NEW_LINE>MethodVisitor mv = controller.getMethodVisitor();<NEW_LINE>OperandStack operandStack = controller.getOperandStack();<NEW_LINE>ClassNo... | BytecodeHelper.doReturn(mv, returnType); |
711,924 | private double completeCalculation() {<NEW_LINE>if (charsIndex == 0 || (charsIndex == 1 && chars[0] == '-')) {<NEW_LINE>// "" or "-"<NEW_LINE>// Strict requires at least one digit.<NEW_LINE>strictError();<NEW_LINE>// Treated as 0.0 (not -0.0) in non-strict.<NEW_LINE>return 0.0;<NEW_LINE>} else if (isExponent((byte) cha... | (chars, 0, charsIndex)); |
1,278,947 | public void create(Properties ctx, TransformerHandler document) throws SAXException {<NEW_LINE>int referenceId = Env.getContextAsInt(ctx, X_AD_Reference.COLUMNNAME_AD_Reference_ID);<NEW_LINE>PackOut packOut = (PackOut) ctx.get("PackOutProcess");<NEW_LINE>if (packOut == null) {<NEW_LINE>packOut = new PackOut();<NEW_LINE... | X_AD_Reference(ctx, referenceId, null); |
1,811,388 | private Mono<Response<Object>> validateContainerSettingsWithResponseAsync(String resourceGroupName, ValidateContainerSettingsRequest validateContainerSettingsRequest, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEn... | error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); |
552,031 | int hitTest(final float[] src) {<NEW_LINE>if (mContent == null) {<NEW_LINE>return super.hitTest(src);<NEW_LINE>}<NEW_LINE>if (mPath == null || !mInvertible || !mTransformInvertible) {<NEW_LINE>return -1;<NEW_LINE>}<NEW_LINE>float[] dst = new float[2];<NEW_LINE>mInvMatrix.mapPoints(dst, src);<NEW_LINE>mInvTransform.mapP... | .round(dst[0]); |
669,930 | public static void execute(ServerConnection c, String sql) {<NEW_LINE>String subSql = sql.substring(sql.indexOf("SELECT") + 6);<NEW_LINE>List<String> splitVar = Splitter.on(",").omitEmptyStrings().trimResults().splitToList(subSql);<NEW_LINE>splitVar = convert(splitVar);<NEW_LINE>int FIELD_COUNT = splitVar.size();<NEW_L... | write(buffer, c, true); |
777,274 | public static CheckToStringResponse checkToStringStatus(IType type, IProgressMonitor monitor) {<NEW_LINE>CheckToStringResponse response = new CheckToStringResponse();<NEW_LINE>if (type == null) {<NEW_LINE>return response;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>CompilationUnit astRoot = CoreASTProvider.getInstance().getAST(... | ), CoreASTProvider.WAIT_YES, monitor); |
1,552,224 | public Builder mergeFrom(io.grpc.examples.routeguide.FeatureDatabase other) {<NEW_LINE>if (other == io.grpc.examples.routeguide.FeatureDatabase.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (featureBuilder_ == null) {<NEW_LINE>if (!other.feature_.isEmpty()) {<NEW_LINE>if (feature_.isEmpty()) {<NEW_LINE>featur... | .alwaysUseFieldBuilders ? getFeatureFieldBuilder() : null; |
853,448 | public Relationship createRelationshipTo(final Node endNode, final RelationshipType relationshipType, final Map<String, Object> properties) {<NEW_LINE>dontUseCache = true;<NEW_LINE>assertNotStale();<NEW_LINE>final SessionTransaction tx = db.getCurrentTransaction();<NEW_LINE>final Map<String, Object> map = new HashMap<>... | (endNode.getId())); |
1,580,525 | public Map<Integer, Map<Integer, Integer>> createXKerningMapEncoded() {<NEW_LINE>if (!hasKerning()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Map<Integer, Map<Integer, Integer>> m = new java.util.HashMap<Integer, Map<MASK><NEW_LINE>for (Map.Entry<String, Map<String, Dimension2D>> entryFrom : this.kerningMap.entrySet(... | <Integer, Integer>>(); |
49,777 | private void expandSubmissionReply(final View l) {<NEW_LINE><MASK><NEW_LINE>final int widthSpec = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);<NEW_LINE>final int heightSpec = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);<NEW_LINE>l.measure(widthSpec, heightSpec);<NEW_LINE>mAni... | l.setVisibility(View.VISIBLE); |
1,573,550 | public Map<String, List<PipelineDao>> groupByRuleName(@Nonnull Supplier<Collection<PipelineDao>> pipelines, @Nonnull Set<String> ruleNames) {<NEW_LINE>if (ruleNames.isEmpty()) {<NEW_LINE>return ImmutableMap.of();<NEW_LINE>}<NEW_LINE>final Map<String, List<PipelineDao>> result = new HashMap<>();<NEW_LINE>pipelines.get()... | , new ArrayList<>()); |
1,792,226 | private Operand buildAttrAssign(Variable result, AttrAssignNode attrAssignNode) {<NEW_LINE>boolean containsAssignment = attrAssignNode.containsVariableAssignment();<NEW_LINE>Operand obj = buildWithOrder(attrAssignNode.getReceiverNode(), containsAssignment);<NEW_LINE>Label lazyLabel = null;<NEW_LINE>Label endLabel = nul... | new CopyInstr(result, lastArg)); |
1,516,948 | private void addAssociation(@NonNull final I_C_Invoice_Candidate ic, final int icId, @NonNull final IInvoiceLineRW il, @NonNull final StockQtyAndUOMQty allocatedQty) {<NEW_LINE>Check.assume(icId > 0, "Param 'ic' has C_Invoice_Candidate_ID>0");<NEW_LINE>Check.assume(!isAssociated(icId, il), ic + " with ID=" + icId + " i... | = new ArrayList<Integer>(); |
1,792,448 | public static boolean createDirectoryIfNotExists(final String promptPrefix, String directoryPath, boolean promptUser) {<NEW_LINE>File dir = new File(directoryPath);<NEW_LINE>if (!dir.exists()) {<NEW_LINE>if (promptUser) {<NEW_LINE>final int answer = Messages.showOkCancelDialog(IdeBundle.message("promot.projectwizard.di... | createDirectories(dir.getPath()); |
1,566,895 | final UpdateDatasetEntriesResult executeUpdateDatasetEntries(UpdateDatasetEntriesRequest updateDatasetEntriesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDatasetEntriesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
938,210 | public okhttp3.Call fakeOuterStringSerializeCall(String body, final ApiCallback _callback) throws ApiException {<NEW_LINE>String basePath = null;<NEW_LINE>// Operation Servers<NEW_LINE>String[] localBasePaths = new String[] {};<NEW_LINE>// Determine Base Path to Use<NEW_LINE>if (localCustomBaseUrl != null) {<NEW_LINE>b... | localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); |
1,727,693 | private void checkValidFile(Core core) {<NEW_LINE>String fileName = txtFile.getText();<NEW_LINE>String error_message = null;<NEW_LINE>try {<NEW_LINE>File f = new File(fileName);<NEW_LINE>if (f.isFile() && (f.getName().endsWith(".jar") || f.getName().endsWith(".zip") || f.getName().endsWith(".biglybt"))) {<NEW_LINE>wiza... | getPluginInstaller().installFromFile(f); |
1,296,225 | public static void main(String[] args) {<NEW_LINE>final String USAGE = "\n" + "Usage:\n" + " <groupName> <groupDesc> <vpcId> \n\n" + "Where:\n" + " groupName - a group name (for example, TestKeyPair). \n\n" + " groupDesc - a group description (for example, TestKeyPair). \n\n" + " vpcId - a VPC ID that you can ... | ec2, groupName, groupDesc, vpcId); |
251,572 | public static CustomRegion fromJson(@NonNull Context ctx, JSONObject object) throws JSONException {<NEW_LINE>String scopeId = object.optString("scope-id", null);<NEW_LINE>String path = object.optString("path", null);<NEW_LINE>String type = object.optString("type", null);<NEW_LINE>CustomRegion region = new CustomRegion(... | urlItemsJson = object.optJSONObject("items-url"); |
1,644,733 | public NodeAgentContext nextContext() throws InterruptedException {<NEW_LINE>synchronized (monitor) {<NEW_LINE>// Reset any previous context and wait for the next one<NEW_LINE>nextContext = null;<NEW_LINE>isWaitingForNextContext = true;<NEW_LINE>monitor.notify();<NEW_LINE>Duration untilNextContext = Duration.ZERO;<NEW_... | .toMillis(), 0L)); |
56,759 | private static ArrayList<WizardPage<RSConnectPublishInput, RSConnectPublishResult>> createPages(RSConnectPublishInput input, boolean asMultiple) {<NEW_LINE>ArrayList<WizardPage<RSConnectPublishInput, RSConnectPublishResult>> pages = new ArrayList<>();<NEW_LINE>String descriptor = constants_.documentLowercase();<NEW_LIN... | String staticSubtitle = constants_.publishReportSourcePageStaticSubtitle(); |
1,463,794 | public void paint(Graphics2D g2D) {<NEW_LINE>icon.paintIcon(null, g2D, 0, 0);<NEW_LINE>// Paint Text<NEW_LINE><MASK><NEW_LINE>Font base = new Font(null);<NEW_LINE>Font font = new Font(base.getName(), Font.ITALIC | Font.BOLD, base.getSize());<NEW_LINE>//<NEW_LINE>AttributedString aString = new AttributedString(node.getN... | g2D.setPaint(Color.BLACK); |
655,911 | private Property toProperty(EntityType entityType, String name, TypeMirror type, Annotations annotations) {<NEW_LINE>// type<NEW_LINE>Type propertyType = typeFactory.getType(type, true);<NEW_LINE>if (annotations.isAnnotationPresent(QueryType.class)) {<NEW_LINE>PropertyType propertyTypeAnn = annotations.getAnnotation(Qu... | > inits = Collections.emptyList(); |
1,364,838 | protected MultiGetResult<K, V> do_GET_ALL(Set<? extends K> keys) {<NEW_LINE>RedisConnection con = null;<NEW_LINE>try {<NEW_LINE>con = connectionFactory.getConnection();<NEW_LINE>ArrayList<K> keyList = new ArrayList<>(keys);<NEW_LINE>byte[][] newKeys = keyList.stream().map((k) -> buildKey(k)).toArray(byte[][]::new);<NEW... | return new MultiGetResult<>(ex); |
1,309,118 | protected NodeSnapshotStatus nodeOperation(NodeRequest request, Task task) {<NEW_LINE>Map<Snapshot, Map<ShardId, SnapshotIndexShardStatus>> snapshotMapBuilder = new HashMap<>();<NEW_LINE>try {<NEW_LINE>final String nodeId = clusterService.localNode().getId();<NEW_LINE>for (Snapshot snapshot : request.snapshots) {<NEW_L... | (), unmodifiableMap(snapshotMapBuilder)); |
1,401,749 | public void onVehicleMove(VehicleMoveEvent event) {<NEW_LINE>Vehicle vehicle = event.getVehicle();<NEW_LINE>if (vehicle.getPassengers().isEmpty())<NEW_LINE>return;<NEW_LINE>List<Player> playerPassengers = vehicle.getPassengers().stream().filter(ent -> ent instanceof Player).map(ent -> (Player) ent).<MASK><NEW_LINE>if (... | collect(Collectors.toList()); |
1,341,296 | public static QueryCardFlowInfoResponse unmarshall(QueryCardFlowInfoResponse queryCardFlowInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryCardFlowInfoResponse.setRequestId(_ctx.stringValue("QueryCardFlowInfoResponse.RequestId"));<NEW_LINE>queryCardFlowInfoResponse.setCode(_ctx.stringValue("QueryCardFlowInfoResp... | ("QueryCardFlowInfoResponse.CardFlowInfos[" + i + "].SmsUsed")); |
619,125 | private void initTagMenuButton() {<NEW_LINE>addFXCallback(exec.submit(() -> new TagGroupAction(controller.getTagsManager().getFollowUpTagName(), controller)), followUpGroupAction -> {<NEW_LINE>// on fx thread<NEW_LINE>tagGroupMenuButton.setOnAction(followUpGroupAction);<NEW_LINE>tagGroupMenuButton.setText(followUpGroup... | Level.WARNING, "Could not create Follow Up tag menu item", throwable); |
54,063 | protected ShardUpgradeStatus shardOperation(UpgradeStatusRequest request, ShardRouting shardRouting) {<NEW_LINE>IndexService indexService = indicesService.indexServiceSafe(shardRouting.shardId().getIndex());<NEW_LINE>IndexShard <MASK><NEW_LINE>List<Segment> segments = indexShard.segments(false);<NEW_LINE>long total_byt... | indexShard = indexService.getShard(0); |
734,759 | protected Map<String, Object> toMap() throws IOException {<NEW_LINE>try {<NEW_LINE>Map<String, Object> map = new HashMap<>();<NEW_LINE>synchronized (this) {<NEW_LINE>MapUtils.exportInt(map, "state", state);<NEW_LINE>MapUtils.setMapString(map, "error", error);<NEW_LINE>MapUtils.setMapString(map, "target", target.getID()... | Debug.getNestedExceptionMessage(e))); |
487,060 | final UpdateReplicationConfigurationTemplateResult executeUpdateReplicationConfigurationTemplate(UpdateReplicationConfigurationTemplateRequest updateReplicationConfigurationTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateReplicationConfigurationTemplateRequest);<NEW_LINE>AWS... | false), new UpdateReplicationConfigurationTemplateResultJsonUnmarshaller()); |
1,177,514 | public void onClick(View v) {<NEW_LINE>AlertDialogs.showDialog(getActivity(), getActivity().getString(R.string.restore_defaults_full), getString(R.string.ok), new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>AppState.get().isPrefFormatMode = false;<NEW_LINE>AppState.get().prefScrollMo... | AppState.get().isPrefFormatMode); |
530,845 | private <T> void putArray(RecordDataSchema.Field field, FieldDef<T> fieldDef, T value) {<NEW_LINE>DataList data = new DataList();<NEW_LINE>Class<?> itemType = null;<NEW_LINE>ArrayDataSchema arrayDataSchema = null;<NEW_LINE>if (fieldDef.getDataSchema() instanceof ArrayDataSchema) {<NEW_LINE>arrayDataSchema = (ArrayDataS... | DataTemplate.class.isAssignableFrom(itemType); |
701,023 | public Object createObject(Attributes atts) {<NEW_LINE>JasperPrint jasperPrint = (JasperPrint) digester.peek(digester.getCount() - 2);<NEW_LINE>JRBasePrintImage image = new JRBasePrintImage(jasperPrint.getDefaultStyleProvider());<NEW_LINE>// get image attributes<NEW_LINE>ScaleImageEnum scaleImage = ScaleImageEnum.getBy... | .getValue(JRXmlConstants.ATTRIBUTE_vAlign)); |
1,664,199 | private void createSetMenuEntries(JMenu edit) {<NEW_LINE>edit.add(new ToolTipAction(Lang.get("menu_table_setXTo0")) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void actionPerformed(ActionEvent e) {<NEW_LINE>modifyTable(v -> <MASK><NEW_LINE>}<NEW_LINE>}.setToolTip(Lang.get("menu_table_setXTo0_tt")).createJMenuItem())... | v > 1 ? 0 : v); |
1,049,243 | public void finished() {<NEW_LINE>policyStats.setPercentAdaption((maxWindow / (double) maximumSize<MASK><NEW_LINE>printSegmentSizes();<NEW_LINE>long actualWindowSize = data.values().stream().filter(n -> n.queue == WINDOW).count();<NEW_LINE>long actualProbationSize = data.values().stream().filter(n -> n.queue == PROBATI... | ) - (1.0 - initialPercentMain)); |
1,578,260 | public MemberSetPlus filter2(RolapLevel seekLevel, RolapLevel level, RolapMember lower, RolapMember upper) {<NEW_LINE>if (level == seekLevel) {<NEW_LINE>return new RangeMemberSet(lower, lowerInclusive, upper, upperInclusive, false);<NEW_LINE>} else if (descendants && level.getHierarchy() == seekLevel.getHierarchy() && ... | lowerChild = list.get(0); |
211,011 | private void parseOrdering(String ordering) {<NEW_LINE>final String comma = ",";<NEW_LINE>final String space = " ";<NEW_LINE>StringTokenizer tokenizer = new StringTokenizer(ordering, comma);<NEW_LINE>sortOrders = new <MASK><NEW_LINE>while (tokenizer.hasMoreTokens()) {<NEW_LINE>String order = (String) tokenizer.nextElem... | ArrayList<KunderaQuery.SortOrdering>(); |
712,461 | private void showUsageView(@Nonnull UsageViewDescriptor viewDescriptor, @Nonnull Factory<UsageSearcher> factory, @Nonnull UsageInfo[] usageInfos) {<NEW_LINE>UsageViewManager viewManager = UsageViewManager.getInstance(myProject);<NEW_LINE>final PsiElement[] initialElements = viewDescriptor.getElements();<NEW_LINE>final ... | convertUsagesRef = new Ref<>(); |
739,004 | public CompletableFuture<List<Acl>> searchAcls(String clusterId, Acl.ResourceType resourceType, @Nullable String resourceName, Acl.PatternType patternType, @Nullable String principal, @Nullable String host, Acl.Operation operation, Acl.Permission permission) {<NEW_LINE>AclBindingFilter aclBindingFilter = new AclBinding... | (Collectors.toList())); |
1,585,655 | public NetworkAdminASN lookupCurrentASN(InetAddress address) throws NetworkAdminException {<NEW_LINE>NetworkAdminASN current = getCurrentASN();<NEW_LINE>if (current.matchesCIDR(address)) {<NEW_LINE>return (current);<NEW_LINE>}<NEW_LINE>List asns = COConfigurationManager.getListParameter("ASN Details", new ArrayList());... | (0, ASNToMap(x)); |
1,780,203 | protected void handleOpenAction() {<NEW_LINE>getContainer().getShell().setVisible(false);<NEW_LINE>FileDialog dialog = new FileDialog(getShell(), SWT.OPEN);<NEW_LINE>dialog.setText(Messages.NewModelFromTemplateWizardPage_4);<NEW_LINE>// $NON-NLS-1$ //$NON-NLS-2$<NEW_LINE>dialog.setFilterExtensions(new String[] { "*" + ... | template = fTemplateManager.createTemplate(file); |
1,104,141 | private void rebuildTagList(File directory) {<NEW_LINE>this.<MASK><NEW_LINE>try (org.eclipse.jgit.lib.Repository repository = getJGitRepository(directory.getAbsolutePath())) {<NEW_LINE>try (Git git = new Git(repository)) {<NEW_LINE>// refs sorted according to tag names<NEW_LINE>List<Ref> refList = git.tagList().call();... | tagList = new TreeSet<>(); |
697,210 | public void copyFrom(final CopyFrom o) {<NEW_LINE>final YWeatherModuleImpl from = (YWeatherModuleImpl) o;<NEW_LINE>setAstronomy(from.getAstronomy() != null ? (Astronomy) from.getAstronomy().clone() : null);<NEW_LINE>setCondition(from.getCondition() != null ? (Condition) from.getCondition(<MASK><NEW_LINE>setLocation(fro... | ).clone() : null); |
843,039 | public static ListNode<Integer> overlappingLists(ListNode<Integer> l0, ListNode<Integer> l1) {<NEW_LINE>// Store the start of cycle if any.<NEW_LINE>ListNode<Integer> root0 = IsListCyclic.hasCycle(l0);<NEW_LINE>ListNode<Integer> root1 = IsListCyclic.hasCycle(l1);<NEW_LINE>if (root0 == null && root1 == null) {<NEW_LINE>... | return temp == root0 ? root1 : null; |
1,498,687 | private static String unionPreambleToString(final Memory mem, final Family family, final int preLongs) {<NEW_LINE>final ResizeFactor rf = ResizeFactor.getRF(extractResizeFactor(mem));<NEW_LINE><MASK><NEW_LINE>// Flags<NEW_LINE>final int flags = extractFlags(mem);<NEW_LINE>final String flagsStr = zeroPad(Integer.toBinar... | final int serVer = extractSerVer(mem); |
301,835 | public static void main(String[] args) {<NEW_LINE>Exercise12 exercise12 = new Exercise12();<NEW_LINE>EdgeWeightedDigraph edgeWeightedDigraphWithCycle = new EdgeWeightedDigraph(8);<NEW_LINE>edgeWeightedDigraphWithCycle.addEdge(new DirectedEdge(0, 1, 0.35));<NEW_LINE>edgeWeightedDigraphWithCycle.addEdge(new DirectedEdge(... | (3, 4, 0.28)); |
1,717,501 | public static IntLiteral buildIntLiteral(char[] token, int s, int e) {<NEW_LINE>// remove '_' and prefix '0' first<NEW_LINE>char[] intReducedToken = removePrefixZerosAndUnderscores(token, false);<NEW_LINE>switch(intReducedToken.length) {<NEW_LINE>case 10:<NEW_LINE>// 0x80000000<NEW_LINE>if (CharOperation.equals(intRedu... | intReducedToken : null, s, e); |
915,700 | public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE><MASK><NEW_LINE>if (n < Integer.MAX_VALUE) {<NEW_LINE>return new Integer((int) n);<NEW_LINE>} else {<NEW_LINE>return new Long(n);<NEW_LINE>}<NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>Object obj = param.getLeafExpression().calculate(ctx);... | long n = cursor.skip(); |
1,849,948 | final DescribeKeyPhrasesDetectionJobResult executeDescribeKeyPhrasesDetectionJob(DescribeKeyPhrasesDetectionJobRequest describeKeyPhrasesDetectionJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeKeyPhrasesDetectionJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,824,210 | public // when a column heading is clicked in the JTable.<NEW_LINE>void addMouseListenerToHeaderInTable(JTable table) {<NEW_LINE>final TableSorter sorter = this;<NEW_LINE>final JTable tableView = table;<NEW_LINE>tableView.setColumnSelectionAllowed(false);<NEW_LINE>new ClickListener() {<NEW_LINE><NEW_LINE>@Override<NEW_... | installOn(tableView.getTableHeader()); |
479,246 | public CreateRulesetResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateRulesetResult createRulesetResult = new CreateRulesetResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep... | JsonToken token = context.getCurrentToken(); |
1,640,137 | private boolean shouldPush(Mcp.RequestResources requestResources, AbstractConnection<Mcp.Resources> connection) {<NEW_LINE>String type = requestResources.getCollection();<NEW_LINE><MASK><NEW_LINE>if (requestResources.getErrorDetail().getCode() != 0) {<NEW_LINE>Loggers.MAIN.error("mcp: ACK error, connection-id: {}, code... | String connectionId = connection.getConnectionId(); |
453,586 | public OperationResult<SchemaChangeResult> updateColumnFamily(final Map<String, Object> options) throws ConnectionException {<NEW_LINE>if (options.containsKey("keyspace") && !options.get("keyspace").equals(getKeyspaceName())) {<NEW_LINE>throw new RuntimeException(String.format("'keyspace' attribute must match keyspace ... | def.setKeyspace(getKeyspaceName()); |
116,458 | public int compare(PluginInterface if0, PluginInterface if1) {<NEW_LINE>int result = 0;<NEW_LINE>switch(field) {<NEW_LINE>case FIELD_LOAD:<NEW_LINE>{<NEW_LINE>boolean b0 = if0.getPluginState().isLoadedAtStartup();<NEW_LINE>boolean b1 = if1.getPluginState().isLoadedAtStartup();<NEW_LINE>result = (b0 == b1 ? 0 : (<MASK><... | b0 ? -1 : 1)); |
1,597,127 | public Object onTraversalSuccess() {<NEW_LINE>final SAMSequenceDictionary sequenceDictionary = getBestAvailableSequenceDictionary();<NEW_LINE>final List<SimpleInterval> inputIntervals = // if the user didn't add any intervals,<NEW_LINE>hasUserSuppliedIntervals() ? // if the user didn't add any intervals,<NEW_LINE>inter... | bins = filterBinsContainingOnlyNs(unfilteredBins, reference); |
1,528,364 | private void logXmlExtraProblem(CategorizedProblem problem, int globalErrorCount, int localErrorCount) {<NEW_LINE>final int sourceStart = problem.getSourceStart();<NEW_LINE>final int sourceEnd = problem.getSourceEnd();<NEW_LINE>boolean isError = problem.isError();<NEW_LINE>HashMap<String, Object> <MASK><NEW_LINE>parame... | parameters = new HashMap<>(); |
629,753 | public List<ExpressInfo> query(ExpressCompany company, String num) {<NEW_LINE>String appId = JPressOptions.get("express_api_appid");<NEW_LINE>String appSecret = JPressOptions.get("express_api_appsecret");<NEW_LINE>String param = "{\"com\":\"" + company.getCode() + "\",\"num\":\"" + num + "\"}";<NEW_LINE>String sign = H... | (expObject.getString("time")); |
563,192 | protected static void generateRegisterSleigh(List<String> result, Language language, AddressSpace space, SemisparseByteArray array) {<NEW_LINE>byte[] data = new byte[8];<NEW_LINE>RangeSet<UnsignedLong> remains = TreeRangeSet.create(array.getInitialized(0, -1));<NEW_LINE>while (!remains.isEmpty()) {<NEW_LINE>Range<Unsig... | int length = register.getNumBytes(); |
1,489,847 | private ThreadPoolExecutor createPriorityExecutor(ScanExecutorConfig sec, Map<String, Queue<Runnable>> scanExecQueues) {<NEW_LINE>BlockingQueue<Runnable> queue;<NEW_LINE>if (sec.prioritizerClass.orElse("").isEmpty()) {<NEW_LINE>queue = new LinkedBlockingQueue<>();<NEW_LINE>} else {<NEW_LINE>ScanPrioritizer factory = nu... | "scan-" + sec.name, es); |
743,865 | /*<NEW_LINE>* Store the URI redirect key,value map for this provider<NEW_LINE>*/<NEW_LINE>public static synchronized boolean initRewrites(String providerID, String[] providerRewrites) {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE><MASK><NEW_LINE>boolean hasRewrites = (providerRewrites != null) && (providerRewrites.lengt... | Tr.entry(tc, "initRewrites"); |
276,596 | private static void decodeByteSegment(BitSource bits, StringBuffer result, int count, CharacterSetECI currentCharacterSetECI, Vector byteSegments, Hashtable hints) throws FormatException {<NEW_LINE>byte[<MASK><NEW_LINE>if (count << 3 > bits.available()) {<NEW_LINE>throw FormatException.getFormatInstance();<NEW_LINE>}<N... | ] readBytes = new byte[count]; |
1,609,851 | private void walkLocalTable(PrintStream out) throws CorruptDataException {<NEW_LINE>int totalWeight = 0;<NEW_LINE>J9DbgStringInternTablePointer stringInternTablePtr = getRomClassBuilderPtr(out);<NEW_LINE>if (stringInternTablePtr.isNull()) {<NEW_LINE>out.append("StringInternTable is null" + nl);<NEW_LINE>return;<NEW_LIN... | J9InternHashTableEntryPointer currentEntryPtr = stringInternTablePtr.headNode(); |
521,701 | public void showJavadoc() {<NEW_LINE>String relativeName = FileUtil.getRelativePath(cpRoot, resource);<NEW_LINE>URL[] urls = JavadocForBinaryQuery.findJavadoc(cpRoot.toURL()).getRoots();<NEW_LINE>URL pageURL;<NEW_LINE>if (relativeName.length() == 0) {<NEW_LINE>// NOI18N<NEW_LINE>pageURL = ShowJavadocAction.findJavadoc(... | .lastIndexOf('.')) + ".html"; |
542,504 | public static Order adaptOrder(BinanceOrder order) {<NEW_LINE>OrderType type = convert(order.side);<NEW_LINE>CurrencyPair currencyPair = adaptSymbol(order.symbol);<NEW_LINE>Order.Builder builder;<NEW_LINE>if (order.type.equals(org.knowm.xchange.binance.dto.trade.OrderType.MARKET)) {<NEW_LINE>builder = new MarketOrder.B... | ).cumulativeAmount(order.executedQty); |
650,024 | public static void main(String[] args) throws ClassNotFoundException, IOException {<NEW_LINE>Properties props = StringUtils.argsToProperties(args);<NEW_LINE>String filePath = props.getProperty("file");<NEW_LINE>CoNLLUReader reader = new CoNLLUReader();<NEW_LINE>CoNLLUOutputter writer = new CoNLLUOutputter();<NEW_LINE>S... | System.err.println("Done."); |
250,283 | static ASelectableCondition load(final XMLElement element) {<NEW_LINE>final Object attr = AttributeConditionController.toAttributeObject(element<MASK><NEW_LINE>Object value = element.getAttribute(CompareConditionAdapter.VALUE, null);<NEW_LINE>if (value == null) {<NEW_LINE>final String spec = element.getAttribute(Compar... | .getAttribute(ATTRIBUTE, null)); |
1,091,248 | public MdmLink createOrUpdateLinkEntity(IBaseResource theGoldenResource, IBaseResource theSourceResource, MdmMatchOutcome theMatchOutcome, MdmLinkSourceEnum theLinkSource, @Nullable MdmTransactionContext theMdmTransactionContext) {<NEW_LINE>Long goldenResourcePid = myJpaIdHelperService.getPidOrNull(theGoldenResource);<... | mdmLink = getOrCreateMdmLinkByGoldenResourcePidAndSourceResourcePid(goldenResourcePid, sourceResourcePid); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.