idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
776,700 | private void injectParamCollector(Element element, Map<String, Integer> paramsType, Map<String, Autowired> injectConfig) {<NEW_LINE>for (Element field : element.getEnclosedElements()) {<NEW_LINE>if (field.getKind().isField() && field.getAnnotation(Autowired.class) != null && !types.isSubtype(field.asType(), iProvider))... | TypeElement) element).getSuperclass(); |
1,588,265 | private void actionAcquireWakeLock() {<NEW_LINE>if (mWakeLock != null) {<NEW_LINE>Logger.logDebug(LOG_TAG, "Ignoring acquiring WakeLocks since they are already held");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Logger.logDebug(LOG_TAG, "Acquiring WakeLocks");<NEW_LINE>PowerManager pm = (PowerManager) getSystemService(Context... | ).getSystemService(Context.WIFI_SERVICE); |
219,640 | private Process launchMixAudit(File folder, List<String> mixAuditArgs) throws AnalysisException {<NEW_LINE>if (!folder.isDirectory()) {<NEW_LINE>throw new AnalysisException(String.format("%s should have been a directory.", folder.getAbsolutePath()));<NEW_LINE>}<NEW_LINE>final List<String> args = new ArrayList<>();<NEW_... | AnalysisException("mix_audit initialization failure; this error can be ignored if you are not analyzing Elixir. " + "Otherwise ensure that mix_audit is installed and the path to mix_audit is correctly specified", ioe); |
884,711 | final GetUsageForecastResult executeGetUsageForecast(GetUsageForecastRequest getUsageForecastRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getUsageForecastRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
839,699 | public void initialize() {<NEW_LINE>createNotificationChannels();<NEW_LINE>this.subscriptions.add(this.notifications.onBackpressureBuffer().filter(PushNotificationEnvelope::isErroredPledge).observeOn(Schedulers.newThread()).subscribe(this::displayNotificationFromErroredPledge));<NEW_LINE>this.subscriptions.add(this.not... | first, envelopeAndUpdate.second))); |
1,636,490 | final ImportCertificateResult executeImportCertificate(ImportCertificateRequest importCertificateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(importCertificateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
592,203 | protected UrlRequest.Builder buildRequestBuilder(DataSpec dataSpec) throws IOException {<NEW_LINE>UrlRequest.Builder requestBuilder = cronetEngine.newUrlRequestBuilder(dataSpec.uri.toString(), urlRequestCallback, executor).setPriority(requestPriority).allowDirectExecutor();<NEW_LINE>// Set the headers.<NEW_LINE>Map<Str... | putAll(requestProperties.getSnapshot()); |
1,006,306 | public static VersionCompatibility fromVersionList(List<String> versions) {<NEW_LINE>Node root = new Node();<NEW_LINE>for (String spec : versions) {<NEW_LINE>String[] parts = spec.split("\\.");<NEW_LINE>if (parts.length < 1 || parts.length > 3)<NEW_LINE>throw new IllegalArgumentException("Each spec must have 1 to 3 par... | IllegalArgumentException("Duplicate element '" + spec + "'"); |
1,110,076 | static void validate(Message message, DataDictionary sessionDataDictionary, DataDictionary applicationDataDictionary) throws IncorrectTagValue, FieldNotFound, IncorrectDataFormat {<NEW_LINE>final boolean bodyOnly = sessionDataDictionary == null;<NEW_LINE>if (isVersionSpecified(sessionDataDictionary) && !sessionDataDict... | ).getString(MsgType.FIELD); |
1,673,586 | final CreateCloudFormationChangeSetResult executeCreateCloudFormationChangeSet(CreateCloudFormationChangeSetRequest createCloudFormationChangeSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createCloudFormationChangeSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,118,683 | public void marshall(StepExecution stepExecution, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (stepExecution == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(stepExecution.getStepName(), STEPNAME_BINDING... | stepExecution.getExecutionEndTime(), EXECUTIONENDTIME_BINDING); |
1,042,394 | public ManualSyncSubmissionResult synchronousResetConnection(final UUID connectionId) {<NEW_LINE><MASK><NEW_LINE>if (resetResult.getFailingReason().isPresent()) {<NEW_LINE>return resetResult;<NEW_LINE>}<NEW_LINE>final ConnectionManagerWorkflow connectionManagerWorkflow = getExistingWorkflow(ConnectionManagerWorkflow.cl... | final ManualSyncSubmissionResult resetResult = resetConnection(connectionId); |
932,153 | public void transform(PictureHiBD src, PictureHiBD dst) {<NEW_LINE>int[] y = src.getPlaneData(0);<NEW_LINE>int[] u = src.getPlaneData(1);<NEW_LINE>int[] v = src.getPlaneData(2);<NEW_LINE>int[] <MASK><NEW_LINE>int offLuma = 0, offChroma = 0;<NEW_LINE>for (int i = 0; i < dst.getHeight(); i++) {<NEW_LINE>for (int j = 0; j... | data = dst.getPlaneData(0); |
69,238 | public static QueryHBaseHaDBResponse unmarshall(QueryHBaseHaDBResponse queryHBaseHaDBResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryHBaseHaDBResponse.setRequestId(_ctx.stringValue("QueryHBaseHaDBResponse.RequestId"));<NEW_LINE>queryHBaseHaDBResponse.setTotalCount(_ctx.longValue("QueryHBaseHaDBResponse.TotalCount")... | + "].HaSlbConnList[" + j + "].SlbConnAddr")); |
877,985 | protected synchronized void processElectricityProducerSolarAssetAttributeEvent(AttributeEvent attributeEvent) {<NEW_LINE>if (ElectricityProducerSolarAsset.POWER.getName().equals(attributeEvent.getAttributeName()) || ElectricityProducerSolarAsset.POWER_FORECAST.getName().equals(attributeEvent.getAttributeName())) {<NEW_... | LOG.info("Processing producer solar asset attribute event: " + attributeEvent); |
201,740 | private boolean parseUrl(SearchPhrase phrase, SearchResultMatcher resultMatcher) {<NEW_LINE>String text = phrase.getUnknownSearchPhrase();<NEW_LINE>GeoParsedPoint pnt = GeoPointParserUtil.parse(text);<NEW_LINE>if (pnt != null && pnt.isGeoPoint() && phrase.isSearchTypeAllowed(ObjectType.LOCATION)) {<NEW_LINE>SearchResul... | ), pnt.getLongitude()); |
207,204 | private void writeMetadata() {<NEW_LINE>for (IMPLICIT_STRING_COLUMN column : IMPLICIT_STRING_COLUMN.values()) {<NEW_LINE>String value = stringMetadata.get(column.getFieldName());<NEW_LINE>int index = column.ordinal();<NEW_LINE>if (value == null) {<NEW_LINE>metadataColumnWriters.get(index).setNull();<NEW_LINE>} else {<N... | (index).setString(value); |
1,719,663 | // auto-generated, see spoon.generating.CloneVisitorGenerator<NEW_LINE>@java.lang.Override<NEW_LINE>public <T, E extends spoon.reflect.code.CtExpression<?>> void visitCtExecutableReferenceExpression(final spoon.reflect.code.CtExecutableReferenceExpression<T, E> expression) {<NEW_LINE>spoon.reflect.code.CtExecutableRefe... | cloneHelper.tailor(expression, aCtExecutableReferenceExpression); |
1,634,790 | public void _editWebAsset(ActionRequest req, ActionResponse res, PortletConfig config, ActionForm form, User user) throws Exception {<NEW_LINE>// calls edit method from super class that returns parent folder<NEW_LINE>super._editWebAsset(req, res, config, form, user, WebKeys.CONTAINER_EDIT);<NEW_LINE>// setting parent f... | findParentHost(container, user, false); |
201,772 | private void updateConfigurationProperty(OAtomicOperation atomicOperation) {<NEW_LINE>final List<byte[]> entries = new ArrayList<>(8);<NEW_LINE>int totalSize = 0;<NEW_LINE>final byte[] contextSize = new byte[OIntegerSerializer.INT_SIZE];<NEW_LINE>totalSize += contextSize.length;<NEW_LINE>entries.add(contextSize);<NEW_L... | atomicOperation, CONFIGURATION_PROPERTY, property, CONFIGURATION_PROPERTY_VERSION); |
129,729 | public BerkeleyJETx beginTransaction(final BaseTransactionConfig txCfg) throws BackendException {<NEW_LINE>try {<NEW_LINE>Transaction tx = null;<NEW_LINE>Configuration effectiveCfg = new MergedConfiguration(txCfg.<MASK><NEW_LINE>if (transactional) {<NEW_LINE>TransactionConfig txnConfig = new TransactionConfig();<NEW_LI... | getCustomOptions(), getStorageConfig()); |
1,279,980 | public void actionPerformed(ActionEvent e) {<NEW_LINE>ExporterUI exporterUI = exportController.<MASK><NEW_LINE>if (exporterUI != null) {<NEW_LINE>JPanel panel = exporterUI.getPanel();<NEW_LINE>exporterUI.setup(selectedExporter);<NEW_LINE>DialogDescriptor dd = new DialogDescriptor(panel, NbBundle.getMessage(VectorialFil... | getExportController().getUI(selectedExporter); |
102,073 | final DescribeConfigurationAggregatorSourcesStatusResult executeDescribeConfigurationAggregatorSourcesStatus(DescribeConfigurationAggregatorSourcesStatusRequest describeConfigurationAggregatorSourcesStatusRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeConfigurationAggregatorSourc... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
880,721 | public static void square(int len, int[] x, int xOff, int[] zz, int zzOff) {<NEW_LINE>int extLen = len << 1;<NEW_LINE>int c = 0;<NEW_LINE>int j = len, k = extLen;<NEW_LINE>do {<NEW_LINE>long xVal = (x[xOff + --j] & M);<NEW_LINE>long p = xVal * xVal;<NEW_LINE>zz[zzOff + --k] = (c << 31) | (int) (p >>> 33);<NEW_LINE>zz[z... | d += zz[zzPos] & M; |
1,742,656 | public void recompile() {<NEW_LINE>TIntIntIterator it = disposalAction.shaderPrograms.iterator();<NEW_LINE>while (it.hasNext()) {<NEW_LINE>it.advance();<NEW_LINE>GL20.<MASK><NEW_LINE>}<NEW_LINE>disposalAction.shaderPrograms.clear();<NEW_LINE>uniformLocationMap.clear();<NEW_LINE>bindMap.clear();<NEW_LINE>disposalAction.... | glDeleteProgram(it.value()); |
1,280,598 | public static ListMcubeMiniTasksResponse unmarshall(ListMcubeMiniTasksResponse listMcubeMiniTasksResponse, UnmarshallerContext _ctx) {<NEW_LINE>listMcubeMiniTasksResponse.setRequestId(_ctx.stringValue("ListMcubeMiniTasksResponse.RequestId"));<NEW_LINE>listMcubeMiniTasksResponse.setResultMessage(_ctx.stringValue("ListMc... | ("ListMcubeMiniTasksResponse.ListMiniTaskResult.MiniTaskList[" + i + "].GmtCreate")); |
555,620 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = new String[] { "sumb" };<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>// create window<NEW_LINE>String stmtTextCreate = namedWindow ? "@name('create') @public create window MyInfraSA#keepall as select theString as a, intPrimitive a... | new Object[] { 4 }); |
1,653,960 | public static String splitJVMParams(String line, boolean newLines) {<NEW_LINE>PropertySplitter ps = new PropertySplitter(line);<NEW_LINE>// NOI18N<NEW_LINE>ps.setSeparator(' ');<NEW_LINE><MASK><NEW_LINE>// NOI18N<NEW_LINE>String jvms = "";<NEW_LINE>while (s != null) {<NEW_LINE>if (s.startsWith("-") || /* #199411 */<NEW... | String s = ps.nextPair(); |
306,495 | private TreeNode convertClassDeclaration(ClassTree node, TreePath parent) {<NEW_LINE>TreePath path = getTreePath(parent, node);<NEW_LINE>TypeElement element = (TypeElement) getElement(path);<NEW_LINE>// javac defines all type declarations with JCClassDecl, so differentiate here<NEW_LINE>// to support our different decl... | clause, path, newNode, newElement); |
1,387,871 | private static Request prepareDeleteByQueryRequest(DeleteByQueryRequest deleteByQueryRequest, boolean waitForCompletion) throws IOException {<NEW_LINE>String endpoint = endpoint(deleteByQueryRequest.indices(), "_delete_by_query");<NEW_LINE>Request request = new Request(HttpPost.METHOD_NAME, endpoint);<NEW_LINE>Params p... | (createEntity(deleteByQueryRequest, REQUEST_BODY_CONTENT_TYPE)); |
1,395,362 | protected void process(RelationshipGroupRecord[] batch, BatchSender sender, CursorContext cursorContext) {<NEW_LINE>int groupStartIndex = 0;<NEW_LINE>for (int i = 0; i < batch.length; i++) {<NEW_LINE>RelationshipGroupRecord group = batch[i];<NEW_LINE>// The iterator over the groups will not produce real next pointers, ... | = store.nextId(cursorContext)); |
1,143,232 | public PCollection<Row> expand(PCollectionList<Row> inputs) {<NEW_LINE>checkArgument(inputs.size() == 2, "Wrong number of arguments to %s: %s", beamRelNode.getClass().getSimpleName(), inputs);<NEW_LINE>PCollection<Row> leftRows = inputs.get(0);<NEW_LINE>PCollection<Row> rightRows = inputs.get(1);<NEW_LINE>WindowFn left... | getType().getRowSchema()); |
1,002,643 | public void indent(final int sign) {<NEW_LINE>final JEditTextArea textArea = getTextArea();<NEW_LINE>final int startLine = textArea.getSelectionStartLine();<NEW_LINE>final int stopLine = textArea.getSelectionStopLine();<NEW_LINE>final int selectionStart = textArea.getSelectionStart();<NEW_LINE>final int selectionStop =... | 1, currentLine.indent + 1); |
1,825,956 | static protected int isSimpleAsFeature(/* const */<NEW_LINE>Geometry geometry, /* const */<NEW_LINE>SpatialReference spatialReference, boolean bForce, NonSimpleResult result, ProgressTracker progressTracker) {<NEW_LINE>if (result != null) {<NEW_LINE>result.m_reason = NonSimpleResult.Reason.NotDetermined;<NEW_LINE>resul... | setIsSimple(knownSimpleResult, tolerance, false); |
1,461,098 | protected void onPrepare(@NonNull MediaEncoderEngine.Controller controller, long maxLengthUs) {<NEW_LINE>MediaFormat format = MediaFormat.createVideoFormat(mConfig.mimeType, mConfig.width, mConfig.height);<NEW_LINE>// Failing to specify some of these can cause the MediaCodec configure() call to throw an<NEW_LINE>// unh... | setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, 1); |
157,945 | public static long readKeyValueSize(PageCursor cursor, boolean msbIsOffload) {<NEW_LINE><MASK><NEW_LINE>boolean hasTombstone = hasTombstone(firstByte);<NEW_LINE>boolean hasAdditionalKeySize = (firstByte & FLAG_ADDITIONAL_KEY_SIZE) != 0;<NEW_LINE>boolean hasValueSize = (firstByte & FLAG_HAS_VALUE_SIZE) != 0;<NEW_LINE>in... | byte firstByte = cursor.getByte(); |
1,415,784 | public void configure(ConfigurableProvider provider) {<NEW_LINE>provider.addAlgorithm("MessageDigest.BLAKE2S-256", PREFIX + "$Blake2s256");<NEW_LINE>provider.addAlgorithm("Alg.Alias.MessageDigest." + MiscObjectIdentifiers.id_blake2s256, "BLAKE2S-256");<NEW_LINE>provider.addAlgorithm("MessageDigest.BLAKE2S-224", PREFIX ... | "Alg.Alias.MessageDigest." + MiscObjectIdentifiers.id_blake2s128, "BLAKE2S-128"); |
737,581 | public DeleteBackendStorageResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteBackendStorageResult deleteBackendStorageResult = new DeleteBackendStorageResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentEleme... | JsonToken token = context.getCurrentToken(); |
1,137,482 | protected final synchronized // tzezula: should set CHANGE_EXPECTED flag on the sources.<NEW_LINE>void schedule(final Source source, final SchedulerEvent event) {<NEW_LINE>if (task != null) {<NEW_LINE>task.cancel();<NEW_LINE>}<NEW_LINE>task = null;<NEW_LINE>if (requestProcessor == null) {<NEW_LINE>requestProcessor = ne... | ).getCache(this.source); |
666,135 | public static void main(String[] args) {<NEW_LINE>JbootApplication.setBootArg("jboot.datasource.url", "jdbc:mysql://127.0.0.1:3306/jbootdemo");<NEW_LINE>JbootApplication.setBootArg("jboot.datasource.user", "root");<NEW_LINE>String modelPackage = "io.jboot.codegen.test";<NEW_LINE>String baseModelPackage = modelPackage +... | System.out.println("start generate..."); |
426,586 | public EC2AssociateRouteTableAction unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>EC2AssociateRouteTableAction eC2AssociateRouteTableAction = new EC2AssociateRouteTableAction();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentPar... | class).unmarshall(context)); |
493,135 | boolean yolov4(String model_config_path, String filename) {<NEW_LINE>// https://deeplearning4j.konduit.ai/<NEW_LINE>int height = 608;<NEW_LINE>int width = 608;<NEW_LINE>int channels = 3;<NEW_LINE>NativeImageLoader loader = new NativeImageLoader(height, width, channels);<NEW_LINE>INDArray BGRimage = null;<NEW_LINE>try {... | addIntegerArguments(0).build(); |
1,795,749 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Cards cards = new CardsImpl(controller.getLibrary().getTopCards(game, 7));<NEW_LINE>if (cards.isEmpty()) {<NEW_LINE>retur... | .addTarget(new TargetOpponentsCreaturePermanent()); |
783,535 | private List<Point2D> routeLoopEdge(Vertex2d start, Vertex2d end, double x) {<NEW_LINE>// going backwards<NEW_LINE>List<Point2D> articulations = new ArrayList<>();<NEW_LINE>int startRow = start.rowIndex;<NEW_LINE>int endRow = end.rowIndex;<NEW_LINE>if (startRow > endRow) {<NEW_LINE>// going upwards<NEW_LINE>endRow = st... | Point2D.Double(x, y1); |
930,789 | private void handleOverlappingFunctionsConflict(ListingMergePanel listingPanel, Address addr, int currentConflictOption, TaskMonitor monitor) throws CancelledException {<NEW_LINE>currentConflictType = FunctionConflictType.FUNCTION_OVERLAP_CONFLICT;<NEW_LINE>boolean askUser = (overlapChoice == ASK_USER) && currentConfli... | .get(addr), monitor); |
579,244 | protected void doRefresh() {<NEW_LINE>try {<NEW_LINE>reference.refresh(api);<NEW_LINE>} catch (NessieNotFoundException e) {<NEW_LINE>throw new RuntimeException("Failed to refresh as ref is no longer valid.", e);<NEW_LINE>}<NEW_LINE>String metadataLocation = null;<NEW_LINE>try {<NEW_LINE>Content content = api.getContent... | format("Nessie points to a non-Iceberg object for path: %s.", key))); |
717,150 | final UpdateResourceSetResult executeUpdateResourceSet(UpdateResourceSetRequest updateResourceSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateResourceSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Requ... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,823,238 | private void addPrefetchAttribute(Attribute attribute, SDField field, Schema schema) {<NEW_LINE>if (attribute.getPrefetchValue() == null) {<NEW_LINE>// Prefetch by default - unless any summary makes this dynamic<NEW_LINE>// Check if there is an implicit dynamic definition<NEW_LINE>SummaryField fieldSummaryField = field... | addSource(attribute.getName()); |
926,005 | public void greet(String name) {<NEW_LINE>logger.info("Will try to greet " + name + " ...");<NEW_LINE>HelloRequest request = HelloRequest.newBuilder().setName(name).build();<NEW_LINE>HelloReply response;<NEW_LINE>SpanBuilder spanBuilder = tracer.spanBuilder("client").setRecordEvents(true).setSampler(Samplers.alwaysSamp... | response = blockingStub.sayHello(request); |
463,062 | protected JXToolBar initToolbar(JXToolBar toolbar) {<NEW_LINE>resizeBtn = UISupport.createToolbarButton(UISupport.createImageIcon("/icon_resize.gif"));<NEW_LINE>resizeBtn.setCursor(new Cursor(Cursor.SE_RESIZE_CURSOR));<NEW_LINE>resizeBtn.setContentAreaFilled(false);<NEW_LINE>resizeBtn.setBorder(null);<NEW_LINE>resizeBt... | new CancelXPathAction()), true); |
1,752,491 | protected void onPostExecute(Void aVoid) {<NEW_LINE><MASK><NEW_LINE>if (location != null) {<NEW_LINE>Log.d(TAG, String.format("Determined location: latitude %f - longitude %f", location.getLatitude(), location.getLongitude()));<NEW_LINE>new GetCityNameTask().execute(String.valueOf(location.getLatitude()), String.valueO... | Location location = locationListener.getLocation(); |
1,512,737 | static Mapping gen(Node n1, Node n2, Mapping _mapping, Iso.Mappable mappable, EqualityTest nodeTest) {<NEW_LINE>Mapping mapping = _mapping;<NEW_LINE>Node n1m = mapping.map(n1);<NEW_LINE>if (n1m != null) {<NEW_LINE>// Already mapped<NEW_LINE>if (n1m.equals(n2))<NEW_LINE>// Exact equals after mapping t1 slot.<NEW_LINE>re... | Mapping(mapping, n1, n2); |
1,706,482 | public DetectorModelDefinition unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DetectorModelDefinition detectorModelDefinition = new DetectorModelDefinition();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken... | String currentParentElement = context.getCurrentParentElement(); |
577,099 | private void init() {<NEW_LINE>dataBlockCount = table.getDataBlockCount();<NEW_LINE>if (fields == null) {<NEW_LINE>fields = table.getColNames();<NEW_LINE>}<NEW_LINE>rowReader = table.getRowReader(true);<NEW_LINE>rowDataReader = new ObjectReader(rowReader, table.groupTable.getBlockSize() - GroupTable.POS_SIZE);<NEW_LINE... | Long) curPkey.getNormalFieldValue(1); |
908,713 | final ListOrganizationPortfolioAccessResult executeListOrganizationPortfolioAccess(ListOrganizationPortfolioAccessRequest listOrganizationPortfolioAccessRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listOrganizationPortfolioAccessRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ... | addHandlerContext(HandlerContextKey.SERVICE_ID, "Service Catalog"); |
883,267 | private void loadNode839() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.AuditHistoryRawModifyDeleteEventType_StartTime, new QualifiedName(0, "StartTime"), new LocalizedText("en", "StartTime"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Variant.... | .expanded(), true)); |
243,158 | // This seems way too complicated<NEW_LINE>private void registerNotifyCallback(CallbackContext callbackContext, UUID serviceUUID, UUID characteristicUUID) {<NEW_LINE>if (gatt == null) {<NEW_LINE>callbackContext.error("BluetoothGatt is null");<NEW_LINE>commandCompleted();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean suc... | callbackContext.error("Failed to set client characteristic notification for " + characteristicUUID); |
249,778 | public static void showCopyMoveConflictDialog(final Activity activity, final String fileName, final String destName, final boolean multiple, final Callback.a1<Integer> callback) {<NEW_LINE>final SearchOrCustomTextDialog.DialogOptions dopt = new SearchOrCustomTextDialog.DialogOptions();<NEW_LINE>baseConf(activity, dopt)... | (R.string.keep_both_all)); |
1,491,946 | public void marshall(ListDeviceFleetsRequest listDeviceFleetsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (listDeviceFleetsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(listDeviceFleet... | listDeviceFleetsRequest.getLastModifiedTimeAfter(), LASTMODIFIEDTIMEAFTER_BINDING); |
1,255,527 | public void allocate(Object value, long batchSize) {<NEW_LINE>long newBufferSize = 0;<NEW_LINE>long sizeOfBatch = arrayHeaderSize + batchSize;<NEW_LINE>if (batchSize > 0) {<NEW_LINE>newBufferSize = sizeOfBatch;<NEW_LINE>}<NEW_LINE>if ((batchSize > 0) && (bufferOffset != -1) && (newBufferSize < bytesToAllocate)) {<NEW_L... | bytesToAllocate, arrayHeaderSize, getAlignment()); |
46,442 | public void onCurrencyChange(final I_C_Payment payment) {<NEW_LINE>final int C_Invoice_ID = payment.getC_Invoice_ID();<NEW_LINE>final int C_Order_ID = payment.getC_Order_ID();<NEW_LINE>// Get Currency Info<NEW_LINE>final CurrencyId currencyId = CurrencyId.ofRepoIdOrNull(payment.getC_Currency_ID());<NEW_LINE>final Curre... | BigDecimal PayAmt = payment.getPayAmt(); |
1,368,162 | public void reload() {<NEW_LINE>Validate.notNull(item, "Cannot apply settings for a non-existing SlimefunItem");<NEW_LINE>Slimefun.getItemCfg().setDefaultValue(item.getId() + '.' + getKey(), getDefaultValue());<NEW_LINE>Object configuredValue = Slimefun.getItemCfg().getValue(item.getId() + '.' + getKey());<NEW_LINE>if ... | .getClass().getSimpleName(); |
1,433,783 | public void userEventTriggered(ChannelHandlerContext ctx, Object event) throws Exception {<NEW_LINE>if (event instanceof ConnectionEventType) {<NEW_LINE>ConnectionEventType eventType = (ConnectionEventType) event;<NEW_LINE>Channel channel = ctx.channel();<NEW_LINE>if (channel == null) {<NEW_LINE>logger.warn("channel nu... | parseRemoteAddress(ctx.channel()); |
1,614,178 | private boolean checkForCacheInvalidity(Path balaPath) {<NEW_LINE>Path nightlyFilePath = balaPath.resolve(ProjectDirConstants.NIGHTLY_BUILD);<NEW_LINE>// Check if the cached module was pulled from a nightly, if not return false<NEW_LINE>if (!Files.exists(nightlyFilePath)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>//... | set(Calendar.HOUR_OF_DAY, 0); |
760,906 | public static void manipulateKey(CommandType type, OutputStream outputStream, String outFormat, InputStream inputStream, String inFormat, String masterKeyUri, String credentialPath, int keyId) throws GeneralSecurityException, IOException {<NEW_LINE>KeysetManager manager = KeysetManager.withKeysetHandle(getKeysetHandle(... | manager = manager.delete(keyId); |
735,123 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_viewpagertab2);<NEW_LINE>setSupportActionBar((Toolbar) findViewById(R.id.toolbar));<NEW_LINE>ViewCompat.setElevation(findViewById(R.id.header), getResources().getDimension(R.dimen.... | findViewById(R.id.pager); |
605,837 | private void shutdown() {<NEW_LINE>logger.fine("AMX Startup Service: Shutting down AMX MBeans");<NEW_LINE>unloadAMXMBeans();<NEW_LINE>final ObjectName allAMXPattern = AMXUtil.newObjectName(AMXGlassfish.DEFAULT.amxJMXDomain(), "*");<NEW_LINE>final Set<ObjectName> remainingAMX = mMBeanServer.queryNames(allAMXPattern, nul... | .getInstance().deRegisterFeatures(); |
836,654 | public void marshall(Analysis analysis, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (analysis == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(analysis.getAnalysisId(), ANALYSISID_BINDING);<NEW_LINE>prot... | analysis.getArn(), ARN_BINDING); |
336,648 | public JsonRpcResponse response(final JsonRpcRequestContext requestContext) {<NEW_LINE>final Optional<PoWSolverInputs> solver = miner.getWorkDefinition();<NEW_LINE>if (solver.isPresent()) {<NEW_LINE>final <MASK><NEW_LINE>final byte[] dagSeed = DirectAcyclicGraphSeed.dagSeed(rawResult.getBlockNumber(), epochCalculator);... | PoWSolverInputs rawResult = solver.get(); |
1,531,171 | private static CrashlyticsReport.Session parseSession(@NonNull JsonReader jsonReader) throws IOException {<NEW_LINE>final CrashlyticsReport.Session.Builder builder = CrashlyticsReport.Session.builder();<NEW_LINE>jsonReader.beginObject();<NEW_LINE>while (jsonReader.hasNext()) {<NEW_LINE>String name = jsonReader.nextName... | setStartedAt(jsonReader.nextLong()); |
1,424,212 | public void mapPartition(Iterable<Tuple2<Integer, Integer>> values, Collector<Tuple3<Integer, Integer, Integer>> out) throws Exception {<NEW_LINE>int numPartitions = getRuntimeContext().getNumberOfParallelSubtasks();<NEW_LINE>List<Tuple2<Integer, Integer>> itemCounts = new ArrayList<>();<NEW_LINE>for (Tuple2<Integer, I... | > target = queue.poll(); |
868,161 | public boolean processReceivedPacket(VelbusDevice device, VelbusPacket packet) {<NEW_LINE>VelbusPacket.InboundCommand packetCommand = VelbusPacket.InboundCommand.fromCode(packet.getCommand());<NEW_LINE>if (packetCommand == VelbusPacket.InboundCommand.BLIND_STATUS) {<NEW_LINE>// Extract channel info<NEW_LINE>int channel... | packet.getByte(1) & 0xFF; |
240,147 | private static CoocurranceMatrices updateCooccurrenceMatrices(CoocurranceMatrices matrices, final SimpleImage ip, final SimpleImage bpMask, final int xx, final int yy, final int ww, final int hh, final int nBins, double minValue, double maxValue, final int d) {<NEW_LINE>// Create matrices if necessary<NEW_LINE>if (matr... | y, minValue, binDepth, nBins); |
296,221 | private Mono<Response<DeleteOperationResultInner>> deleteWithResponseAsync(String resourceGroupName, String profileName, 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."));<N... | error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); |
869,190 | private void initSelectionToolbar() {<NEW_LINE>selectionToolbar = findViewById(R.id.library_selection_toolbar);<NEW_LINE>selectionToolbar.getMenu().clear();<NEW_LINE>selectionToolbar.inflateMenu(R.menu.library_selection_menu);<NEW_LINE>Helper.tryShowMenuIcons(this, selectionToolbar.getMenu());<NEW_LINE>editNameMenu = s... | findItem(R.id.action_share); |
87,761 | private static int scanForSemicolon(Document doc, int[] offset, int start, int end) throws BadLocationException {<NEW_LINE>TokenHierarchy<Document> th = doc != null ? TokenHierarchy.get(doc) : null;<NEW_LINE>List<TokenSequence<?>> embeddedSequences = th != null ? th.embeddedTokenSequences(offset[0], false) : null;<NEW_... | size() - 1) : null; |
383,212 | public void close() {<NEW_LINE>if (closed) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>closed = true;<NEW_LINE>probe = null;<NEW_LINE>// In case of early termination (before operator is finished) release partition consumption to avoid a deadlock<NEW_LINE>if (partitionedConsumption == null) {<NEW_LINE>partitionedConsumption ... | .ifPresent(LookupSourceProvider::close)); |
1,693,321 | public boolean add(@ParametricNullness E object) {<NEW_LINE>if (needsAllocArrays()) {<NEW_LINE>allocArrays();<NEW_LINE>}<NEW_LINE>Set<E> delegate = delegateOrNull();<NEW_LINE>if (delegate != null) {<NEW_LINE>return delegate.add(object);<NEW_LINE>}<NEW_LINE>int[] entries = requireEntries();<NEW_LINE>@Nullable<NEW_LINE>O... | CompactHashing.getHashPrefix(hash, mask); |
1,369,302 | public void process() {<NEW_LINE>JMeterContext context = getThreadContext();<NEW_LINE>Sampler sam = context.getCurrentSampler();<NEW_LINE><MASK><NEW_LINE>HTTPSamplerBase sampler;<NEW_LINE>HTTPSampleResult result;<NEW_LINE>if (!(sam instanceof HTTPSamplerBase) || !(res instanceof HTTPSampleResult)) {<NEW_LINE>log.info("... | SampleResult res = context.getPreviousResult(); |
295,765 | private long visitDateTimeConstructor() {<NEW_LINE>DateFormat format = new SimpleDateFormat("EEE MMM dd yyyy HH:mm:ss z", Locale.ENGLISH);<NEW_LINE>verifyToken(JsonTokenType.LEFT_PAREN);<NEW_LINE>JsonToken token = popToken();<NEW_LINE>if (token.getType() == JsonTokenType.RIGHT_PAREN) {<NEW_LINE>return <MASK><NEW_LINE>}... | new Date().getTime(); |
666,740 | public static TrifocalTensor createTrifocal(Se3_F64 P2, Se3_F64 P3, @Nullable TrifocalTensor ret) {<NEW_LINE>if (ret == null)<NEW_LINE>ret = new TrifocalTensor();<NEW_LINE>DMatrixRMaj R2 = P2.getR();<NEW_LINE>DMatrixRMaj R3 = P3.getR();<NEW_LINE>Vector3D_F64 T2 = P2.getT();<NEW_LINE>Vector3D_F64 T3 = P3.getT();<NEW_LIN... | R3.unsafe_get(j, col); |
470,335 | private PartialPath deleteOneTimeseriesUpdateStatisticsAndDropTrigger(PartialPath path) throws MetadataException, IOException {<NEW_LINE>Pair<PartialPath, IMeasurementMNode> <MASK><NEW_LINE>IMeasurementMNode measurementMNode = pair.right;<NEW_LINE>removeFromTagInvertedIndex(measurementMNode);<NEW_LINE>PartialPath stora... | pair = mtree.deleteTimeseriesAndReturnEmptyStorageGroup(path); |
1,590,741 | private static List<PositionRegion> collectRegions(Document doc, int startPos, int endPos) throws BadLocationException {<NEW_LINE>final GuardedDocument gdoc = (doc instanceof GuardedDocument) ? (GuardedDocument) doc : null;<NEW_LINE>int pos = startPos;<NEW_LINE>if (gdoc != null) {<NEW_LINE>pos = gdoc.getGuardedBlockCha... | getGuardedBlockChain().adjustToBlockEnd(pos); |
988,551 | public String createXmlRepresentation(HttpResponse response) {<NEW_LINE>try {<NEW_LINE>if (response == null || response.getContentAsString() == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String content = response.getContentAsString().trim();<NEW_LINE>if (!StringUtils.hasContent(content)) {<NEW_LINE>return null;<... | null ? originalUri : makeNamespaceUriFrom(url); |
1,337,893 | public void run() {<NEW_LINE>// NOI18N<NEW_LINE>ProgressHandle progress = getProgressHandle();<NEW_LINE>JComponent bar = ProgressHandleFactory.createProgressComponent(progress);<NEW_LINE>// NOI18N<NEW_LINE>stopButton = new JButton(org.openide.util.NbBundle.getMessage(WizardStepProgressSupport.class, "BK2022"));<NEW_LIN... | .setLayout(new BorderLayout()); |
1,038,469 | public void train(ClassificationDataSet dataSet, boolean parallel) {<NEW_LINE>if (dataSet.getNumCategoricalVars() != 0)<NEW_LINE>throw new FailedToFitException("KNN requires vector data only");<NEW_LINE>mode = Mode.CLASSIFICATION;<NEW_LINE>this.predicting = dataSet.getPredicting();<NEW_LINE>List<VecPaired<Vec, Double>>... | >(dataSet.size()); |
57,690 | public static boolean downloadFile(HttpServletResponse response, File file) {<NEW_LINE>if (file == null || !file.exists()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean result = true;<NEW_LINE>response.reset();<NEW_LINE>response.addHeader("Content-Disposition", "attachment;filename=" + file.getName());<NEW_LINE>... | BufferedInputStream(new FileInputStream(file)); |
922,490 | final DeleteDomainResult executeDeleteDomain(DeleteDomainRequest deleteDomainRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteDomainRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | false), new DeleteDomainResultJsonUnmarshaller()); |
503,710 | private static JPanel createNotificationPanel(final URL url) {<NEW_LINE>JPanel panel = new JPanel();<NEW_LINE>// NOI18N<NEW_LINE>JLabel msgLabel = new JLabel("<html>" + NbBundle.getMessage(JiraUpdater.class, "MSG_PROJECT_NEEDS_JIRA"));<NEW_LINE>JButton linkButton = new org.netbeans.modules<MASK><NEW_LINE>// NOI18N<NEW_... | .bugtracking.commons.LinkButton(); |
1,057,686 | private TransformationStatus transformWithRegex(TransformWork work) throws IOException, ValidationException {<NEW_LINE>// Optimize by only visiting files within rootPath<NEW_LINE>Path rootPath = work.getCheckoutDir().resolve(getRoot(before)).normalize();<NEW_LINE>if (!Files.isDirectory(rootPath)) {<NEW_LINE>return Tran... | noop("Transformation '" + this + "' was a no-op because it didn't match any file"); |
705,066 | public static void modelBake(ModelBakeEvent evt) {<NEW_LINE>IELogger.logger.debug("Baking models");<NEW_LINE>for (Entry<ModelWithTransforms, UnbakedModel> unbaked : unbakedModels.entrySet()) {<NEW_LINE>ModelRequest conf = unbaked.getKey().model;<NEW_LINE>ModelState state;<NEW_LINE>if (unbaked.getKey().transforms.isEmpt... | .transforms), conf.uvLock); |
978,591 | final DescribeAccountModificationsResult executeDescribeAccountModifications(DescribeAccountModificationsRequest describeAccountModificationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAccountModificationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,273,168 | protected void decompilerActionPerformed(DecompilerActionContext context) {<NEW_LINE>PluginTool tool = context.getTool();<NEW_LINE>GraphDisplayBroker service = <MASK><NEW_LINE>if (service == null) {<NEW_LINE>Msg.showError(this, tool.getToolFrame(), "AST Graph Failed", "Graph consumer not found: Please add a graph consu... | tool.getService(GraphDisplayBroker.class); |
437,199 | public ListPricingPlansFilter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListPricingPlansFilter listPricingPlansFilter = new ListPricingPlansFilter();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken tok... | String currentParentElement = context.getCurrentParentElement(); |
1,141,105 | protected ProcessEngine lookupProcessEngine(BeanManager beanManager) {<NEW_LINE>ServiceLoader<ProcessEngineLookup> processEngineServiceLoader = ServiceLoader.load(ProcessEngineLookup.class);<NEW_LINE>Iterator<ProcessEngineLookup<MASK><NEW_LINE>List<ProcessEngineLookup> discoveredLookups = new ArrayList<>();<NEW_LINE>wh... | > serviceIterator = processEngineServiceLoader.iterator(); |
1,722,541 | public <W, X> java.util.List<X> asList(W e) {<NEW_LINE>return new AbstractList<X>() {<NEW_LINE><NEW_LINE>T element = castTarget(e);<NEW_LINE><NEW_LINE>boolean hasValue = SingleHandler.this.getValue(element) != null;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int size() {<NEW_LINE>return hasValue ? 1 : 0;<NEW_LINE>}<N... | index + ", Size: " + size()); |
1,342,533 | public Polygon createEllipse() {<NEW_LINE>Envelope env = dim.getEnvelope();<NEW_LINE>double xRadius = env.getWidth() / 2.0;<NEW_LINE>double yRadius = env.getHeight() / 2.0;<NEW_LINE>double centreX = env.getMinX() + xRadius;<NEW_LINE>double centreY = env.getMinY() + yRadius;<NEW_LINE>Coordinate[] pts = new Coordinate[nP... | poly = geomFact.createPolygon(ring); |
188,833 | public ModelAndView confirmRegistration(final HttpServletRequest request, final ModelMap model, @RequestParam("token") final String token) throws UnsupportedEncodingException {<NEW_LINE>Locale locale = request.getLocale();<NEW_LINE>model.addAttribute("lang", locale.getLanguage());<NEW_LINE>final String result = userSer... | model.addAttribute("token", token); |
958,100 | protected JPanel materialPanel(Material.Type type, String materialString, String finishString, String partName) {<NEW_LINE>JPanel subPanel = new JPanel(new MigLayout());<NEW_LINE>JLabel label = new JLabel(materialString);<NEW_LINE>// // The component material affects the weight of the component.<NEW_LINE>label.setToolT... | Finish>(component, "Finish")); |
1,017,175 | public Object mergeResults(Map<String, Object> results) throws Exception {<NEW_LINE>if (results.isEmpty())<NEW_LINE>return null;<NEW_LINE>// TODO: DELEGATE MERGE AT EVERY COMMAND<NEW_LINE>final ArrayList<Object> mergedResult = new ArrayList<Object>();<NEW_LINE>final Object firstResult = results.values().iterator().next... | String nodeName = entry.getKey(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.