idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
804,400
public MarkupDocBuilder apply(MarkupDocBuilder markupDocBuilder, Parameters params) {<NEW_LINE>DataFrame dataFrame = params.dataFrame;<NEW_LINE>java.util.List<MarkupTableColumn> columnSpecs = dataFrame.getColumns().map(column -> {<NEW_LINE>Integer widthRatio = Integer.valueOf(column.getMetaData().get(<MASK><NEW_LINE>re...
WIDTH_RATIO).getOrElse("0"));
799,781
public void refresh() {<NEW_LINE>int level = SettingsStore.getInstance(getApplication().<MASK><NEW_LINE>boolean isEnabled = level != ContentBlocking.EtpLevel.NONE;<NEW_LINE>isTrackingProtectionEnabled.postValue(new ObservableBoolean(isEnabled));<NEW_LINE>boolean drmEnabled = SettingsStore.getInstance(getApplication().g...
getBaseContext()).getTrackingProtectionLevel();
1,321,097
/*<NEW_LINE>static public void addTools(JMenu menu, List<Tool> tools) {<NEW_LINE>Map<String, JMenuItem> toolItems = new <MASK><NEW_LINE><NEW_LINE>for (final Tool tool : tools) {<NEW_LINE>// If init() fails, the item won't be added to the menu<NEW_LINE>addToolItem(tool, toolItems);<NEW_LINE>}<NEW_LINE><NEW_LINE>List<Str...
HashMap<String, JMenuItem>();
828,405
protected Boolean doInBackground(Void... params) {<NEW_LINE>switch(getBlogType()) {<NEW_LINE>case FOLLOWED:<NEW_LINE>mTmpFollowedBlogs = new ReaderBlogList();<NEW_LINE>ReaderBlogList allFollowedBlogs = ReaderBlogTable.getFollowedBlogs();<NEW_LINE>if (hasSearchFilter()) {<NEW_LINE>String query = mSearchFilter.<MASK><NEW...
toLowerCase(Locale.getDefault());
694,639
private // name of parent file<NEW_LINE>String createErrorMsg(JspLineId jspLineId, int errorLineNr) {<NEW_LINE>StringBuffer compilerOutput = new StringBuffer();<NEW_LINE>if (jspLineId.getSourceLineCount() <= 1) {<NEW_LINE>Object[] objArray = new Object[] { new Integer(jspLineId.getStartSourceLineNum()), jspLineId.getFi...
), jspLineId.getFilePath() };
1,770,056
public File putFilesIdUpdateSharedLink(String fields, String fileId, FilesFileIdupdateSharedLinkBody body) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'fields' is set<NEW_LINE>if (fields == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>// verify the required pa...
throw new ApiException(400, "Missing the required parameter 'fields' when calling putFilesIdUpdateSharedLink");
1,520,230
private static void fillFromPortfolioTransaction(TransactionPair<PortfolioTransaction> transaction, JTransaction jtx) {<NEW_LINE>jtx.portfolio = transaction.getOwner().toString();<NEW_LINE>PortfolioTransaction.Type type = transaction.getTransaction().getType();<NEW_LINE>switch(type) {<NEW_LINE>case BUY:<NEW_LINE>jtx.ty...
getTransaction()).toString();
1,375,173
void updateAccountsWithMySqlStore(Collection<Account> accounts) throws SQLException {<NEW_LINE>long startTimeMs = System.currentTimeMillis();<NEW_LINE>logger.trace("Start updating accounts={} into MySql DB", accounts);<NEW_LINE>// Get account and container changes info<NEW_LINE>List<AccountUpdateInfo> accountsUpdateInf...
trace("Completed updating accounts={} in MySql DB, took time={} ms", accounts, timeForUpdate);
795,508
public StockAvailabilityResponse checkAvailability(final StockAvailabilityQuery query) {<NEW_LINE>final BPartnerId bpartner = query.getBpartner();<NEW_LINE>final StockAvailabilityResponseBuilder responseBuilder = StockAvailabilityResponse.builder().id(query.getId()).availabilityType(AvailabilityType.SPECIFIC);<NEW_LINE...
item = createStockAvailabilityResponseItem_Available(pzn, qtyRequired);
1,118,578
public Dashboard apply(@Nonnull final EntityResponse entityResponse) {<NEW_LINE>final Dashboard result = new Dashboard();<NEW_LINE>result.setUrn(entityResponse.getUrn().toString());<NEW_LINE>result.setType(EntityType.DASHBOARD);<NEW_LINE>EnvelopedAspectMap aspectMap = entityResponse.getAspects();<NEW_LINE>MappingHelper...
MappingHelper<>(aspectMap, result);
1,182,814
ActionResult<List<JsonObject>> execute(EffectivePerson effectivePerson, String tableFlag, String id, Integer count) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<List<JsonObject>> <MASK><NEW_LINE>logger.debug(effectivePerson, "ta...
result = new ActionResult<>();
1,395,183
public void addGetterMethod(final String methodName, final ASMFieldNodeAdapter fieldNode) {<NEW_LINE><MASK><NEW_LINE>Objects.requireNonNull(fieldNode, "fieldNode");<NEW_LINE>// no argument is ().<NEW_LINE>final String desc = "()" + fieldNode.getDesc();<NEW_LINE>final MethodNode methodNode = new MethodNode(Opcodes.ACC_P...
Objects.requireNonNull(methodName, "methodName");
626,973
public KinesisStreamsInputUpdate unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>KinesisStreamsInputUpdate kinesisStreamsInputUpdate = new KinesisStreamsInputUpdate();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()...
JsonToken token = context.getCurrentToken();
1,318,986
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>LayoutInflater inflater = getLayoutInflater();<NEW_LINE>if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {<NEW_LINE>// Remove the status bar color. The DrawerLayout is responsible for drawing it from now...
ButterKnife.bind(this, container);
1,450,714
private Prediction<T> innerPredictThreadPool(ExecutorService pool, ThreadLocal<PriorityQueue<OutputDoublePair<T>>> queuePool, DistanceType distType, Example<T> example) {<NEW_LINE>SparseVector vector = SparseVector.createSparseVector(example, featureIDMap, false);<NEW_LINE>List<Future<List<OutputDoublePair<T>>>> future...
> chunkOutputs = f.get();
690,618
/*<NEW_LINE>The "diameter" of a given subtree is the longest path between "any two<NEW_LINE>nodes in the tree". If we want a maximal diameter, we want to know the<NEW_LINE>deepest depth of the left & right subtree of a node (this maximizes the<NEW_LINE>path) and we then add 1 to account for the subtree root.<NEW_LINE>*...
left.subtreeHeight + right.subtreeHeight);
1,538,273
public void parse(String result, Object data) {<NEW_LINE>JsonObject jobj = JsonParser.parseString(result).getAsJsonObject();<NEW_LINE>if (jobj.has("type")) {<NEW_LINE>String type = jobj.get("type").getAsString();<NEW_LINE>if (type.equals("error")) {<NEW_LINE>String desc = jobj.get("description").getAsString();<NEW_LINE...
res = keyValue.get("value");
950,146
private void updateSelectedContent() {<NEW_LINE>TableRowCore[<MASK><NEW_LINE>ArrayList<ISelectedContent> valid = new ArrayList<>();<NEW_LINE>last_selected_content.clear();<NEW_LINE>for (int i = 0; i < rows.length; i++) {<NEW_LINE>SBC_SearchResult rc = (SBC_SearchResult) rows[i].getDataSource();<NEW_LINE>last_selected_c...
] rows = tv_subs_results.getSelectedRows();
1,503,949
public static void growBorder(GrayF64 src, ImageBorder_F64 border, int borderX0, int borderY0, int borderX1, int borderY1, GrayF64 dst) {<NEW_LINE>dst.reshape(src.width + borderX0 + borderX1, src.height + borderY0 + borderY1);<NEW_LINE>border.setImage(src);<NEW_LINE>// Copy src into the inner portion of dst<NEW_LINE>Im...
x - borderX0, y - borderY0);
1,421,167
private BigDecimal computePriceDifference(@NonNull final ContextForCompesationOrder compensationOrderContext, @NonNull final I_C_Contract_Change contractChange) {<NEW_LINE>final List<I_C_SubscriptionProgress> sps = compensationOrderContext.getSubscriptionProgress();<NEW_LINE>final Timestamp changeDate = compensationOrd...
ctx = InterfaceWrapperHelper.getCtx(currentTerm);
1,165,703
private static List<PluginConfig> buildPluginConfigs(PluginConfig updatedConfig, String priorVersion, AgentConfig agentConfig) throws OptimisticLockException {<NEW_LINE>List<PluginConfig> pluginConfigs = Lists.newArrayList(agentConfig.getPluginConfigList());<NEW_LINE>ListIterator<PluginConfig<MASK><NEW_LINE>boolean fou...
> i = pluginConfigs.listIterator();
213,363
/*<NEW_LINE>* Returns the source file name as defined in the given info.<NEW_LINE>* If not present in the info, infers it from this type.<NEW_LINE>*/<NEW_LINE>public String sourceFileName(IBinaryType info) {<NEW_LINE>char[] sourceFileName = info.sourceFileName();<NEW_LINE>if (sourceFileName == null) {<NEW_LINE>if (info...
sourceFileName.length - index - 1);
1,186,428
private static void logTrace(Plugin plugin, int severity, String message, String scope, Throwable th) {<NEW_LINE>if (isScopeEnabled(IDebugScopes.LOGGER)) {<NEW_LINE>StatusLevel newSeverity = getStatusLevel(severity);<NEW_LINE>boolean inSeverity = isSeverityEnabled(newSeverity);<NEW_LINE>String cause = StringUtil.EMPTY;...
System.err.println(traceMessage);
568,779
public void sub(int size, Register dst, Register src, int immediate) {<NEW_LINE>assert (!dst.equals(zr) && !src.equals(zr));<NEW_LINE>if (immediate < 0) {<NEW_LINE>add(size, dst, src, -immediate);<NEW_LINE>} else if (isAddSubtractImmediate(immediate, false)) {<NEW_LINE>if (!(dst.equals(src) && immediate == 0)) {<NEW_LI...
assert !dst.equals(src);
985,344
public Response searchPermsDebug(@QueryParam("key") String apiToken, @QueryParam("id") Long dvObjectId) {<NEW_LINE>User user = findUserByApiToken(apiToken);<NEW_LINE>if (user == null) {<NEW_LINE>return error(Response.Status.UNAUTHORIZED, "Invalid apikey");<NEW_LINE>}<NEW_LINE>DvObject dvObjectToLookUp = dvObjectService...
roleAssignments = rolesSvc.rolesAssignments(dvObject);
153,784
@ApiOperation(httpMethod = "GET", value = "Get permissions by group", notes = "", produces = MediaType.APPLICATION_JSON_VALUE, response = List.class)<NEW_LINE>public List<ReadablePermission> listPermissions(@PathVariable String group) {<NEW_LINE>Group g = null;<NEW_LINE>try {<NEW_LINE>g = groupService.findByName(group)...
setName(permission.getPermissionName());
957,406
public void handleDoubleClick(Widget w, WidgetAction.WidgetMouseEvent e) {<NEW_LINE>if (diagramScene.isAllVisible()) {<NEW_LINE>Set<Integer> hiddenNodes = new HashSet<Integer>(diagramScene.getModel().getGraphToView().getGroup().getAllNodes());<NEW_LINE>hiddenNodes.removeAll(this.getFigure().getSource().getSourceNodesAs...
getSource().getSourceNodesAsSet());
166,181
final NotifyWhenUploadedResult executeNotifyWhenUploaded(NotifyWhenUploadedRequest notifyWhenUploadedRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(notifyWhenUploadedRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,286,611
public void populateProperties(WayPropertySet props) {<NEW_LINE>// Replace existing matching properties as the logic is that the first statement registered takes precedence over later statements<NEW_LINE>props.setProperties("highway=trunk_link", StreetTraversalPermission.ALL, 2.06, 2.06);<NEW_LINE>props.setProperties("...
StreetTraversalPermission.CAR, 7.47, 7.47);
400,697
protected boolean attach(ReferenceType theClass) {<NEW_LINE>if (theClass == null || className == null || !className.equals(parseTopLevelClassName(theClass.name()))) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>log("trying to attach: " + line.fileName + ":" + line.lineIdx + " to " + theClass.name());<NEW_LINE>if (!dbg.i...
javaLine.lineIdx() + 1);
1,300,842
final ListTasksResult executeListTasks(ListTasksRequest listTasksRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTasksRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
endClientExecution(awsRequestMetrics, request, response);
1,014,630
private void forwardResults(BatchIterator<Row> it, boolean isLast) {<NEW_LINE>multiBucketBuilder.build(buckets);<NEW_LINE>AtomicInteger numActiveRequests = new AtomicInteger(downstreams.size());<NEW_LINE>for (int i = 0; i < downstreams.size(); i++) {<NEW_LINE>Downstream downstream = downstreams.get(i);<NEW_LINE>if (dow...
countdownAndMaybeContinue(it, numActiveRequests, true);
947,022
public PsiElement resolve() {<NEW_LINE>// the property may belong to a field that was declared in an implemented interface<NEW_LINE>final JSGraphQLEndpointObjectTypeDefinition typeDefinition = PsiTreeUtil.getParentOfType(self, JSGraphQLEndpointObjectTypeDefinition.class);<NEW_LINE>if (typeDefinition != null && typeDefi...
getImplementsInterfaces(), JSGraphQLEndpointNamedType.class);
1,464,632
private void normalize(Set<EventBean> result, Map<Object, Object> submap, CompositeIndexQueryResultPostProcessor postProcessor) {<NEW_LINE>if (submap.size() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (next == null) {<NEW_LINE>if (postProcessor != null) {<NEW_LINE>for (Map.Entry<Object, Object> entry : submap.entry...
lookup(index, result, postProcessor);
1,643,521
protected void encodeMarkup(FacesContext context, InputText inputText) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String clientId = inputText.getClientId(context);<NEW_LINE>writer.startElement("input", inputText);<NEW_LINE>writer.writeAttribute("id", clientId, null);<NEW...
, InputText.STYLE_CLASS), "styleClass");
1,638,772
public void onBreakSpeed(IToolStackView tool, int level, BreakSpeed event, Direction sideHit, boolean isEffective, float miningSpeedModifier) {<NEW_LINE>if (isEffective) {<NEW_LINE><MASK><NEW_LINE>Item item = state.getBlock().asItem();<NEW_LINE>if (item != Items.AIR) {<NEW_LINE>Level world = event.getPlayer().level;<NE...
BlockState state = event.getState();
1,538,569
public void deleteRepositoryAttributes(Long repositoryId, List<String> attributesKeys, boolean deleteAll, boolean canNotOperateOnProtected, RepositoryEnums.RepositoryTypeEnum repositoryType) throws ModelDBException {<NEW_LINE>try (var session = modelDBHibernateUtil.getSessionFactory().openSession()) {<NEW_LINE>session....
lock(repositoryEntity, LockMode.PESSIMISTIC_WRITE);
1,559,593
public void indexAll(IProject project) {<NEW_LINE>// New index is disabled, see bug 544898<NEW_LINE>// this.indexer.makeDirty(project);<NEW_LINE>if (JavaCore.getPlugin() == null)<NEW_LINE>return;<NEW_LINE>try {<NEW_LINE>// Disable index manager to avoid synchronization lock contention when adding new index requests to ...
= new IndexAllProject(project, this);
63,529
public void writePartitionedFanoutDataWriter(Blackhole blackhole) throws IOException {<NEW_LINE>FileIO io = table().io();<NEW_LINE>OutputFileFactory fileFactory = newFileFactory();<NEW_LINE>SparkFileWriterFactory writerFactory = SparkFileWriterFactory.builderFor(table()).dataFileFormat(fileFormat()).dataSchema(table()....
InternalRowWrapper internalRowWrapper = new InternalRowWrapper(dataSparkType);
1,232,626
private void execute(Task task) throws Exception {<NEW_LINE>try {<NEW_LINE>String series = StringTools.uniqueToken();<NEW_LINE>WorkLog workLog = null;<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>workLog = emc.firstEqualAndEqual(WorkLog.class, WorkLog.job_FIEL...
this.updateTaskCompleted(taskCompletedId, record);
1,138,547
public int onStartCommand(@Nullable Intent intent, int flags, int startId) {<NEW_LINE>int startCommand = super.onStartCommand(intent, flags, startId);<NEW_LINE>if (intent != null) {<NEW_LINE>int id = intent.getIntExtra(getPackageName() + ".ID", -1);<NEW_LINE>String mode = intent.<MASK><NEW_LINE>LogUtility.d("" + mode);...
getStringExtra(getPackageName() + ".MODE");
560,369
private void doSetResult(AsyncExecutionContextImpl<CompletionStage<R>> executionContext, MethodResult<CompletionStage<R>> result) {<NEW_LINE>CompletableFuture<R> resultWrapper = (CompletableFuture<R>) executionContext.getResultWrapper();<NEW_LINE>// Completing the return wrapper may cause user code to run, so set the t...
).thenAccept(resultWrapper::complete);
308,165
public boolean grantLock(Connection connectionInTransaction, String lockName) throws SQLException {<NEW_LINE>int updates = 0;<NEW_LINE>String needList = null;<NEW_LINE>try (PreparedStatement getNeedListPs = connectionInTransaction.prepareStatement(SQL_GET_NEED_LIST)) {<NEW_LINE>getNeedListPs.setString(1, lockName);<NEW...
index = needList.indexOf(",");
778,604
static QuadTreeImpl buildQuadTreeForPaths(MultiPathImpl multipathImpl) {<NEW_LINE>Envelope2D extent = new Envelope2D();<NEW_LINE>multipathImpl.queryLooseEnvelope2D(extent);<NEW_LINE>if (extent.isEmpty())<NEW_LINE>return null;<NEW_LINE>QuadTreeImpl quad_tree_impl = new QuadTreeImpl(extent, 8);<NEW_LINE>int hint_index = ...
quad_tree_impl.reset(extent, 8);
1,601,934
private void finishCreateReplica(AgentTask task, TFinishTaskRequest request) {<NEW_LINE>// if we get here, this task will be removed from AgentTaskQueue for certain.<NEW_LINE>// because in this function, the only problem that cause failure is meta missing.<NEW_LINE>// and if meta is missing, we no longer need to resend...
), replica.getId());
377,085
public void onNotificationPosted(StatusBarNotification sbn) {<NEW_LINE>for (CompoundData compoundData : dataList) {<NEW_LINE>NotificationEventData eventData = compoundData.notificationEventData;<NEW_LINE>Intent intent = match(sbn, eventData.app, eventData.title, eventData.content) ? NotificationSlot.NotifyIntentPrototy...
id, sbn.getPackageName());
30,844
public void refreshTree(final ITreeNode<CTag> tag) {<NEW_LINE>final List<DefaultMutableTreeNode> lastNodes = TreeHelpers.getLastExpandedNodes(m_tagsTree);<NEW_LINE>final List<Integer> lastNodeIds = new ArrayList<Integer>();<NEW_LINE>if ((tag != null) && (tag.getParent() != null)) {<NEW_LINE>lastNodeIds.add(tag.getParen...
(Integer) lastNode.getUserObject();
1,152,570
public byte[] doInTransform(Instrumentor instrumentor, ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws InstrumentException {<NEW_LINE>final InstrumentClass target = instrumentor.getInstrumentClass(loader, className, classfileBuffer);<...
target.addField(AsyncContextAccessor.class);
1,391,134
protected Hover onTrackMouseMove(Fonts.TextMeasurer m, double x, double y, int mods) {<NEW_LINE>MemorySummaryTrack.Data data = track.getData(state.toRequest(), onUiThread());<NEW_LINE>if (data == null || data.ts.length == 0) {<NEW_LINE>return Hover.NONE;<NEW_LINE>}<NEW_LINE>long time = state.pxToTime(x);<NEW_LINE>if (t...
LEGEND_SIZE, HEIGHT + 2 * TRACK_MARGIN);
1,590,969
static PostgreDataType resolveDataType(@NotNull DBRProgressMonitor monitor, @NotNull PostgreDatabase database, long oid) throws SQLException, DBException {<NEW_LINE>// Initially cache only base types (everything but composite and arrays)<NEW_LINE>try (JDBCSession session = database.getDefaultContext(monitor, true).open...
"Schema " + schemaOid + " not found for data type " + oid);
1,156,229
private static Groups prepareGroups(@Nonnull VcsLogDataPack dataPack, @Nullable Collection<VirtualFile> visibleRoots, @Nullable List<List<String>> recentItems) {<NEW_LINE>Groups filteredGroups = new Groups();<NEW_LINE>Collection<VcsRef> allRefs = dataPack.getRefs().getBranches();<NEW_LINE>for (Map.Entry<VirtualFile, Se...
filteredGroups.recentGroups.add(recentItem);
1,625,384
public static // of the pattern in the text in O(n+m) time.<NEW_LINE>List<Integer> rabinKarp(String text, String pattern) {<NEW_LINE>List<Integer> matches = new ArrayList<>();<NEW_LINE>if (text == null || pattern == null)<NEW_LINE>return matches;<NEW_LINE>// Find pattern length (PL) and text length (TL)<NEW_LINE>final ...
, TL = text.length();
687,697
public ThingTypeProperties unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ThingTypeProperties thingTypeProperties = new ThingTypeProperties();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
class).unmarshall(context));
579,644
// -----------------------------------------------------<NEW_LINE>// Actually Crud<NEW_LINE>// -------------<NEW_LINE>@Execute<NEW_LINE>@Secured({ ROLE })<NEW_LINE>public HtmlResponse create(final CreateForm form) {<NEW_LINE>verifyCrudMode(<MASK><NEW_LINE>validate(form, messages -> {<NEW_LINE>}, this::asEditHtml);<NEW_...
form.crudMode, CrudMode.CREATE);
298,913
public void changedUpdate(DocumentEvent e) {<NEW_LINE>String text = formPanel.getText(IMAGE);<NEW_LINE>boolean hasImage = !((ListItemProperty) formPanel.getSelectedItem(TYPE)).getName().contains("Image") || text != null && (text = text.trim()).length() != 0;<NEW_LINE>text = formPanel.getText(NAME);<NEW_LINE>boolean has...
BooleanTokenOverlay) formPanel.getSelectedItem(STATES);
1,117,774
public SetterDetails analyze(Class<?> setterType) {<NEW_LINE>Objects.requireNonNull(setterType, "setterType");<NEW_LINE>if (!setterType.isInterface()) {<NEW_LINE>throw new <MASK><NEW_LINE>}<NEW_LINE>Method[] methods = setterType.getDeclaredMethods();<NEW_LINE>if (methods.length != 1) {<NEW_LINE>throw new IllegalArgumen...
IllegalArgumentException("setterType " + setterType + "is not an interface");
1,384,377
private boolean populateStreamRequestUrl(StringBuilder uriString) {<NEW_LINE>ObjectMapper objMapper = new ObjectMapper();<NEW_LINE>Formatter uriFmt = new Formatter(uriString);<NEW_LINE>String filtersStr = null;<NEW_LINE>boolean error = false;<NEW_LINE>if (null != _filter) {<NEW_LINE>try {<NEW_LINE>Map<Long, DbusKeyFilt...
> fMap = _filter.getFilterMap();
1,636,246
public ProcessPreconditionsResolution checkPreconditionsApplicable(final IProcessPreconditionsContext context) {<NEW_LINE>if (!context.isSingleSelection()) {<NEW_LINE>return ProcessPreconditionsResolution.rejectBecauseNotSingleSelection();<NEW_LINE>}<NEW_LINE>if (!I_AD_User.Table_Name.equals(context.getTableName())) {<...
create(user, I_AD_User.class);
1,375,316
public RestChannelConsumer prepareRequest(final RestRequest request, final NodeClient client) throws IOException {<NEW_LINE>final String[] names = Strings.splitStringByCommaToArray(request.param("name"));<NEW_LINE>final GetIndexTemplatesRequest getIndexTemplatesRequest = new GetIndexTemplatesRequest(names);<NEW_LINE>if...
().isEmpty() == false;
1,268,492
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@public @buseventtype create json schema JsonEvent (c0 Map);\n" + "@name('s0') select * from JsonEvent#keepall;\n";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>Object[][] namesAndTypes = new Object[][] { { "c0", Map.class } };<NEW_LINE>...
json, it.next());
976,075
ArrayList<Object> new156() /* reduce AFixedArrayDescriptor */<NEW_LINE>{<NEW_LINE>@SuppressWarnings("hiding")<NEW_LINE>ArrayList<Object> nodeList = new ArrayList<Object>();<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>ArrayList<Object> nodeArrayList3 = pop();<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>ArrayList<Obj...
TLBracket) nodeArrayList1.get(0);
139,733
Object adaptOutput(Object output, AnnotatedElement element, AnnotatedType type) {<NEW_LINE>if (output == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// Transparently handle unexpected wrapped results. This enables elegant exception handling, partial results etc.<NEW_LINE>if (DataFetcherResult.class.equals(output....
)).errors(errors));
286,096
private static void runAssertionAllTypes(RegressionEnvironment env, String typeName, Object[] events) {<NEW_LINE>String graph = "@name('flow') create dataflow MyGraph " + "DefaultSupportSourceOp -> instream<" + typeName + ">{}" + "EventBusSink(instream) {}";<NEW_LINE>env.compileDeploy(graph);<NEW_LINE>env.compileDeploy...
+ typeName).addListener("s0");
204,500
final UpdateSMBSecurityStrategyResult executeUpdateSMBSecurityStrategy(UpdateSMBSecurityStrategyRequest updateSMBSecurityStrategyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateSMBSecurityStrategyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
235,996
private void generateExternalTables(Properties ctx, HttpServletRequest httpRequest) {<NEW_LINE>HttpSession thisSession = httpRequest.getSession(false);<NEW_LINE>WebInfo wi = null;<NEW_LINE>if (thisSession != null)<NEW_LINE>if (thisSession.getAttribute(WebInfo.NAME) != null)<NEW_LINE>wi = (WebInfo) thisSession.getAttrib...
thisTemplateTable.getName() + ">\n");
945,727
private ArrayList<UploadPart> splitFile(long fileSize, long partSize) {<NEW_LINE>ArrayList<UploadPart> parts <MASK><NEW_LINE>long partNum = fileSize / partSize;<NEW_LINE>if (partNum >= 10000) {<NEW_LINE>partSize = fileSize / (10000 - 1);<NEW_LINE>partNum = fileSize / partSize;<NEW_LINE>}<NEW_LINE>for (long i = 0; i < p...
= new ArrayList<UploadPart>();
67,462
private void createBeanSymbol(DOMNode node, IJavaProject project, String docURI, long lastModified, TextDocument document, List<CachedSymbol> generatedSymbols) throws Exception {<NEW_LINE>String beanID = null;<NEW_LINE>int symbolStart = 0;<NEW_LINE>int symbolEnd = 0;<NEW_LINE>String beanClass = null;<NEW_LINE>List<DOMA...
= new EnhancedSymbolInformation(symbol, addon);
1,547,088
private static BatchOperator<?> packBatchOp(BatchOperator<?> data, final long id) {<NEW_LINE>DataSet<Row<MASK><NEW_LINE>final TypeInformation<?>[] types = data.getColTypes();<NEW_LINE>rows = rows.map(new RichMapFunction<Row, Row>() {<NEW_LINE><NEW_LINE>private static final long serialVersionUID = -182592464977659219L;<...
> rows = data.getDataSet();
571,135
protected void loadCheckConstraints(DefaultRelations relations) throws SQLException {<NEW_LINE>for (Record record : create().select(SYSCHECKS.sysconstraints().systables().sysschemas().SCHEMANAME, SYSCHECKS.sysconstraints().systables().TABLENAME, SYSCHECKS.sysconstraints().CONSTRAINTNAME, SYSCHECKS.CHECKDEFINITION).from...
get(SYSCHECKS.CHECKDEFINITION)));
1,061,135
private AmountSourceAndAcct createPaymentFacts(final Fact fact, final DocLine_Allocation line) {<NEW_LINE>final AcctSchema as = fact.getAcctSchema();<NEW_LINE>final BigDecimal paymentAllocatedAmt = line.getAllocatedAmt();<NEW_LINE>if (paymentAllocatedAmt.signum() == 0) {<NEW_LINE>// no amount to be allocated on payment...
null, paymentAllocatedAmt.negate());
253,823
protected void encodeLegend(FacesContext context, Fieldset fieldset) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String legendText = fieldset.getLegend();<NEW_LINE>UIComponent legend = fieldset.getFacet("legend");<NEW_LINE>boolean renderFacet = ComponentUtils.shouldRender...
fieldset.getTabindex(), null);
521,038
private static void collectPropertyAccessors(@Nonnull Class<?> aClass, @Nonnull List<MutableAccessor> accessors) {<NEW_LINE>// (name,(getter,setter))<NEW_LINE>final Map<String, Couple<Method>> candidates = new TreeMap<>();<NEW_LINE>for (Method method : aClass.getMethods()) {<NEW_LINE>if (!Modifier.isPublic(method.getMo...
second ? method : candidate.second);
1,470,072
public void run(RegressionEnvironment env) {<NEW_LINE>EPStatement[] statements = new EPStatement[5];<NEW_LINE>sendTimer(env, 1000);<NEW_LINE>statements[0] = env.compileDeploy("@name('stmtmetric') select * from " + StatementMetric.class.getName()).statement("stmtmetric");<NEW_LINE>statements[0].addListener(env.listenerN...
("runtimemetric").isInvoked());
730,431
private void createTranslationInfo(Composite composite) {<NEW_LINE>Composite translation = new Composite(composite, SWT.NONE);<NEW_LINE>GridDataFactory.fillDefaults().align(SWT.FILL, SWT.BEGINNING).applyTo(translation);<NEW_LINE>GridLayoutFactory.fillDefaults().margins(5, 5).numColumns(1).applyTo(translation);<NEW_LINE...
text.setText(Messages.PrefDescriptionDivvyDiary);
596,841
public boolean isNewTransactionAllowed(TransactionCommon transaction) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.<MASK><NEW_LINE>boolean allowed = true;<NEW_LINE>// Always allow non-durable subscribers to receive<NEW_LINE>if (isPubSub() && !isDurable())<NEW_LINE>allowed =...
entry(tc, "isNewTransactionAllowed", transaction);
1,256,317
public static boolean VRRenderModels_GetComponentStateForDevicePath(@NativeType("char const *") CharSequence pchRenderModelName, @NativeType("char const *") CharSequence pchComponentName, @NativeType("VRInputValueHandle_t") long devicePath, @NativeType("RenderModel_ControllerMode_State_t const *") RenderModelController...
), pComponentState.address());
1,129,877
private Object superAroundInvoke(InvocationContext inv) throws Exception {<NEW_LINE>Object results = getResultsObject(inv);<NEW_LINE>addAroundInvoke(results, CLASS_NAME, "superAroundInvoke");<NEW_LINE>// Validate and update context data.<NEW_LINE>Map<String, Object> map = inv.getContextData();<NEW_LINE>String data;<NEW...
String) map.get("AroundInvoke");
411,897
public static GetMainPartListResponse unmarshall(GetMainPartListResponse getMainPartListResponse, UnmarshallerContext _ctx) {<NEW_LINE>getMainPartListResponse.setRequestId(_ctx.stringValue("GetMainPartListResponse.RequestId"));<NEW_LINE>getMainPartListResponse.setCode(_ctx.longValue("GetMainPartListResponse.Code"));<NE...
("GetMainPartListResponse.Data.List[" + i + "].BrandUserNick"));
176,549
private void createReceivers() {<NEW_LINE>List<CompletableFuture<CoreMessageReceiver>> receiverFutures = partitions.stream().map(TopicPartitionInfo::getFullTopicName).map(queue -> {<NEW_LINE>MessagingFactory factory;<NEW_LINE>try {<NEW_LINE>factory = MessagingFactory.createFromConnectionStringBuilder(createConnection(q...
info("[{}] Service Bus consumer is stopped.", getTopic());
1,239,568
final ListEventsDetectionJobsResult executeListEventsDetectionJobs(ListEventsDetectionJobsRequest listEventsDetectionJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listEventsDetectionJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
193,939
protected static JsonObjectBuilder toJsonObjectBuilderWithLinks(WSJobInstance jobInstance, List<WSJobExecution> jobExecList, String urlRoot) {<NEW_LINE>JsonObjectBuilder jsonObjBuilder = toJsonObjectBuilder(jobInstance);<NEW_LINE>// Get most recent job execution and look for the JES Job Name and JES Job ID job paramete...
get(0).getJobParameters();
1,246,898
public int cost(OCommandContext ctx) {<NEW_LINE>OQueryStats stats = OQueryStats.get((ODatabaseDocumentInternal) ctx.getDatabase());<NEW_LINE>String indexName = idx.getName();<NEW_LINE>int size = keyCondition.getSubBlocks().size();<NEW_LINE>boolean range = false;<NEW_LINE>OBooleanExpression lastOp = keyCondition.getSubB...
Integer.MAX_VALUE : (int) val;
48,510
public void generateRate(AbstractContainerStatistics container, BinomialMetrics.BinomialMetric metric) {<NEW_LINE>long uniqueImpressions = container.getImpressionCounts().getUniqueUserCount();<NEW_LINE>Estimate jointRate;<NEW_LINE>try {<NEW_LINE>jointRate = metric.estimateRate(uniqueImpressions, container.getJointActio...
uniqueImpressions, action.getUniqueUserCount());
858,373
// reimplement this to be iterative, not recursive...<NEW_LINE>@BIF<NEW_LINE>public static ETuple2 mapfoldl(EProc proc, EObject fun0, EObject acc, EObject list0) throws Pausable {<NEW_LINE>EFun fun = fun0.testFunction2(2);<NEW_LINE><MASK><NEW_LINE>if (fun == null || list == null) {<NEW_LINE>ERT.func_info(am_lists, am_m...
ESeq list = list0.testSeq();
833,678
public static DescribeRefreshTaskByIdResponse unmarshall(DescribeRefreshTaskByIdResponse describeRefreshTaskByIdResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRefreshTaskByIdResponse.setRequestId(_ctx.stringValue("DescribeRefreshTaskByIdResponse.RequestId"));<NEW_LINE>describeRefreshTaskByIdResponse.setTotalCou...
("DescribeRefreshTaskByIdResponse.Tasks[" + i + "].Process"));
741,320
private synchronized void resolveDriver(Context ctx, WebDriverManager driverManager) throws IOException {<NEW_LINE>// Query string (for configuration parameters)<NEW_LINE>Map<String, List<String>> queryParamMap = new TreeMap<>(ctx.queryParamMap());<NEW_LINE>if (!queryParamMap.isEmpty()) {<NEW_LINE>log.info("Server quer...
= "wdm." + entry.getKey();
144,766
public void drawEntities(float x, float y, float w, float h, float scaling, boolean withLabels) {<NEW_LINE>if (!withLabels) {<NEW_LINE>updateUnitArray();<NEW_LINE>} else {<NEW_LINE>units.clear();<NEW_LINE>Groups.unit.each(units::add);<NEW_LINE>}<NEW_LINE>float sz = baseSize * zoom;<NEW_LINE>float dx = (Core.camera.posi...
team().color, 1f);
1,741,268
private void updateStats(@NonNull final Content content) {<NEW_LINE>int images;<NEW_LINE>int imgErrors = 0;<NEW_LINE>Context context = getContext();<NEW_LINE>if (null == context)<NEW_LINE>return;<NEW_LINE>if (null == content.getImageFiles())<NEW_LINE>return;<NEW_LINE>// Don't count the cover<NEW_LINE>images = content.g...
findViewById(R.id.redownload_detail_first_error);
1,282,994
private Node tryFoldShift(Node n, Node left, Node right) {<NEW_LINE>Double leftVal = this.getSideEffectFreeNumberValue(left);<NEW_LINE>Double rightVal = this.getSideEffectFreeNumberValue(right);<NEW_LINE>if (!isReasonableDoubleValue(leftVal) || !isReasonableDoubleValue(rightVal)) {<NEW_LINE>return n;<NEW_LINE>}<NEW_LIN...
int rvalInt = rightVal.intValue();
30,853
public LayerDetail mapRow(ResultSet rs, int rowNum) throws SQLException {<NEW_LINE>LayerDetail layer = new LayerDetail();<NEW_LINE>layer.chunkSize = rs.getInt("int_chunk_size");<NEW_LINE>layer.command = rs.getString("str_cmd");<NEW_LINE>layer.dispatchOrder = rs.getInt("int_dispatch_order");<NEW_LINE>layer.id = rs.getSt...
minimumMemory = rs.getLong("int_mem_min");
312,043
public Map loadAll(Collection keys) {<NEW_LINE>if (keys == null || keys.isEmpty()) {<NEW_LINE>return Collections.emptyMap();<NEW_LINE>}<NEW_LINE>Map<Object, Object> map = createHashMap(keys.size());<NEW_LINE>Iterator iterator = keys.iterator();<NEW_LINE>while (iterator.hasNext()) {<NEW_LINE>Object key = iterator.next()...
, delayedEntry.getExpirationTime()));
1,620,014
public int argmax() {<NEW_LINE>IntLongVectorStorage idstorage = (IntLongVectorStorage) storage;<NEW_LINE>if (idstorage.size() == 0)<NEW_LINE>return -1;<NEW_LINE>long maxval = Long.MIN_VALUE;<NEW_LINE>int maxidx = -1;<NEW_LINE>if (idstorage.isDense()) {<NEW_LINE>long[] val = idstorage.getValues();<NEW_LINE>int length = ...
] indices = idstorage.getIndices();
389,221
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (((bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>output.writeMessage(1, getCapabilities());<NEW_LINE>}<NEW_LINE>if (((bitField0_ & 0x00000002) == 0x00000002)) {<NEW_LINE>output.writeBool(2, privileged_);<NEW...
writeMessage(11, getSeccompProfile());
294,339
public void begin(InterpretationContext ec, String name, Attributes attributes) throws ActionException {<NEW_LINE>inError = false;<NEW_LINE>String className = attributes.getValue(CLASS_ATTRIBUTE);<NEW_LINE>if (OptionHelper.isEmpty(className)) {<NEW_LINE>addError("Mandatory \"" + CLASS_ATTRIBUTE + "\" attribute not set ...
) lcl).setContext(context);
902,839
public void onClick(View v) {<NEW_LINE>final Feed feed = new Feed.Builder().setMessage("Clone it out...").setName("Simple Facebook SDK for Android").setCaption("Code less, do the same.").setDescription("Login, publish feeds and stories, invite friends and more....").setPicture("https://raw.githubusercontent.com/wiki/sr...
setText(throwable.getMessage());
853,695
private Map<Member, String[]> inspectClass(Class<?> clazz) {<NEW_LINE>InputStream is = clazz.getResourceAsStream(getClassFileName(clazz));<NEW_LINE>if (is == null) {<NEW_LINE>// We couldn't load the class file, which is not fatal as it<NEW_LINE>// simply means this method of discovering parameter names won't work.<NEW_...
debug("Cannot find '.class' file for class [" + clazz + "] - unable to determine constructor/method parameter names");
1,435,691
private void savePreferences() {<NEW_LINE>// log reply changes.<NEW_LINE>if (!mPrefs.reply().get().equals(mReplyPref.getText().toString())) {<NEW_LINE>// Log old value and new value.<NEW_LINE>mAddLogPresenter.addLog(getString(R.string.settings_changed, mReplyPref.getDialogTitle().toString(), mPrefs.reply().get(), mRepl...
.isChecked() ? true : false;
968,375
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {<NEW_LINE>super.onCreatePreferences(savedInstanceState, rootKey);<NEW_LINE><MASK><NEW_LINE>Preference copyOnTapPreference = findPreference("pref_copy_on_tap");<NEW_LINE>copyOnTapPreference.setOnPreferenceChangeListener((preference, newValue) ->...
addPreferencesFromResource(R.xml.preferences_behavior);
1,709,879
protected AbstractBeanDefinition parseInternal(Element element, ParserContext parserContext) {<NEW_LINE>BeanDefinitionBuilder builder = null;<NEW_LINE>String type = element.getAttribute(IpAdapterParserUtils.TCP_CONNECTION_TYPE);<NEW_LINE>if (!StringUtils.hasText(type)) {<NEW_LINE>parserContext.getReaderContext().error(...
builder, element, IpAdapterParserUtils.MAPPER);
138,352
static <K, V> ImmutableBiMap<K, V> fromEntryArray(int n, Entry<K, V>[] entryArray) {<NEW_LINE>checkPositionIndex(n, entryArray.length);<NEW_LINE>int tableSize = Hashing.closedTableSize(n, MAX_LOAD_FACTOR);<NEW_LINE>int mask = tableSize - 1;<NEW_LINE>ImmutableMapEntry<K, V>[] keyTable = createEntryArray(tableSize);<NEW_...
checkNoConflictInKeyBucket(key, entry, nextInKeyBucket);