idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,407,924
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('var') create constant variable string MYVAR = '.*abc.*';\n" + "@name('s0') select * from SupportBean(theString regexp MYVAR);\n" + "" + "@name('ctx') create context MyContext start SupportBean_S0 as s0;\n" + "@name('s1') context MyContext select...
), sn.getIndex());
286,444
public SaikuDatasource process(SaikuDatasource ds) {<NEW_LINE>if (SecurityContextHolder.getContext() != null && SecurityContextHolder.getContext().getAuthentication() != null) {<NEW_LINE>String roles = null;<NEW_LINE>String ROLEFILTER = "role.filter";<NEW_LINE>String filter = ds.getProperties().containsKey(ROLEFILTER) ...
).put("location", location);
1,582,969
public static ListResourcesResponse unmarshall(ListResourcesResponse listResourcesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listResourcesResponse.setRequestId(_ctx.stringValue("ListResourcesResponse.RequestId"));<NEW_LINE>listResourcesResponse.setTotalCount(_ctx.integerValue("ListResourcesResponse.TotalCount"));<N...
("ListResourcesResponse.Resources[" + i + "].RegionId"));
1,850,267
protected FilterResults performFiltering(CharSequence constraint) {<NEW_LINE>String query = null != constraint ? constraint.toString() : "";<NEW_LINE>FilterResults filterResults = new FilterResults();<NEW_LINE>if (query.trim().isEmpty()) {<NEW_LINE>filterResults.count = data.size();<NEW_LINE>filterResults.values = data...
AmiiboManager amiiboManager = settings.getAmiiboManager();
1,538,565
private void adaptFpsRange(int expectedFps, CaptureRequest.Builder builderInputSurface) {<NEW_LINE>List<Range<Integer>> fpsRanges = getSupportedFps(null, Facing.BACK);<NEW_LINE>if (fpsRanges != null && fpsRanges.size() > 0) {<NEW_LINE>Range<Integer> closestRange = fpsRanges.get(0);<NEW_LINE>int measure = Math.abs(close...
closestRange.getUpper() - expectedFps);
695,391
private void statInit() {<NEW_LINE>final int p_WindowNo = getWindowNo();<NEW_LINE>labelValue.setText(Msg.getMsg(Env.getCtx(), "Value"));<NEW_LINE>fieldValue.setBackground(AdempierePLAF.getInfoBackground());<NEW_LINE>fieldValue.addActionListener(this);<NEW_LINE>labelName.setText(Msg.getMsg(Env.getCtx(), "Name"));<NEW_LI...
parameterPanel.add(fieldName, null);
124,686
/* =============== ENCRYPTION ================= */<NEW_LINE>private byte[] encrypt(byte[] data) throws Exception {<NEW_LINE>if (config.getGroupPassword() == null) {<NEW_LINE>return data;<NEW_LINE>}<NEW_LINE>Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");<NEW_LINE>byte[] iv = cipher.getParameters().getParame...
output.writeInt(iv.length);
963,417
protected final MethodTree rewriteChildren(MethodTree tree) {<NEW_LINE>ModifiersTree mods = (ModifiersTree) translate(tree.getModifiers());<NEW_LINE>ExpressionTree restype = (ExpressionTree) translateClassRef(tree.getReturnType());<NEW_LINE>List<? extends TypeParameterTree> typarams = translateStable(tree.getTypeParame...
translateStable(tree.getParameters());
923,779
private static void syncDefaultRoleStatesToDb(Connection conn, List<PolarAccountInfo> accounts, DefaultRoleState state) throws SQLException {<NEW_LINE>final String sql = String.format("insert into %s(%s, %s) values (?, ?) " + "on duplicate key update %s = ?;", <MASK><NEW_LINE>try (PreparedStatement stmt = conn.prepareS...
TABLE_DEFAULT_ROLE_STATE, COL_ACCOUNT_ID, COL_DEFAULT_ROLE_STATE, COL_ACCOUNT_ID);
519,286
private TsModel transformNonStringEnumKeyMaps(SymbolTable symbolTable, TsModel tsModel) {<NEW_LINE>return transformBeanPropertyTypes(tsModel, new TsType.Transformer() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public TsType transform(TsType.Context context, TsType tsType) {<NEW_LINE>if (tsType instanceof TsType.MappedType...
findFirst().orElse(null);
1,287,946
public void testAsyncInvoker_postConnectionTimeoutwithInvocationCallback(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String target = null;<NEW_LINE>if (isZOS()) {<NEW_LINE>// https://stackoverflow.com/a/904609/6575578<NEW_LINE>target = "http://example.com:81";<NEW_LINE>} else {<NEW_LINE>// Connect to telne...
Builder builder = t.request();
1,513,932
public void run() {<NEW_LINE>log.debug("Loading asset: " + asset.getMD5Key());<NEW_LINE>BufferedImage image = imageMap.get(asset.getMD5Key());<NEW_LINE>if (image != null && image != TRANSFERING_IMAGE) {<NEW_LINE>// We've somehow already loaded this image<NEW_LINE>log.debug("Image wasn't in transit: " + asset.getMD5Key(...
asset.getMD5Key() + "): looks like data and skipped");
994,022
public static void openInRevision(final File originalFile, final SVNUrl repoUrl, final SVNUrl fileUrl, final SVNRevision svnRevision, final SVNRevision pegRevision, boolean showAnnotations) {<NEW_LINE>File file;<NEW_LINE>String rev = svnRevision.toString();<NEW_LINE>try {<NEW_LINE>file = org.netbeans.modules.subversion...
Utils.openFile(fo, rev);
1,193
protected KeyInfoBean createKeyInfo() throws Exception {<NEW_LINE>KeyInfoBean keyInfo = new KeyInfoBean();<NEW_LINE>if (statement == Statement.AUTHN) {<NEW_LINE>keyInfo.setCertificate(certs[0]);<NEW_LINE>keyInfo.setCertIdentifer(certIdentifier);<NEW_LINE>} else if (statement == Statement.ATTR) {<NEW_LINE>// Build a new...
Element encryptedKeyElement = encrKey.getEncryptedKeyElement();
1,015,736
private Mono<PagedResponse<NetworkInterfaceInner>> listByResourceGroupSinglePageAsync(String resourceGroupName, 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."));<NEW_LINE>}...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
662,060
final ListPackagingConfigurationsResult executeListPackagingConfigurations(ListPackagingConfigurationsRequest listPackagingConfigurationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPackagingConfigurationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
205,760
public List<Integer> breadthFirstOrder(int startVertex) {<NEW_LINE>// If the specified startVertex is invalid, return an empty list<NEW_LINE>if (startVertex >= _numberOfVertices || startVertex < 0) {<NEW_LINE>return new ArrayList<Integer>();<NEW_LINE>}<NEW_LINE>// Create an array to keep track of the visited vertices<N...
] visited = new boolean[_numberOfVertices];
931,016
private void initAttrs(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {<NEW_LINE>float density = context.getResources().getDisplayMetrics().density;<NEW_LINE>float scaledDensity = context.getResources().getDisplayMetrics().scaledDensity;<NEW_LINE>TypedArray typedArray = context.obtainStyledAttr...
.styleable.BaseWheelLayout_wheel_visibleItemCount, 5));
1,105,555
public RestResponse list(Application app, RestRequest request) {<NEW_LINE>IPage<Application> applicationList = applicationService.page(app, request);<NEW_LINE>List<Application> appRecords = applicationList.getRecords();<NEW_LINE>List<Long> appIds = appRecords.stream().map(Application::getId).collect(Collectors.toList()...
pipeStates = appBuildPipeService.listPipelineStatus(appIds);
1,706,591
private Mono<Response<Void>> generateNewSitePublishingPasswordSlotWithResponseAsync(String resourceGroupName, String name, String slot, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot...
this.client.mergeContext(context);
1,296,828
public static void main(String[] args) {<NEW_LINE>JFrame view = new JFrame("spinner");<NEW_LINE>view.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);<NEW_LINE>view.setLayout(new FlowLayout());<NEW_LINE>Transaction.runVoid(() -> {<NEW_LINE>CellLoop<Integer> value = new CellLoop<>();<NEW_LINE>SLabel lblValue = new SLabel(...
sClicked.map(u -> 1);
1,059,070
public Zebra read(JsonReader in) throws IOException {<NEW_LINE>JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject();<NEW_LINE>validateJsonObject(jsonObj);<NEW_LINE>// store additional fields in the deserialized instance<NEW_LINE>Zebra instance = thisAdapter.fromJsonTree(jsonObj);<NEW_LINE>for (Map.Entry<Strin...
getValue().getAsNumber());
73,861
public List<OrderItem> readOrderItemsForCustomersInDateRange(List<Long> customerIds, Date startDate, Date endDate) {<NEW_LINE>CriteriaBuilder builder = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<OrderItem> criteria = builder.createQuery(OrderItem.class);<NEW_LINE>Root<OrderImpl> order = <MASK><NEW_LINE>Join<Order,...
criteria.from(OrderImpl.class);
1,840,054
protected String bindToFields(final OHttpRequest iRequest, final Map<String, String> iFields, final ORecordId iRid) throws Exception {<NEW_LINE>if (iRequest.getContent() == null)<NEW_LINE>throw new IllegalArgumentException("HTTP Request content is empty");<NEW_LINE>final <MASK><NEW_LINE>// PARSE PARAMETERS<NEW_LINE>Str...
String req = iRequest.getContent();
1,192,793
private void createPolarAreaModel() {<NEW_LINE>polarAreaModel = new PolarAreaChartModel();<NEW_LINE>ChartData data = new ChartData();<NEW_LINE>PolarAreaChartDataSet dataSet = new PolarAreaChartDataSet();<NEW_LINE>List<Number> <MASK><NEW_LINE>values.add(11);<NEW_LINE>values.add(16);<NEW_LINE>values.add(7);<NEW_LINE>valu...
values = new ArrayList<>();
822,596
public com.amazonaws.services.applicationinsights.model.AccessDeniedException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.applicationinsights.model.AccessDeniedException accessDeniedException = new com.amazonaws.services.applicationinsights.model.AccessDenie...
JsonToken token = context.getCurrentToken();
1,845,584
final public void caseAssignStmt(AssignStmt as) {<NEW_LINE>Value l = as.getLeftOp();<NEW_LINE>Value r = as.getRightOp();<NEW_LINE>if (!(l.getType() instanceof RefLikeType)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>assert r.getType() instanceof RefLikeType : "Type mismatch in assignment " + as + " in method " + method.get...
makeAllocNode(rtHashMap, rtHashMap, method);
1,306,935
private static void markStackRoots() {<NEW_LINE>Address relocationThreshold <MASK><NEW_LINE>for (Address stackRoots = ShadowStack.getStackTop(); stackRoots != null; stackRoots = ShadowStack.getNextStackFrame(stackRoots)) {<NEW_LINE>int count = ShadowStack.getStackRootCount(stackRoots);<NEW_LINE>Address stackRootsPtr = ...
= currentChunkPointer.value.toAddress();
1,659,579
private void updateSelectedColor() {<NEW_LINE>final boolean enabled = isEnabled();<NEW_LINE>if (enabled && myEditable) {<NEW_LINE>myTextField.setEnabled(true);<NEW_LINE>myTextField.setToolTipText(UIBundle.message("color.panel.select.color.tooltip.text"));<NEW_LINE>} else {<NEW_LINE>myTextField.setEnabled(false);<NEW_LI...
Color(gray, gray, gray);
1,189,929
public DmgClientFileSystem create(FSRLRoot targetFSRL, ByteProvider provider, FileSystemService fsService, TaskMonitor monitor) throws IOException, CancelledException {<NEW_LINE>FSRL containerFSRL = provider.getFSRL();<NEW_LINE>String dmgName = containerFSRL.getName();<NEW_LINE>ByteProvider decryptedProvider;<NEW_LINE>...
"Failed to mount DMG file system " + containerFSRL + ": ", ioe);
1,695,384
protected SootMethod generateRedirectMethodForStartActivityForResult(SootClass originActivity, SootClass destComp) {<NEW_LINE>String newSM_name = "redirector" + num++;<NEW_LINE>List<Type> newSM_parameters = new ArrayList<>();<NEW_LINE>newSM_parameters.add(originActivity.getType());<NEW_LINE>newSM_parameters.add(INTENT_...
IntConstant.v(-1));
1,839,028
public Result tryPrepareBlock(@Nonnull IFarmer farm, @Nonnull BlockPos pos, @Nonnull IBlockState state) {<NEW_LINE>if (canPlant(farm.getSeedTypeInSuppliesFor(pos))) {<NEW_LINE>// we'll lose some spots in the center, but we can plant in the outer ring, which gives a net gain<NEW_LINE>if (Math.abs(farm.getLocation().getX...
add(x, 0, z);
694,010
public static List<AnAction> buildSurroundActions(final Project project, final Editor editor, PsiFile file, @Nullable Surrounder surrounder) {<NEW_LINE>SelectionModel selectionModel = editor.getSelectionModel();<NEW_LINE><MASK><NEW_LINE>if (!hasSelection) {<NEW_LINE>selectLogicalLineContentsAtCaret(editor);<NEW_LINE>}<...
boolean hasSelection = selectionModel.hasSelection();
60,694
public void addMappingForUrlPatterns(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, int index, String... urlPatterns) throws IllegalStateException, IllegalArgumentException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {<NEW_LINE>Tr.entry(tc, "addMappingForUrlPatterns", "is...
getFilterMappings().add(fmapping);
1,116,602
// Populate the table with data.<NEW_LINE>public static void putItem(DynamoDbClient ddb, String tableName, String issueId, String title, String description, String createDate, String lastUpdateDate, String dueDate, Integer priority, String status) {<NEW_LINE>HashMap<String, AttributeValue> item = new HashMap<String, At...
println(e.getMessage());
1,572,976
void poll(long timeout) {<NEW_LINE>checkState(Looper.myLooper() == Looper.getMainLooper() && Looper.myQueue() == realQueue);<NEW_LINE>// Message queue typically expects the looper to loop calling next() which returns current<NEW_LINE>// messages from the head of the queue. If no messages are current it will mark itself...
setField(realQueue, "mBlocked", true);
663,740
final DescribeStackDriftDetectionStatusResult executeDescribeStackDriftDetectionStatus(DescribeStackDriftDetectionStatusRequest describeStackDriftDetectionStatusRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeStackDriftDetectionStatusRequest);<NEW_LINE>AWSRequestMetrics awsRequest...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
385,597
public static QuasiNode parseQuasiNode(InputSource inputSource, String pattern) throws ParseException {<NEW_LINE>// The top-level node returned from the parser is always a Block.<NEW_LINE>Block topLevelBlock = (Block) parse(inputSource, pattern);<NEW_LINE>ParseTreeNode topLevelNode = topLevelBlock;<NEW_LINE>// If the t...
FunctionDeclaration) topLevelNode).getInitializer();
122,013
public void updateKeys() {<NEW_LINE>List<Node> keys = new LinkedList<Node>();<NEW_LINE>serverInstance.getCommonSupport().refresh();<NEW_LINE>if (serverInstance.getServerState() == ServerState.RUNNING) {<NEW_LINE>keys.add(new Hk2ItemNode(serverInstance.getLookup(), new Hk2ApplicationsChildren(serverInstance.getLookup())...
"LBL_WS"), Hk2ItemNode.WS_FOLDER));
1,052,527
public static int findLongestSubstring(String str) {<NEW_LINE>// Maintains count of each alphabet<NEW_LINE>int[] charCount = new int[52];<NEW_LINE>// Variable len stores length of longest valid substring, while start and end<NEW_LINE>// are limits of the current window (substring) being considered<NEW_LINE>int len = 0,...
max(len, end - start);
264,153
private void validate(User user, PerfTest oldOne, PerfTest newOne) {<NEW_LINE>if (oldOne == null) {<NEW_LINE>oldOne = new PerfTest();<NEW_LINE>oldOne.init();<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>checkNotEmpty(newOne.getTestName(), "testName should be provided");<NEW_LINE>checkArgument(newOne.getStatus().equals(Status.RE...
newOne = oldOne.merge(newOne);
115,095
protected String doIt() throws Exception {<NEW_LINE>log.info("R_MailText_ID=" + m_R_MailText_ID);<NEW_LINE>// Mail Test<NEW_LINE>m_MailText = new MMailText(getCtx(), m_R_MailText_ID, get_TrxName());<NEW_LINE>if (m_MailText.getR_MailText_ID() == 0)<NEW_LINE>throw new Exception("Not found @R_MailText_ID@=" + m_R_MailText...
currentTimeMillis() - start) + "ms";
1,270,288
private VmWorkJobVO createVmWorkJobToAddNetwork(VirtualMachine vm, Network network, NicProfile requested, CallContext context, User user, Account account) {<NEW_LINE>VmWorkJobVO workJob;<NEW_LINE>workJob = new VmWorkJobVO(context.getContextId());<NEW_LINE>workJob.setDispatcher(VmWorkConstants.VM_WORK_JOB_DISPATCHER);<N...
setVmInstanceId(vm.getId());
1,053,132
public Sequence execute(StaticContext sctx, QueryContext ctx, Sequence[] args) {<NEW_LINE>final XmlDBNode doc <MASK><NEW_LINE>final XmlNodeReadOnlyTrx rtx = doc.getTrx();<NEW_LINE>final XmlIndexController controller = rtx.getResourceManager().getRtxIndexController(rtx.getRevisionNumber());<NEW_LINE>if (controller == nu...
= (XmlDBNode) args[0];
905,848
public boolean execute(int tag, String name) {<NEW_LINE>if (name != null && name.trim().length() > 0) {<NEW_LINE>boolean isName = tag <MASK><NEW_LINE>String nameTag = isName ? "" : obj.getMapIndex().decodeType(tag).tag;<NEW_LINE>boolean skip = false;<NEW_LINE>// not completely correct we should check "name"+rc.preferre...
== obj.getMapIndex().nameEncodingType;
432,916
private void buildUI() {<NEW_LINE>BorderLayout borderLayout = new BorderLayout();<NEW_LINE>setLayout(borderLayout);<NEW_LINE>ringChartPanel = new RingChartPanel(this);<NEW_LINE>toolbar = new Toolbar(this);<NEW_LINE><MASK><NEW_LINE>toolbar.addKeyListenerToTypingArea(this);<NEW_LINE>displayArea = new DisplayArea(this);<N...
add(toolbar, BorderLayout.NORTH);
845,195
public void onPreInitialize() {<NEW_LINE>List<ContactRealm> contacts = RosterCacheManager.loadContacts();<NEW_LINE>for (ContactRealm contactRealm : contacts) {<NEW_LINE>try {<NEW_LINE>AccountJid account = AccountJid.from(contactRealm.getAccount() + "/" + contactRealm.getAccountResource());<NEW_LINE>UserJid userJid = Us...
group.getGroupName())));
1,365,669
private void destroyAndReallocateManagedVolume(VolumeInfo volumeInfo) {<NEW_LINE>if (volumeInfo == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>VolumeVO volume = volDao.findById(volumeInfo.getId());<NEW_LINE>if (volume == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (volume.getState() == State.Allocated) {<NEW_LINE>...
" due to: " + ex.getMessage());
1,044,348
private boolean snapshot() {<NEW_LINE>try {<NEW_LINE>final Dimension size = heavyWeightContainer.getPreferredSize();<NEW_LINE>final int width = size.width;<NEW_LINE>final int height = size.height;<NEW_LINE>// Avoid unnecessary and illegal screen captures<NEW_LINE>// for degenerated popups.<NEW_LINE>if (width <= 0 || he...
y, SHADOW_SIZE, height - SHADOW_SIZE);
337,205
public void addInformation(@Nonnull ItemStack stack, @Nullable World worldIn, @Nonnull List<String> tooltip, @Nonnull ITooltipFlag flagIn) {<NEW_LINE>super.addInformation(stack, worldIn, tooltip, flagIn);<NEW_LINE>CapturedMob capturedMob = CapturedMob.create(stack);<NEW_LINE>if (capturedMob != null) {<NEW_LINE>tooltip....
format("%3.1f", health)));
1,238,952
private void drawNode(UGraphic ug, double xTheoricalPosition, double yTheoricalPosition, double width, double height, boolean shadowing) {<NEW_LINE><MASK><NEW_LINE>shape.addPoint(0, 10);<NEW_LINE>shape.addPoint(10, 0);<NEW_LINE>shape.addPoint(width, 0);<NEW_LINE>shape.addPoint(width, height - 10);<NEW_LINE>shape.addPoi...
final UPolygon shape = new UPolygon();
1,644,194
public static ListSubscriptionItemsResponse unmarshall(ListSubscriptionItemsResponse listSubscriptionItemsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listSubscriptionItemsResponse.setRequestId(_ctx.stringValue("ListSubscriptionItemsResponse.RequestId"));<NEW_LINE>listSubscriptionItemsResponse.setTotalCount(_ctx.inte...
(_ctx.integerValue("ListSubscriptionItemsResponse.NextToken"));
1,243,550
ArrayList<Geometry> collect_geometries_to_union(int dim) {<NEW_LINE>ArrayList<Geometry> batch_to_union = new ArrayList<Geometry>();<NEW_LINE>ArrayList<Map.Entry<Integer, Bin_type>> entriesToRemove = new ArrayList<Map.Entry<MASK><NEW_LINE>Set<Map.Entry<Integer, Bin_type>> set = m_union_bins.get(dim).entrySet();<NEW_LINE...
<Integer, Bin_type>>();
282,136
public void consumeMessageAfter(ConsumeMessageContext context) {<NEW_LINE>if (context == null || context.getMsgList() == null || context.getMsgList().isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>TraceContext subBeforeContext = (TraceContext) context.getMqTraceContext();<NEW_LINE>if (subBeforeContext.getTraceBeans(...
(subBeforeContext.getGroupName()));
1,816,860
public static void successPage(HttpAction action, String message) {<NEW_LINE>String x = action.getRequestHeader(HttpNames.hAccept);<NEW_LINE>MediaType mt = null;<NEW_LINE>if (x != null && x.equals("*/*")) {<NEW_LINE>if (action.getRequestContentType().equals(WebContent.contentTypeHTMLForm))<NEW_LINE>mt = mtTextHTML;<NEW...
, MediaType.create("text/plain"));
981,096
protected HeifHandler<?> processBox(@NotNull Box box, @NotNull byte[] payload) throws IOException {<NEW_LINE>SequentialReader reader = new SequentialByteArrayReader(payload);<NEW_LINE>if (box.type.equals(HeifBoxTypes.BOX_ITEM_PROTECTION)) {<NEW_LINE>itemProtectionBox = new ItemProtectionBox(reader, box);<NEW_LINE>} els...
= new ItemInfoBox(reader, box);
1,004,121
public AggregationGroupByOperator run() {<NEW_LINE>assert _queryContext.getAggregationFunctions() != null;<NEW_LINE>assert _queryContext.getGroupByExpressions() != null;<NEW_LINE>int numTotalDocs = _indexSegment.getSegmentMetadata().getTotalDocs();<NEW_LINE>AggregationFunction[] aggregationFunctions = _queryContext.get...
MAX_DOC_PER_CALL, filterOperator).run();
1,049,772
public String generateId(Environment environment, ServiceInstance serviceInstance) {<NEW_LINE>Optional<String> cloudFoundryId = environment.getProperty("vcap.application.instance_id", String.class);<NEW_LINE>if (cloudFoundryId.isPresent()) {<NEW_LINE>return cloudFoundryId.get();<NEW_LINE>} else {<NEW_LINE>StringJoiner ...
String applicationName = serviceInstance.getId();
732,240
private final void onButtonPressed() {<NEW_LINE>try {<NEW_LINE>// Show the dialog<NEW_LINE>final VImageDialog vid = new VImageDialog(Env.getWindow(m_WindowNo), m_WindowNo, m_mImage);<NEW_LINE>vid.setVisible(true);<NEW_LINE>// Do nothing if user canceled (i.e. closed the window)<NEW_LINE>if (vid.isCanceled()) {<NEW_LINE...
).error(m_WindowNo, e);
588,407
private // due to negative edge weights.<NEW_LINE>int relax(EdgeWeightedDigraph edgeWeightedDigraph, int vertex) {<NEW_LINE>int lastComputedShortestDistance = distTo[vertex] + maxPathDistance;<NEW_LINE>for (DirectedEdge edge : edgeWeightedDigraph.adjacent(vertex)) {<NEW_LINE>Integer neighbor = edge.to();<NEW_LINE>if (d...
distancesIndex = distTo[neighbor] + maxPathDistance;
956,127
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {<NEW_LINE>CommonLayoutParams.adjustChildrenLayoutParams(this, widthMeasureSpec, heightMeasureSpec);<NEW_LINE>// Don't call measure because it will measure content twice.<NEW_LINE>// ScrollView is expected to have single child so we measure only the ...
contentMeasuredHeight = CommonLayoutParams.getDesiredHeight(child);
889,561
public static void main(String[] args) {<NEW_LINE>final MetricsAdvisorClient advisorClient = new MetricsAdvisorClientBuilder().credential(new MetricsAdvisorKeyCredential("subscription_key", "api_key")).endpoint("{endpoint}").buildClient();<NEW_LINE>final OffsetDateTime startTime = OffsetDateTime.parse("2020-01-01T00:00...
println(metricSeriesData.getTimestamps());
649,728
public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("rgb" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>int size = param.getSubSize();<NEW_LINE>if (size < 3 || size > 4) {<NEW_LINE>MessageManager mm = Engi...
sub2 = param.getSub(1);
1,380,067
public int[][] highestPeak(int[][] isWater) {<NEW_LINE>int m = isWater.length, n = isWater[0].length;<NEW_LINE>int[][] ans = new int[m][n];<NEW_LINE>for (int i = 0; i < m; ++i) {<NEW_LINE>Arrays.fill(<MASK><NEW_LINE>}<NEW_LINE>Deque<int[]> q = new LinkedList<>();<NEW_LINE>for (int i = 0; i < m; ++i) {<NEW_LINE>for (int...
ans[i], -1);
1,817,823
public com.amazonaws.services.migrationhubrefactorspaces.model.InternalServerException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.migrationhubrefactorspaces.model.InternalServerException internalServerException = new com.amazonaws.services.migrationhubrefac...
JsonToken token = context.getCurrentToken();
1,282,170
public RedirectView authenticateWithWebBasedPlugin(@PathVariable("pluginId") String pluginId, HttpServletRequest request) {<NEW_LINE>if (securityIsDisabledOrAlreadyLoggedIn(request)) {<NEW_LINE>return new RedirectView("/pipelines", true);<NEW_LINE>}<NEW_LINE>LOGGER.debug("Requesting authentication for form auth.");<NEW...
? "/go/pipelines" : savedRequest.getRedirectUrl();
119,916
public void compact(String tableName, CompactionConfig config) throws AccumuloSecurityException, TableNotFoundException, AccumuloException {<NEW_LINE>EXISTING_TABLE_NAME.validate(tableName);<NEW_LINE>// Ensure compaction iterators exist on a tabletserver<NEW_LINE>final String skviName = SortedKeyValueIterator.class.get...
String iteratorClass = setting.getIteratorClass();
1,771,796
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View view = inflater.inflate(R.layout.fragment_rounded, container, false);<NEW_LINE>StreamAdapter adapter <MASK><NEW_LINE>adapter.add(new StreamItem(getActivity(), R.drawable.photo1, "Tufa at night", "Mono Lake,...
= new StreamAdapter(getActivity());
314,825
public static IClasspathEntry[] resolveClassPathEntries(IJavaProject javaProject, List<IPath> sourcePaths, List<IPath> excludingPaths, IPath outputPath) throws CoreException {<NEW_LINE>List<IClasspathEntry> <MASK><NEW_LINE>for (IClasspathEntry entry : javaProject.getRawClasspath()) {<NEW_LINE>if (entry.getEntryKind() !...
newEntries = new LinkedList<>();
1,034,048
default void reconcileThese(String trigger, Set<NamespaceAndName> desiredNames, String namespace, Handler<AsyncResult<Void>> handler) {<NEW_LINE>if (namespace.equals("*")) {<NEW_LINE>resetCounters();<NEW_LINE>} else {<NEW_LINE>resourceCounter(namespace).set(0);<NEW_LINE>pausedResourceCounter(namespace).set(0);<NEW_LINE...
futures = new ArrayList<>();
228,514
public RestConditionGroup appToRest(ConditionGroup app) {<NEW_LINE>Map<String, Boolean> restConditionMap = new HashMap<>();<NEW_LINE>if (app.getConditions() != null && !app.getConditions().isEmpty()) {<NEW_LINE>for (Condition condition : app.getConditions()) {<NEW_LINE>if (rulesAPI.findConditionlet(condition.getConditi...
condition.getId(), true);
1,105,361
public static List<Point2D_F64> createLayout(int numRows, int numCols, double centerDistance, double diameter) {<NEW_LINE>List<Point2D_F64> <MASK><NEW_LINE>double radius = diameter / 2.0;<NEW_LINE>double width = (numCols - 1) * centerDistance;<NEW_LINE>double height = (numRows - 1) * centerDistance;<NEW_LINE>for (int r...
ret = new ArrayList<>();
1,852,432
private void deleteSpecificServerRegistration(RESTRequest request, RESTResponse response) {<NEW_LINE>String source_objName = RESTHelper.getRequiredParam(request, APIConstants.PARAM_SOURCE_OBJNAME);<NEW_LINE>String listener_objName = RESTHelper.getRequiredParam(request, APIConstants.PARAM_LISTENER_OBJNAME);<NEW_LINE>Str...
objectNameConverter(listener_objName, true, converter);
229,328
public Target unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Target target = new Target();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = c...
class).unmarshall(context));
459,870
private LambdaExpression cachedResolvedCopy(TypeBinding targetType, boolean anyTargetOk, boolean requireExceptionAnalysis, InferenceContext18 context) {<NEW_LINE>targetType = findGroundTargetType(this.enclosingScope, targetType, targetType, argumentsTypeElided());<NEW_LINE>if (targetType == null)<NEW_LINE>return null;<...
HashMap<TypeBinding, LambdaExpression>();
164,296
public void visit(BLangRecordVariable varNode, AnalyzerData data) {<NEW_LINE>// Only simple variables are allowed to be configurable.<NEW_LINE>if (isConfigurable(varNode)) {<NEW_LINE>dlog.error(varNode.pos, DiagnosticErrorCode.ONLY_SIMPLE_VARIABLES_ARE_ALLOWED_TO_BE_CONFIGURABLE);<NEW_LINE>}<NEW_LINE>if (isIsolated(var...
getBType(), data.prevEnvs);
1,100,670
private void openCamera(SurfaceHolder holder, int cameraId) {<NEW_LINE>releaseCamera();<NEW_LINE>mCameraId = cameraId;<NEW_LINE>mCamera = Camera.open(mCameraId);<NEW_LINE>setCameraDisplayOrientation((Activity) getContext(), mCameraId, mCamera);<NEW_LINE>mParams = mCamera.getParameters();<NEW_LINE>mPictureSize = getProp...
setFocusMode(Camera.Parameters.FOCUS_MODE_CONTINUOUS_VIDEO);
1,534,109
ActionResult<Wo> execute(EffectivePerson effectivePerson, String job, String path0, String path1, String path2, String path3, String path4, String path5, JsonElement jsonElement) throws Exception {<NEW_LINE>LOGGER.debug("{} access.", effectivePerson::getDistinguishedName);<NEW_LINE>ActionResult<Wo> result = new ActionR...
), Work.job_FIELDNAME, job);
632,326
public JComponent createWSEditorComponent(Node node) {<NEW_LINE>WSDLModel clientWsdlModel;<NEW_LINE>WSDLModel wsdlModel;<NEW_LINE>isClient = !jaxWsService.isServiceProvider();<NEW_LINE>if (project != null) {<NEW_LINE>try {<NEW_LINE>wsdlModel = MavenWSITModelSupport.getModel(node, project, jaxWsSupport, jaxWsService, th...
jaxWsService, clientWsdlModel, wsdlModel, node);
347,835
private void checkLineWrappedLambda(final boolean isSwitchRuleLambda, final int mainAstColumnNo) {<NEW_LINE>final IndentLevel level;<NEW_LINE>final DetailAST mainAst = getMainAst();<NEW_LINE>if (isSwitchRuleLambda) {<NEW_LINE>// We check the indentation of the case literal or default literal<NEW_LINE>// on the previous...
final int previousLineStart = getLineStart(previousSibling);
202,969
private String buildNativeImagePath(VisitorContext visitorContext) {<NEW_LINE>String group = visitorContext.getOptions(<MASK><NEW_LINE>String module = visitorContext.getOptions().get(VisitorContext.MICRONAUT_PROCESSING_MODULE);<NEW_LINE>if (group != null && module != null) {<NEW_LINE>return "native-image/" + group + "/...
).get(VisitorContext.MICRONAUT_PROCESSING_GROUP);
1,108,461
protected void fillContentElement(final Element contentElement, final Content content) throws FeedException {<NEW_LINE>final String type = content.getType();<NEW_LINE>if (type != null) {<NEW_LINE>final Attribute typeAttribute = new Attribute("type", type);<NEW_LINE>contentElement.setAttribute(typeAttribute);<NEW_LINE>}...
(Base64.encode(value));
229,084
private static void hashFunction(byte[] output, int outputOff, long[] v, byte[] hm, int hmOff) {<NEW_LINE>int mask, cL;<NEW_LINE>byte[] T = new byte[PARAM_K * PARAM_N + 2 * HM_BYTES];<NEW_LINE>for (int k = 0; k < PARAM_K; k++) {<NEW_LINE>int index = k * PARAM_N;<NEW_LINE>for (int i = 0; i < PARAM_N; i++) {<NEW_LINE>int...
) >> (RADIX32 - 1);
797,587
private static double mergeNoises(double yNoiseIdx, double biomeNoiseV, double depthNoiseV, double upperInterpolationNoiseV, double lowerInterpolationNoiseV, double interpolationNoiseV, double temperatureV, double rainfallV) {<NEW_LINE>// This took a lot of trial and error to get right...<NEW_LINE>double scaledRainfall...
min(1, depth2) / 8.0;
1,726,505
public static DescribeCdnDomainDetailResponse unmarshall(DescribeCdnDomainDetailResponse describeCdnDomainDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeCdnDomainDetailResponse.setRequestId(_ctx.stringValue("DescribeCdnDomainDetailResponse.RequestId"));<NEW_LINE>GetDomainDetailModel getDomainDetailModel =...
(_ctx.stringValue("DescribeCdnDomainDetailResponse.GetDomainDetailModel.DomainName"));
262,252
public ValueStatus checkValidity(Object value) {<NEW_LINE>if (!(value instanceof String)) {<NEW_LINE>return ValueStatus.getErrorStatus(value);<NEW_LINE>}<NEW_LINE>String typeToCheck = (String) value;<NEW_LINE>// This only checks if the value is syntactically correct Java. It does<NEW_LINE>// not check if<NEW_LINE>// th...
ValueStatus.getErrorStatus(value, INVALID_JAVA);
882,932
private ProcessInfoParameter createProcessInfoParameter(@NonNull final WFNodeParameter nPara) {<NEW_LINE>final String attributeName = nPara.getAttributeName();<NEW_LINE>final String attributeValue = nPara.getAttributeValue();<NEW_LINE>log.debug("{} = {}", attributeName, attributeValue);<NEW_LINE>// Value - Constant/Var...
index = columnName.indexOf('@');
1,377,379
public void testXA012(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>final <MASK><NEW_LINE>tm.begin();<NEW_LINE>final Transaction tx = tm.getTransaction();<NEW_LINE>tx.enlistResource(new XAResourceImpl().setPrepareAction(XAException.XA_RBROLLBACK));<NEW_LINE>tx.enlistResource(new ...
TransactionManager tm = TransactionManagerFactory.getTransactionManager();
822,756
public static void partialReduceFloatAddCarrierValue(float[] inputArray, float[] outputArray, int gidx, float value) {<NEW_LINE>float[] localArray = (float[]) NewArrayNode.<MASK><NEW_LINE>int localIdx = SPIRVOCLIntrinsics.get_local_id(0);<NEW_LINE>int localGroupSize = SPIRVOCLIntrinsics.get_local_size(0);<NEW_LINE>int ...
newUninitializedArray(float.class, LOCAL_WORK_GROUP_SIZE);
805,116
public final void neighborAllToAllv(Object sendbuf, int[] sendcount, int[] sdispls, Datatype sendtype, Object recvbuf, int[] recvcount, int[] rdispls, Datatype recvtype) throws MPIException {<NEW_LINE>MPI.check();<NEW_LINE>int sendoff = 0, recvoff = 0;<NEW_LINE>boolean sdb = false, rdb = false;<NEW_LINE>if (sendbuf ins...
Buffer) sendbuf).array();
276,805
public static boolean areElementsEquivalent(@Nonnull PsiElement element1, @Nonnull PsiElement element2, @Nullable Comparator<PsiElement> resolvedElementsComparator, @Nullable Comparator<PsiElement> leafElementsComparator, @javax.annotation.Nullable Condition<PsiElement> isElementSignificantCondition, boolean areComment...
PsiReference ref2 = element2.getReference();
700,125
public void bind(ViewPager viewPager, TabLayout tabLayout, FloatingActionButton navigationFab, FloatingActionButton genericFab) {<NEW_LINE>viewPager.setPageMargin(viewPager.getResources().getDimensionPixelOffset(R.dimen.divider));<NEW_LINE>viewPager.setPageMarginDrawable(R.color.blackT12);<NEW_LINE>viewPager.setOffscre...
getItem(viewPager.getCurrentItem());
608,490
public void testCMTBeanSubmitsManagedTaskThatInvokesTxNever(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>PrintWriter out = response.getWriter();<NEW_LINE>final ConcurrentCMT bean = (ConcurrentCMT) new <MASK><NEW_LINE>Future<?> future = bean.submit(new Callable<Object>() {<NEW_LI...
InitialContext().lookup("java:global/concurrent/ConcurrentCMTBean!ejb.ConcurrentCMT");
598,963
protected void completeEditing(boolean messageStop, boolean messageCancel, boolean messageTree) {<NEW_LINE>if (stopEditingInCompleteEditing && editingComponent != null) {<NEW_LINE>Component oldComponent = editingComponent;<NEW_LINE>TreePath oldPath = editingPath;<NEW_LINE>TreeCellEditor oldEditor = cellEditor;<NEW_LINE...
Object newValue = oldEditor.getCellEditorValue();
1,732,388
private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String ruleName, 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 IllegalArgumentException("Par...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
1,072,787
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setTitle(R.string.stats);<NEW_LINE>displayBackAction();<NEW_LINE>setContentView(R.layout.activity_stats);<NEW_LINE>mTable = findViewById(R.id.table);<NEW_LINE>mBytesSent = findViewById(R.id.bytes_sent);<NEW_LINE>m...
).setVisibility(View.GONE);
1,235,829
public void run(WorkingCopy parameter) throws Exception {<NEW_LINE>parameter.toPhase(JavaSource.Phase.RESOLVED);<NEW_LINE>TypeElement classElement = parameter.getElements().getTypeElement(packageNameWithDot + ejbClassName);<NEW_LINE>ClassTree classTree = parameter.getTrees().getTree(classElement);<NEW_LINE>ModifiersTre...
tm.Modifiers(modifiers, annotations);
1,695,809
protected void configure() {<NEW_LINE>bind(ActionFilters.class).toInstance(actionFilters);<NEW_LINE>bind(DestructiveOperations.class).toInstance(destructiveOperations);<NEW_LINE>bind(TransportPutMappingAction.RequestValidators.class).toInstance(mappingRequestValidators);<NEW_LINE>if (false == transportClient) {<NEW_LIN...
getTransportAction()).asEagerSingleton();
1,637,899
public void process() {<NEW_LINE>EjbBundleDescriptorImpl bundle = ctx.getModuleMetaData(EjbBundleDescriptorImpl.class);<NEW_LINE>ResourceReferenceDescriptor cmpResource = bundle.getCMPResourceReference();<NEW_LINE>// If this bundle's beans are not created by Java2DB, there is nothing to do.<NEW_LINE>if (!DeploymentHelp...
boolean userCreateTables = cmpResource.isCreateTablesAtDeploy();
219,021
public void searchPerson(final LdapQuery query, final LdapListener caller, LdapSearchSettings searchSettings) {<NEW_LINE>if (query == null)<NEW_LINE>throw new NullPointerException("query shouldn't be null!");<NEW_LINE>if (caller == null)<NEW_LINE>throw new NullPointerException("caller shouldn't be null!");<NEW_LINE>if ...
= new ArrayList<LdapDirectory>();