idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,649,823 | public LogicalPlan plan(SelectRelation queryBlock, ExpressionMapping outer) {<NEW_LINE>OptExprBuilder builder = planFrom(queryBlock.getRelation(), cteContext);<NEW_LINE>builder.setExpressionMapping(new ExpressionMapping(builder.getScope(), builder.getFieldMappings(), outer));<NEW_LINE>builder = filter(builder, queryBlo... | ), queryBlock.getOrderScope()); |
177,657 | private static synchronized void updateStreamValues() {<NEW_LINE>// Over all the sinks...<NEW_LINE>for (VideoSink i : m_sinks.values()) {<NEW_LINE><MASK><NEW_LINE>// Get the source's subtable (if none exists, we're done)<NEW_LINE>int source = Objects.requireNonNullElseGet(m_fixedSources.get(sink), () -> CameraServerJNI... | int sink = i.getHandle(); |
762,344 | protected void fillPackagerProperties(Map<String, Object> props, Distribution distribution) throws PackagerProcessingException {<NEW_LINE>GitService gitService = context.getModel().getRelease().getGitService();<NEW_LINE>if (!props.containsKey(KEY_PROJECT_LICENSE_URL) || isBlank((String) props.get(KEY_PROJECT_LICENSE_UR... | getBucket().getResolvedName()); |
146,503 | public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {<NEW_LINE>final String createTableSql = "CREATE TABLE IF NOT EXISTS visits ( visit_id SERIAL NOT NULL, " + "user_ip VARCHAR(46) NOT NULL, ts timestamp NOT NULL, " + "PRIMARY KEY (visit_id) );";<NEW_LINE>final Strin... | createStatement().executeUpdate(createTableSql); |
1,794,777 | private static int runReAugmentation(List<String> cliArgs, CommandLine cmd) {<NEW_LINE>int exitCode = 0;<NEW_LINE>List<String> configArgsList = new ArrayList<>(cliArgs);<NEW_LINE>configArgsList.remove(AUTO_BUILD_OPTION_LONG);<NEW_LINE>configArgsList.remove(AUTO_BUILD_OPTION_SHORT);<NEW_LINE>configArgsList.remove(Import... | (" ", getSanitizedRuntimeCliOptions())); |
1,590,527 | private List<VTMatchInfo> transform(VTMatchSet matchSet, Address destinationAddress, LSHCosineVectorAccum destinationVector, Set<DominantPair<Address, LSHCosineVectorAccum>> neighbors, double threshold, TaskMonitor monitor) {<NEW_LINE>List<VTMatchInfo> result = new ArrayList<VTMatchInfo>();<NEW_LINE>Listing sourceListi... | () * destinationVector.getLength(); |
1,742,362 | public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (((bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>output.writeInt64(1, observedGeneration_);<NEW_LINE>}<NEW_LINE>if (((bitField0_ & 0x00000002) == 0x00000002)) {<NEW_LINE>output.<MASK><NEW_LINE>}<NEW_LINE>if ... | writeMessage(2, getLastScaleTime()); |
796,510 | private void checkBatchFinderSchema(BatchFinderSchema prevRec, BatchFinderSchema currRec) {<NEW_LINE>checkEqualSingleValue(prevRec.schema().getField("name"), prevRec.getName(GetMode.DEFAULT), currRec.getName(GetMode.DEFAULT));<NEW_LINE>checkDoc(prevRec.schema().getField("doc"), prevRec.getDoc(GetMode.DEFAULT), currRec.... | .getMaxBatchSize(GetMode.DEFAULT)); |
433,811 | public void marshall(NewTransitVirtualInterfaceAllocation newTransitVirtualInterfaceAllocation, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (newTransitVirtualInterfaceAllocation == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>prot... | newTransitVirtualInterfaceAllocation.getVirtualInterfaceName(), VIRTUALINTERFACENAME_BINDING); |
1,583,311 | protected void fillAAnswer() {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled())<NEW_LINE>c_logger.traceEntry(this, "StateMachine: fillAAnswer: entry: id=" + hashCode());<NEW_LINE>for (Enumeration e = _AResponses.elements(); e.hasMoreElements(); ) {<NEW_LINE>Vector vector2 = (Vector) e.nextElement();<NEW_LINE>for (Enume... | answer.setPortInt(_simpl._port); |
1,813,303 | protected void innerRollback(String group, IConnection conn) {<NEW_LINE>// XA transaction must in 'ACTIVE', 'IDLE' or 'PREPARED' state, so ROLLBACK first.<NEW_LINE>String xid = <MASK><NEW_LINE>try (Statement stmt = conn.createStatement()) {<NEW_LINE>try {<NEW_LINE>stmt.execute("XA ROLLBACK " + xid);<NEW_LINE>} catch (S... | getXid(group, conn, shareReadView); |
157,530 | public DescribeHoursOfOperationResult describeHoursOfOperation(DescribeHoursOfOperationRequest describeHoursOfOperationRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeHoursOfOperationRequest);<NEW_LINE>AWSRequestMetrics awsReque... | awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); |
1,219,372 | public void encode(Buffer valueBuffer) {<NEW_LINE>StrategyAnalyzer<Long> collectIntervalStrategyAnalyzer = collectIntervalAnalyzerBuilder.build();<NEW_LINE>StrategyAnalyzer<Long> sampledNewCountStrategyAnalyzer = sampledNewCountAnalyzerBuilder.build();<NEW_LINE>StrategyAnalyzer<Long> sampledContinuationCountStrategyAna... | > skippedNewCountStrategyAnalyzer = skippedNewCountAnalyzerBuilder.build(); |
1,364,218 | public void handle(final HttpExchange t) throws IOException {<NEW_LINE>final String date = new Date().toString();<NEW_LINE>_sensors.get(_name).incrementAndGet();<NEW_LINE>Headers headers = t.getRequestHeaders();<NEW_LINE>Long delay = _delay;<NEW_LINE>if (headers.containsKey("delay")) {<NEW_LINE>List<String> headerValue... | 200, response.length()); |
1,529,002 | static Bag[] of(int n, int k) {<NEW_LINE>if (n < 0) {<NEW_LINE>throw new IllegalArgumentException("Invalid sample size: " + n);<NEW_LINE>}<NEW_LINE>if (k < 0) {<NEW_LINE>throw new IllegalArgumentException("Invalid number of bootstrap: " + k);<NEW_LINE>}<NEW_LINE>Bag[] bags = new Bag[k];<NEW_LINE>for (int j = 0; j < k; ... | = new Bag(train, test); |
408,613 | private void operationSetBound(QueryExecutionContext context, IndexScanOperation op, int index, BoundType boundType) {<NEW_LINE>Object parameterValue = parameter.getParameterValue(context);<NEW_LINE>if (parameterValue == null) {<NEW_LINE>throw new ClusterJUserException(local.message("ERR_Parameter_Cannot_Be_Null", "ope... | " value: " + value + " boundType: " + boundType); |
1,146,648 | static Long fieldChecksum(String data) {<NEW_LINE>data = stripHTMLMedia(data);<NEW_LINE>try {<NEW_LINE>MessageDigest <MASK><NEW_LINE>byte[] digest = md.digest(data.getBytes("UTF-8"));<NEW_LINE>BigInteger biginteger = new BigInteger(1, digest);<NEW_LINE>String result = biginteger.toString(16);<NEW_LINE>// pad checksum t... | md = MessageDigest.getInstance("SHA1"); |
1,156,104 | public void onActivityCreated(@Nullable Bundle savedInstanceState) {<NEW_LINE>super.onActivityCreated(savedInstanceState);<NEW_LINE>mUseAccountColor = PreferenceManager.getDefaultSharedPreferences(getActivity()).getBoolean(getString(R.string.key_use_account_color), false);<NEW_LINE>mChart.setOnChartValueSelectedListene... | getAxisRight().setEnabled(false); |
1,527,166 | protected IProject[] build(int kind, Map args, IProgressMonitor monitor) throws CoreException {<NEW_LINE>monitor.subTask("Running SpotBugs...");<NEW_LINE>switch(kind) {<NEW_LINE>case IncrementalProjectBuilder.FULL_BUILD:<NEW_LINE>{<NEW_LINE>FindBugs2Eclipse.cleanClassClache(getProject());<NEW_LINE>if (FindbugsPlugin.ge... | System.out.println("INCREMENTAL BUILD"); |
964,526 | final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,529,779 | public DumpInfo dumpCacheContent() {<NEW_LINE>synchronized (mCountingBitmapCache) {<NEW_LINE>DumpInfo<K, V> dumpInfo = new DumpInfo<>(mCountingBitmapCache.getSizeInBytes(), mCountingBitmapCache.getEvictionQueueSizeInBytes(), mCountingBitmapCache.getMemoryCacheParams());<NEW_LINE>@Nullable<NEW_LINE>CountingLruMap<K, Cou... | dumpInfo.sharedEntries.add(dumpEntry); |
1,410,887 | final GetDeviceDefinitionVersionResult executeGetDeviceDefinitionVersion(GetDeviceDefinitionVersionRequest getDeviceDefinitionVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDeviceDefinitionVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
98,228 | public void send(Message message, String destination, YamlContract contract) {<NEW_LINE>mergeMessagePropertiesFromMetadata(contract, message);<NEW_LINE>final String routingKey = message<MASK><NEW_LINE>List<SimpleMessageListenerContainer> listenerContainers = this.messageListenerAccessor.getListenerContainersForDestinat... | .getMessageProperties().getReceivedRoutingKey(); |
1,778,780 | public void drawObjects(PlatformImage output) {<NEW_LINE>output.create(image.getWidth(), image.getHeight());<NEW_LINE>ImageUtils.log("Columns:", columns.size());<NEW_LINE>ImageUtils.log("Lines:", lines.size());<NEW_LINE>ImageUtils.log("Words:", words.size());<NEW_LINE>for (int y = 0; y < image.getHeight(); y++) {<NEW_L... | dy + 2, PlatformImage.YELLOW); |
428,108 | public Parent createContent() {<NEW_LINE>Pane root = new Pane();<NEW_LINE>root.setPrefSize(245, 100);<NEW_LINE>root.setMinSize(Pane.USE_PREF_SIZE, Pane.USE_PREF_SIZE);<NEW_LINE>root.setMaxSize(Pane.USE_PREF_SIZE, Pane.USE_PREF_SIZE);<NEW_LINE>// create rectangle<NEW_LINE>Rectangle rect = new Rectangle(-25, -25, 50, 50)... | (Duration.seconds(2)); |
55,660 | private static String searchBuildNumber(Enumeration<URL> en) {<NEW_LINE>String value = null;<NEW_LINE>try {<NEW_LINE>java.util.jar.Manifest mf;<NEW_LINE>URL u = null;<NEW_LINE>while (en.hasMoreElements()) {<NEW_LINE>u = en.nextElement();<NEW_LINE>InputStream is = u.openStream();<NEW_LINE>mf = new java.<MASK><NEW_LINE>i... | util.jar.Manifest(is); |
1,654,733 | private void checkExclusions(String groupId, Module module, DependencyVersion version) {<NEW_LINE>Set<String> resolved = getProject().getConfigurations().detachedConfiguration(getProject().getDependencies().create(groupId + ":" + module.getName() + ":" + version)).getResolvedConfiguration().getResolvedArtifacts().strea... | collect(Collectors.toSet()); |
1,562,110 | private Multi<DbRow> callStatement(MongoDbStatement.MongoStatement mongoStmt, CompletableFuture<Void> statementFuture, CompletableFuture<Long> queryFuture) {<NEW_LINE>final MongoCollection<Document> mc = db().getCollection(mongoStmt.getCollection());<NEW_LINE>final Document query = mongoStmt.getQuery();<NEW_LINE>final ... | publisher = publisher.projection(projection); |
507,191 | public static void vertical(Kernel1D_F32 kernel, GrayF32 input, GrayF32 output, int skip) {<NEW_LINE>final float[] dataSrc = input.data;<NEW_LINE>final float[] dataDst = output.data;<NEW_LINE>final float[] dataKer = kernel.data;<NEW_LINE>final int radius = kernel.getRadius();<NEW_LINE>final int offset = UtilDownConvolv... | ++] = (total / weight); |
865,240 | private int statfsInternal(String path, Statvfs stbuf) {<NEW_LINE>ClientContext ctx = ClientContext.create(sConf);<NEW_LINE>try (BlockMasterClient blockClient = BlockMasterClient.Factory.create(MasterClientContext.newBuilder(ctx).build())) {<NEW_LINE>Set<BlockMasterInfo.BlockMasterInfoField> blockMasterInfoFilter = new... | stbuf.f_bavail.set(freeBlocks); |
851,511 | public TwitLongerStatus postToTwitLonger() {<NEW_LINE>try {<NEW_LINE>HttpClient client = new DefaultHttpClient();<NEW_LINE>HttpPost post = new HttpPost(POST_URL);<NEW_LINE>post.addHeader("X-API-KEY", TWITLONGER_API_KEY);<NEW_LINE>post.addHeader("X-Auth-Service-Provider", SERVICE_PROVIDER);<NEW_LINE>post.addHeader("X-Ve... | String.valueOf(replyToId))); |
795,454 | public void showProPanel() {<NEW_LINE>logDebug("showProPanel");<NEW_LINE>// Left and Right margin<NEW_LINE>LinearLayout.LayoutParams proTextParams = (LinearLayout.LayoutParams) getProText.getLayoutParams();<NEW_LINE>proTextParams.setMargins(scaleWidthPx(24, outMetrics), scaleHeightPx(23, outMetrics), scaleWidthPx(24, o... | .LayoutParams) leftCancelButton.getLayoutParams(); |
1,321,751 | public void marshall(DataSourceParameters dataSourceParameters, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (dataSourceParameters == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(dataSourceParameters.get... | dataSourceParameters.getAuroraPostgreSqlParameters(), AURORAPOSTGRESQLPARAMETERS_BINDING); |
1,225,141 | public List<String> expendUnitToIdentity(List<String> unitList) throws Exception {<NEW_LINE>List<String> unitIds = new ArrayList<>();<NEW_LINE>List<String> expendUnitIds = new ArrayList<>();<NEW_LINE>if (ListTools.isNotEmpty(unitList)) {<NEW_LINE>for (String s : unitList) {<NEW_LINE>Unit u = this.unit().pick(s);<NEW_LI... | (p)).getResultList(); |
1,218,874 | public Visualization makeVisualization(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj) {<NEW_LINE>SettingsResult sr = task.getResult();<NEW_LINE>Collection<SettingInformation> settings = sr.getSettings();<NEW_LINE>Element layer = plot.svgElement(S... | rows, margin / StyleLibrary.SCALE); |
419,912 | public void marshall(CreateRouteRequest createRouteRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createRouteRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createRouteRequest.getClientTo... | createRouteRequest.getRouteName(), ROUTENAME_BINDING); |
608,537 | private void createCheckpoint() {<NEW_LINE>try {<NEW_LINE>Map<WrappedByteArray, WrappedByteArray> batch = new HashMap<>();<NEW_LINE>for (Chainbase db : dbs) {<NEW_LINE>Snapshot head = db.getHead();<NEW_LINE>if (Snapshot.isRoot(head)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String dbName = db.getDbName();<NEW_LINE>Snapsh... | Key k = e.getKey(); |
533,418 | public MineralMix readFromJson(ResourceLocation recipeId, JsonObject json) {<NEW_LINE>JsonArray array = json.getAsJsonArray("ores");<NEW_LINE>List<StackWithChance> tempOres = new ArrayList<>();<NEW_LINE>float totalChance = 0;<NEW_LINE>for (int i = 0; i < array.size(); i++) {<NEW_LINE>JsonObject element = array.get(i).g... | (element.get("output")); |
1,826,480 | public void onUncaughtException(Connection connection, Throwable error) {<NEW_LINE>if (error instanceof RedirectClientException) {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug(format(connection.channel(), "The request will be redirected"));<NEW_LINE>}<NEW_LINE>HttpClientOperations ops = connection.as(HttpCli... | (), "The connection observed an error"), error); |
1,781,169 | private void definePackage(String name, ResourceEntry entry) {<NEW_LINE>// Looking up the package<NEW_LINE>String packageName = null;<NEW_LINE>int <MASK><NEW_LINE>if (pos != -1) {<NEW_LINE>packageName = name.substring(0, pos);<NEW_LINE>}<NEW_LINE>Package pkg = null;<NEW_LINE>if (packageName != null) {<NEW_LINE>// START... | pos = name.lastIndexOf('.'); |
1,601,019 | public void resolve() {<NEW_LINE>int startingTypeIndex = 0;<NEW_LINE>boolean isPackageInfo = isPackageInfo();<NEW_LINE>boolean isModuleInfo = isModuleInfo();<NEW_LINE>if (this.types != null && isPackageInfo) {<NEW_LINE>// resolve synthetic type declaration<NEW_LINE>final TypeDeclaration syntheticTypeDeclaration = this.... | .currentPackage.annotations[0]); |
262,205 | private synchronized ITypeBinding internalGetTypeBinding(org.eclipse.jdt.internal.compiler.lookup.TypeBinding referenceBinding, IBinding declaringMember) {<NEW_LINE>// may also create an TypeBinding.AnonymousTypeBinding<NEW_LINE>if (referenceBinding == null) {<NEW_LINE>return null;<NEW_LINE>} else if (!referenceBinding... | bindingTables.compilerBindingsToASTBindings.get(binding2); |
457,495 | private void initTableNameMappings(Collection<TableRule> tableRules, Map<String, Set<String>> tableNameMappings, List<String> groupNames) {<NEW_LINE>for (TableRule tableRule : tableRules) {<NEW_LINE>String logicalTableName = tableRule.getVirtualTbName();<NEW_LINE>if ((tableRule.getDbPartitionKeys() == null || tableRule... | "." + physicalTableName, logicalTableName, tableNameMappings); |
290,793 | public long[][] transformToLongValuesMV(ProjectionBlock projectionBlock) {<NEW_LINE>if (_longResultMV == null) {<NEW_LINE>_longResultMV = new long[DocIdSetPlanNode.MAX_DOC_PER_CALL][];<NEW_LINE>}<NEW_LINE>for (int i = 0; i < _numGroovyArgs; i++) {<NEW_LINE>_sourceArrays[i] = _transformToValuesFunctions[i].apply(_groovy... | ] = (long[]) result; |
10,915 | public BranchRegisterResponseProto convert2Proto(BranchRegisterResponse branchRegisterResponse) {<NEW_LINE>final short typeCode = branchRegisterResponse.getTypeCode();<NEW_LINE>final AbstractMessageProto abstractMessage = AbstractMessageProto.newBuilder().setMessageType(MessageTypeProto.forNumber(typeCode)).build();<NE... | setAbstractMessage(abstractMessage).build(); |
865,939 | public // & assumes that this is run on Opened Object<NEW_LINE>void request(final Message message, final OperationResult<Message, Exception> onResponse) {<NEW_LINE>if (message == null) {<NEW_LINE>throw new IllegalArgumentException("message cannot be null.");<NEW_LINE>}<NEW_LINE>if (message.getMessageId() != null) {<NEW... | AmqpUtil.getDataSerializedSize(message) + 512; |
1,567,143 | private boolean tryFillOutputBuffer() {<NEW_LINE>try {<NEW_LINE>// header size + slot for writtenCount<NEW_LINE>outputBuffer.<MASK><NEW_LINE>int writtenCount = 0;<NEW_LINE>for (Object item; outputBuffer.position() < packetSizeLimit && isWithinLimit(sentSeq, sendSeqLimitCompressed) && (item = inbox.poll()) != null; writ... | position(bufPosPastHeader + Bits.INT_SIZE_IN_BYTES); |
1,162,636 | private void readAssocOne(DeployBeanPropertyAssoc<?> prop) {<NEW_LINE>readJsonAnnotations(prop);<NEW_LINE>if (has(prop, Id.class)) {<NEW_LINE>readIdAssocOne(prop);<NEW_LINE>}<NEW_LINE>if (has(prop, EmbeddedId.class)) {<NEW_LINE>prop.setId();<NEW_LINE>prop.setNullable(false);<NEW_LINE>prop.setEmbedded();<NEW_LINE>info.s... | (formula.join())); |
1,015,119 | public void run() {<NEW_LINE>Status _status = null;<NEW_LINE>synchronized (node) {<NEW_LINE>_status = node.status;<NEW_LINE>}<NEW_LINE>if (_status == null) {<NEW_LINE>FileObject jf = node.getDataObject().getPrimaryFile();<NEW_LINE>_status = FileBuiltQuery.getStatus(jf);<NEW_LINE>synchronized (node) {<NEW_LINE>if (_stat... | class, "TP_NeedsCompileBadge"))) == null; |
923,337 | public void onSuccess(ComponentImportResponse response) {<NEW_LINE>if (response.getStatus() == ComponentImportResponse.Status.FAILED) {<NEW_LINE>Window.alert(MESSAGES.componentImportError() + "\n" + response.getMessage());<NEW_LINE>return;<NEW_LINE>} else if (response.getStatus() != ComponentImportResponse.Status.IMPOR... | projectEditor.addComponent(node, null); |
58,970 | public MemberSelectTree buildIteratorMethodAccess(ExpressionTree iterableExpr) {<NEW_LINE>DeclaredType exprType = (DeclaredType) TypesUtils.upperBound(TreeUtils.typeOf(iterableExpr));<NEW_LINE>assert exprType != null : "expression must be of declared type Iterable<>";<NEW_LINE>TypeElement exprElement = (TypeElement) ex... | symtab.iteratorType.asElement()); |
1,818,826 | public static Validated build(String pattern, @Nullable String metadataPattern) {<NEW_LINE>Matcher matcher = X_RANGE_PATTERN.matcher(pattern);<NEW_LINE>if (!matcher.matches() || !(pattern.contains("x") || pattern.contains("X") || pattern.contains("*"))) {<NEW_LINE>return Validated.invalid("xRange", pattern, "not an x-r... | : matcher.group(2)); |
1,230,552 | public DevicePosition unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DevicePosition devicePosition = new DevicePosition();<NEW_LINE>reader.beg... | ISO_8601).unmarshall(context)); |
236,942 | // rbDelete().<NEW_LINE>void move(AbstractTreeMap.Entry x, AbstractTreeMap.Entry y) throws ObjectManagerException {<NEW_LINE>if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())<NEW_LINE>trace.exit(this, cclass, "move", new Object<MASK><NEW_LINE>Entry yParent = (Entry) y.getParent();<NEW_LINE>// Set x into the ... | [] { x, y }); |
454,188 | public void run(RegressionEnvironment env) {<NEW_LINE>String stmtText = "@name('s0') select * from SupportMarketDataBean#length(5) order by symbol, volume";<NEW_LINE>env.compileDeploy(stmtText).addListener("s0");<NEW_LINE>env.assertIterator("s0", it -> assertFalse(it.hasNext()));<NEW_LINE>Object eventOne = sendEvent(en... | sendEvent(env, "SYM", 0); |
352,399 | final UpdateAssetResult executeUpdateAsset(UpdateAssetRequest updateAssetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateAssetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<UpdateAssetRequest> reques... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,316,828 | public void onGroupItemLongClick(int position, int groupPosition, View view) {<NEW_LINE>if (getActivity() == null)<NEW_LINE>return;<NEW_LINE>FindKindGroupBean groupBean;<NEW_LINE>if (isFlexBox()) {<NEW_LINE>groupBean = (FindKindGroupBean) findRightAdapter.getData().get(groupPosition).getGroupData();<NEW_LINE>} else {<N... | NONE, R.string.delete); |
1,431,037 | public Optional<CorsOriginConfiguration> convert(Map<String, Object> object, Class<CorsOriginConfiguration> targetType, ConversionContext context) {<NEW_LINE>CorsOriginConfiguration configuration = new CorsOriginConfiguration();<NEW_LINE>ConvertibleValues<Object> convertibleValues = new ConvertibleValuesMap<>(object);<... | ).ifPresent(configuration::setAllowCredentials); |
1,148,659 | private void onUpdateAvailable(final Update update, final boolean mandatory) {<NEW_LINE>getActivity().runOnUiThread(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>new ConfirmDialog(getString(R.string.update_available), update.prompt, getActivity(), new ConfirmDialogListener() {<NEW_... | i.setAction(UpdateService.START); |
900,176 | private void addTags() {<NEW_LINE>contentCursorPosition = getCursorIndex();<NEW_LINE>final List<Tag> tags = TagsHelper.getAllTags();<NEW_LINE>if (tags.isEmpty()) {<NEW_LINE>mainActivity.showMessage(R.string.no_tags_created, ONStyle.WARN);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Note currentNote = new Note();<NEW_LIN... | TagsHelper.getPreselectedTagsArray(currentNote, tags); |
909,565 | protected void initLaf(UIManager manager) {<NEW_LINE>super.initLaf(manager);<NEW_LINE>int tabPlace = manager.getThemeConstant("tabPlacementInt", -1);<NEW_LINE>tabsFillRows = manager.isThemeConstant("tabsFillRowsBool", false);<NEW_LINE>tabsGridLayout = <MASK><NEW_LINE>changeTabOnFocus = manager.isThemeConstant("changeTa... | manager.isThemeConstant("tabsGridBool", false); |
1,342,950 | public int compareTo(TFLoadedClass other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.valueOf(isSetLoadedClassCount()).<MASK><NEW_LINE>if (lastCo... | compareTo(other.isSetLoadedClassCount()); |
1,014,304 | final DisassociateMemberAccountResult executeDisassociateMemberAccount(DisassociateMemberAccountRequest disassociateMemberAccountRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateMemberAccountRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | (super.beforeMarshalling(disassociateMemberAccountRequest)); |
1,102,075 | public static double computeNDCG(Adapter adapter) {<NEW_LINE>double sum = 0.;<NEW_LINE>int i = 0, positive = 0, tied = 0, totalpos = 0;<NEW_LINE>while (adapter.valid()) {<NEW_LINE>// positive or negative match?<NEW_LINE>do {<NEW_LINE>if (adapter.test()) {<NEW_LINE>++positive;<NEW_LINE>}<NEW_LINE>++tied;<NEW_LINE>++i;<N... | ) * positive / (double) tied; |
1,731,488 | public MLMethod crossvalidate(int k, boolean shuffle) {<NEW_LINE>KFoldCrossvalidation cross = new KFoldCrossvalidation(this.trainingDataset, k);<NEW_LINE>cross.process(shuffle);<NEW_LINE>int foldNumber = 0;<NEW_LINE>for (DataFold fold : cross.getFolds()) {<NEW_LINE>foldNumber++;<NEW_LINE>report.report(k, foldNumber, "F... | .getFolds().size(); |
1,171,389 | public void runSupport() {<NEW_LINE>try {<NEW_LINE>List<String> txts = dns_utils.getTXTRecords(host);<NEW_LINE>if (TRACE_DNS) {<NEW_LINE>System.out.println("Actual lookup: " + host + " -> " + txts);<NEW_LINE>}<NEW_LINE>synchronized (result) {<NEW_LINE>if (result[0] == null) {<NEW_LINE>result[1] = txts;<NEW_LINE>return;... | () == txts_cache.size(); |
321,678 | public OAuth2Authentication consumeAuthorizationCode(String code) throws InvalidGrantException {<NEW_LINE>performExpirationClean();<NEW_LINE>JdbcTemplate template = new JdbcTemplate(dataSource);<NEW_LINE>try {<NEW_LINE>TokenCode tokenCode = (TokenCode) template.queryForObject(SQL_SELECT_STATEMENT, rowMapper, code);<NEW... | throw new InvalidGrantException("Invalid authorization code: " + code); |
199,955 | protected void updateMaster(int maxWaitSeconds) throws Exception {<NEW_LINE>int port;<NEW_LINE>int tryTime = 0;<NEW_LINE>TConnection connection = TConnectionManager.getConnection(conf);<NEW_LINE>while (tryTime < maxWaitSeconds) {<NEW_LINE>String masterPodIp = k8sClientApp.getAngelMasterPodIp();<NEW_LINE>port = conf.get... | ), masterLocation.getPort()); |
563,639 | protected void addGuiElements() {<NEW_LINE>super.addGuiElements();<NEW_LINE>addRenderableWidget(new GuiInnerScreen(this, 45, 18, 104, 68).jeiCategory(tile));<NEW_LINE>addRenderableWidget(new GuiEnergyTab(this, tile.getEnergyContainer(), tile::getEnergyUsed));<NEW_LINE>addRenderableWidget(new GuiGasGauge(() -> tile.gasT... | 1, tile.getScaledProgress()); |
1,687,249 | public void verifyParameter(@NotNull final PsiParameter psiParameter, @NotNull final ProblemsHolder holder) {<NEW_LINE>final PsiTypeElement typeElement = psiParameter.getTypeElement();<NEW_LINE>final String typeElementText = null != typeElement <MASK><NEW_LINE>boolean isVal = isPossibleVal(typeElementText) && isVal(res... | ? typeElement.getText() : null; |
581,940 | private void loadInstanceIdByZK() {<NEW_LINE>int execCount = 1;<NEW_LINE>while (true) {<NEW_LINE>if (execCount > this.retryCount) {<NEW_LINE>throw new RuntimeException("instanceId allocate error when using zk, reason: no available instanceId found");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>List<String> nodeList = client.get... | (1 << instanceIdBits) - 1); |
83,757 | private static RawReference create1(Element xml) throws IllegalArgumentException {<NEW_LINE>if (!REF_NAME.equals(xml.getLocalName()) || !REFS_NS.equals(xml.getNamespaceURI())) {<NEW_LINE>// NOI18N<NEW_LINE>throw new IllegalArgumentException("bad element name: " + xml);<NEW_LINE>}<NEW_LINE>// NOI18N<NEW_LINE>NodeList nl... | String[nl.getLength()]; |
1,346,497 | protected RelDataType deriveRowType() {<NEW_LINE>final RelDataTypeFactory typeFactory = getCluster().getTypeFactory();<NEW_LINE>List<RelDataTypeFieldImpl> columns = new ArrayList<>();<NEW_LINE>columns.add(new RelDataTypeFieldImpl("TABLE_SCHEMA", 0, typeFactory.<MASK><NEW_LINE>columns.add(new RelDataTypeFieldImpl("TABLE... | createSqlType(SqlTypeName.VARCHAR))); |
192,361 | public static CdmPurposeReference fromData(final CdmCorpusContext ctx, final JsonNode obj) {<NEW_LINE>if (obj == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>boolean simpleReference = true;<NEW_LINE>Boolean optional = null;<NEW_LINE>final Object purpose;<NEW_LINE>List<CdmTraitReference> appliedTraits = null;<NEW_L... | , obj.get("purposeReference")); |
32,561 | protected void constructDom() {<NEW_LINE>String labelId = DOM.createUniqueId();<NEW_LINE>addStyleName(CLASSNAME);<NEW_LINE>String treeItemId = DOM.createUniqueId();<NEW_LINE>getElement().setId(treeItemId);<NEW_LINE>Roles.getTreeitemRole().set(getElement());<NEW_LINE>Roles.getTreeitemRole().setAriaSelectedState(getEleme... | DOM.appendChild(wrapper, nodeCaptionSpan); |
1,580,412 | public OBinaryResponse executeSBTGet(OSBTGetRequest request) {<NEW_LINE>final OSBTreeCollectionManager sbTreeCollectionManager = connection.getDatabase().getSbTreeCollectionManager();<NEW_LINE>final OSBTreeBonsai<OIdentifiable, Integer> tree = sbTreeCollectionManager.loadSBTree(request.getCollectionPointer());<NEW_LINE... | result = tree.get(key); |
276,987 | public void insertBitmap(final BufferedImage bitmap, final int x, final int y, final int transRGB) {<NEW_LINE>final int heightSrc = bitmap.getHeight();<NEW_LINE>final <MASK><NEW_LINE>final int heightTgt = this.height;<NEW_LINE>final int widthTgt = this.width;<NEW_LINE>int rgb;<NEW_LINE>for (int i = 0; i < heightSrc; i+... | int widthSrc = bitmap.getWidth(); |
125,619 | private Value convertOnWrite(Object proppertyVal, EmbeddedType embeddedType, String fieldName, TypeInformation typeInformation) {<NEW_LINE>Object val = proppertyVal;<NEW_LINE>Function<Object, Value> writeConverter = this::convertOnWriteSingle;<NEW_LINE>if (proppertyVal != null) {<NEW_LINE>switch(embeddedType) {<NEW_LIN... | TypeInformation) typeInformation.getMapValueType()); |
1,440,543 | public String toJsonString() {<NEW_LINE>Map<String, Object> items = new HashMap<String, Object>();<NEW_LINE>items.put("msgtype", "link");<NEW_LINE>Map<String, String> linkContent = new HashMap<String, String>();<NEW_LINE>if (StringUtils.isBlank(title)) {<NEW_LINE>throw new IllegalArgumentException("title should not be ... | linkContent.put("messageUrl", messageUrl); |
1,592,764 | public Request<ListResourceTagsRequest> marshall(ListResourceTagsRequest listResourceTagsRequest) {<NEW_LINE>if (listResourceTagsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListResourceTagsRequest)");<NEW_LINE>}<NEW_LINE>Request<ListResourceTagsRequest> request = new... | request.setHttpMethod(HttpMethodName.POST); |
212,739 | private boolean canExport(JFileChooser chooser) {<NEW_LINE>File file = chooser.getSelectedFile();<NEW_LINE>if (!file.getPath().endsWith(".gephi")) {<NEW_LINE>file = new File(file.getPath() + ".gephi");<NEW_LINE>chooser.setSelectedFile(file);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (!file.exists()) {<NEW_LINE>if (!file.cr... | { file.getPath() }); |
683,803 | protected void configureFilter(BeanDefinitionBuilder builder, Element element, ParserContext parserContext, String filterAttribute, String patternPrefix, String propertyName) {<NEW_LINE>String filter = element.getAttribute(filterAttribute);<NEW_LINE>String filterExpression = element.getAttribute(filterAttribute + "-exp... | int count = hasFilter ? 1 : 0; |
452,469 | @Consumes(MediaType.MULTIPART_FORM_DATA)<NEW_LINE>public void createOrUpdateRealmLocalizationTextsFromFile(@PathParam("locale") String locale, MultipartFormDataInput input) {<NEW_LINE>this.auth.realm().requireManageRealm();<NEW_LINE>Map<String, List<InputPart><MASK><NEW_LINE>if (!formDataMap.containsKey("file")) {<NEW_... | > formDataMap = input.getFormDataMap(); |
1,014,844 | public void createAndAddForHuParentChanged(@NonNull final I_M_HU hu, @Nullable final I_M_HU_Item parentHUItemOld) {<NEW_LINE>final IHUStatusBL huStatusBL = Services.get(IHUStatusBL.class);<NEW_LINE>if (!huStatusBL.isPhysicalHU(hu)) {<NEW_LINE>logger.info("Param hu has status={}; nothing to do; hu={}", hu.getHUStatus(),... | null, "oldTopLevelHuId returned by hu.getM_HU_ID() has to be >0, but is {}; hu={}", oldTopLevelHuId, hu); |
93,374 | public void attachValidate(EventType parentEventType, ViewForgeEnv viewForgeEnv) throws ViewParameterException {<NEW_LINE>criteriaExpressions = ViewForgeSupport.validate(getViewName(), parentEventType, viewParameters, false, viewForgeEnv);<NEW_LINE>if (criteriaExpressions.length == 0) {<NEW_LINE><MASK><NEW_LINE>throw n... | String errorMessage = getViewName() + " view requires a one or more expressions provinding unique values as parameters"; |
1,049,899 | public void parse(InputSource source) throws TransformerException {<NEW_LINE>try {<NEW_LINE>// I guess I should use JAXP factory here... when it's legal.<NEW_LINE>// org.apache.xerces.parsers.DOMParser parser<NEW_LINE>// = new org.apache.xerces.parsers.DOMParser();<NEW_LINE>DocumentBuilderFactory builderFactory = Docum... | DocumentBuilder parser = builderFactory.newDocumentBuilder(); |
1,498,562 | public Request<GetSMSAttributesRequest> marshall(GetSMSAttributesRequest getSMSAttributesRequest) {<NEW_LINE>if (getSMSAttributesRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(GetSMSAttributesRequest)");<NEW_LINE>}<NEW_LINE>Request<GetSMSAttributesRequest> request = new... | request.addParameter("Action", "GetSMSAttributes"); |
1,026,452 | // private methods<NEW_LINE>private void prepareForAdd(long index, Object value, int currentArraySize) {<NEW_LINE>int intIndex = (int) index;<NEW_LINE>rangeCheck(index, size);<NEW_LINE>// check types<NEW_LINE>Type elemType;<NEW_LINE>if (index >= this.minSize) {<NEW_LINE>elemType <MASK><NEW_LINE>} else {<NEW_LINE>elemTy... | = this.tupleType.getRestType(); |
1,730,506 | protected FieldValueInfo completeField(ExecutionContext executionContext, ExecutionStrategyParameters parameters, FetchedValue fetchedValue) {<NEW_LINE>Field field = parameters.getField().getSingleField();<NEW_LINE>GraphQLObjectType parentType = (GraphQLObjectType) parameters.getExecutionStepInfo().getUnwrappedNonNullT... | executionResultFuture.whenComplete(ctxCompleteField::onCompleted); |
321,803 | private void addProducer(AfterBeanDiscovery event, RequiredProducer required) {<NEW_LINE>String name = required.internal.name();<NEW_LINE>Type type = required.type;<NEW_LINE>InjectionProvider.InjectionType<?> found = findInjectionProvider(type).orElseThrow(() -> new DeploymentException("Could not find valid injection p... | name, required, found))); |
606,518 | public static Collection<Tile> parseClusterRecordsFromTileMetrics(final Collection<File> tileMetricsOutFiles, final Map<Integer, File> phasingMetricsFiles, final ReadStructure readStructure) {<NEW_LINE>final Map<Integer, Map<Integer, Collection<TilePhasingValue>>> phasingValues = getTilePhasingValues(phasingMetricsFile... | >> locationToMetricsMap = partitionTileMetricsByLocation(tileMetrics); |
30,630 | // Implementations for MemberVisitor.<NEW_LINE>public void visitAnyMember(Clazz clazz, Member member) {<NEW_LINE>// Special cases: <clinit> and <init> are always kept unchanged.<NEW_LINE>// We can ignore them here.<NEW_LINE>String name = member.getName(clazz);<NEW_LINE>if (ClassUtil.isInitializer(name)) {<NEW_LINE>retu... | newName = MemberObfuscator.newMemberName(member); |
1,607,801 | public QueryParameterSetter create(ParameterBinding binding, DeclaredQuery declaredQuery) {<NEW_LINE>int parameterIndex = binding.getRequiredPosition() - 1;<NEW_LINE>//<NEW_LINE>//<NEW_LINE>Assert.//<NEW_LINE>isTrue(parameterIndex < expressions.size(), () -> //<NEW_LINE>String.//<NEW_LINE>format(//<NEW_LINE>"At least %... | , expressions.size())); |
449,071 | protected void updateUI() {<NEW_LINE>findViewById(R.id.ResetCountry).setEnabled(!Algorithms.isEmpty(region));<NEW_LINE>if (Algorithms.isEmpty(region)) {<NEW_LINE>countryButton.setText(R.string.ChooseCountry);<NEW_LINE>} else {<NEW_LINE>String rnname = getRegionName();<NEW_LINE>countryButton.setText(rnname);<NEW_LINE>}<... | View.GONE : View.VISIBLE); |
681,300 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String dataControllerName) {<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>}<NEW_LINE>i... | )).readOnly())); |
1,254,449 | public boolean contains(java.awt.Point p) {<NEW_LINE>// other relations which are selected are prioritized<NEW_LINE>for (GridElement other : HandlerElementMap.getHandlerForElement(this).getDrawPanel().getGridElements()) {<NEW_LINE>Selector s = HandlerElementMap.getHandlerForElement(other).getDrawPanel().getSelector();<... | xDist, p.y + yDist); |
1,721,637 | public List<MergeRange> build() {<NEW_LINE>for (MergeRange range : myIterable) {<NEW_LINE>int start1 = range.start1;<NEW_LINE>int start2 = range.start2;<NEW_LINE>int start3 = range.start3;<NEW_LINE>int end1 = range.end1;<NEW_LINE>int end2 = range.end2;<NEW_LINE>int end3 = range.end3;<NEW_LINE>if (isLeadingTrailingSpace... | trimEnd(myText2, start2, end2); |
1,206,273 | public boolean visit(EnhancedForStatement node) {<NEW_LINE>if (!hasChildrenChanges(node)) {<NEW_LINE>return doVisitUnchangedChildren(node);<NEW_LINE>}<NEW_LINE>rewriteRequiredNode(node, EnhancedForStatement.PARAMETER_PROPERTY);<NEW_LINE>int pos = <MASK><NEW_LINE>RewriteEvent bodyEvent = getEvent(node, EnhancedForStatem... | rewriteRequiredNode(node, EnhancedForStatement.EXPRESSION_PROPERTY); |
1,557,502 | public synchronized Restlet createInboundRoot() {<NEW_LINE>Router router = new Router(getContext());<NEW_LINE>getContext().getAttributes().put(ClientManager.class.getName(), OAuth2Sample.getClientManager());<NEW_LINE>getContext().getAttributes().put(TokenManager.class.getName(), OAuth2Sample.getTokenManager());<NEW_LIN... | router.attach("/token", clientAuthenticator); |
1,677,468 | boolean computeRectifyH(double f1, double f2, DMatrixRMaj P2, DMatrixRMaj H) {<NEW_LINE>estimatePlaneInf.setCamera1(f1, f1, 0, 0, 0);<NEW_LINE>estimatePlaneInf.setCamera2(f2, f2, 0, 0, 0);<NEW_LINE>if (!estimatePlaneInf.estimatePlaneAtInfinity(P2, planeInf))<NEW_LINE>return false;<NEW_LINE>// TODO add a cost for distan... | planeInf.z, 1, H); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.