idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
216,811
protected byte[] serializeImpl(String subject, String topic, boolean isKey, T object, ProtobufSchema schema) throws SerializationException, InvalidConfigurationException {<NEW_LINE>if (schemaRegistry == null) {<NEW_LINE>throw new InvalidConfigurationException("SchemaRegistryClient not found. You need to configure the s...
getId(subject, schema, normalizeSchema);
288,292
public void run() {<NEW_LINE>// Start a new thread which tracks the journal replay statistics<NEW_LINE>ExponentialBackoffRetry retry = new ExponentialBackoffRetry(<MASK><NEW_LINE>long start = System.currentTimeMillis();<NEW_LINE>final OptionalLong finalSN = UfsJournalReader.getLastSN(mJournal);<NEW_LINE>Thread t = new ...
1000, 30000, Integer.MAX_VALUE);
1,364,814
public boolean importData(JComponent comp, Transferable t) {<NEW_LINE>DataFlavor htmlFlavor = DataFlavor.stringFlavor;<NEW_LINE>if (canImport(comp, t.getTransferDataFlavors())) {<NEW_LINE>try {<NEW_LINE>String transferString = (String) t.getTransferData(htmlFlavor);<NEW_LINE>EditorPane targetTextPane = (EditorPane) com...
String imgName = entry.getKey();
1,498,759
private ReplacedElement replaceImage(Element elem, String uri, int width, int height, UserAgentCallback uac) {<NEW_LINE>ReplacedElement replaced = _sizedImageCache.get(new SizedImageCacheKey(uri, width, height));<NEW_LINE>if (replaced != null) {<NEW_LINE>return replaced;<NEW_LINE>}<NEW_LINE>XRLog.log(Level.FINE, LogMes...
AWTFSImage) awtfsImage).getImage();
1,297,756
private static long readSub0(int miCol, int miRow, int blSz, VPXBooleanDecoder decoder, DecodingContext c, int lumaMode, int packedRefFrames) {<NEW_LINE>int ref0 = Packed4BitList.get(packedRefFrames, 0);<NEW_LINE>int ref1 = <MASK><NEW_LINE>boolean compoundPred = Packed4BitList.get(packedRefFrames, 2) == 1;<NEW_LINE>lon...
Packed4BitList.get(packedRefFrames, 1);
923,836
public Object childEvaluate(Parser parser, VariableResolver resolver, String functionName, List<Object> parameters) throws ParserException {<NEW_LINE>if (!MapTool.getParser().isMacroTrusted())<NEW_LINE>throw new ParserException(I18N.getText("macro.function.general.noPerm", functionName));<NEW_LINE>if (!AppPreferences.g...
, parameters.size()));
1,456,283
protected boolean increment(String key, String threadName, int threadId) {<NEW_LINE>try (PreparedStatement pstmt = _concierge.conn().prepareStatement(INCREMENT_SQL)) {<NEW_LINE>pstmt.setString(1, key);<NEW_LINE><MASK><NEW_LINE>pstmt.setString(3, threadName);<NEW_LINE>pstmt.setInt(4, threadId);<NEW_LINE>int rows = pstmt...
pstmt.setLong(2, _msId);
1,085,273
public static ClassDetailVO createClassInfo(Class clazz, boolean withFields) {<NEW_LINE>CodeSource cs = clazz.getProtectionDomain().getCodeSource();<NEW_LINE>ClassDetailVO classInfo = new ClassDetailVO();<NEW_LINE>classInfo.setName(StringUtils.classname(clazz));<NEW_LINE>classInfo.setClassInfo(StringUtils.classname(cla...
setArray(clazz.isArray());
941,760
private JPanel createGraphFontValuePane() {<NEW_LINE>JPanel fontValueStylePane = new JPanel();<NEW_LINE>fontValueStylePane.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));<NEW_LINE>// $NON-NLS-1$<NEW_LINE>fontValueStylePane.// $NON-NLS-1$<NEW_LINE>add(// $NON-NLS-1$<NEW_LINE>GuiUtils.// $NON-NLS-1$<NEW_LINE>createLabe...
(JMeterUtils.getResString("fontstyle.normal"));
783,940
private int deleteRequest(PersistRequestBean<?> req, PersistRequestBean<?> draftReq) {<NEW_LINE>if (req.isRegisteredForDeleteBean()) {<NEW_LINE>// skip deleting bean. Used where cascade is on<NEW_LINE>// both sides of a relationship<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug(<MASK><NEW_LINE>}<NEW_LINE>retu...
"skipping delete on alreadyRegistered {}", req.bean());
94,761
final ListBotVersionsResult executeListBotVersions(ListBotVersionsRequest listBotVersionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listBotVersionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
endClientExecution(awsRequestMetrics, request, response);
458,184
public void remove(DHTPluginContact[] targets, byte[] key, String description, DHTPluginOperationListener listener) {<NEW_LINE>if (!isEnabled()) {<NEW_LINE>throw (new RuntimeException("DHT isn't enabled"));<NEW_LINE>}<NEW_LINE>Map dht_map = new HashMap();<NEW_LINE>for (int i = 0; i < targets.length; i++) {<NEW_LINE>DHT...
.Entry) it.next();
884,142
private File saveToFile(Response response) throws IOException {<NEW_LINE>InputStream is = null;<NEW_LINE>byte[] buf = new byte[40960];<NEW_LINE>int len = 0;<NEW_LINE>FileOutputStream fos = null;<NEW_LINE>try {<NEW_LINE>is = response.body().byteStream();<NEW_LINE>final long total = response.body().contentLength();<NEW_L...
write(buf, 0, len);
501,897
void buildIndexCreationInfo() throws Exception {<NEW_LINE>Set<String> varLengthDictionaryColumns = new HashSet<>(_config.getVarLengthDictionaryColumns());<NEW_LINE>for (FieldSpec fieldSpec : _dataSchema.getAllFieldSpecs()) {<NEW_LINE>// Ignore virtual columns<NEW_LINE>if (fieldSpec.isVirtualColumn()) {<NEW_LINE>continu...
columnProfile = _segmentStats.getColumnProfileFor(columnName);
975,184
public ResponseEntity<AttackResult> checkout(@RequestHeader(value = "Authorization", required = false) String token) {<NEW_LINE>if (token == null) {<NEW_LINE>return ResponseEntity.status(HttpStatus.UNAUTHORIZED).build();<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>Jwt jwt = Jwts.parser().setSigningKey(JWT_PASSWORD).parse(token....
(this).build());
552,141
private static boolean verifyLabelMarkerData(Rule rule, String key, String value, Environment env) throws InterruptedException {<NEW_LINE>Preconditions.checkArgument(key.startsWith("FILE:"));<NEW_LINE>try {<NEW_LINE>RootedPath rootedPath;<NEW_LINE>String fileKey = key.substring(5);<NEW_LINE>if (LabelValidator.isAbsolut...
(value, fileValueToMarkerValue(fileValue));
1,502,642
private List<RadioIdDetail> createRadioDetails() {<NEW_LINE>List<RadioIdDetail> details = new ArrayList<>();<NEW_LINE>details.add(new RadioIdDetail(Protocol.APCO25, IntegerFormat.DECIMAL, new IntegerFormatter(0, 0xFFFFFF), new IntegerFormatter(0, 0xFFFFFF), "Format: 0 - 16777215"));<NEW_LINE>details.add(new RadioIdDeta...
0, 0x7FFFFF), "Format: 0 - 8388607"));
1,014,132
public static IntOctagon bounding_octagon(FloatPoint[] p_point_arr) {<NEW_LINE>double lx = Integer.MAX_VALUE;<NEW_LINE>double ly = Integer.MAX_VALUE;<NEW_LINE>double rx = Integer.MIN_VALUE;<NEW_LINE>double uy = Integer.MIN_VALUE;<NEW_LINE>double ulx = Integer.MAX_VALUE;<NEW_LINE>double lrx = Integer.MIN_VALUE;<NEW_LINE...
max(uy, curr.y);
747,658
protected String doSubmitAction(@ModelAttribute("command") GeneralSettingsCommand command, RedirectAttributes redirectAttributes) {<NEW_LINE>int themeIndex = Integer.parseInt(command.getThemeIndex());<NEW_LINE>Theme theme = settingsService.getAvailableThemes()[themeIndex];<NEW_LINE>int localeIndex = Integer.parseInt(co...
setCoverArtFileTypes(command.getCoverArtFileTypes());
1,799,996
public void read(org.apache.thrift.protocol.TProtocol prot, ClusterJoinResponseMessage struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>struct.header = new AsyncMessageHeader();<NEW_LINE>struct.header.read...
incoming = iprot.readBitSet(2);
1,725,521
public static void copyDirFiles(File sourceDir, File targetDir, boolean preserveTimestamp) {<NEW_LINE>File[] files = sourceDir.listFiles();<NEW_LINE>if (files == null || files.length == 0) {<NEW_LINE>targetDir.mkdirs();<NEW_LINE>if (preserveTimestamp) {<NEW_LINE>targetDir.<MASK><NEW_LINE>}<NEW_LINE>return;<NEW_LINE>}<N...
setLastModified(sourceDir.lastModified());
885,793
public Calc compileCall(ResolvedFunCall call, ExpCompiler compiler) {<NEW_LINE>final ListCalc listCalc = compiler.compileList<MASK><NEW_LINE>final Calc calc = call.getArgCount() > 1 ? compiler.compileScalar(call.getArg(1), true) : new ValueCalc(call);<NEW_LINE>return new AbstractDoubleCalc(call, new Calc[] { listCalc, ...
(call.getArg(0));
516,628
private void drawTextWithArrowNearOpenStructureIcon(String text, Rectangle cursorBounds) {<NEW_LINE>//<NEW_LINE>// Make some room to draw our annotations (text and an arrow)<NEW_LINE>//<NEW_LINE>Dimension whitespace = new Dimension(150, 10);<NEW_LINE>padImage(Color.WHITE, whitespace.height, whitespace.width, 10, 10);<N...
= Color.GREEN.darker();
1,557,124
private void save(FieldMetadata field, Writer writer, OutputStream out, boolean indent, boolean formatAsJavaString) throws IOException {<NEW_LINE>if (indent) {<NEW_LINE>write(LF, writer, out);<NEW_LINE>write(TAB, writer, out);<NEW_LINE>}<NEW_LINE>write(XMLFieldsConstants.FIELD_TAG_START_ELT, writer, out);<NEW_LINE>writ...
write(LF, writer, out);
116,408
protected void onElasticsearchFirstAvailable(ElasticsearchClient elasticsearchClient) {<NEW_LINE>if (corePlugin.isInitializeElasticsearch()) {<NEW_LINE>if (elasticsearchClient.isElasticsearch6Compatible() || elasticsearchClient.isElasticsearch7Compatible()) {<NEW_LINE>logger.debug("creating KibanaIndexAndMapping for ES...
), corePlugin.getMeasurementSession());
974,330
public Object importPermission(Object bean, Map<String, Object> values) {<NEW_LINE>assert bean instanceof Permission;<NEW_LINE>try {<NEW_LINE>GroupRepository groupRepository = Beans.get(GroupRepository.class);<NEW_LINE>Permission permission = (Permission) bean;<NEW_LINE>String groups = (String) values.get("group");<NEW...
> permissions = group.getPermissions();
1,647,603
public void actionPerformed(ActionEvent evt, JTextComponent target) {<NEW_LINE>if (target != null) {<NEW_LINE>if (!target.isEditable() || !target.isEnabled()) {<NEW_LINE>target.getToolkit().beep();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>BaseDocument doc = (BaseDocument) target.getDocument();<NEW_LINE>// NOI18N<NEW_LINE>S...
.toString()), target);
787,099
private void registerAndConnectAsHelixParticipant() {<NEW_LINE>// Registers customized Master-Slave state model to state machine engine, which is for calculating participant<NEW_LINE>// assignment in lead controller resource.<NEW_LINE>_helixParticipantManager.getStateMachineEngine().registerStateModelFactory(MasterSlav...
CommonConstants.Helix.LEAD_CONTROLLER_RESOURCE_NAME, e);
630,409
public static BlockStateData parse(Material material, String state) throws InvalidBlockStateException {<NEW_LINE>if (state == null || state.trim().isEmpty() || state.trim().equals("*")) {<NEW_LINE>return new BlockStateData();<NEW_LINE>}<NEW_LINE>BlockStateReader reader = getReader(material);<NEW_LINE>if (material == nu...
throw new InvalidBlockStateException(material, state);
393,557
private void logCacheStatistics() {<NEW_LINE>logger.info("* Constraint Cache Statistics");<NEW_LINE>final int numberOfSATs = SolverCache.getInstance().getNumberOfSATs();<NEW_LINE>final int numberOfUNSATs = SolverCache.getInstance().getNumberOfUNSATs();<NEW_LINE>if (numberOfSATs == 0 || numberOfUNSATs == 0) {<NEW_LINE>l...
.format(" - Stored SAT constraints: %s", numberOfSATs));
1,580,667
private static void writeContentUriTriggerToBundle(Bundle data, ContentUriTrigger uriTrigger) {<NEW_LINE>data.putInt(BundleProtocol.PACKED_PARAM_TRIGGER_TYPE, BundleProtocol.TRIGGER_TYPE_CONTENT_URI);<NEW_LINE>int size = uriTrigger.getUris().size();<NEW_LINE>int[] flagsArray = new int[size];<NEW_LINE>Uri[<MASK><NEW_LIN...
] uriArray = new Uri[size];
1,048,951
private void onMatchLogicalView(RelOptRuleCall call) {<NEW_LINE>final LogicalSemiJoin join = call.rel(0);<NEW_LINE>RelNode left = call.rel(1);<NEW_LINE>final LogicalView logicalView = call.rel(2);<NEW_LINE>RexNode newCondition = JoinConditionSimplifyRule.simplifyCondition(join.getCondition(), join.getCluster().getRexBu...
).replace(DrdsConvention.INSTANCE);
1,329,642
public void show(Color initialColor, JComponent component, Point offset, Balloon.Position position, ColorListener colorListener, Runnable onCancel, Runnable onOk) {<NEW_LINE>if (popup != null) {<NEW_LINE>popup.close();<NEW_LINE>}<NEW_LINE>popup = // TODO(jacobr): we would like to add the saturation and brightness<NEW_L...
show(component, offset, position);
472,115
protected void readElementEvaluations(JRVirtualizable<VirtualElementsData> object) {<NEW_LINE>// ugly but needed for now<NEW_LINE>JRVirtualPrintPage page = ((VirtualizablePageElements) object).getPage();<NEW_LINE>FillPageKey pageKey = new FillPageKey(page);<NEW_LINE>for (Map.Entry<JREvaluationTime, LinkedHashMap<FillPa...
> map = boundMapEntry.getValue();
1,489,212
public void drawFrame(TextGraphics graphics, TerminalSize realSize, TerminalSize virtualSize, TerminalPosition virtualScrollPosition) {<NEW_LINE>if (realSize.getColumns() == 1 || realSize.getRows() <= 2) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>TerminalSize viewportSize = getViewportSize(realSize, virtualSize);<NEW_LINE>...
viewportSize.getColumns())));
373,479
private static void insertNativeEdges(final List<? extends ICodeEdge<?>> nativeEdges, final List<ReilBlock> nodes, final List<ReilEdge> edges, final Map<IInstruction, ReilInstruction> firstMap, final Map<IInstruction, ReilInstruction> lastMap) {<NEW_LINE>for (final ICodeEdge<?> nativeEdge : nativeEdges) {<NEW_LINE>fina...
final IInstruction sourceInstruction = getLastInstruction(sourceCodeNode);
1,277,204
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
312,172
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)<NEW_LINE>public Response logoutConfirmAction() {<NEW_LINE>MultivaluedMap<String, String> formData = request.getDecodedFormParameters();<NEW_LINE>event.event(EventType.LOGOUT);<NEW_LINE>String code = formData.getFirst(SESSION_CODE);<NEW_LINE>String clientId = session.getC...
event, code, clientId, tabId);
1,194,327
private static String accessToString(int access) {<NEW_LINE>char[] accessChars = new char[9];<NEW_LINE>accessChars[0] = ((access & USR_R) == 0) ? '-' : 'r';<NEW_LINE>accessChars[1] = ((access & USR_W) == 0) ? '-' : 'w';<NEW_LINE>accessChars[2] = ((access & USR_X) == 0) ? '-' : 'x';<NEW_LINE>accessChars[3] = ((access & ...
) == 0) ? '-' : 'w';
215,258
public GetRequestValidatorsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetRequestValidatorsResult getRequestValidatorsResult = new GetRequestValidatorsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentEleme...
JsonToken token = context.getCurrentToken();
972,956
private void selectFiles() {<NEW_LINE>CompactionHelper localHelper;<NEW_LINE>synchronized (this) {<NEW_LINE>if (!closed && fileMgr.beginSelection()) {<NEW_LINE>localHelper = this.chelper;<NEW_LINE>} else {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>var allFiles = tablet.getDatafiles();<NEW_LINE>Set<...
, localHelper.getFilesToDrop()));
1,271,006
private RulesLoader initRuleLoaderMinio(MinioConfig minioConfig) {<NEW_LINE>RulesLoader rulesLoader = null;<NEW_LINE>MinioClient minioClient = MinioClient.builder().endpoint(minioConfig.getEndpoint()).credentials(minioConfig.getAccessKey(), minioConfig.getSecretKey()).build();<NEW_LINE>try {<NEW_LINE>boolean bucketExis...
.getFile()), ex);
975,801
public void updateStatisticOnRequest(int dataId) {<NEW_LINE>if (si != null) {<NEW_LINE>ConnectionPoolStats temp = ConnectionPoolMonitor.getConnectionPoolOB((si.getName()));<NEW_LINE>if (dataId == NUM_CREATES) {<NEW_LINE>numManagedConnectionsCreated.setCount(temp.getCreateCount());<NEW_LINE>}<NEW_LINE>if (dataId == NUM_...
set(temp.getFreeConnectionCount());
582,516
public static void main(String[] args) throws IOException {<NEW_LINE>Scanner sc = new Scanner(System.in);<NEW_LINE>System.out.println("Enter the dimention of the matrix: ");<NEW_LINE>int n = sc.nextInt();<NEW_LINE>int m = sc.nextInt();<NEW_LINE>int[][] grid = new int[n][m];<NEW_LINE>System.out.println("Enter values of ...
ans = obj.orangesRotting(grid);
945,978
public boolean configure(FeatureContext context) {<NEW_LINE>final boolean disabled = PropertiesHelper.isProperty(context.getConfiguration().getProperty(ServerProperties.WADL_FEATURE_DISABLE));<NEW_LINE>if (disabled) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (!ReflectionHelper.isJaxbAvailable()) {<NEW_LINE>LOGGER....
warning(LocalizationMessages.WADL_FEATURE_DISABLED_NOJAXB());
591,620
public static void broadcastEvent(final String name, final String data, final boolean authenticated, final boolean anonymous) {<NEW_LINE>if (anonymous == true && authenticated == true) {<NEW_LINE>broadcastEvent(name, data);<NEW_LINE>} else if (anonymous == true) {<NEW_LINE>// account for multiple open tabs/connections ...
checkedSessionIds.put(sessionId, false);
1,760,215
public static ListMetastoreMigrationsResponse unmarshall(ListMetastoreMigrationsResponse listMetastoreMigrationsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listMetastoreMigrationsResponse.setRequestId(_ctx.stringValue("ListMetastoreMigrationsResponse.RequestId"));<NEW_LINE>listMetastoreMigrationsResponse.setSuccess(...
("ListMetastoreMigrationsResponse.Data[" + i + "].WorkflowLastRunInstance.ClusterId"));
1,389,861
public void deleteMessagesId(Integer id) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'id' is set<NEW_LINE>if (id == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'id' when calling deleteMessagesId");<NEW_LINE>}<NEW_LINE>// creat...
HashMap<String, String>();
1,204,053
public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasMinLengthAndAllElementsNotNull(sources, 2);<NEW_LINE>try {<NEW_LINE>if (!(sources[0] instanceof File)) {<NEW_LINE>logParameterError(caller, sources, "First paramete...
final AccessPermission accessPermission = new AccessPermission();
650,397
public void iteration() {<NEW_LINE>if (this.actualThreadCount == 0) {<NEW_LINE>preIteration();<NEW_LINE>}<NEW_LINE>if (getPopulation().getSpecies().size() == 0) {<NEW_LINE>throw new EncogError("Population is empty, there are no species.");<NEW_LINE>}<NEW_LINE>this.iteration++;<NEW_LINE>// Clear new population to just b...
taskExecutor.invokeAll(this.threadList);
1,216,097
public void go() throws Exception {<NEW_LINE>try {<NEW_LINE>buildFilterPattern();<NEW_LINE>refreshOrganizationsCache();<NEW_LINE>outerDcMeta = extractOuterDcMetaWithInterestedTypes(getDcMetaFromOutClient(currentDcId));<NEW_LINE>future = outerDcMeta.getKey();<NEW_LINE>current = extractLocalDcMetaWithInterestedTypes(meta...
), outerDcMeta.getValue());
1,706,039
private void sendRoleSharedPasswordAuthType() throws NoSuchPaddingException, IllegalBlockSizeException, NoSuchAlgorithmException, BadPaddingException, InvalidKeyException {<NEW_LINE>byte[] playerPasswordSalt = playerDatabase.getPlayerPasswordSalt(player.getName());<NEW_LINE>String[] password = new String[2];<NEW_LINE>p...
new PasswordGenerator().getPassword();
392,223
private void animatingZoomInThread(int zoomStart, double zoomFloatStart, int zoomEnd, double zoomFloatEnd, float animationTime, boolean notifyListener) {<NEW_LINE>try {<NEW_LINE>isAnimatingZoom = true;<NEW_LINE>// could be 0 ]-0.5,0.5], -1 ]-1,0], 1 ]0, 1]<NEW_LINE>int threshold = ((int) (zoomFloatEnd * 2));<NEW_LINE>d...
* (endZoom - beginZoom) + beginZoom;
87,846
public void testCopy() throws Exception {<NEW_LINE>CountDownLatch continueLatch = new CountDownLatch(1);<NEW_LINE>BlockableSupplier<Long> blocker = new BlockableSupplier<Long>(100l, null, continueLatch);<NEW_LINE>CompletableFuture<Long> cf0 = defaultManagedExecutor.supplyAsync(blocker);<NEW_LINE>if (!AT_LEAST_JAVA_9)<N...
>) copy.apply(cf0);
1,257,813
public void releasePodIp(Long id) throws CloudRuntimeException {<NEW_LINE>// Verify input parameters<NEW_LINE>DataCenterIpAddressVO ipVO = _privateIPAddressDao.findById(id);<NEW_LINE>if (ipVO == null) {<NEW_LINE>throw new CloudRuntimeException("Unable to find ip address by id:" + id);<NEW_LINE>}<NEW_LINE>if (ipVO.getTa...
CloudRuntimeException("Ip Address with id= " + id + " is not allocated, so do nothing.");
890,934
private void addDerivedTypes() {<NEW_LINE>Iterator<DefinedType> typeIter = schema.getTypes().iterator();<NEW_LINE>while (typeIter.hasNext()) {<NEW_LINE><MASK><NEW_LINE>// debug (type.getName()+":"+type.getDomain(true).toString());<NEW_LINE>// if ((type.getDomain() instanceof SimpleType)==false &&<NEW_LINE>// (type inst...
DefinedType type = typeIter.next();
346,330
private void buildExtraJoins(STreeType desc, List<SqlTreeNode> myList) {<NEW_LINE>if (rawSql) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Set<String> predicateIncludes = predicates.getPredicateIncludes();<NEW_LINE>if (predicateIncludes == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Note includes - basically means joins....
addAll(predicates.getOrderByIncludes());
454,377
protected static ReportTemplateSource loadTemplate(Object source, JRBaseFiller filler, RepositoryContext repositoryContext) throws JRException {<NEW_LINE>Object cacheKey = source;<NEW_LINE>if (source instanceof String) {<NEW_LINE>cacheKey = ResourcePathKey.inContext(repositoryContext, (String) source);<NEW_LINE>}<NEW_L...
filler.fillContext.getLoadedTemplate(cacheKey);
187,172
public void configure(Object... keyValues) {<NEW_LINE>Object key = keyValues[0];<NEW_LINE>Object value = keyValues[1];<NEW_LINE>if (key.equals(Hits.AUTH_PROP)) {<NEW_LINE>if (!(value instanceof String)) {<NEW_LINE>throw new IllegalArgumentException("auth requires a String as its argument");<NEW_LINE>}<NEW_LINE>this.aut...
parameters.set(this, keyValues);
193,278
public void onApplicationEvent(AppLoggedInEvent event) {<NEW_LINE><MASK><NEW_LINE>Connection connection = app.getConnection();<NEW_LINE>if (connection.isAuthenticated() && !isLoggedInWithExternalAuth(connection.getSessionNN())) {<NEW_LINE>User user = connection.getSessionNN().getUser();<NEW_LINE>// Change password on l...
App app = event.getApp();
930,825
public com.amazonaws.services.finspacedata.model.AccessDeniedException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.finspacedata.model.AccessDeniedException accessDeniedException = new com.amazonaws.services.finspacedata.model.AccessDeniedException(null);<NEW...
JsonToken token = context.getCurrentToken();
1,049,769
private void handleCExtensionException(String feature, Exception e) {<NEW_LINE>TranslateExceptionNode.logJavaException(getContext(), this, e);<NEW_LINE>final Throwable linkErrorException = searchForException("NFIUnsatisfiedLinkError", e);<NEW_LINE>if (linkErrorException != null) {<NEW_LINE>final String linkError = link...
.runtimeError(message, this));
645,086
private void drawPainters(com.codename1.ui.Graphics g, Component par, Component c, int x, int y, int w, int h) {<NEW_LINE>if (flatten && getWidth() > 0 && getHeight() > 0) {<NEW_LINE>Image i = (Image) getClientProperty("$FLAT");<NEW_LINE>int absX = getAbsoluteX() + getScrollX();<NEW_LINE>int absY = getAbsoluteY() + get...
x, y, w, h);
1,092,531
public static void YUV420pToRGBH2H(byte yh, byte yl, byte uh, byte ul, byte vh, byte vl, int nlbi, byte[] data, byte[] lowBits, int nlbo, int off) {<NEW_LINE>int clipMax = ((1 << nlbo) << 8) - 1;<NEW_LINE>int round = (1 << nlbo) >> 1;<NEW_LINE>int c = ((yh + 128<MASK><NEW_LINE>int d = ((uh + 128) << nlbi) + ul - 512;<N...
) << nlbi) + yl - 64;
1,532,158
protected PageBook createPropertiesPanelTitle(Composite parent) {<NEW_LINE>GridLayout layout;<NEW_LINE>PageBook book = new PageBook(parent, SWT.NONE);<NEW_LINE>book.setFont(parent.getFont());<NEW_LINE>book.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_FILL));<NEW_LINE>titlePage = new Com...
setFont(book.getFont());
1,782,775
private void put(long keyPart, InMemEntry entry, int depth, int value) {<NEW_LINE>if (entry.isLeaf()) {<NEW_LINE>InMemLeafEntry leafEntry = (InMemLeafEntry) entry;<NEW_LINE>// Avoid adding the same edge id multiple times.<NEW_LINE>// Since each edge id is handled only once, this can only happen when<NEW_LINE>// this me...
new InMemTreeEntry(entries[depth]);
719,028
public static boolean registerDevice(final ActivityBase context) {<NEW_LINE>int userId = Util.getUserId(Process.myUid());<NEW_LINE>if (Util.hasProLicense(context) == null && !PrivacyManager.getSettingBool(userId, PrivacyManager.cSettingRegistered, false)) {<NEW_LINE>// Get accounts<NEW_LINE>String email = null;<NEW_LIN...
= new AlertDialog.Builder(context);
1,759,746
public void parse(String url, FileURL fileURL) throws MalformedURLException {<NEW_LINE>int urlLen = url.length();<NEW_LINE>int schemeDelimPos = url.indexOf("://");<NEW_LINE>String scheme = url.substring(0, schemeDelimPos);<NEW_LINE>fileURL.setScheme(scheme);<NEW_LINE>int hostStartPos = schemeDelimPos + 3;<NEW_LINE>int ...
== -1 ? urlLen : questionMarkPos);
744,406
public Mono<ActionDTO> importAction(Object input, String pageId, String name, String orgId, String branchName) {<NEW_LINE>ActionDTO action;<NEW_LINE>try {<NEW_LINE>if (input == null) {<NEW_LINE>throw new AppsmithException(AppsmithError.INVALID_PARAMETER, FieldName.CURL_CODE);<NEW_LINE>}<NEW_LINE>action = curlToAction((...
findByBranchNameAndDefaultPageId(branchName, pageId, MANAGE_PAGES);
10,065
public long clearOldEntries(long cacheExpirationMs) {<NEW_LINE>long oldestRemainingEntryAgeMs = 0L;<NEW_LINE>synchronized (mLock) {<NEW_LINE>try {<NEW_LINE>long now = mClock.now();<NEW_LINE>Collection<DiskStorage.Entry> allEntries = mStorage.getEntries();<NEW_LINE>final long cacheSizeBeforeClearance = mCacheStats.getSi...
).setCacheSize(cacheSizeBeforeClearance - itemsRemovedSize);
1,043,969
private Trace populateTraceId(scala.Option context) {<NEW_LINE>scala.collection.Map traceContextMap = (scala.collection.Map) context.get();<NEW_LINE>Map map = JavaConversions.mapAsJavaMap(traceContextMap);<NEW_LINE>String transactionId = (String) map.get("transactionId");<NEW_LINE>String spanId = (String) map.get("span...
String) map.get("entityPath");
41,954
public static GetWelcomePageURIResponse unmarshall(GetWelcomePageURIResponse getWelcomePageURIResponse, UnmarshallerContext context) {<NEW_LINE>getWelcomePageURIResponse.setRequestId(context.stringValue("GetWelcomePageURIResponse.RequestId"));<NEW_LINE>getWelcomePageURIResponse.setData(context.stringValue("GetWelcomePa...
(context.booleanValue("GetWelcomePageURIResponse.Success"));
399,355
public List<GenericTrigger> loadTriggers(DBRProgressMonitor monitor, @NotNull GenericStructContainer container, @Nullable GenericTableBase table) throws DBException {<NEW_LINE>if (table == null) {<NEW_LINE>throw new DBException("Database level triggers aren't supported for HSQLDB");<NEW_LINE>}<NEW_LINE>try (JDBCSession...
JDBCUtils.safeGetString(dbResult, "TRIGGER_NAME");
171,026
public CertificateConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CertificateConfiguration certificateConfiguration = new CertificateConfiguration();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
int originalDepth = context.getCurrentDepth();
434,893
protected void migrateAssignAxis(Axis legacyAxis, AbstractAxis axis, HeadMountable hm) {<NEW_LINE>AbstractAxis assignAxis = axis;<NEW_LINE>if (legacyAxis.transform != null) {<NEW_LINE>if (legacyAxis.transform instanceof CamTransform) {<NEW_LINE>if (!((CamTransform) legacyAxis.transform).negatedHeadMountableId.equals(hm...
) hm).isLimitRotation());
16,614
public long createOrUpdateSecret(String name, String owner, String encryptedSecret, String hmac, String creator, Map<String, String> metadata, long expiry, String description, @Nullable String type, @Nullable Map<String, String> generationOptions) {<NEW_LINE>// SecretController should have already checked that the cont...
description, type, generationOptions, now);
1,618,873
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see<NEW_LINE>* com.amazonaws.services.s3.AmazonS3#listObjects(com.amazonaws.services<NEW_LINE>* .s3.model.ListObjectsRequest)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public ObjectListing listObjects(ListObjectsRequest listObjectsRequest) throws AmazonClientException, AmazonServic...
"delimiter", listObjectsRequest.getDelimiter());
1,075,678
private void addBasicTypeToExcel(RowData oneRowData, Row row, int rowIndex, int relativeRowIndex) {<NEW_LINE>if (oneRowData.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<Integer, Head> headMap = writeContext.currentWriteHolder().excelWriteHeadProperty().getHeadMap();<NEW_LINE>int dataIndex = 0;<NEW_LINE>int max...
int columnIndex = entry.getKey();
312,220
private static void open(DbMethodCall mc) {<NEW_LINE>synchronized (mc.plugin) {<NEW_LINE>String path = normalizePath(mc.getAppContext(), (String) mc.args[1]);<NEW_LINE>DbEntry dbe = null;<NEW_LINE>for (DbEntry v : dbmap.values()) {<NEW_LINE>if (v.path.equals(path)) {<NEW_LINE>dbe = v;<NEW_LINE>break;<NEW_LINE>}<NEW_LIN...
get("document_buffer_sz"), 0));
494,581
// @DocValidate(timings = { ModelValidator.TIMING_AFTER_COMPLETE, ModelValidator.TIMING_AFTER_REACTIVATE, ModelValidator.TIMING_AFTER_CLOSE })<NEW_LINE>// public void invalidateInvoiceCandidates(final I_C_Order order)<NEW_LINE>// {<NEW_LINE>// final IInvoiceCandidateHandlerBL invoiceCandidateHandlerBL = Services.get(II...
.Amount).build());
783,782
public void invokeSvcClient(String testcase, WebClient webClient, Object startPage, SAMLTestSettings settings, List<validationData> expectations) throws Exception {<NEW_LINE>String thisMethod = "invokeSvcClient";<NEW_LINE>msgUtils.printMethodName(thisMethod);<NEW_LINE>try {<NEW_LINE>setMarkEndOfLogs();<NEW_LINE>URL url...
err.println("Exception: " + e);
605,178
public IO<IterV<char[], A>> f(IterV<char[], A> it) {<NEW_LINE>// use loop instead of recursion because of missing TCO<NEW_LINE>return () -> {<NEW_LINE>IterV<char<MASK><NEW_LINE>while (!isDone.f(i)) {<NEW_LINE>char[] buffer = new char[DEFAULT_BUFFER_SIZE];<NEW_LINE>final int numRead = r.read(buffer);<NEW_LINE>if (numRea...
[], A> i = it;
314,382
public void handle(AnnotationValues<RequiredArgsConstructor> annotation, JCAnnotation ast, JavacNode annotationNode) {<NEW_LINE>handleFlagUsage(annotationNode, ConfigurationKeys.REQUIRED_ARGS_CONSTRUCTOR_FLAG_USAGE, "@RequiredArgsConstructor", ConfigurationKeys.ANY_CONSTRUCTOR_FLAG_USAGE, "any @xArgsConstructor");<NEW_...
String staticName = ann.staticName();
17,769
public static QueryProductListResponse unmarshall(QueryProductListResponse queryProductListResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryProductListResponse.setRequestId(_ctx.stringValue("QueryProductListResponse.RequestId"));<NEW_LINE>queryProductListResponse.setSuccess(_ctx.booleanValue("QueryProductListRespons...
= new ArrayList<ProductInfo>();
299,659
private void processMipsOptions(ElfLoadHelper elfLoadHelper, Address mipsOptionsAddr) {<NEW_LINE>boolean elf64 = elfLoadHelper.getElfHeader().is64Bit();<NEW_LINE>String prefix = elf64 ? "Elf64" : "Elf32";<NEW_LINE>EnumDataType odkType = new EnumDataType(prefix + "_MipsOptionKind", 1);<NEW_LINE>odkType.add("ODK_NULL", O...
odkType.add("ODK_FILL", ODK_FILL);
549,648
public void handle(final RequestContext context) {<NEW_LINE>final Request request = context.getRequest();<NEW_LINE>final JSONObject requestJSONObject = context.requestJSON();<NEW_LINE>request.setAttribute(Keys.REQUEST, requestJSONObject);<NEW_LINE>final JSONObject currentUser = Sessions.getUser();<NEW_LINE>if (System.c...
put(Common.CONTENT, content);
1,589,441
// test entry point only<NEW_LINE>@FFDCIgnore(XMLStreamException.class)<NEW_LINE>public ConfigElement parseConfigElement(Reader reader) throws ConfigParserException {<NEW_LINE>behaviorStack.add(MergeBehavior.MERGE);<NEW_LINE>docLocationStack.add("Test Server");<NEW_LINE>DepthAwareXMLStreamReader parser = null;<NEW_LINE...
null, null, null, false);
578,949
void handle(SyncVolumeSizeOnPrimaryStorageMsg msg, String hostUuid, final ReturnValueCompletion<SyncVolumeSizeOnPrimaryStorageReply> completion) {<NEW_LINE>final SyncVolumeSizeOnPrimaryStorageReply reply = new SyncVolumeSizeOnPrimaryStorageReply();<NEW_LINE>GetVolumeSizeCmd cmd = new GetVolumeSizeCmd();<NEW_LINE>cmd.in...
KvmCommandSender sender = new KvmCommandSender(hostUuid);
261,537
public GetContentModerationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetContentModerationResult getContentModerationResult = new GetContentModerationResult();<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>reader.beginObject();<NEW_LINE>while (reader.hasNext()) {<NEW_...
().unmarshall(context));
1,549,064
/*-[<NEW_LINE>#pragma clang diagnostic push<NEW_LINE>#pragma clang diagnostic ignored "-Wunused-function"<NEW_LINE>static LibcoreIoStructStat *makeStructStat(const struct stat *sb) {<NEW_LINE>return AUTORELEASE([[LibcoreIoStructStat alloc]<NEW_LINE>initWithLong:sb->st_dev<NEW_LINE>withLong:sb->st_ino<NEW_LINE>withInt:s...
[NSString stringWithUTF8String:buf->release];
1,317,336
private RequestContext convertRequest(Query query, GroupingRequest req, int requestId, Map<Integer, Grouping> map) {<NEW_LINE>RequestBuilder builder = new RequestBuilder(requestId);<NEW_LINE>builder.setRootOperation(req.getRootOperation());<NEW_LINE>builder.setDefaultSummaryName(query.getPresentation().getSummary());<N...
> grpList = builder.getRequestList();
1,436,912
private TopologyAPI.Topology cloneWithNewNumContainers(TopologyAPI.Topology initialTopology, int numStreamManagers) {<NEW_LINE>TopologyAPI.Topology.Builder topologyBuilder = TopologyAPI.Topology.newBuilder(initialTopology);<NEW_LINE>TopologyAPI.Config.Builder configBuilder = TopologyAPI.Config.newBuilder();<NEW_LINE>fo...
addKvs(kvBuilder.build());
714,143
// begin PK10057<NEW_LINE>public static ServletErrorReport constructErrorReport(Throwable th, String path) {<NEW_LINE>if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE)) {<NEW_LINE>logger.logp(Level.FINE, CLASS_NAME, "constructErrorReport", "constructing error report for path -->...
r.setErrorCode(HttpServletResponse.SC_NOT_FOUND);
330,105
private boolean handleDownwardOutput(boolean simulate) {<NEW_LINE>BlockState blockState = getBlockState();<NEW_LINE>ChuteTileEntity targetChute = getTargetChute(blockState);<NEW_LINE>Direction direction = AbstractChuteBlock.getChuteFacing(blockState);<NEW_LINE>if (level == null || direction == null || !this.canOutputIt...
, -12 / 16f, 0);
1,813,274
// Create shortcut as response for ACTION_CREATE_SHORTCUT intent.<NEW_LINE>private void respondToShortcutRequest(Uri uri) {<NEW_LINE>// This is Intent that will be sent when user execute our shortcut on<NEW_LINE>// homescreen. Set our app as target Context. Set Main activity as<NEW_LINE>// target class. Add any paramet...
StandardCharsets.UTF_8.name());
29,576
public DynamicTableSink createDynamicTableSink(Context context) {<NEW_LINE>final Map<String, String> options = context.getCatalogTable().getOptions();<NEW_LINE>String serializedRichFunction = null;<NEW_LINE>if (options.containsKey(CONNECTOR_RICH_SINK_FUNCTION)) {<NEW_LINE>serializedRichFunction = options.get(CONNECTOR_...
LogTable.RichSinkFunctionDeserializer.deserialize(serializedRichFunction);
1,437,342
private String prepareMessage() {<NEW_LINE>StringBuilder builder = new StringBuilder("<html>");<NEW_LINE>LayoutCodeInfoCollector notifications = myProcessor.getInfoCollector();<NEW_LINE>LOG.assertTrue(notifications != null);<NEW_LINE>if (notifications.isEmpty() && !myNoChangesDetected) {<NEW_LINE>if (myProcessChangesTe...
ColorUtil.toHex(JBColor.gray);
1,727,810
public void testServletSubmitsBeanToManagedExecutor() throws Exception {<NEW_LINE>appScopedBean.setCharacter('c');<NEW_LINE>requestScopedBean.setNumber(2);<NEW_LINE>sessionScopedBean.setText("This is some text");<NEW_LINE>singletonScopedBean.put("Key_TaskBean", "value");<NEW_LINE>Future<String> future = executor.submit...
throw new Exception("Unexpected result: " + result);
14,399
public void aesEncrypt(final byte[] key, InputStream in, OutputStream out, final byte[] iv, boolean useMac) throws CryptoError, IOException {<NEW_LINE>InputStream encrypted = null;<NEW_LINE>try {<NEW_LINE>Cipher cipher = Cipher.getInstance(AES_MODE_PADDING);<NEW_LINE>IvParameterSpec params = new IvParameterSpec(iv);<NE...
encrypted = getCipherInputStream(in, cipher);
644,480
final PutRepositoryPermissionsPolicyResult executePutRepositoryPermissionsPolicy(PutRepositoryPermissionsPolicyRequest putRepositoryPermissionsPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putRepositoryPermissionsPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);