idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,592,743 | final RejectGrantResult executeRejectGrant(RejectGrantRequest rejectGrantRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(rejectGrantRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<RejectGrantRequest> reques... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,463,245 | public String rollback(EnvironBean envBean, String toDeployId, String description, String operator) throws Exception {<NEW_LINE>DeployBean toDeployBean;<NEW_LINE>if (toDeployId == null) {<NEW_LINE>toDeployBean = getLastSucceededDeploy(envBean);<NEW_LINE>if (toDeployBean == null) {<NEW_LINE>throw new DeployInternalExcep... | disableAutoPromote(envBean, operator, false); |
377,810 | public final void annotationArguments() throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>AST annotationArguments_AST = null;<NEW_LINE>AST v_AST = null;<NEW_LINE>if ((_tokenSet_47.member(LA(1))) && (_tokenSet_48.member(LA(2)))) {<NEW_LIN... | astFactory.addASTChild(currentAST, returnAST); |
914,596 | private Type createInterfaceType(DeclaredType declaredType, TypeElement typeElement, boolean deep) {<NEW_LINE>// entity type<NEW_LINE>for (Class<? extends Annotation> entityAnn : entityAnnotations) {<NEW_LINE>if (typeElement.getAnnotation(entityAnn) != null) {<NEW_LINE>return createType(typeElement, TypeCategory.ENTITY... | Types.LIST, i, deep); |
602,923 | public TemplateError unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TemplateError templateError = new TemplateError();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCu... | int originalDepth = context.getCurrentDepth(); |
1,747,483 | public static ListResourcesResponse unmarshall(ListResourcesResponse listResourcesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listResourcesResponse.setRequestId(_ctx.stringValue("ListResourcesResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>List<ResourceItem> items = new ArrayList<ResourceItem>();<NE... | ("ListResourcesResponse.Data.Items[" + i + "].ModifiedTime")); |
810,391 | private void assembleImage() {<NEW_LINE>final BufferedImage rawImage = getRawImage();<NEW_LINE>// New image template<NEW_LINE>ninePatchImage = ImageUtils.createCompatibleImage(rawImage.getWidth() + 2, rawImage.getHeight() + 2, Transparency.TRANSLUCENT);<NEW_LINE>final Graphics2D g2d = ninePatchImage.createGraphics();<N... | boolean[] hf = getHorizontalFilledPixels(); |
1,627,059 | private boolean validateObjLit(Node objlit, Node parent) {<NEW_LINE>if (objlit == null || !objlit.isObjectLit()) {<NEW_LINE>reportErrorOnContext(parent);<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>for (Node key = objlit.getFirstChild(); key != null; key = key.getNext()) {<NEW_LINE>if (key.isMemberFunctionDef()) {<NEW_L... | .make(objlit, GOOG_CLASS_ES6_ARROW_FUNCTION_NOT_SUPPORTED)); |
861,524 | private Mono<Response<SimInner>> updateTagsWithResponseAsync(String resourceGroupName, String simName, TagsObject parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>return Mono.error(new... | error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); |
1,460,908 | final TestTypeResult executeTestType(TestTypeRequest testTypeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(testTypeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>R... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
225,946 | private static JSModuleRecord createSyntheticJSONModule(JSRealm realm, Source source, Object hostDefined) {<NEW_LINE>final TruffleString exportName = Strings.DEFAULT;<NEW_LINE>JSFrameDescriptor frameDescBuilder = new JSFrameDescriptor(Undefined.instance);<NEW_LINE>JSFrameSlot slot = frameDescBuilder.addFrameSlot(export... | .getStatus() == Status.Evaluating; |
1,328,895 | public void save(Context ctx, SharedPreferences prefs) {<NEW_LINE>SharedPreferences.Editor edit = prefs.edit();<NEW_LINE>edit.putString("osmdroid.basePath", getOsmdroidBasePath().getAbsolutePath());<NEW_LINE>edit.putString("osmdroid.cachePath", getOsmdroidTileCache().getAbsolutePath());<NEW_LINE>edit.putBoolean("osmdro... | putBoolean("osmdroid.TileDownloaderFollowRedirects", isMapTileDownloaderFollowRedirects()); |
1,340,279 | private void addStaticFieldsIfPresentAndThenAllVars(@NotNull final XCompositeNode node, @Nullable final BoundVariable thisVar, @NotNull final ElementList<BoundVariable> vars) {<NEW_LINE>if (thisVar == null) {<NEW_LINE>addVars(node, vars);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Object thisVarValue = thisVar.getValue... | InstanceRef) thisVarValue).getClassRef(); |
141,108 | public void updateTask(TaskModel taskModel) {<NEW_LINE>try {<NEW_LINE>if (taskModel.getStatus() != null) {<NEW_LINE>if (!taskModel.getStatus().isTerminal() || (taskModel.getStatus().isTerminal() && taskModel.getUpdateTime() == 0)) {<NEW_LINE>taskModel.setUpdateTime(System.currentTimeMillis());<NEW_LINE>}<NEW_LINE>if (t... | LOGGER.error(errorMsg, e); |
393,086 | public static void collapseReferent(SemanticGraph sg) {<NEW_LINE>// find typed deps of form ref(gov, dep)<NEW_LINE>// put them in a List for processing<NEW_LINE>List<SemanticGraphEdge> refs = new ArrayList<>(sg.findAllRelns("ref"));<NEW_LINE>SemanticGraph sgCopy = sg.makeSoftCopy();<NEW_LINE>// now substitute target of... | IndexedWord dep = ref.getDependent(); |
421,971 | public ApplicationCodeConfigurationUpdate unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ApplicationCodeConfigurationUpdate applicationCodeConfigurationUpdate = new ApplicationCodeConfigurationUpdate();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE... | int originalDepth = context.getCurrentDepth(); |
1,830,885 | public void ignoreFolder(String deviceId, String folderId, String folderLabel) {<NEW_LINE>synchronized (mConfigLock) {<NEW_LINE>for (Device device : mConfig.devices) {<NEW_LINE>if (deviceId.equals(device.deviceID)) {<NEW_LINE>for (IgnoredFolder ignoredFolder : device.ignoredFolders) {<NEW_LINE>if (folderId.equals(ignor... | device.ignoredFolders.add(ignoredFolder); |
1,538,992 | public ClientHttpRequest createRequest(URI uri, HttpMethod httpMethod) throws IOException {<NEW_LINE>ClientHttpRequest request = super.createRequest(uri, httpMethod);<NEW_LINE>TimeoutConfig config = timeoutConfig.get();<NEW_LINE>if (config == null) {<NEW_LINE>return request;<NEW_LINE>}<NEW_LINE>timeoutConfig.remove();<... | IOException(t.getCause()); |
859,028 | // -------------------------------------------------------------------------<NEW_LINE>// Send Event methods<NEW_LINE>// -------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public void sendConnectionClosedEvent(Object handle) throws ResourceException {<NEW_LINE>// Create... | svLogger.info("Sending CONNECTION CLOSED event for: " + handle); |
1,175,970 | public void execute(RequestContext requestContext) {<NEW_LINE>StringBuilder sBuilder = new StringBuilder(512);<NEW_LINE>try {<NEW_LINE>HttpServletRequest req = requestContext.getReq();<NEW_LINE>if (this.master.isStopped()) {<NEW_LINE>throw new Exception("Sever is stopping...");<NEW_LINE>}<NEW_LINE>MetaDataService defMe... | innGetBrokerInfo(req, sBuilder, false); |
1,484,185 | public void partialUpdate() {<NEW_LINE>// Here's a channel with some custom field data that might be useful<NEW_LINE>ChannelClient channelClient = client.channel("messaging", "general");<NEW_LINE>List<String> members = Arrays.asList("thierry", "tommaso");<NEW_LINE>Map<String, String> channelDetail = new HashMap<>();<NE... | emptyList()).execute(); |
875,560 | protected void apply(RelOptRuleCall call, Project project, TableScan scan) {<NEW_LINE>final RelOptTable table = scan.getTable();<NEW_LINE>assert table.unwrap(ProjectableFilterableTable.class) != null;<NEW_LINE>final List<Integer> selectedColumns = new ArrayList<>();<NEW_LINE>project.getProjects().forEach(proj -> {<NEW_... | bindableScan = (Bindables.BindableTableScan) scan; |
41,369 | private static ShexRecord parseShapeMapEntry(JsonObject obj) {<NEW_LINE>// Just enough to parse the maps in the validation test suite.<NEW_LINE>// Full:<NEW_LINE>// node: an RDF node, or a triple pattern which is used to select RDF nodes.<NEW_LINE>// shape: ShEx shapeExprLabel or the string "START" for the start shape ... | + JSON.toStringFlat(obj)); |
1,818,132 | public Message managerPages(HttpServletRequest req, @RequestBody JsonNode jsonNode) {<NEW_LINE>Message message = null;<NEW_LINE>try {<NEW_LINE>String userName = ModuleUserUtils.getOperationUser(req);<NEW_LINE>if (StringUtils.isEmpty(userName)) {<NEW_LINE>throw new UDFException("username is empty!");<NEW_LINE>}<NEW_LINE... | collect(Collectors.toList()); |
1,346,273 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>customizer = <MASK><NEW_LINE>resizingCheckBox = new javax.swing.JCheckBox();<NEW_LINE>reorderingCheckBox = new javax.swing.JCheckBox();<NEW_LINE>FormListener formListener = new For... | new javax.swing.JPanel(); |
295,886 | public HazelcastInstance hazelcastInstance(JHipsterProperties jHipsterProperties) {<NEW_LINE>log.debug("Configuring Hazelcast");<NEW_LINE>Config config = new Config();<NEW_LINE>config.setInstanceName("dealerapp");<NEW_LINE>// The serviceId is by default the application's name, see Spring Boot's eureka.instance.appname ... | log.debug("Adding Hazelcast (dev) cluster member " + clusterMember); |
951,158 | private void handleNoRouteLetter(Message msg) {<NEW_LINE>setThreadLoggingContext(msg);<NEW_LINE>if (msg instanceof APIIsReadyToGoMsg) {<NEW_LINE>APIIsReadyToGoReply reply = new APIIsReadyToGoReply();<NEW_LINE>reply.setManagementNodeId(Platform.getManagementServerId());<NEW_LINE>reply.setError(err(SysErrors.NOT_READY_ER... | wire.dumpMessage(msg))); |
1,009,188 | public void testSLLFutureThrowApplicationException() throws Exception {<NEW_LINE>String results = "false";<NEW_LINE>long currentThreadId = 0;<NEW_LINE>ExceptionStatelessLocal bean = lookupSLLBean();<NEW_LINE>// update results with bean creation<NEW_LINE>assertNotNull("Async Stateless Bean created successfully", bean);<... | svLogger.info("Test threadId = " + currentThreadId); |
236,260 | static SearchExecutionContext wrap(SearchExecutionContext delegate) {<NEW_LINE>return new SearchExecutionContext(delegate) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public IndexReader getIndexReader() {<NEW_LINE>// The reader that matters in this context is not the reader of the shard but<NEW_LINE>// the reader of the Me... | cache = new IndexFieldDataCache.None(); |
450,538 | public boolean addDex(Dex dex) {<NEW_LINE>Map<String, List<Dex>> tempMethodTreeMap = new HashMap<>(methodTreeMap);<NEW_LINE>Map<String, List<Dex>> tempFieldTreeMap = new HashMap<>(fieldTreeMap);<NEW_LINE>for (MethodId methodId : dex.methodIds()) {<NEW_LINE>if (tempMethodTreeMap.containsKey(methodId.toString())) {<NEW_L... | fieldIds().size()); |
1,271,200 | public Future<?> execute(TestDescriptor testDescriptor, EngineExecutionListener executionListener) {<NEW_LINE>Preconditions.notNull(testDescriptor, "testDescriptor must not be null");<NEW_LINE>Preconditions.notNull(executionListener, "executionListener must not be null");<NEW_LINE>executionListener.dynamicTestRegistere... | UniqueId uniqueId = testDescriptor.getUniqueId(); |
937,398 | public static void main(String[] args) {<NEW_LINE>if ((args.length > 2) || (args.length == 0)) {<NEW_LINE>System.err.println("command parameters: action[data|eval] [path to the (gold) evaluation dataset]");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String action = args[0];<NEW_LINE>if ((action == null) || (action.length() =... | String report = eval.evaluation(); |
279,988 | public ImportInstanceTaskDetails unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>ImportInstanceTaskDetails importInstanceTaskDetails = new ImportInstanceTaskDetails();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isSta... | ().unmarshall(context)); |
817,443 | private void loadNode422() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.CertificateGroupFolderType_DefaultUserTokenGroup_TrustList_GetPosition_OutputArguments, new QualifiedName(0, "OutputArguments"), new LocalizedText("en", "OutputArguments"), Local... | (1), 0.0, false); |
408,246 | public void run() {<NEW_LINE>Object result = null;<NEW_LINE>try {<NEW_LINE>if (args == null || args.length == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ArrayList<Object> argsList = new ArrayList<>();<NEW_LINE>for (Object arg : args) {<NEW_LINE>argsList.add(arg);<NEW_LINE>}<NEW_LINE>if (params != null) {<NEW_LINE>ArrayM... | <byte[]> resultCallback = null; |
1,652,214 | private void writeRow(final PrintStream out, final Object[] row) {<NEW_LINE>boolean needsPadding = false;<NEW_LINE>for (int i = 0; i < row.length; i++) {<NEW_LINE>if (needsPadding)<NEW_LINE>out.printf(" ");<NEW_LINE>needsPadding = true;<NEW_LINE>final Object obj = row[i];<NEW_LINE>final String value;<NEW_LINE>final GA... | obj) : obj.toString(); |
858,588 | public DaoMethodOutcome update(T theResource, String theMatchUrl, boolean thePerformIndexing, boolean theForceUpdateVersion, RequestDetails theRequest, @Nonnull TransactionDetails theTransactionDetails) {<NEW_LINE>if (theResource == null) {<NEW_LINE>String msg = getContext().getLocalizer().getMessage(BaseStorageDao.cla... | type = myFhirContext.getResourceType(theResource); |
362,508 | private boolean mergeProjectRequiredProperties(Artifact artifact) throws IOException {<NEW_LINE>SortedProperties projectProps = getProjectProperties();<NEW_LINE>SortedProperties libProps = getLibraryRequiredProperties(artifact);<NEW_LINE>String javaVersion = (String) projectProps.getProperty("codename1.arg.java.version... | Enumeration keys = libProps.propertyNames(); |
1,343,368 | public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) {<NEW_LINE>final BindResult<SpringDocConfigProperties> result = Binder.get(environment).<MASK><NEW_LINE>if (result.isBound()) {<NEW_LINE>SpringDocConfigProperties springDocGroupConfig = result.get();<NEW_LINE>List<GroupedOpenApi> groupedOpe... | bind(SPRINGDOC_PREFIX, SpringDocConfigProperties.class); |
1,594,411 | private void createYamlContentsGroup(Composite composite) {<NEW_LINE>yamlGroup = new Group(composite, SWT.NONE);<NEW_LINE>yamlGroup.setText("YAML Content");<NEW_LINE>yamlGroup.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).create());<NEW_LINE>yamlGroup.setLayout(new GridLayout());<NEW_LINE>fileYamlCompos... | setText(exp.getValue()); |
676,813 | private //<NEW_LINE>boolean applyPropertyMappings(ResultSetWrapper rsw, ResultMap resultMap, MetaObject metaObject, ResultLoaderMap lazyLoader, String columnPrefix) throws SQLException {<NEW_LINE>final List<String> mappedColumnNames = rsw.getMappedColumnNames(resultMap, columnPrefix);<NEW_LINE>boolean foundValues = fal... | metaObject, propertyMapping, lazyLoader, columnPrefix); |
121,390 | private File createJapiCmpBaseDir(PluginParameters pluginParameters) throws MojoFailureException {<NEW_LINE>if (pluginParameters.getProjectBuildDirParam().isPresent()) {<NEW_LINE>try {<NEW_LINE>File projectBuildDirParam = pluginParameters.getProjectBuildDirParam().get();<NEW_LINE>if (projectBuildDirParam != null) {<NEW... | boolean mkdirs = jApiCmpBuildDir.mkdirs(); |
809,429 | private void checkSize(StringBuilder unparsedSize, CharSequence literal, StringBuilder extract, boolean isFirst, boolean isLast) throws DatatypeException {<NEW_LINE>String size;<NEW_LINE>trimWhitespace(unparsedSize);<NEW_LINE>if (unparsedSize.length() == 0) {<NEW_LINE>errEmpty(isFirst, isLast, extract);<NEW_LINE>return... | e.getMessage(), extract); |
413,015 | private void invalidate(Node node) {<NEW_LINE>for (int i = 0, n = node.parts.size; i < n; ++i) {<NEW_LINE>NodePart part = node.parts.get(i);<NEW_LINE>ArrayMap<Node, Matrix4> bindPose = part.invBoneBindTransforms;<NEW_LINE>if (bindPose != null) {<NEW_LINE>for (int j = 0; j < bindPose.size; ++j) {<NEW_LINE>bindPose.keys[... | part.material.copy()); |
1,786,565 | public void call(SourceUnit source, GeneratorContext context, ClassNode classNode) throws CompilationFailedException {<NEW_LINE>ImportCustomizer importCustomizer = new SmartImportCustomizer(source);<NEW_LINE>List<ClassNode> classNodes = source<MASK><NEW_LINE>ClassNode mainClassNode = MainClass.get(classNodes);<NEW_LINE... | .getAST().getClasses(); |
825,575 | public Request<ModifyInstanceCreditSpecificationRequest> marshall(ModifyInstanceCreditSpecificationRequest modifyInstanceCreditSpecificationRequest) {<NEW_LINE>if (modifyInstanceCreditSpecificationRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>R... | <ModifyInstanceCreditSpecificationRequest>(modifyInstanceCreditSpecificationRequest, "AmazonEC2"); |
331,803 | private void switchType(boolean writable) {<NEW_LINE>int index = findMatchingComboItem();<NEW_LINE>if (index == -1) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String s = typeComboBox.getSelectedItem().toString();<NEW_LINE>int last = s.indexOf("<");<NEW_LINE>String suffix = last == -1 ? "" : s.substring(last);<NEW_LINE>if (... | .getSelectedItem().toString(); |
1,429,043 | public static <T> void groupAndRuns(List<? extends T> values, BiPredicate<T, T> func, java.util.function.Consumer<List<? extends T>> consumer) {<NEW_LINE>if (values.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (values.size() == 1) {<NEW_LINE>consumer.accept(values);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>T <MASK>... | prev = values.get(0); |
279,946 | private void handleInvoices(final I_C_Printing_Queue queueItem, final I_C_Invoice invoice) {<NEW_LINE>queueItem.setBill_BPartner_ID(invoice.getC_BPartner_ID());<NEW_LINE>queueItem.setBill_User_ID(invoice.getAD_User_ID());<NEW_LINE>queueItem.setBill_Location_ID(invoice.getC_BPartner_Location_ID());<NEW_LINE>queueItem.se... | int documentCopies = partner.getDocumentCopies(); |
810,457 | /*/////////////////////////////////////////////////////////////////////////<NEW_LINE>// Fragment Views<NEW_LINE>/////////////////////////////////////////////////////////////////////////*/<NEW_LINE>@Override<NEW_LINE>protected void initViews(final View rootView, final Bundle savedInstanceState) {<NEW_LINE>super.initView... | inputText.setVisibility(View.VISIBLE); |
1,776,294 | public static IndexMetadata readFrom(StreamInput in) throws IOException {<NEW_LINE>Builder builder = new Builder(in.readString());<NEW_LINE>builder.version(in.readLong());<NEW_LINE>builder.mappingVersion(in.readVLong());<NEW_LINE>builder.settingsVersion(in.readVLong());<NEW_LINE>builder.<MASK><NEW_LINE>builder.state(St... | setRoutingNumShards(in.readInt()); |
1,090,923 | static void checkIfClusterNameInDataPaths(ClusterName clusterName, Path[] dataFiles) throws NodeValidationException {<NEW_LINE>final List<Path> existingPathsWithClusterName = Arrays.stream(dataFiles).map(p -> p.resolve(clusterName.value())).filter(Files::exists).<MASK><NEW_LINE>if (existingPathsWithClusterName.isEmpty(... | collect(Collectors.toList()); |
544,637 | private GraphObject extractActiveElement(final DOMNode node, final Set<String> dataKeys, final String parentId, final ActiveElementState state, final int depth) {<NEW_LINE>final PropertyKey<String> actionKey = StructrApp.key(DOMElement.class, "data-structr-action");<NEW_LINE>final PropertyKey<String> hrefKey = StructrA... | , node.getProperty(hrefKey)); |
453,504 | public <AT> AT retrieveValue(final ResultSet rs, final int columnIndex, final Class<AT> returnType) throws SQLException {<NEW_LINE>final AT value;<NEW_LINE>if (returnType.isAssignableFrom(BigDecimal.class)) {<NEW_LINE>value = (AT) rs.getBigDecimal(columnIndex);<NEW_LINE>} else if (returnType.isAssignableFrom(Double.cla... | AT) TimeUtil.asLocalDate(ts); |
75,490 | public EntityHistoryModelDao<M, E> map(final int index, final ResultSet r, final StatementContext ctx) throws SQLException {<NEW_LINE>final UUID id = getUUID(r, "id");<NEW_LINE>final long targetRecordId = r.getLong("target_record_id");<NEW_LINE>final String changeType = r.getString("change_type");<NEW_LINE>final DateTi... | ) entityModelDao).setRecordId(targetRecordId); |
878,188 | private boolean readKeysFromBuckets(OAtomicOperation atomicOperation) throws IOException {<NEW_LINE>OCacheEntry cacheEntry = loadPageForRead(<MASK><NEW_LINE>try {<NEW_LINE>CellBTreeSingleValueBucketV3<K> bucket = new CellBTreeSingleValueBucketV3<>(cacheEntry);<NEW_LINE>if (lastLSN == null || bucket.getLSN().equals(last... | atomicOperation, fileId, pageIndex, false); |
1,482,019 | private CachedChecker createChecker(@NotNull final ConfigurationLocation location, @Nullable final Module module) {<NEW_LINE>final ListPropertyResolver propertyResolver;<NEW_LINE>try {<NEW_LINE>location.ensurePropertiesAreUpToDate(checkstyleProjectService.underlyingClassLoader());<NEW_LINE>final Map<String, String> pro... | moduleClassPathBuilder().build(module); |
318,736 | private void initView() {<NEW_LINE>mRemoteUserIdList = new ArrayList<>();<NEW_LINE>mRemoteVideoList = new ArrayList<>();<NEW_LINE>mImageBack = findViewById(R.id.iv_back);<NEW_LINE>mTextTitle = findViewById(R.id.tv_room_number);<NEW_LINE>mButtonStartPush = findViewById(R.id.btn_start_push);<NEW_LINE>mEditRoomId = findVi... | findViewById(R.id.et_user_id); |
1,809,409 | public static DescribeMonitorValuesResponse unmarshall(DescribeMonitorValuesResponse describeMonitorValuesResponse, UnmarshallerContext context) {<NEW_LINE>describeMonitorValuesResponse.setRequestId(context.stringValue("DescribeMonitorValuesResponse.RequestId"));<NEW_LINE>describeMonitorValuesResponse.setDate(context.s... | + "].MonitorKeys[" + j + "].MonitorKey")); |
77,899 | public void run(RegressionEnvironment env) {<NEW_LINE>EPCompiled type = env.compile("@name('s0') @public @buseventtype create schema MyEvent(p string)");<NEW_LINE>EPCompiled selectMyEvent = env.compile("@name('s0') select * from MyEvent", new RegressionPath().add(type));<NEW_LINE>EPCompiled selectSB = env.compile("@nam... | ).setDeploymentId("a"))); |
140,234 | public String removeExecutionHistory(String age, String maxPeriod) {<NEW_LINE>if (StringUtils.isEmpty(age)) {<NEW_LINE>throw new IllegalArgumentException("Age cannot be empty");<NEW_LINE>}<NEW_LINE>List<UUID> list;<NEW_LINE>Transaction tx = persistence.createTransaction();<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>String... | EntityManager em = persistence.getEntityManager(); |
1,117,537 | // Basic test of untimed invokeAny. Submit a group of tasks, of which one raises an exception,<NEW_LINE>// another runs for a long time, and another completes successfully within a short time.<NEW_LINE>// The result of the one that completed successfully should be returned,<NEW_LINE>// and the duration of the invokeAny... | 0, canceledFromQueue.size()); |
1,490,623 | public final RegexExpressionContext regexExpression() throws RecognitionException {<NEW_LINE>RegexExpressionContext _localctx = new RegexExpressionContext(_ctx, getState());<NEW_LINE><MASK><NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(113);<NEW_LINE>match(AT);<NEW_... | enterRule(_localctx, 16, RULE_regexExpression); |
236,056 | public List<JvmGcBo> decodeValues(Buffer valueBuffer, AgentStatDecodingContext decodingContext) {<NEW_LINE>final String agentId = decodingContext.getAgentId();<NEW_LINE>final long baseTimestamp = decodingContext.getBaseTimestamp();<NEW_LINE>final long timestampDelta = decodingContext.getTimestampDelta();<NEW_LINE>final... | getTypeByCode(valueBuffer.readVInt()); |
1,026,004 | private void recusivelyGenerateSparkObjects(final Iterator<Object> parquetObjects, final DataType fieldType, final ArrayList<Object> recordBuilder) throws SerialisationException {<NEW_LINE>if (fieldType instanceof StructType) {<NEW_LINE>final ArrayList<Object> nestedRecordBuilder = new ArrayList<>();<NEW_LINE>for (fina... | apply(field).dataType(); |
760,710 | private Applications fetchRemoteRegistry(boolean delta) {<NEW_LINE>logger.info("Getting instance registry info from the eureka server : {} , delta : {}", this.remoteRegionURL, delta);<NEW_LINE>if (shouldUseExperimentalTransport()) {<NEW_LINE>try {<NEW_LINE>EurekaHttpResponse<Applications> httpResponse = delta ? eurekaH... | int httpStatus = httpResponse.getStatusCode(); |
1,070,793 | private void saveUploadedFile(OwnCloudClient client) {<NEW_LINE>OCFile file = mFile;<NEW_LINE>if (file.fileExists()) {<NEW_LINE>file = getStorageManager().getFileById(file.getFileId());<NEW_LINE>}<NEW_LINE>long syncDate = System.currentTimeMillis();<NEW_LINE>file.setLastSyncDateForData(syncDate);<NEW_LINE>// new PROPFI... | file, result.getData()); |
668,244 | public void processFlushQuery(ControlAreYouFlushed flushQuery) throws SIResourceException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "processFlushQuery", new Object[] { flushQuery });<NEW_LINE>SIBUuid12 streamID = flushQuery.getGuaranteedStreamUUID();<NEW_LINE>t... | SibTr.exit(tc, "processFlushQuery"); |
1,079,838 | public int write(ByteBuffer buf) throws IOException {<NEW_LINE>Objects.requireNonNull(buf);<NEW_LINE>writeLock.lock();<NEW_LINE>try {<NEW_LINE>boolean blocking = isBlocking();<NEW_LINE>int n = 0;<NEW_LINE>try {<NEW_LINE>beginWrite(blocking);<NEW_LINE>n = IO_UTIL_ACCESS.write(fd<MASK><NEW_LINE>if (n == IOStatus.UNAVAILA... | , buf, -1, nd); |
1,781,762 | public static int CRC(final int poly, final int init, @NonNull final byte[] data, final int offset, final int length, final boolean refin, final boolean refout, final int xorout) {<NEW_LINE>int crc = init;<NEW_LINE>for (int i = offset; i < offset + length && i < data.length; ++i) {<NEW_LINE>final byte b = data[i];<NEW_... | return (crc ^ xorout) & 0xFFFF; |
876,985 | // shares lots of code with inot; candidate for refactoring<NEW_LINE>@Override<NEW_LINE>public Container not(final int firstOfRange, final int lastOfRange) {<NEW_LINE>// TODO: may need to convert to a RunContainer<NEW_LINE>if (firstOfRange >= lastOfRange) {<NEW_LINE>// empty range<NEW_LINE>return clone();<NEW_LINE>}<NE... | answer.content, 0, startIndex); |
148,619 | private static void simulateLookUpBufferAddress(LevelZeroContext context, LevelZeroDevice device) {<NEW_LINE>LevelZeroCommandQueue commandQueue = LevelZeroUtils.createCommandQueue(device, context);<NEW_LINE>LevelZeroCommandList commandList = LevelZeroUtils.createCommandList(device, context, commandQueue.getCommandQueue... | ), null, 0, null); |
1,814,852 | public void pluginComponentAdded(PluginComponentEvent event) {<NEW_LINE>PluginComponentFactory factory = event.getPluginComponentFactory();<NEW_LINE>if (!factory.getContainer().equals(Container.CONTAINER_CONTACT_RIGHT_BUTTON_MENU))<NEW_LINE>return;<NEW_LINE>Object constraints = UIServiceImpl.getBorderLayoutConstraintsF... | Component) c.getComponent()); |
1,385,452 | public static <T extends Runnable> List<T> readParallel(int concurrency, int batchSize, BatchNodeIterable idMapping, ParallelGraphImporter<T> importer, ExecutorService executor) {<NEW_LINE>Collection<PrimitiveIntIterable> iterators = idMapping.batchIterables(batchSize);<NEW_LINE>int threads = iterators.size();<NEW_LINE... | = new ArrayList<>(threads); |
152,350 | public GateioMarketInfoWrapper deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {<NEW_LINE>Map<CurrencyPair, GateioMarketInfo> marketInfoMap = new HashMap<>();<NEW_LINE>ObjectCodec oc = jp.getCodec();<NEW_LINE>JsonNode marketsNodeWrapper = oc.readTree(jp);<NEW_LINE>Jso... | ("fee").asText()); |
1,405,933 | public String report() {<NEW_LINE>if (true)<NEW_LINE>return "-";<NEW_LINE>StringBuffer parameter = new StringBuffer("?");<NEW_LINE>if (// don't report<NEW_LINE>getRecord_ID() == 0)<NEW_LINE>return "ID=0";<NEW_LINE>if (// new<NEW_LINE>getRecord_ID() == 1) {<NEW_LINE>parameter.append("ISSUE=");<NEW_LINE>HashMap htOut = g... | return "New-" + e.getLocalizedMessage(); |
1,367,554 | public void open(Map<String, Object> config, SinkContext sinkContext) throws Exception {<NEW_LINE><MASK><NEW_LINE>jdbcUrl = jdbcSinkConfig.getJdbcUrl();<NEW_LINE>if (jdbcSinkConfig.getJdbcUrl() == null) {<NEW_LINE>throw new IllegalArgumentException("Required jdbc Url not set.");<NEW_LINE>}<NEW_LINE>Properties propertie... | jdbcSinkConfig = JdbcSinkConfig.load(config); |
53,810 | public void updatePlugins(final boolean force) {<NEW_LINE>// do nothing if updates are disabled<NEW_LINE>if (mUpdateInterval == 0 && !force)<NEW_LINE>return;<NEW_LINE>// check last script update<NEW_LINE>final long lastUpdated = mPrefs.getLong("pref_last_plugin_update", 0);<NEW_LINE>final long now = System.currentTimeM... | String plugin = entry.getKey(); |
152,091 | public ServerRequestInterceptor createServerRequestInterceptor(ORBInitInfo info, Codec codec) {<NEW_LINE>ServerRequestInterceptor ret = null;<NEW_LINE>try {<NEW_LINE>if (!penv.getProcessType().isServer()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (altSecFactory != null || (interceptorFactory != null && createAlter... | .legacy.interceptor.ORBInitInfoExt) info; |
929,838 | public void runInternal() {<NEW_LINE>int partitionId = getPartitionId();<NEW_LINE>Indexes indexes = mapContainer.getIndexes(partitionId);<NEW_LINE>InternalIndex index = indexes.addOrGetIndex(config);<NEW_LINE>if (index.hasPartitionIndexed(partitionId)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>SerializationService seriali... | queryEntry, Index.OperationSource.USER); |
906,177 | public void eval(Context context) {<NEW_LINE>Object object = context.parent == null ? context<MASK><NEW_LINE>if (object instanceof java.util.List) {<NEW_LINE>List list = (List) object;<NEW_LINE>if (list.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// lazy init for graalvm<NEW_LINE>if (random == null) {<NEW_LINE>ra... | .root : context.parent.value; |
426,996 | private void sortConstructorsIntoLists(JApiClass jApiClass, Map<String, CtConstructor> oldConstructorsMap, Map<String, CtConstructor> newConstructorsMap) {<NEW_LINE>MethodDescriptorParser methodDescriptorParser = new MethodDescriptorParser();<NEW_LINE>for (CtConstructor ctMethod : oldConstructorsMap.values()) {<NEW_LIN... | parse(ctMethod.getSignature()); |
1,667,958 | public static Builder fromEnv() throws DockerCertificateException {<NEW_LINE>final String endpoint = DockerHost.endpointFromEnv();<NEW_LINE>final Path dockerCertPath = Paths.get(Iterables.find(Arrays.asList(DockerHost.certPathFromEnv(), DockerHost.configPathFromEnv(), DockerHost.defaultCertPath()), Predicates.notNull()... | String hostText = hostAndPort.getHost(); |
699,744 | public static PRCurve generatePRCurve(boolean[] yPos, double[] yScore) {<NEW_LINE>TPFP tpfp = generateTPFPs(yPos, yScore);<NEW_LINE>ArrayList<Double> precisions = new ArrayList<>(tpfp.falsePos.size());<NEW_LINE>ArrayList<Double> recalls = new ArrayList<>(<MASK><NEW_LINE>ArrayList<Double> thresholds = new ArrayList<>(tp... | tpfp.falsePos.size()); |
158,160 | public int decode(DecodingContext context, ByteBufferView buffer) {<NEW_LINE>byte[] payload = new byte[buffer.remaining()];<NEW_LINE>buffer.get(payload);<NEW_LINE>try (BEParser parser = new BEParser(payload)) {<NEW_LINE>BEMap m = parser.readMap();<NEW_LINE>int length = m.getContent().length;<NEW_LINE>UtMetadata.Type me... | "Unknown message type: " + messageType.name()); |
305,730 | public OUpdateStatement copy() {<NEW_LINE>OUpdateStatement result = null;<NEW_LINE>try {<NEW_LINE>result = getClass().getConstructor(Integer.TYPE).newInstance(-1);<NEW_LINE>} catch (Exception e) {<NEW_LINE>throw new RuntimeException(e);<NEW_LINE>}<NEW_LINE>result.target = target == null ? null : target.copy();<NEW_LINE... | ? null : whereClause.copy(); |
780,186 | void processArguments() throws Exception {<NEW_LINE>super.processArguments();<NEW_LINE>boolean usesSetters = (null != tenant || <MASK><NEW_LINE>boolean usesFqfn = (null != fqfn);<NEW_LINE>// Throw an exception if --fqfn is set alongside any combination of --tenant, --namespace, and --name<NEW_LINE>if (usesFqfn && usesS... | null != namespace || null != functionName); |
655,732 | public String put(String key, long contentLength, UploadStreamProvider payload) throws IOException {<NEW_LINE>checkArgument(key != null, "key is null");<NEW_LINE>ObjectMetadata meta = new ObjectMetadata();<NEW_LINE>meta.setContentLength(contentLength);<NEW_LINE>try {<NEW_LINE>return uploadRetryExecutor().onRetry((excep... | bucket, key, in, meta); |
1,310,667 | public void run(MessageReply reply) {<NEW_LINE>if (reply.isSuccess()) {<NEW_LINE>logger.info(String.format("Deleted volume %s in Trash.", inv.getInstallPath()));<NEW_LINE>IncreasePrimaryStorageCapacityMsg imsg = new IncreasePrimaryStorageCapacityMsg();<NEW_LINE>imsg.setPrimaryStorageUuid(self.getUuid());<NEW_LINE>imsg.... | fail(reply.getError()); |
1,217,325 | public static void mergeDesignMatrices(final List<AltSiteRecord> altDesignMatrix, List<AltSiteRecord> altDesignMatrixRevComp) {<NEW_LINE>if (altDesignMatrix.isEmpty() && altDesignMatrixRevComp.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Order matters here. Assumes that all elements in the list have the same re... | (Collectors.toList())); |
1,773,486 | public void log(TraceComponent tc) {<NEW_LINE>Tr.debug(tc, MessageFormat.format("Delayed Class [ {0} ]", getHashText()));<NEW_LINE>Tr.debug(tc, MessageFormat.format(" classInfo [ {0} ]", ((classInfo != null) ? classInfo.getHashText() : null)));<NEW_LINE>Tr.debug(tc, MessageFormat.format(" isArtificial [ {0} ]", Boole... | .format(" isDeclaredAnnotationPresent [ {0} ]", isDeclaredAnnotationPresent)); |
1,573,820 | public TranslationData load(ResourceUrn urn, List<AssetDataFile> inputs) throws IOException {<NEW_LINE>if (inputs.size() != 1) {<NEW_LINE>throw new IOException("Failed to load translation data '" + urn + "': " + inputs);<NEW_LINE>}<NEW_LINE>AssetDataFile file = inputs.get(0);<NEW_LINE>Locale locale = localeFromFilename... | basenameFromFilename(file.getFilename()); |
1,079,002 | public SModelMergerPluginConfiguration convertToSObject(ModelMergerPluginConfiguration input) {<NEW_LINE>if (input == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>SModelMergerPluginConfiguration result = new SModelMergerPluginConfiguration();<NEW_LINE>result.setOid(input.getOid());<NEW_LINE>result.setUuid(input.ge... | setEnabled(input.getEnabled()); |
1,119,161 | public void onReceive(Context context, Intent intent) {<NEW_LINE><MASK><NEW_LINE>ConvData convData = new ConvData(intent);<NEW_LINE>PendingIntent openConv = intent.getParcelableExtra("openConvPendingIntent");<NEW_LINE>NotificationCompat.Builder repliedNotification = new NotificationCompat.Builder(context, KeybasePushNo... | MainActivity.setupKBRuntime(context, false); |
1,470,159 | private static void printResult(RenderingRuleSearchRequest searchRequest, PrintStream out) {<NEW_LINE>if (searchRequest.isFound()) {<NEW_LINE>out.print(" Found : ");<NEW_LINE>for (RenderingRuleProperty rp : searchRequest.getProperties()) {<NEW_LINE>if (rp.isOutputProperty() && searchRequest.isSpecified(rp)) {<NEW_LINE>... | (searchRequest.getColorStringPropertyValue(rp)); |
669,199 | private void buildMenu(Shell parent) {<NEW_LINE>// The Main Menu<NEW_LINE>menuBar = parent.getDisplay().getMenuBar();<NEW_LINE>if (menuBar == null) {<NEW_LINE>menuBar = new <MASK><NEW_LINE>parent.setMenuBar(menuBar);<NEW_LINE>} else {<NEW_LINE>Utils.disposeSWTObjects((Object[]) menuBar.getItems());<NEW_LINE>}<NEW_LINE>... | Menu(parent, SWT.BAR); |
108,973 | public static int[][][][] swallowCopy(int[][][][] arr) {<NEW_LINE>int s0 = arr.length;<NEW_LINE>int[][][][] copy = new int[s0][][][];<NEW_LINE>for (int i = s0 - 1; i >= 0; i--) {<NEW_LINE>int s1 = arr[i].length;<NEW_LINE>copy[i] = new int[s1][][];<NEW_LINE>for (int j = s1 - 1; j >= 0; j--) {<NEW_LINE>int s2 = arr[i][j]... | [j][k].length; |
1,255,518 | public void initialize(Context context) {<NEW_LINE>QuizQuestion q1 = new QuizQuestion(1, context.getString(R.string.quiz_question_string), URL_FOR_SELFIE, false, context.getString(R.string.selfie_answer));<NEW_LINE>quiz.add(q1);<NEW_LINE>QuizQuestion q2 = new QuizQuestion(2, context.getString(R.string.quiz_question_str... | (R.string.blurry_image_answer)); |
896,650 | private Optional<Money> computeFreightRate(final I_C_Order salesOrder) {<NEW_LINE>if (!salesOrder.isSOTrx()) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>if (salesOrder.getC_BPartner_ID() <= 0) {<NEW_LINE>// order is not yet completely set up<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>final Freigh... | (salesOrder.getM_PriceList_ID())); |
689,269 | private FList<TextRange> matchBySubstring(@Nonnull String name) {<NEW_LINE>boolean infix = isPatternChar(0, '*');<NEW_LINE>char[] patternWithoutWildChar = filterWildcard(myPattern);<NEW_LINE>if (name.length() < patternWithoutWildChar.length) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (infix) {<NEW_LINE>int index = ... | , patternWithoutWildChar.length), 0); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.