{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":573122626,"defaultBranch":"main","name":"dlrm","ownerLogin":"joshuadeng","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2022-12-01T18:44:13.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/91448271?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1681354827.0","currentOid":""},"activityList":{"items":[{"before":null,"after":"750c28a3cf325e36b4db4300d94f182dfc5b3322","ref":"refs/heads/export-D44886546","pushedAt":"2023-04-13T03:00:27.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"joshuadeng","name":"Joshua Deng","path":"/joshuadeng","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/91448271?s=80&v=4"},"commit":{"message":"Replace hasattr with getattr in ai_codesign/benchmarks/dlrm/torchrec_dlrm/data/dlrm_dataloader.py\n\nSummary:\nThe pattern\n```\nX.Y if hasattr(X, \"Y\") else Z\n```\ncan be replaced with\n```\ngetattr(X, \"Y\", Z)\n```\n\nThe [getattr](https://www.w3schools.com/python/ref_func_getattr.asp) function gives more succinct code than the [hasattr](https://www.w3schools.com/python/ref_func_hasattr.asp) function. Please use it when appropriate.\n\n**This diff is very low risk. Green tests indicate that you can safely Accept & Ship.**\n\nDifferential Revision: D44886546\n\nfbshipit-source-id: c744e148217dc65d86a7e264e869dd96c3398046","shortMessageHtmlLink":"Replace hasattr with getattr in ai_codesign/benchmarks/dlrm/torchrec_…"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"startCursor":"Y3Vyc29yOnYyOpK7MjAyMy0wNC0xM1QwMzowMDoyNy4wMDAwMDBazwAAAAMXpCxU","endCursor":"Y3Vyc29yOnYyOpK7MjAyMy0wNC0xM1QwMzowMDoyNy4wMDAwMDBazwAAAAMXpCxU"}},"title":"Activity · joshuadeng/dlrm"}