idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,375,392
public boolean checkManifest(String dir) throws IOException {<NEW_LINE>// Read "CURRENT" file, which contains a pointer to the current manifest file<NEW_LINE>File currentFile = new File(dir, Filename.currentFileName());<NEW_LINE>if (!currentFile.exists()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>String currentName ...
= new File(dir, currentName);
753,147
protected void writeForLoopWithClosureList(final ForStatement statement) {<NEW_LINE>controller.getAcg().onLineNumber(statement, "visitForLoop");<NEW_LINE>writeStatementLabel(statement);<NEW_LINE>MethodVisitor mv = controller.getMethodVisitor();<NEW_LINE>controller.getCompileStack().pushLoop(statement.getVariableScope()...
.getCompileStack().getContinueLabel();
436,194
public void handleEvent(Event event) {<NEW_LINE>String <MASK><NEW_LINE>TrackersUtil tut = TrackersUtil.getInstance();<NEW_LINE>List<List<String>> existing_trackers = tut.getMultiTrackers().get(name);<NEW_LINE>List<List<String>> new_trackers = new ArrayList<>();<NEW_LINE>for (AllTrackersTracker tracker : trackers) {<NEW...
name = existing_removal_templates.get(tag);
238,748
private void initControllerView(View v) {<NEW_LINE>// By default these are hidden.<NEW_LINE>mPrevButton = v.findViewById(PRV_BUTTON_ID);<NEW_LINE>if (mPrevButton != null) {<NEW_LINE>mPrevButton.setVisibility(View.GONE);<NEW_LINE>}<NEW_LINE>mNextButton = v.findViewById(NEXT_BUTTON_ID);<NEW_LINE>if (mNextButton != null) ...
mNextButton.setVisibility(View.GONE);
1,263,552
protected void write(ClassWriter classWriter, MethodWriter methodWriter, WriteScope writeScope) {<NEW_LINE>methodWriter.writeStatementOffset(getLocation());<NEW_LINE>Variable variable = writeScope.defineVariable(variableType, variableName);<NEW_LINE>Variable array = writeScope.defineInternalVariable(arrayType, arrayNam...
), array.getSlot());
656,213
private void listen() {<NEW_LINE>UdpAddress address = new UdpAddress(SnmpBinding.port);<NEW_LINE>try {<NEW_LINE>if (transport != null) {<NEW_LINE>transport.close();<NEW_LINE>transport = null;<NEW_LINE>}<NEW_LINE>if (snmp != null) {<NEW_LINE>snmp.close();<NEW_LINE>snmp = null;<NEW_LINE>}<NEW_LINE>transport = new Default...
new OctetString(SnmpBinding.community));
1,250,317
public ActionForward render(ActionMapping mapping, ActionForm form, PortletConfig config, RenderRequest req, RenderResponse res) throws Exception {<NEW_LINE>try {<NEW_LINE>String cmd = ParamUtil.get(<MASK><NEW_LINE>String[] groupNames = StringUtil.split(ParamUtil.getString(req, "config_groups"));<NEW_LINE>String[] role...
req, Constants.CMD, "dgar");
1,796,303
protected void createForecastRecapLinesFromEmployee(ForecastRecap forecastRecap, Employee employee, ForecastRecapLineType forecastRecapLineType) {<NEW_LINE>LocalDate itDate = LocalDate.parse(forecastRecap.getFromDate().toString(), DateTimeFormatter.ISO_DATE);<NEW_LINE>while (!itDate.isAfter(forecastRecap.getToDate())) ...
itDate = itDate.plusMonths(1);
1,416,028
final StartDeviceAuthorizationResult executeStartDeviceAuthorization(StartDeviceAuthorizationRequest startDeviceAuthorizationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startDeviceAuthorizationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
addHandlerContext(HandlerContextKey.SERVICE_ID, "SSO OIDC");
432,453
final UpdateConfigurationResult executeUpdateConfiguration(UpdateConfigurationRequest updateConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
false), new UpdateConfigurationResultJsonUnmarshaller());
754,983
public JsonResult execute() throws InvalidHttpRequestBodyException {<NEW_LINE>FeedbackSessionRemindRequest remindRequest = getAndValidateRequestBody(FeedbackSessionRemindRequest.class);<NEW_LINE>String googleIdOfInstructorToNotify = remindRequest.getRequestingInstructorId();<NEW_LINE>if (googleIdOfInstructorToNotify ==...
, Collections.singletonList(instructorToNotify));
820,798
protected void paintComponent(Graphics graphics) {<NEW_LINE>int width = getSize().width;<NEW_LINE>int height = getSize().height;<NEW_LINE>Insets insets = getInsets();<NEW_LINE>graphics.setColor(getBackground());<NEW_LINE>graphics.fillRect(insets.left, insets.top, width - (insets.left + insets.right), height - (insets.t...
int adjust = insets.left + offset;
373,872
private static void validateSimpleOperand(FilterContext context, SimpleAttributeOperand select) throws ValidationException {<NEW_LINE>NodeId eventTypeId = select.getTypeDefinitionId();<NEW_LINE>if (eventTypeId != null && !eventTypeId.equals(Identifiers.BaseEventType)) {<NEW_LINE>UaNode node = context.getServer().getAdd...
throw new ValidationException(StatusCodes.Bad_AttributeIdInvalid);
1,727,625
public void processMessage(final WebSocketMessage webSocketData) {<NEW_LINE>setDoTransactionNotifications(true);<NEW_LINE>final String sourceId = webSocketData.getRelDataStringValue("sourceId");<NEW_LINE>final String targetId = webSocketData.getRelDataStringValue("targetId");<NEW_LINE>final String relType = webSocketDa...
= getWebSocket().getSecurityContext();
1,736,793
public String[] introspectSelf() {<NEW_LINE>List<String> output = new ArrayList<String>();<NEW_LINE>if (isInbound()) {<NEW_LINE>output.add(HOST_NAME + "=" + this.hostname);<NEW_LINE>output.add(<MASK><NEW_LINE>output.add(MAX_CONNS + "=" + this.maxOpenConnections);<NEW_LINE>output.add(ADDR_EXC_LIST + "=" + debugStringArr...
PORT + "=" + this.port);
307,519
protected CommonFuncToggleAppListFilterViewModel.ListModelLoader onCreateListModelLoader() {<NEW_LINE>return index -> {<NEW_LINE>AppListItemDescriptionComposer composer = new AppListItemDescriptionComposer(thisActivity());<NEW_LINE>ThanosManager thanos = ThanosManager.from(getApplicationContext());<NEW_LINE>if (!thanos...
getString(R.string.badge_app_running);
128,213
public void replaceFromToWith(int from, int to, BitVector source, int sourceFrom) {<NEW_LINE>if (nbits == 0 || to == from - 1)<NEW_LINE>return;<NEW_LINE>checkRangeFromTo(from, to, nbits);<NEW_LINE><MASK><NEW_LINE>if (sourceFrom < 0 || sourceFrom + length > source.size()) {<NEW_LINE>throw new IndexOutOfBoundsException()...
int length = to - from + 1;
327,910
public static ArrayMap<String, ?> readThisArrayMapXml(XmlPullParser parser, String endTag, String[] name, ReadMapCallback callback) throws XmlPullParserException, IOException {<NEW_LINE>ArrayMap<String, Object> map = new ArrayMap<>();<NEW_LINE>int eventType = parser.getEventType();<NEW_LINE>do {<NEW_LINE>if (eventType ...
while (eventType != XmlPullParser.END_DOCUMENT);
1,129,409
public static <T> List<T> subList(final List<T> list, int pageSize, int page) {<NEW_LINE>if (pageSize <= 0 || page == 0) {<NEW_LINE>return Collections.EMPTY_LIST;<NEW_LINE>}<NEW_LINE>int size = list.size();<NEW_LINE>int fromIndex = page > 0 ? (page - 1) * pageSize : size + (page * pageSize);<NEW_LINE>int toIndex = from...
.max(0, toIndex));
1,469,027
public Void visitSynchronized(SynchronizedTree node, Void p) {<NEW_LINE>ProcessingEnvironment processingEnvironment = checker.getProcessingEnvironment();<NEW_LINE>javax.lang.model.util.Types types = processingEnvironment.getTypeUtils();<NEW_LINE>// TODO: make a type declaration annotation for this rather than looking f...
ExpressionTree synchronizedExpression = node.getExpression();
525,826
int consumeBytes(int streamId, int decompressedBytes) throws Http2Exception {<NEW_LINE>checkPositiveOrZero(decompressedBytes, "decompressedBytes");<NEW_LINE>if (decompressed - decompressedBytes < 0) {<NEW_LINE>throw streamError(streamId, INTERNAL_ERROR, "Attempting to return too many bytes for stream %d. decompressed: ...
consumedRatio = decompressedBytes / (double) decompressed;
1,726,133
public static boolean synchronizeMonitor(String domainLoc, String domainName, boolean monitorFlag, String... others) throws FileNotFoundException, IOException, SAXException {<NEW_LINE>boolean monitorModuleAvailable = isMonitorEnabled();<NEW_LINE>boolean shouldInstall = monitorModuleAvailable && monitorFlag;<NEW_LINE>//...
OutputStream os = new FileOutputStream(webXML);
806,067
private JPanel createEmbedJavaPanel(final int divWidth) {<NEW_LINE>final JPanel embedPanel = new JPanel();<NEW_LINE>embedPanel.setLayout(new BoxLayout(embedPanel, BoxLayout.Y_AXIS));<NEW_LINE>String platformName = null;<NEW_LINE>if (Platform.isMacOS()) {<NEW_LINE>platformName = "Mac OS X";<NEW_LINE>} else if (Platform....
+ "\"><font size=\"2\">" + "Users on all platforms will have to install the latest " + "version of Java 7 from <a href=\"\">http://java.com/download</a>. " + "<br/>&nbsp;";
1,263,030
public static void main(String[] args) throws Exception {<NEW_LINE>String schema <MASK><NEW_LINE>BatchOperator trainData = new CsvSourceBatchOp().setFilePath("https://alink-release.oss-cn-beijing.aliyuncs.com/data-files/adult_train.csv").setSchemaStr(schema);<NEW_LINE>BatchOperator testData = new CsvSourceBatchOp().set...
= "age bigint, workclass string, fnlwgt bigint, education string, " + "education_num bigint, marital_status string, occupation string, " + "relationship string, race string, sex string, capital_gain bigint, " + "capital_loss bigint, hours_per_week bigint, native_country string, label string";
1,718,873
public static DescribeRenewalPriceResponse unmarshall(DescribeRenewalPriceResponse describeRenewalPriceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRenewalPriceResponse.setRequestId(_ctx.stringValue("DescribeRenewalPriceResponse.RequestId"));<NEW_LINE>Order order = new Order();<NEW_LINE>order.setOriginalAmoun...
("DescribeRenewalPriceResponse.Rules[" + i + "].RuleDescId"));
692,006
private void updateFrameworkDescriptor(FrameworkDescriptor newFrameworkDescriptor) throws Exception {<NEW_LINE>flattenFrameworkDescriptor(newFrameworkDescriptor);<NEW_LINE>if (YamlUtils.deepEquals(frameworkDescriptor, newFrameworkDescriptor)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LOGGER.logSplittedLines(Level.INFO, "D...
> taskNumbers = frameworkDescriptor.extractTaskNumbers();
1,572,202
public List<ColuAccountContext> loadAccountContexts() {<NEW_LINE>List<ColuAccountContext> list = new ArrayList<>();<NEW_LINE>Cursor cursor = null;<NEW_LINE>try {<NEW_LINE>SQLiteQueryWithBlobs blobQuery = new SQLiteQueryWithBlobs(_database);<NEW_LINE>cursor = blobQuery.query(false, "single", new String[] { "id", "addres...
, addresses, isArchived, blockHeight));
1,757,773
public Description matchMethodInvocation(MethodInvocationTree tree, VisitorState state) {<NEW_LINE>if (!TERMINAL_PROTO_FLUENT_METHOD.matches(tree, state)) {<NEW_LINE>return Description.NO_MATCH;<NEW_LINE>}<NEW_LINE>ListMultimap<ProtoField, FieldWithValue> setters = ArrayListMultimap.create();<NEW_LINE>Type type = ASTHe...
ProtoField protoField = entry.getKey();
1,511,767
public DescribeIdentityUsageResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeIdentityUsageResult describeIdentityUsageResult = new DescribeIdentityUsageResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
int originalDepth = context.getCurrentDepth();
669,257
private static int computeLanguageIndex(Class<?> languageClass, int offset) {<NEW_LINE>List<AbstractClassLoaderSupplier> loaders = EngineAccessor.locatorOrDefaultLoaders();<NEW_LINE>int staticIndex;<NEW_LINE>if (EngineAccessor.HOST.isHostLanguage(languageClass)) {<NEW_LINE>staticIndex = PolyglotEngineImpl.HOST_LANGUAGE...
idToLanguage = LanguageCache.loadLanguages(loaders);
1,273,539
public boolean onCreateOptionsMenu(Menu menu) {<NEW_LINE>getMenuInflater().inflate(R.menu.pullrequest_menu, menu);<NEW_LINE>Gh4Application app = Gh4Application.get();<NEW_LINE>boolean authorized = app.isAuthorized();<NEW_LINE>boolean isCreator = mPullRequest != null && ApiHelpers.loginEquals(mPullRequest.user(), app.ge...
&& authorized && (isCreator || isCollaborator);
963,906
private Node delete(Node node, Key key) {<NEW_LINE>if (node == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>int compare = key.compareTo(node.key);<NEW_LINE>if (compare < 0) {<NEW_LINE>node.left = delete(node.left, key);<NEW_LINE>} else if (compare > 0) {<NEW_LINE>node.right = delete(node.right, key);<NEW_LINE>} el...
(node.right)) + 1;
1,653,686
public boolean multiInsertAnalyse(String sql, Connection connection, Insert statement, ItemsList itemsList, String pk, int pkIndex) throws SQLException {<NEW_LINE>if (itemsList instanceof MultiExpressionList) {<NEW_LINE>MultiExpressionList multiExpressionList = (MultiExpressionList) itemsList;<NEW_LINE>if (pkIndex > -1...
, sql, new MapListHandler());
1,411,772
public boolean removeSetCookies(final CharSequence name) {<NEW_LINE>final int keyHash = hashCode(SET_COOKIE);<NEW_LINE>final int bucketIndex = index(keyHash);<NEW_LINE>final BucketHead<CharSequence, CharSequence> bucketHead = entries[bucketIndex];<NEW_LINE>if (bucketHead == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW...
, CharSequence> e = bucketHead.entry;
1,737,327
public void run(ApplicationArguments applicationArguments) throws Exception {<NEW_LINE>String[] templates = { "Up and running with %s", "%s Basics", "%s for Beginners", "%s for Neckbeards", "Under the hood: %s", "Discovering %s", "A short guide to %s", "%s with Baeldung" };<NEW_LINE>String[] buzzWords = { "Spring REST ...
"hit the school", "memorised pi to 100 decimal places!", "became a world champion armwrestler", "became a Java REST master!!" };
1,716,607
public synchronized long addBalance(byte[] address, long value) {<NEW_LINE>AccountCapsule accountCapsule = getAccount(address);<NEW_LINE>if (accountCapsule == null) {<NEW_LINE>accountCapsule = createAccount(address, Protocol.AccountType.Normal);<NEW_LINE>}<NEW_LINE>long balance = accountCapsule.getBalance();<NEW_LINE>i...
key = Key.create(address);
474,356
UpdateStatement generateUpdate(QueryModel updateQueryModel, SqlExecutionContext executionContext) throws SqlException {<NEW_LINE>// Update QueryModel structure is<NEW_LINE>// QueryModel with SET column expressions<NEW_LINE>// |-- QueryModel of select-virtual or select-choose of data selected for update<NEW_LINE>final Q...
int tableId = selectQueryModel.getTableId();
575,502
protected Object onFilterDataList(DataList data, int start, int count, Object operation) {<NEW_LINE>if (operation == FilterConstants.NEGATIVE) {<NEW_LINE>data.clear();<NEW_LINE>} else {<NEW_LINE>if (count < data.size() - start) {<NEW_LINE>data.removeRange(start + count, data.size());<NEW_LINE>}<NEW_LINE>if (start > 0) ...
_instrCtx.setCurrentField(start + i);
1,435,512
static DatabaseHelper createDatabaseHelper(Context context, String dbName, boolean forMigration) {<NEW_LINE>if (dbName == null) {<NEW_LINE>dbName = MULTI_DB_GRID_MIRATION_ALGO.get() ? InvariantDeviceProfile.INSTANCE.get(context).dbFile : LauncherFiles.LAUNCHER_DB;<NEW_LINE>OmegaAppKt.getOmegaApp(context).migrateDbName(...
databaseHelper.getWritableDatabase(), true);
1,808,810
public void download(final ReturnValueCompletion<String> completion) {<NEW_LINE>checkParam();<NEW_LINE>final MediatorDowloadParam dparam = (MediatorDowloadParam) param;<NEW_LINE>if (ImageMediaType.DataVolumeTemplate.toString().equals(dparam.getImage().getInventory().getMediaType())) {<NEW_LINE>CpCmd cmd = new CpCmd();<...
getSelectedBackupStorage().getInstallPath());
870,240
public final boolean resolveLocalChanges(File[] localChanges) throws GitException {<NEW_LINE>JButton revert = new JButton();<NEW_LINE>// NOI18N<NEW_LINE>Mnemonics.setLocalizedText(revert, NbBundle.getMessage(ResultProcessor.class, "LBL_ResultProcessor.revertButton.text"));<NEW_LINE>// NOI18N<NEW_LINE>revert.setToolTipT...
(ResultProcessor.class, "LBL_ResultProcessor.reviewButton.text"));
698,202
@RequestMapping(value = "/deviceProfile/{deviceProfileId}", method = RequestMethod.DELETE)<NEW_LINE>@ResponseStatus(value = HttpStatus.OK)<NEW_LINE>public void deleteDeviceProfile(@ApiParam(value = DEVICE_PROFILE_ID_PARAM_DESCRIPTION) @PathVariable(DEVICE_PROFILE_ID) String strDeviceProfileId) throws ThingsboardExcepti...
getId(), ComponentLifecycleEvent.DELETED);
1,669,216
private void resumeAsyncResponse(AsyncResponse asyncResponse, Set<String> subscriptions, List<CompletableFuture<Object>> subscriptionFutures) {<NEW_LINE>FutureUtil.waitForAll(subscriptionFutures).whenComplete((r, ex) -> {<NEW_LINE>if (ex != null) {<NEW_LINE>log.warn("[{}] Failed to get list of subscriptions for {}: {}"...
topicName, ex.getMessage());
852,051
private PaletteGroup createArchimateRelationsGroup() {<NEW_LINE>PaletteGroup group = new PaletteGroup(Messages.ArchimateDiagramEditorPalette_13);<NEW_LINE>// Magic Connector<NEW_LINE>ConnectionCreationToolEntry magicConnectionEntry = new ConnectionCreationToolEntry(Messages.ArchimateDiagramEditorPalette_14, Messages.Ar...
entry = createElementCreationToolEntry(eClass, null);
340,151
private void drawInProgressGlobalStatus(Graphics g, Color color) {<NEW_LINE>int x <MASK><NEW_LINE>int y = (topOffset() - STATUS_BOX_SIZE) / 2;<NEW_LINE>// NOI18N<NEW_LINE>busyIcon.paintIcon(this, g, x, y);<NEW_LINE>g.setColor(STATUS_DOWN_PART_COLOR);<NEW_LINE>g.drawLine(x - 1, y - 1, x + STATUS_BOX_SIZE, y - 1);<NEW_LI...
= (THICKNESS - STATUS_BOX_SIZE) / 2;
808,042
private void transformTimerEventDefinition(final ExpressionLanguage expressionLanguage, final ExecutableCatchEventElement executableElement, final TimerEventDefinition timerEventDefinition) {<NEW_LINE>final Expression expression;<NEW_LINE>if (timerEventDefinition.getTimeDuration() != null) {<NEW_LINE>final String durat...
.map(TimeDateTimer::new));
1,422,734
private void initEditor() {<NEW_LINE>try {<NEW_LINE>Object val = getValue();<NEW_LINE>Class cls = val == null ? getValueClass() : val.getClass();<NEW_LINE>cellEditor = editorMap.get(cls);<NEW_LINE>if (cellEditor != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (cls.isEnum()) {<NEW_LINE>JComboBox comboBox = new <MASK>...
JComboBox(cls.getEnumConstants());
1,683,321
public void processElement(ProcessContext p) {<NEW_LINE>// Get the multimap side input containing the size of each read range.<NEW_LINE>Map<String, Iterable<KV<Long, Long>>> rangeSizesMap = p.sideInput(rangeSizes);<NEW_LINE>// Process each file, retrieving each filename as key from the side input.<NEW_LINE>for (Entry<S...
Long numRecords = entry.getValue();
93,837
public static void main(String[] args) {<NEW_LINE>List<String> <MASK><NEW_LINE>try {<NEW_LINE>// Authorize the request.<NEW_LINE>Credential credential = Auth.authorize(scopes, "createreportingjob");<NEW_LINE>// This object is used to make YouTube Reporting API requests.<NEW_LINE>youtubeReporting = new YouTubeReporting....
scopes = Lists.newArrayList("https://www.googleapis.com/auth/yt-analytics-monetary.readonly");
746,204
private void markAsMoveOrCopyTarget(ASTNode node, ASTNode newChild) {<NEW_LINE>if (this.cloneDepth == 0) {<NEW_LINE>while (node != null && this.clonedNodes.containsKey(node)) {<NEW_LINE>ASTNode orig = (ASTNode) this.clonedNodes.remove(node);<NEW_LINE>if (orig != null) {<NEW_LINE>List properties = node.structuralPropert...
ASTNode) children.get(j);
1,804,544
public static MutableRoaringBitmap add(MutableRoaringBitmap rb, final long rangeStart, final long rangeEnd) {<NEW_LINE>rangeSanityCheck(rangeStart, rangeEnd);<NEW_LINE>if (rangeStart >= rangeEnd) {<NEW_LINE>// empty range<NEW_LINE>return rb.clone();<NEW_LINE>}<NEW_LINE>final int hbStart = (BufferUtil.highbits(rangeStar...
((char) hbStart, c);
711,281
public ConnectorModel read(@Nonnull JsonDeserializationContext deserializationContext, JsonObject modelContents) {<NEW_LINE>IModelGeometry<?> model;<NEW_LINE>JsonElement baseModel = modelContents.get("base_model");<NEW_LINE>if (baseModel.isJsonObject()) {<NEW_LINE>JsonObject baseModelData = modelContents.getAsJsonObjec...
baseModel.getAsString())));
591,026
protected void onSaveInstanceState(@NonNull Bundle outState) {<NEW_LINE>outState.putBoolean(ReaderConstants.ARG_IS_SINGLE_POST, mIsSinglePostView);<NEW_LINE>outState.putBoolean(ReaderConstants.ARG_IS_RELATED_POST, mIsRelatedPostView);<NEW_LINE>outState.putString(ReaderConstants.ARG_INTERCEPTED_URI, mInterceptedUri);<NE...
putInt(ReaderConstants.ARG_COMMENT_ID, mCommentId);
1,353,322
public void initDriverSettings(JDBCSession session, JDBCDataSource dataSource, JDBCDatabaseMetaData metaData) {<NEW_LINE>super.initDriverSettings(session, dataSource, metaData);<NEW_LINE>DBPDriver driver = dataSource.getContainer().getDriver();<NEW_LINE>String delimitersString = CommonUtils.toString(driver.getDriverPar...
.getDriverParameter(GenericConstants.PARAM_OMIT_CATALOG_NAME));
991,814
public final void bounds(int range) {<NEW_LINE>double x0 = cx0;<NEW_LINE>double y0 = cy0;<NEW_LINE>double x1 = cx0 + cx1 + cx2 + cx3;<NEW_LINE>double y1 = cy0 + cy1 + cy2 + cy3;<NEW_LINE>double minx = Math.min(x0, x1);<NEW_LINE>double miny = Math.min(y0, y1);<NEW_LINE>double maxx = Math.max(x0, x1);<NEW_LINE>double max...
int) (maxy + range));
1,351,291
public static String[] splitCommaUnlessInParen(String line) {<NEW_LINE>int nestingLevelParen = 0;<NEW_LINE>int lastComma = -1;<NEW_LINE>List<String> parts = new ArrayList<String>();<NEW_LINE>for (int i = 0; i < line.length(); i++) {<NEW_LINE>char c = line.charAt(i);<NEW_LINE>if (c == '(') {<NEW_LINE>nestingLevelParen++...
[parts.size()]);
622,968
public EntityData.Value deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {<NEW_LINE>EntityData.Value.Builder value = EntityData.Value.newBuilder();<NEW_LINE>if (json.isJsonPrimitive()) {<NEW_LINE>extractPrimitive(value, json);<NEW_LINE>} else if (json.isJsonObjec...
(byteList.toArray()));
1,356,788
public MappeableContainer andNot(MappeableBitmapContainer x) {<NEW_LINE>int card = this.getCardinality();<NEW_LINE>if (card <= MappeableArrayContainer.DEFAULT_MAX_SIZE) {<NEW_LINE>// result can only be an array (assuming that we never make a RunContainer)<NEW_LINE>MappeableArrayContainer answer = new MappeableArrayCont...
answer.cardinalityInRange(start, end);
1,154,077
final GetTemporaryGlueTableCredentialsResult executeGetTemporaryGlueTableCredentials(GetTemporaryGlueTableCredentialsRequest getTemporaryGlueTableCredentialsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getTemporaryGlueTableCredentialsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri...
false), new GetTemporaryGlueTableCredentialsResultJsonUnmarshaller());
138,643
private <TResult, TFeed> FeedPage<TResult> extractPage(Response<TFeed> response, List<TResult> entities, List<ResponseLink> responseLinks) throws MalformedURLException, UnsupportedEncodingException {<NEW_LINE>final Optional<ResponseLink> nextLink = responseLinks.stream().filter(link -> link.getRel().equalsIgnoreCase("n...
response.getRequest(), entities);
690,938
public void onAppDebugPort(@NotNull DaemonEvent.AppDebugPort debugInfo) {<NEW_LINE><MASK><NEW_LINE>// Print the conneciton info to the console.<NEW_LINE>final ConsoleView console = app.getConsole();<NEW_LINE>if (console != null) {<NEW_LINE>console.print("Debug service listening on " + debugInfo.wsUri + "\n", ConsoleVie...
app.setWsUrl(debugInfo.wsUri);
1,746,869
private static GraphOperatorSpec parseOp(EsperEPL2GrammarParser.GopContext ctx, Map<Tree, Object> astGraphNodeMap, ClasspathImportServiceCompileTime classpathImportService) {<NEW_LINE>String operatorName = ctx.opName != null ? ctx.opName.getText() : ctx.s.getText();<NEW_LINE>GraphOperatorInput input = new GraphOperator...
ctx.gopParams(), input);
1,852,110
public void onMsg(TbContext ctx, TbMsg msg) throws ExecutionException, InterruptedException {<NEW_LINE>EntityType originatorType = msg.getOriginator().getEntityType();<NEW_LINE>if (msg.getType().equals(PERIODIC_MSG_TYPE)) {<NEW_LINE>scheduleAlarmHarvesting(ctx, msg);<NEW_LINE>harvestAlarms(ctx, System.currentTimeMillis...
deviceState.process(ctx, msg);
1,469,514
public static DescribeTableAccessCountResponse unmarshall(DescribeTableAccessCountResponse describeTableAccessCountResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeTableAccessCountResponse.setRequestId(_ctx.stringValue("DescribeTableAccessCountResponse.RequestId"));<NEW_LINE>describeTableAccessCountResponse.setPa...
("DescribeTableAccessCountResponse.Items[" + i + "].AccessCount"));
187,200
public void testSLTimerServiceEJBTimeout() throws Exception {<NEW_LINE>// --------------------------------------------------------------------<NEW_LINE>// Locate Home and Create a Bean to test it<NEW_LINE>// --------------------------------------------------------------------<NEW_LINE>StatelessTimedHome SLTHome = (Stat...
StatelessTimedObject slt = SLTHome.create();
1,669,383
protected ProducerFactory fetchProducerFactory(OptionSet options, Properties properties) {<NEW_LINE>String name = "custom_producer.factory";<NEW_LINE>String strOption = fetchStringOption(name, options, properties, null);<NEW_LINE>if (strOption != null) {<NEW_LINE>try {<NEW_LINE>Class<?> clazz = Class.forName(strOption)...
(ProducerFactory) ct.newInstance();
597,836
public void addAvailableZone(AzCreateInfo createInfo) {<NEW_LINE>AzTbl proto = dao.createLocal();<NEW_LINE>DcTbl dcTbl = dcService.find(createInfo.getDcName());<NEW_LINE>if (null == dcTbl)<NEW_LINE>throw new IllegalArgumentException(String.format("DC name %s does not exist", createInfo.getDcName()));<NEW_LINE>if (avail...
setActive(createInfo.getActive());
553,436
public static Set<javax.lang.model.element.Modifier> reflectionModifiersToModel(int modifiers) {<NEW_LINE>Set<javax.lang.model.element.Modifier> ret = new HashSet<javax.lang.model.element.Modifier>();<NEW_LINE>if (java.lang.reflect.Modifier.isAbstract(modifiers)) {<NEW_LINE>ret.add(javax.lang.model.element.Modifier.ABS...
model.element.Modifier.FINAL);
1,587,772
public void parseRequest(ChallengeRequest challenge, Response response, Series<Header> httpHeaders) {<NEW_LINE>if (challenge.getRawValue() != null) {<NEW_LINE>HeaderReader<Object> hr = new HeaderReader<Object>(challenge.getRawValue());<NEW_LINE>try {<NEW_LINE>Parameter param = hr.readParameter();<NEW_LINE>while (param ...
setRealm(param.getValue());
1,075,597
private boolean appendEntry(final long index, final PersistedRaftRecord entry, final CompletableFuture<AppendResponse> future) {<NEW_LINE>try {<NEW_LINE>final IndexedRaftLogEntry indexed;<NEW_LINE>indexed = raft.getLog().append(entry);<NEW_LINE>log.trace("Appended {}", indexed);<NEW_LINE>raft.getReplicationMetrics().se...
failAppend(index - 1, future);
851,418
private static KafkaSourceRequest createKafkaSourceRequest(KafkaSource kafkaSource, InlongStreamInfo stream) {<NEW_LINE>KafkaSourceRequest sourceRequest = new KafkaSourceRequest();<NEW_LINE>sourceRequest.setSourceName(kafkaSource.getSourceName());<NEW_LINE>sourceRequest.<MASK><NEW_LINE>sourceRequest.setInlongStreamId(s...
setInlongGroupId(stream.getInlongGroupId());
1,186,483
public void chatGetConnected(final Response.Listener<ConnectedUsers> responseListener, final Response.ErrorListener errorListener) {<NEW_LINE>Object postBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String path = "/chat/connected".replaceAll("\\{format\\}", "json");<NEW_LINE>// query params<NEW_LINE>L...
HashMap<String, String>();
1,233,589
private static List<DomainAlwaysInScopeMatcher> convertOldDomainsInScopeOption(String oldDomainsInScope) {<NEW_LINE>if (oldDomainsInScope == null || oldDomainsInScope.isEmpty()) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>ArrayList<DomainAlwaysInScopeMatcher> domainsInScope = new ArrayList<>();<NEW_L...
add(new DomainAlwaysInScopeMatcher(domain));
362,234
private Map<String, ShapeModel> constructOutputShapes() {<NEW_LINE>// C2j model components<NEW_LINE>final Map<String, Operation> operations = getServiceModel().getOperations();<NEW_LINE>final Map<String, Shape> c2jShapes = getServiceModel().getShapes();<NEW_LINE>// Java shape models, to be constructed<NEW_LINE>final Ma...
Output output = operation.getOutput();
1,744,079
public SubTaskGroup createPlacementInfoTask(Collection<NodeDetails> blacklistNodes) {<NEW_LINE>SubTaskGroup subTaskGroup = getTaskExecutor().createSubTaskGroup("UpdatePlacementInfo", executor);<NEW_LINE>UpdatePlacementInfo.Params params = new UpdatePlacementInfo.Params();<NEW_LINE>// Add the universe uuid.<NEW_LINE>par...
getRunnableTask().addSubTaskGroup(subTaskGroup);
885,446
private void checkForNonPublicMethodIssues() {<NEW_LINE>final MethodList allDeclaredMethods = new MethodList(getAllDeclaredMethods(handlerClass));<NEW_LINE>// non-public resource methods<NEW_LINE>for (AnnotatedMethod m : allDeclaredMethods.withMetaAnnotation(HttpMethod.class).withoutAnnotation(Path.class).isNotPublic()...
().toGenericString()));
1,138,836
private byte[] createSignedChunk(byte[] chunkData) {<NEW_LINE>try {<NEW_LINE>byte<MASK><NEW_LINE>byte[] trailer = isTrailingTerminated ? CRLF.getBytes(StandardCharsets.UTF_8) : "".getBytes(StandardCharsets.UTF_8);<NEW_LINE>byte[] signedChunk = new byte[header.length + chunkData.length + trailer.length];<NEW_LINE>System...
[] header = createSignedChunkHeader(chunkData);
249,332
private JPanel createClassnamePanel() {<NEW_LINE>List<String> possibleClasses = new ArrayList<>();<NEW_LINE>try {<NEW_LINE>// Find all the classes which implement the BackendListenerClient<NEW_LINE>// interface.<NEW_LINE>possibleClasses = ClassFinder.findClassesThatExtend(JMeterUtils.getSearchPaths(), new Class[] { Bac...
class.getName() + "$ErrorBackendListenerClient");
1,394,085
private UnpackResult unpack(CacheableEntity entity, TarArchiveInputStream tarInput, OriginReader readOriginAction) throws IOException {<NEW_LINE>ImmutableMap.Builder<String, CacheableTree> treesBuilder = ImmutableMap.builder();<NEW_LINE>entity.visitOutputTrees((name, type, root) -> treesBuilder.put(name, new CacheableT...
String path = tarEntry.getName();
599,269
private void update() {<NEW_LINE>if (!entries.isEmpty()) {<NEW_LINE>List<Entry<?>> workingList = new ArrayList<>(entries);<NEW_LINE>Collections.sort(workingList);<NEW_LINE>for (Entry<?> entry : workingList) {<NEW_LINE>Calendar calendar = entry.getCalendar();<NEW_LINE>BorderPane borderPane = new BorderPane();<NEW_LINE>b...
setAlignment(timeLabel, Pos.CENTER_RIGHT);
241,832
public PersistenceResponse updateEntity(EntityForm entityForm, String[] customCriteria, List<SectionCrumb> sectionCrumb) throws ServiceException {<NEW_LINE>PersistencePackageRequest ppr = getRequestForEntityForm(entityForm, customCriteria, sectionCrumb);<NEW_LINE>ppr.setRequestingEntityName(entityForm.getMainEntityName...
withSecurityCeilingEntityClassname(info.getSecurityCeilingClassName());
68,318
private static void testUnbox_byAssignment() {<NEW_LINE>Byte boxB = new Byte((byte) 100);<NEW_LINE>Double boxD = new Double(1111.0);<NEW_LINE>Float boxF = new Float(1111.0f);<NEW_LINE>Integer boxI = new Integer(1111);<NEW_LINE>Long boxL = new Long(1111L);<NEW_LINE>Short boxS = new Short((short) 100);<NEW_LINE>Boolean b...
== boxB.byteValue()));
1,395,771
// returns last ord of dimension<NEW_LINE>private int createOneFlatFacetDimState(SortedSetDocValues dv, int dimStartOrd) throws IOException {<NEW_LINE>int dimEndOrd = dimStartOrd;<NEW_LINE>BytesRef <MASK><NEW_LINE>String[] nextComponents = FacetsConfig.stringToPath(nextTerm.utf8ToString());<NEW_LINE>// The first entry ...
nextTerm = dv.lookupOrd(dimEndOrd);
1,738,511
final RemoveNotificationChannelResult executeRemoveNotificationChannel(RemoveNotificationChannelRequest removeNotificationChannelRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(removeNotificationChannelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
827,951
static void sparse_mul32(int[] prod, int ppos, int[] pk, int pkPos, int[] pos_list, short[] sign_list) {<NEW_LINE>int i, j, pos;<NEW_LINE>long[] temp = new long[PARAM_N];<NEW_LINE>for (i = 0; i < PARAM_H; i++) {<NEW_LINE>pos = pos_list[i];<NEW_LINE>for (j = 0; j < pos; j++) {<NEW_LINE>temp[j] = temp[j] - sign_list[i] *...
= barr_reduce64(temp[i]);
1,218,294
public KafkaSink genStreamSink(AbstractTargetTableInfo targetTableInfo) {<NEW_LINE>KafkaSinkTableInfo kafkaSinkTableInfo = (KafkaSinkTableInfo) targetTableInfo;<NEW_LINE>Properties kafkaProperties = getKafkaProperties(kafkaSinkTableInfo);<NEW_LINE>this<MASK><NEW_LINE>this.updateMode = kafkaSinkTableInfo.getUpdateMode()...
.tableName = kafkaSinkTableInfo.getName();
981,173
public void addButtons(ToolBarManager manager) {<NEW_LINE>manager.add(new DropDown(Messages.LabelNewFieldByType, Images.PLUS, SWT.NONE, menuListener -> {<NEW_LINE>menuListener.add(new LabelOnly(Messages.LabelNewFieldByType));<NEW_LINE>for (AttributeFieldType fieldType : AttributeFieldType.values()) {<NEW_LINE>if (!fiel...
()).toArray());
91,589
public Set<FileObject> instantiate(ProgressHandle handle) throws IOException {<NEW_LINE>final WizardDescriptor myWiz = this.wiz;<NEW_LINE>if (myWiz == null) {<NEW_LINE>// NOI18N<NEW_LINE>LOG.warning("The uninitialize called before instantiate.");<NEW_LINE>return Collections.emptySet();<NEW_LINE>}<NEW_LINE>handle.start(...
resultSet = new HashSet<>();
620,256
private boolean makeJoinColumnProposals(DBSObjectContainer sc, DBSEntity leftTable) {<NEW_LINE>SQLWordPartDetector joinTableDetector = new SQLWordPartDetector(request.getDocument(), request.getContext().getSyntaxManager(), request.getWordDetector().getStartOffset(), 2);<NEW_LINE>List<String> prevWords = joinTableDetect...
.getContext().getDataSource();
640,574
public String createAssignment(TreeLogger logger, ResourceContext context, JMethod method) throws UnableToCompleteException {<NEW_LINE>String name = method.getName();<NEW_LINE>ImageResourceDeclaration image = new ImageResourceDeclaration(method);<NEW_LINE>DisplayedImage bundle = getImage(image);<NEW_LINE>SourceWriter s...
+ urlExpressions[0] + "),");
916,398
private ContributionItem createToolItem(int index, Dashboard board) {<NEW_LINE>DropDown toolItem = new DropDown(board.getName(), board.equals(dashboard) ? Images.VIEW_SELECTED : Images.VIEW, SWT.DROP_DOWN);<NEW_LINE>toolItem.setMenuListener(manager -> {<NEW_LINE>if (!board.equals(dashboard)) {<NEW_LINE>manager.add(new ...
a -> selectDashboard(board)));
1,114,776
public Subscription replay(final long recordingId, final long position, final long length, final String replayChannel, final int replayStreamId) {<NEW_LINE>lock.lock();<NEW_LINE>try {<NEW_LINE>ensureOpen();<NEW_LINE>ensureNotReentrant();<NEW_LINE>final ChannelUri <MASK><NEW_LINE>lastCorrelationId = aeron.nextCorrelatio...
replayChannelUri = ChannelUri.parse(replayChannel);
1,213,194
private JPanel createSuggestionsPanel() {<NEW_LINE>JPanel pnl = new JPanel(new BorderLayout());<NEW_LINE>pnl.setOpaque(false);<NEW_LINE>pnl.setBorder(JBUI.Borders.customLine(JBUI.CurrentTheme.BigPopup.searchFieldBorderColor(), 1, 0, 0, 0));<NEW_LINE>JScrollPane resultsScroll = new JBScrollPane(myResultsList);<NEW_LINE>...
resultsScroll.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
1,298,374
public ServiceChange unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ServiceChange serviceChange = new ServiceChange();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<...
().unmarshall(context));
420,641
private void checkState(SentinelServersConfig cfg, Iterator<RedisClient> iterator, AtomicReference<Throwable> lastException) {<NEW_LINE>if (!iterator.hasNext()) {<NEW_LINE>if (lastException.get() != null) {<NEW_LINE>log.error(<MASK><NEW_LINE>}<NEW_LINE>performSentinelDNSCheck(null);<NEW_LINE>scheduleChangeCheck(cfg, nu...
"Can't update cluster state", lastException.get());
55,552
public void generate(NodeLIRBuilderTool gen) {<NEW_LINE>// New OpenCL nodes for atomic add<NEW_LINE>OCLStamp oclStamp = null;<NEW_LINE>switch(elementKind) {<NEW_LINE>case Int:<NEW_LINE>oclStamp = getStampInt();<NEW_LINE>break;<NEW_LINE>case Long:<NEW_LINE>// DUE TO UNSUPPORTED FEATURE IN INTEL OpenCL PLATFORM<NEW_LINE>...
throw new RuntimeException("Data type for reduction not supported yet: " + elementKind);
1,527,029
public Concrete.Expression visitDefCall(DefCallExpression expr, Void params) {<NEW_LINE>if (!hasFlag(PrettyPrinterFlag.SHOW_COERCE_DEFINITIONS)) {<NEW_LINE>if (expr.getDefinition().isHideable()) {<NEW_LINE>int index = 0;<NEW_LINE>for (DependentLink link = expr.getDefinition().getParameters(); link.hasNext(); link = lin...
().size()));
19,628
private void modelArguments(Location location) throws DataflowAnalysisException {<NEW_LINE>// Model arguments to called method<NEW_LINE>InvokeInstruction inv = (InvokeInstruction) location.getHandle().getInstruction();<NEW_LINE>XMethod calledMethod = XFactory.createXMethod(inv, cpg);<NEW_LINE>SignatureParser sigParser ...
SignatureParser(calledMethod.getSignature());
3,955
public ResultCursor sync() {<NEW_LINE>ArrayResultCursor result = new ArrayResultCursor("RULE");<NEW_LINE>result.addColumn("activeConnection", DataTypes.LongType);<NEW_LINE>result.addColumn("aggregateMultiDBCount", DataTypes.LongType);<NEW_LINE>result.addColumn("connectionCount", DataTypes.LongType);<NEW_LINE>result.add...
addColumn("timeCost", DataTypes.LongType);
1,131,999
private StreamEvent query(Table tableForPerDuration, StateEvent matchingEvent, CompiledCondition compiledCondition, CompiledSelection compiledSelection, Attribute[] outputAttributes) {<NEW_LINE>if (tableForPerDuration.getIsConnected()) {<NEW_LINE>try {<NEW_LINE>return ((QueryableProcessor) tableForPerDuration).query(ma...
matchingEvent, compiledCondition, compiledSelection, outputAttributes);