idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,487,310
public com.amazonaws.services.workmail.model.ResourceNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.workmail.model.ResourceNotFoundException resourceNotFoundException = new com.amazonaws.services.workmail.model.ResourceNotFoundException(null);...
int originalDepth = context.getCurrentDepth();
1,181,160
protected void prepare() {<NEW_LINE>try (final IAutoCloseable cacheFlagRestorer = CacheInterceptor.temporaryDisableCaching()) {<NEW_LINE>final ClientSetup clientSetup = getClientSetup();<NEW_LINE>for (final ProcessInfoParameter para : getParametersAsArray()) {<NEW_LINE>if (para.getParameter() == null) {<NEW_LINE>contin...
setCompanyTaxID(para.getParameterAsString());
1,618,000
void generatePluralMethod(CheckerFrameworkVersion cfv, boolean deprecate, TypeReference returnType, Statement returnStatement, SingularData data, EclipseNode builderType, boolean fluent, AccessLevel access) {<NEW_LINE>MethodDeclaration md = new MethodDeclaration(((CompilationUnitDeclaration) builderType.top().get()).co...
(data, builderType, false));
1,084,955
protected void channelRead0(ChannelHandlerContext ctx, Package msg) throws Exception {<NEW_LINE>Preconditions.checkNotNull(msg, "TCP package cannot be null");<NEW_LINE>Preconditions.checkNotNull(msg.getHeader(), "TCP package header cannot be null");<NEW_LINE>Command cmd = msg.getHeader().getCmd();<NEW_LINE>log.info("|r...
(getProtocolMessage(msg), ctx);
205,628
protected void doGet(HttpServletRequest request, HttpServletResponse resp) throws ServletException, IOException {<NEW_LINE>resp.setContentType("text/html;charset=UTF-8");<NEW_LINE>String action = request.getParameter("action");<NEW_LINE><MASK><NEW_LINE>WebTarget webTarget = client.target(config.getValue("resourceServer...
Client client = ClientBuilder.newClient();
1,198,838
void loadFrom(Preferences prefs) {<NEW_LINE>if (prefs == null)<NEW_LINE>return;<NEW_LINE>preferences = prefs;<NEW_LINE>String fontFamily = prefs.get(PREFIX + PROP_FONT_FAMILY, font.getFamily());<NEW_LINE>int fontStyle = prefs.getInt(PREFIX + PROP_FONT_STYLE, font.getStyle());<NEW_LINE>fontSize = prefs.getInt(PREFIX + P...
get(PREFIX + PROP_SELECT_BY_WORD_DELIMITERS, selectByWordDelimiters);
1,293,290
public String callAnother(String URL, String vote1, String vote2, int expectedDirection) {<NEW_LINE>boolean result = false;<NEW_LINE>try {<NEW_LINE>XAResourceImpl.clear();<NEW_LINE>final ExtendedTransactionManager TM = TransactionManagerFactory.getTransactionManager();<NEW_LINE>final Serializable xaResInfo = XAResource...
+ " second web service call:" + e.toString();
1,014,528
public Function<InitialHandshakeResponse, ProtocolHandshake.Result> successHandler() {<NEW_LINE>return tuple -> {<NEW_LINE>if (tuple.getData().containsKey("status")) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Object rawValue = tuple.getData().get("value");<NEW_LINE>if (!(rawValue instanceof Map)) {<NEW_LINE>return nul...
Map<String, Object>) rawCapabilities;
1,003,236
private void constructSyncClientMap(Type type) {<NEW_LINE>switch(type) {<NEW_LINE>case RequestForwardClient:<NEW_LINE>syncClientPoolMap.put(ClientCategory.DATA, clientPoolFactory.createSyncDataPool(ClientCategory.DATA));<NEW_LINE>break;<NEW_LINE>case MetaGroupClient:<NEW_LINE>syncClientPoolMap.put(ClientCategory.META, ...
.createSyncMetaPool(ClientCategory.META));
1,484,984
public static void execute(ManagerConnection c, String stmt) {<NEW_LINE>Map<String, String> paramster = parse(stmt);<NEW_LINE>int retryTime = 1;<NEW_LINE>long intervalTime = 200;<NEW_LINE>// "show @@CKECK_GLOBAL -SCHEMA=TESTDB -TABLE=E_ACCOUNT_SUBJECT -retrytime=2"<NEW_LINE>// + " -intervaltime=20"<NEW_LINE>String tabl...
size(), retryTime, intervalTime);
227,782
private boolean matchesConditionalInsn(int last, AbstractInsnNode insn) {<NEW_LINE>for (int conditionalOpcode : this.expandOpcodes) {<NEW_LINE>int opcode = insn.getOpcode();<NEW_LINE>if (opcode == conditionalOpcode) {<NEW_LINE>if (last == Opcodes.LCMP || last == Opcodes.FCMPL || last == Opcodes.FCMPG || last == Opcodes...
this.log(" BeforeConstant found INTEGER constant: value = {}", value);
1,345,960
/*<NEW_LINE>* For type variables we might hit the same type again. We keep a list of visited types.<NEW_LINE>*/<NEW_LINE>private static boolean containsModifierImpl(AnnotatedTypeMirror type, AnnotationMirror modifier, List<AnnotatedTypeMirror> visited) {<NEW_LINE>boolean found = type.hasAnnotation(modifier);<NEW_LINE>b...
getSuperBound(), modifier, visited);
1,746,155
private Mono<Response<Flux<ByteBuffer>>> redeployWithResponseAsync(String resourceGroupName, String vmScaleSetName, VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
858,950
private static OrcWriter createOrcFileWriter(DataSink sink, List<Type> types) {<NEW_LINE>List<String> columnNames = IntStream.range(0, types.size()).mapToObj(String::valueOf).collect(toImmutableList());<NEW_LINE>try {<NEW_LINE>return new OrcWriter(sink, columnNames, types, ORC, LZ4, Optional.empty(), NO_ENCRYPTION, Orc...
.BOTH, new OrcWriterStats());
1,115,274
public static EventBean[] handleDistintAndInsert(EventBean[] newData, InfraOnSelectViewFactory parent, AgentInstanceContext agentInstanceContext, TableInstance tableInstanceInsertInto, boolean audit, ExprEvaluator eventPrecedence) {<NEW_LINE>if (parent.isDistinct()) {<NEW_LINE>newData = EventBeanUtility.getDistinctByPr...
eventPrecedence, aNewData, 0, agentInstanceContext);
245,398
private void showPanel() {<NEW_LINE>if (popupWindow != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>addHideListener();<NEW_LINE>popupWindow <MASK><NEW_LINE>popupWindow.setName(POPUP_NAME);<NEW_LINE>popupWindow.setUndecorated(true);<NEW_LINE>popupWindow.getRootPane().getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPO...
= new JDialog(getMainWindow());
554,409
public int selectValue(IntVar var) {<NEW_LINE>if (allVars == null) {<NEW_LINE>allVars = var.getModel().retrieveIntVars(true);<NEW_LINE>}<NEW_LINE>assert var.getModel().getObjective() != null;<NEW_LINE>double sspace = VariableUtils.searchSpaceSize(allVars);<NEW_LINE>if (var.hasEnumeratedDomain() && var.getDomainSize() <...
? ub : var.getLB();
32,461
protected TaskResult callExecutor(Path projectPath, String type, TaskRequest mergedRequest) {<NEW_LINE>OperatorFactory factory = registry.get(mergedRequest, type);<NEW_LINE>if (factory == null) {<NEW_LINE>throw new ConfigException("Unknown task type: " + type);<NEW_LINE>}<NEW_LINE>SecretStore secretStore = secretStoreM...
operatorType(type).build();
485,779
static void findAsciiEquivalentFromNoisyAndClean(Path cleanRoot, Path noisyRoot, Path outfile) throws IOException {<NEW_LINE>Histogram<String> correctFromClean = Histogram.loadFromUtf8File(cleanRoot.resolve("correct"), ' ');<NEW_LINE>Histogram<String> incorrectFromNoisy = Histogram.loadFromUtf8File(noisyRoot.resolve("i...
mmClean.put(a, s);
1,308,316
public final boolean exists(Named named) {<NEW_LINE>Objects.requireNonNull(named);<NEW_LINE>named.setFqnLookup(getNamesLookup().apply(named.getFqn()));<NEW_LINE>named.setAliasLookup(getNamesLookup().apply(named.getAlias()));<NEW_LINE>switch(named.getNamedObject()) {<NEW_LINE>case table:<NEW_LINE>return cache(named, thi...
named.getNamedObject() + "-name not implemented.");
728,185
protected void onCreate(@Nullable Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_v3auth);<NEW_LINE>setSupportActionBar(findViewById(R.id.toolbar));<NEW_LINE><MASK><NEW_LINE>mResolver = getContentResolver();<NEW_LINE>mAdapter = new ClientAuthListAdapte...
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
472,938
public static byte[] toIntegerBytes(final BigInteger bigInt, boolean skipSignBit) {<NEW_LINE>// this will be removed once all properties update<NEW_LINE>// their code to handle the sign bit correctly<NEW_LINE>if (!skipSignBit) {<NEW_LINE>return bigInt.toByteArray();<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>// round bitlen<N...
int bitlen = bigInt.bitLength();
500,552
protected Composite createDialogArea(Composite parent) {<NEW_LINE>Composite dialogArea = super.createDialogArea(parent);<NEW_LINE>try {<NEW_LINE>CoordinateReferenceSystem crs = GisTransformUtils.getCRSFactory().getCRS("EPSG:" + selectedSRID);<NEW_LINE>Group crsGroup = UIUtils.createControlGroup(dialogArea, GISMessages....
SWT.V_SCROLL | SWT.WRAP);
959,438
private static void uploadFile(UnitClient uc, File file, String dstPathName, boolean isMove, boolean isY) throws Exception {<NEW_LINE>// if (file.isDirectory()) {<NEW_LINE>// File[] subFiles = file.listFiles();<NEW_LINE>// for (int i = 0; i < subFiles.length; i++) {<NEW_LINE>// File subFile = subFiles[i];<NEW_LINE>// u...
= new Request(Request.PARTITION_UPLOAD);
1,208,828
public void resizeRecordsMap(Map<Key, Record> recordsMap, int size) {<NEW_LINE>int numRecordsToEvict = recordsMap.size() - size;<NEW_LINE>if (numRecordsToEvict <= 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (numRecordsToEvict <= size) {<NEW_LINE>// Fewer records to evict than retain, make a heap of records to evict<NE...
recordToRetain._key, recordToRetain._record);
1,783,371
private static ConfigurationValueParser valueTypeParser(Type argumentType) {<NEW_LINE>final Class<?> type = (Class<?>) argumentType;<NEW_LINE>final Method valueOfMethod = getMethod(type, "valueOf", String.class);<NEW_LINE>final Method descriptionMethod = getMethod(type, "description");<NEW_LINE>final Method exampleValu...
(RuntimeException) e.getTargetException();
1,125,879
private final CacheEntry internalFilterEntry(String cacheName, InvalidationTableList invalidationTableList, CacheEntry cacheEntry) {<NEW_LINE>InvalidateByIdEvent idEvent = null;<NEW_LINE>if (cacheEntry == null) {<NEW_LINE>if (tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(<MASK><NEW_LINE>}<NEW_LINE>return null;<NEW_LINE>} el...
tc, "internalFilterEntry(): Filtered cacheName=" + cacheName + " CE == NULL");
1,568,297
public void paintIcon(Component component, Graphics g, int x, int y) {<NEW_LINE>g.setColor(color);<NEW_LINE>g.translate(x, y);<NEW_LINE>if (direction == NORTH) {<NEW_LINE>g.drawLine(3, 1, 3, 1);<NEW_LINE>g.drawLine(2, 2, 4, 2);<NEW_LINE>g.drawLine(1, 3, 5, 3);<NEW_LINE>g.drawLine(<MASK><NEW_LINE>} else if (direction ==...
0, 4, 6, 4);
1,187,968
private static ImmutableMap<String, LazyClassEntry> buildClassIndex(ImmutableSet<Path> jars, Closer closer, Predicate<Path> isDirect) throws IOException {<NEW_LINE>HashMap<String, LazyClassEntry> <MASK><NEW_LINE>for (Path jarPath : jars) {<NEW_LINE>boolean jarIsDirect = isDirect.test(jarPath);<NEW_LINE>try {<NEW_LINE>Z...
result = new HashMap<>();
753,110
private void startupDeviceCall() {<NEW_LINE>String aUserId = bridgeSettingMaster.getBridgeSecurity().createWhitelistUser("test_ha_bridge");<NEW_LINE>List<DeviceDescriptor> deviceList = repository.findAll();<NEW_LINE>String aChangeBody;<NEW_LINE>String[] components;<NEW_LINE>boolean comma = false;<NEW_LINE>for (DeviceDe...
[0] * (float) 360.0;
995,773
public void run() {<NEW_LINE>final HashMap<K, V> existingResult = new HashMap<>(keys.size());<NEW_LINE>long oldestTimestamp = Long.MAX_VALUE;<NEW_LINE>synchronized (toWrite) {<NEW_LINE>final Iterator<K> iter = keys.iterator();<NEW_LINE>while (iter.hasNext()) {<NEW_LINE>final K key = iter.next();<NEW_LINE>final V writeC...
responseHandler.onRequestSuccess(existingResult, oldestTimestamp);
1,160,268
public void prepare(OutlierResult or) {<NEW_LINE><MASK><NEW_LINE>if (Double.isNaN(fixedmean)) {<NEW_LINE>MeanVariance mv = new MeanVariance();<NEW_LINE>for (DBIDIter id = scores.iterDBIDs(); id.valid(); id.advance()) {<NEW_LINE>final double val = scores.doubleValue(id);<NEW_LINE>if (!Double.isNaN(val) && !Double.isInfi...
DoubleRelation scores = or.getScores();
1,303,405
public void loadWorkspace(File file) throws XmlException, IOException {<NEW_LINE>if (file.exists()) {<NEW_LINE>log.info(messages.get("FailedToLoadWorkspaceFrom", file.getAbsolutePath()));<NEW_LINE>workspaceConfig = SoapuiWorkspaceDocumentConfig.Factory.parse(file);<NEW_LINE>if (workspaceConfig.getSoapuiWorkspace().getS...
str, getProjectRoot(), this);
999,650
private void actionShowCertificate() {<NEW_LINE>if (certOpened) {<NEW_LINE>certPanel.removeAll();<NEW_LINE>certButton.setText(R.getI18NString("service.gui.SHOW_CERT"));<NEW_LINE>certPanel.revalidate();<NEW_LINE>certPanel.repaint();<NEW_LINE>pack();<NEW_LINE>certOpened = false;<NEW_LINE>setLocationRelativeTo(getParent()...
, 10, 10, 10));
1,491,948
public okhttp3.Call placeOrderCall(Order body, final ApiCallback _callback) throws ApiException {<NEW_LINE>String basePath = null;<NEW_LINE>// Operation Servers<NEW_LINE>String[] localBasePaths = new String[] {};<NEW_LINE>// Determine Base Path to Use<NEW_LINE>if (localCustomBaseUrl != null) {<NEW_LINE>basePath = local...
HashMap<String, String>();
1,372,851
public static byte packetType(ByteBuffer packet) {<NEW_LINE>uint8_t_pointer type = new uint8_t_pointer();<NEW_LINE>uint32_t_pointer version = new uint32_t_pointer();<NEW_LINE>byte[<MASK><NEW_LINE>size_t_pointer scid_len = new size_t_pointer(scid.length);<NEW_LINE>byte[] dcid = new byte[QUICHE_MAX_CONN_ID_LEN];<NEW_LINE...
] scid = new byte[QUICHE_MAX_CONN_ID_LEN];
1,399,462
// -------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public void explainPresentValue(RatePaymentPeriod paymentPeriod, RatesProvider provider, ExplainMapBuilder builder) {<NEW_LINE>Currency currency = paymentPeriod.getCurrency();<NEW_LINE>LocalDate paymentDate = paymen...
put(ExplainKey.PAYMENT_CURRENCY, currency);
1,241,967
public PolicyVersion unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>PolicyVersion policyVersion = new PolicyVersion();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<NEW_L...
"iso8601").unmarshall(context));
1,790,400
public void store(DomRepresentation mailRep) throws IOException {<NEW_LINE>// Parses and normalizes the DOM document<NEW_LINE>Document doc = mailRep.getDocument();<NEW_LINE>Element mailElt = doc.getDocumentElement();<NEW_LINE>Element statusElt = (Element) mailElt.getElementsByTagName("status").item(0);<NEW_LINE>Element...
("accountRef").item(0);
1,524,987
public JSDynamicObject createPrototype(final JSRealm realm, JSFunctionObject ctor) {<NEW_LINE>JSContext ctx = realm.getContext();<NEW_LINE>Shape protoShape = JSShape.createPrototypeShape(ctx, INSTANCE, realm.getObjectPrototype());<NEW_LINE>JSObject prototype = JSStringObject.create(protoShape, Strings.EMPTY_STRING);<NE...
prototype, realm.getObjectPrototype());
1,460,132
public static byte[][] chunkBody(byte[] body, int numberOfChunks) {<NEW_LINE>if (numberOfChunks < 1) {<NEW_LINE>notifier.error("Number of chunks set to value less than 1: " + numberOfChunks);<NEW_LINE>numberOfChunks = 1;<NEW_LINE>}<NEW_LINE>if (body.length < numberOfChunks) {<NEW_LINE>notifier.error("Number of chunks s...
copyOfRange(body, chunkStart, newChunkEnd);
1,201,399
protected void process(Env env, Map<Option, String[]> maps) throws CommandException {<NEW_LINE>String[] pids = maps.get(ARGUMENT);<NEW_LINE>if (pids != null && pids.length == 1) {<NEW_LINE>try {<NEW_LINE>int pid = Integer.valueOf(pids[0]);<NEW_LINE>new ApplicationFinder(pid) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>publ...
).takeThreadDump(application, true);
1,342,843
public static AlignmentInterval clipAlignmentInterval(final AlignmentInterval input, final int clipLengthOnRead, final boolean clipFrom3PrimeEnd) {<NEW_LINE>Utils.nonNull(input);<NEW_LINE>if (clipLengthOnRead < 0) {<NEW_LINE>throw new IllegalArgumentException("requesting negative clip length: " + clipLengthOnRead + " o...
computeNewRefSpanAndCigar(input, clipLengthOnRead, clipFrom3PrimeEnd);
1,644,533
public static DescribeJobLogResponse unmarshall(DescribeJobLogResponse describeJobLogResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeJobLogResponse.setRequestId(_ctx.stringValue("DescribeJobLogResponse.RequestId"));<NEW_LINE>describeJobLogResponse.setCode<MASK><NEW_LINE>describeJobLogResponse.setErrMsg(_ctx.stri...
(_ctx.integerValue("DescribeJobLogResponse.Code"));
670,620
private void processAllFields(String currentClassName, Field[] allFields, Map<String, String> columnNamesMap, Set<String> classNameSet) throws SQLException {<NEW_LINE>for (Field field : allFields) {<NEW_LINE>Column column = field.getAnnotation(Column.class);<NEW_LINE>Id id = field.getAnnotation(Id.class);<NEW_LINE>if (...
throw new DalException(ErrorCode.DuplicateColumnName);
1,666,223
public void index(final int capacity, final Iterator<BigdataValue> valuesIterator) {<NEW_LINE>final TokenBuffer<?> buffer = new TokenBuffer(capacity, this);<NEW_LINE>int n = 0;<NEW_LINE>while (valuesIterator.hasNext()) {<NEW_LINE>final BigdataValue val = valuesIterator.next();<NEW_LINE>if (!(val instanceof Literal)) {<...
info("indexed " + n + " new terms");
1,842,806
private String lookupVariableImpl(String variableName) throws ExpansionException {<NEW_LINE>if (variableName.equals("SRCS")) {<NEW_LINE>return Artifact.joinExecPaths(" ", resolvedSrcs.toList());<NEW_LINE>}<NEW_LINE>if (variableName.equals("<")) {<NEW_LINE>return expandSingletonArtifact(resolvedSrcs, "$<", "input file")...
getExecPath().getRelative(ruleDirPackagePath);
1,274,724
private void logResults() {<NEW_LINE>LOG.info("Key Values Processed: " + kvs_processed.get());<NEW_LINE>LOG.info("Rows Processed: " + rows_processed.get());<NEW_LINE>LOG.info("Valid Datapoints: " + valid_datapoints.get());<NEW_LINE>LOG.info("Annotations: " + annotations.get());<NEW_LINE>LOG.info("Invalid Row Keys Found...
"Unparseable Datapoint Values Deleted: " + bad_values_deleted.get());
192,318
public void loadAdditinalData(long stime, long etime, final boolean reverse) {<NEW_LINE>viewPainter.setViewIsInAdditionalDataLoading(true);<NEW_LINE>collectObj();<NEW_LINE>Iterator<Integer> serverIds = serverObjMap.keySet().iterator();<NEW_LINE>final TreeSet<XLogData> tempSet = new TreeSet<XLogData>(new XLogDataCompara...
, serverObjMap.get(serverId));
982,244
private static void runTransposeMapAndObjectArray(RegressionEnvironment env, EventRepresentationChoice representation) {<NEW_LINE>String[] fields = "p0,p1".split(",");<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String schema = representation.getAnnotationTextWJsonProvided(MyLocalJsonProvidedMySchema....
, path).addListener("s1");
1,377,809
public void start() {<NEW_LINE>if (!_resource.start()) {<NEW_LINE>s_logger.error("Unable to start the resource: " + _resource.getName());<NEW_LINE>throw new CloudRuntimeException("Unable to start the resource: " + _resource.getName());<NEW_LINE>}<NEW_LINE>_keystoreSetupPath = Script.findScript("scripts/util/", KeyStore...
s_logger.info("Attempted to connect to the server, but received an unexpected exception, trying again...", e);
1,713,912
private void tryStartCdcManager() {<NEW_LINE>if (ConfigDataMode.isMasterMode()) {<NEW_LINE>// startup cdc center client && cdc manager<NEW_LINE>String CDC_STARTUP_MODE = MetaDbInstConfigManager.getInstance().getInstProperty(ConnectionProperties.CDC_STARTUP_MODE);<NEW_LINE>if (Integer.parseInt(CDC_STARTUP_MODE) == 1) {<...
.getInstance().initialize();
1,264,825
public InputStream read(final Path file, final TransferStatus status, final ConnectionCallback connectionCallback) throws BackgroundException {<NEW_LINE>final MantaHttpHeaders headers = new MantaHttpHeaders();<NEW_LINE>try {<NEW_LINE>try {<NEW_LINE>if (status.isAppend()) {<NEW_LINE>final HttpRange range = HttpRange.wit...
map("Download {0} failed", e, file);
1,755,177
public void marshall(Ec2InstanceAggregationResponse ec2InstanceAggregationResponse, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (ec2InstanceAggregationResponse == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.mar...
ec2InstanceAggregationResponse.getNetworkFindings(), NETWORKFINDINGS_BINDING);
1,524,161
private Mono<Response<CertificateListDescriptionInner>> listWithResponseAsync(String resourceGroupName, String provisioningServiceName, 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("Parameter this.client.getEndpoint() is required and cannot be null."));
154,828
private void buildActionArrows(RotatedTileBox tileBox, List<Location> actionPoints) {<NEW_LINE>if (!view.hasMapRenderer()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (routeGeometry.collection.getLines().isEmpty() || tileBox.getZoom() <= 14) {<NEW_LINE>if (routeGeometry.actionLinesCollection != null) {<NEW_LINE>routeGeom...
routeGeometry.actionLinesCollection = new VectorLinesCollection();
431,645
protected void persistAndSendEmail(EmailInfo emailInfo) throws EmailException {<NEW_LINE>Objects.requireNonNull(emailInfo.getAddresses(), "addresses are null");<NEW_LINE>Objects.requireNonNull(emailInfo.getCaption(), "caption is null");<NEW_LINE>Objects.requireNonNull(emailInfo.getBody(), "body is null");<NEW_LINE>Obje...
errorMessages = new ArrayList<>();
1,439,404
protected LogTailInformation findLogTail(Log log) {<NEW_LINE>LogFile logFile = logFiles.getLogFile();<NEW_LINE>long highestLogVersion = logFile.getHighestLogVersion();<NEW_LINE>long lowestLogVersion = logFile.getLowestLogVersion();<NEW_LINE>try {<NEW_LINE>var lastAccessibleCheckpoint = checkPointFile.findLatestCheckpoi...
exceptionMessage = format("Last available %s checkpoint does not point to a valid location in transaction logs.", checkpoint);
126,304
public void access_token(final JSONObject action, final JSONObject data, final JSONObject event, final Context context) {<NEW_LINE>try {<NEW_LINE>final JSONObject options = action.getJSONObject("options");<NEW_LINE>String client_id = options.getJSONObject("access").getString("client_id");<NEW_LINE>SharedPreferences sha...
action, error, event, context);
1,090,843
private void translateHeartbeat(StatusInfo info) {<NEW_LINE>try {<NEW_LINE>MessageInfo message = info.getMessage();<NEW_LINE>if (message.getProduced() > 0 || message.getBytes() > 0) {<NEW_LINE>Extension catExtension = info.findOrCreateExtension("CatUsage");<NEW_LINE>catExtension.findOrCreateExtensionDetail("Produced")....
setValue(oldGc.getCount());
1,335,180
private static boolean isShardingColumn(TableStat.Column column) {<NEW_LINE>if (null == column) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>boolean isSharding = false;<NEW_LINE>String table = column.getTable();<NEW_LINE>if (null == table) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>String[] split = ta...
String columnName = column.getName();
1,450,311
public void handlerRequest(HttpServletRequest request, HttpServletResponse response) throws IOException {<NEW_LINE>if (!configure.input_telegraf_enabled) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long receivedTime = System.currentTimeMillis();<NEW_LINE>Map<String, String> uniqueLineString = new HashMap<String, String>();<...
getValue() + " [line parsed] " + line);
1,526,734
void invoke(ServerResponse res, List<HealthCheck> healthChecks, boolean sendDetails) {<NEW_LINE>// timeout on the asynchronous execution<NEW_LINE>Single<HealthResponse> result = timeout.invoke(() -> async.invoke(() -> callHealthChecks(healthChecks)));<NEW_LINE>// handle timeouts and failures in execution<NEW_LINE>resul...
.Status.NO_CONTENT_204.code();
1,246,736
public static DescribeVSwitchesResponse unmarshall(DescribeVSwitchesResponse describeVSwitchesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeVSwitchesResponse.setRequestId(_ctx.stringValue("DescribeVSwitchesResponse.RequestId"));<NEW_LINE>describeVSwitchesResponse.setTotalCount(_ctx.integerValue("DescribeVSwitc...
= new ArrayList<VSwitch>();
857,300
public void group(TreeTableColumn<S, ?>... treeTableColumns) {<NEW_LINE>try {<NEW_LINE>lock.lock();<NEW_LINE>// init groups map<NEW_LINE>if (groupOrder.size() == 0) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (originalRoot == null) {<NEW_LINE>originalRoot = getRoot();<NEW_LINE>}<NEW_LINE>List<TreeTableColum...
groups = new HashMap<>();
1,632,405
protected void unsetVirtualHost(com.ibm.wsspi.http.VirtualHost vhost) {<NEW_LINE>String name = vhost.getName();<NEW_LINE>// only remove if the value associated with the name is the same<NEW_LINE>// as the argument to this method..<NEW_LINE>if (transportMap.remove(name, vhost)) {<NEW_LINE>// there is some cleanup to do ...
tc, "Removed virtual host configuration", vhost, dynamicHost);
1,519,559
public ActionResult<Wo> call() throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>Wo wo = new Wo();<NEW_LINE>Task task = emc.find(id, Task.class);<NEW_LINE>Work work = emc.find(task.getWork(), Work.c...
setNextActivityName(nextActivity.getName());
1,084,216
private String commitToGitLab(String repositoryUrl, String content, String commitMessage, boolean create) throws SourceConnectorException {<NEW_LINE>try (CloseableHttpClient httpClient = HttpClients.createDefault()) {<NEW_LINE>GitLabResource resource = resolver.resolve(repositoryUrl);<NEW_LINE>String contentUrl = this....
node = mapper.readTree(contentStream);
711,253
public void start(HookContext context, ClassLoader webapploader) {<NEW_LINE>Event event = context.get(Event.class);<NEW_LINE>InterceptContext ic = (InterceptContext) context.get(HookConstants.INTERCEPTCONTEXT);<NEW_LINE>switch(event) {<NEW_LINE>case SPRING_BEAN_REGIST:<NEW_LINE>case WEBCONTAINER_RESOURCE_INIT:<NEW_LINE...
this.injectDruid(webapploader, ic);
1,108,726
public int compare(final IPostProcessor o1, final IPostProcessor o2) {<NEW_LINE>if (o1 == o2) {<NEW_LINE>// This is the only case in which the comparison of two processors will return 0<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>if (o1 instanceof ProcessorConfigurationUtils.PostProcessorWrapper && o2 instanceof ProcessorCo...
, System.identityHashCode(o2));
1,073,281
public void createBindings() {<NEW_LINE>IntegerConverter intConverter = new IntegerConverter();<NEW_LINE>DoubleConverter doubleConverter = new DoubleConverter(Configuration.get().getLengthDisplayFormat());<NEW_LINE>addWrappedBinding(referenceCamera, "rotation", textFieldRotation, "text", doubleConverter);<NEW_LINE>addW...
"offsetX", textFieldOffsetX, "text", intConverter);
1,001,891
public void createPartControl(Composite parent) {<NEW_LINE>AgentObject ao = AgentModelThread.getInstance().getAgentObject(objHash);<NEW_LINE>this.setPartName("WaitCount[" + ao.getObjName() + "]");<NEW_LINE>GridLayout layout = new GridLayout(1, true);<NEW_LINE>layout.marginHeight = 5;<NEW_LINE>layout.marginWidth = 5;<NE...
xyGraph.primaryXAxis.setTitle("");
762,490
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View v = inflater.inflate(R.layout.layout_drawlines, null);<NEW_LINE>btnRotateLeft = v.findViewById(R.id.btnRotateLeft);<NEW_LINE>btnRotateRight = v.findViewById(R.id.btnRotateRight);<NEW_LINE>btnRotateRight.set...
findViewById(R.id.paintingSurface);
1,098,578
private List<Wo> list(Business business) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Unit.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Unit> cq = cb.createQuery(Unit.class);<NEW_LINE>Root<Unit> root = cq.from(Unit.class);<NEW_LINE>Predica...
unit().sort(wos);
222,868
protected void throwOrLogDisposedException(final Long disposedTS) {<NEW_LINE>final StringBuilder message = new StringBuilder();<NEW_LINE>message.append("Accessing an already disposed AttributeStorage shall not be allowed");<NEW_LINE>message.append("\n Storage: " + this);<NEW_LINE>message.append("\n Disposed on: " + (di...
"\n\t " + counter + ": " + parentAttributeStorage);
1,194,141
public void addSortedNumericField(FieldInfo field, DocValuesProducer valuesProducer) throws IOException {<NEW_LINE>meta.writeInt(field.number);<NEW_LINE>meta.writeByte(Lucene80DocValuesFormat.SORTED_NUMERIC);<NEW_LINE>long[] stats = writeValues(field, valuesProducer);<NEW_LINE>int numDocsWithField = Math.toIntExact(sta...
long start = data.getFilePointer();
1,114,374
private void emitMenu(SourceWriter writer, Element el, String menuName) throws UnableToCompleteException {<NEW_LINE>AccessKeyTracker accessKeys = new AccessKeyTracker(menuName);<NEW_LINE>for (Node n = el.getFirstChild(); n != null; n = n.getNextSibling()) {<NEW_LINE>if (n.getNodeType() != Node.ELEMENT_NODE)<NEW_LINE>co...
el.getTagName() + " in menu");
87,426
public static DescribeWarningMachinesResponse unmarshall(DescribeWarningMachinesResponse describeWarningMachinesResponse, UnmarshallerContext context) {<NEW_LINE>describeWarningMachinesResponse.setRequestId(context.stringValue("DescribeWarningMachinesResponse.RequestId"));<NEW_LINE>describeWarningMachinesResponse.setCo...
("DescribeWarningMachinesResponse.WarningMachines[" + i + "].MachineName"));
676,018
public void duringSetup(DuringSetupAccess c) {<NEW_LINE>DuringSetupAccessImpl config = (DuringSetupAccessImpl) c;<NEW_LINE>AnalysisMetaAccess aMetaAccess = config.getMetaAccess();<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>} catch (NoClassDefFoundError ex) {<NEW_LINE>throw VMError.shouldNotReachHere("Building a native ima...
aMetaAccess.lookupJavaType(SubstrateType.class);
69,186
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE><MASK><NEW_LINE>ServletContext sc = request.getServletContext();<NEW_LINE>String servletName = "A";<NEW_LINE>// SCI<NEW_LINE>String sciRanMsg = (String) (sc.getAttribute("Sci_" + servletName + ...
ServletOutputStream sos = response.getOutputStream();
1,191,469
public void marshall(SubscriptionFilter subscriptionFilter, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (subscriptionFilter == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(subscriptionFilter.getFilterNa...
subscriptionFilter.getFilterPattern(), FILTERPATTERN_BINDING);
715,283
public Response add(@FormParam("name") String name, @FormParam("value") String value, @FormParam("order") String orderStr) {<NEW_LINE>if (!authenticate()) {<NEW_LINE>throw new ForbiddenClientException();<NEW_LINE>}<NEW_LINE>checkBaseFunction(BaseFunction.ADMIN);<NEW_LINE>// Validate input data<NEW_LINE>name = Validatio...
"order", vocabulary.getOrder());
216,289
private static void assertIndexChoice(RegressionEnvironment env, String[] indexes, Object[] preloadedEvents, String datawindow, IndexAssertion... assertions) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create window MyWindow." + datawindow + " as SupportSimpleBeanOne", pat...
.getEventSendAssertion().run();
589,300
private int[] packDataIntoArray(GImageFormat format, InputStream data, long dataLength) throws IOException {<NEW_LINE>int offset = 0;<NEW_LINE>int[] arr = new int[width * height];<NEW_LINE>for (int i = 0; i < arr.length; ++i) {<NEW_LINE>if (format == GImageFormat.RGB_ALPHA_4BYTE) {<NEW_LINE>int blue = 0;<NEW_LINE>int g...
= alpha_shifted | red_shifted | green_shifted | blue_shifted;
130,075
private static AggregationTree createAggregationTree(IjProjectConfig projectConfig, AggregationModuleFactory aggregationModuleFactory, ImmutableListMultimap<Path, TargetNode<?>> targetNodesByBasePath) {<NEW_LINE>Map<Path, AggregationModule> pathToAggregationModuleMap = targetNodesByBasePath.asMap().entrySet().stream()....
rootPath, ImmutableSet.of());
1,842,522
private Mono<Response<AccessKeysInner>> listKeysWithResponseAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>return Mono.error...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
893,342
public void apply(GATKRead read, ReferenceContext referenceContext, FeatureContext featureContext) {<NEW_LINE>if (currentContig == null || !read.getContig().equals(currentContig)) {<NEW_LINE>// if we are on a new contig, create an OverlapDetector covering the contig<NEW_LINE>currentContig = read.getContig();<NEW_LINE>f...
= new CachedOverlapDetector<>(intervalsOnCurrentContig);
740,951
public void before(Object target, Object[] args) {<NEW_LINE>if (isDebug) {<NEW_LINE>logger.beforeInterceptor(target, args);<NEW_LINE>}<NEW_LINE>final Trace trace = traceContext.currentRawTraceObject();<NEW_LINE>if (trace == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final HttpRequest httpRequest = getHttpRequest(args...
invocation.getOrCreateAttachment(HttpCallContextFactory.HTTPCALL_CONTEXT_FACTORY);
528,136
private static String insertRandomCharacters(String key) {<NEW_LINE>int count = WebSocketUtil.randomNumber(1, 12);<NEW_LINE>char[] randomChars = new char[count];<NEW_LINE>int randCount = 0;<NEW_LINE>while (randCount < count) {<NEW_LINE>int rand = PlatformDependent.threadLocalRandom(<MASK><NEW_LINE>if (0x21 < rand && ra...
).nextInt(0x7e) + 0x21;
51,853
public boolean onTouch(View view, MotionEvent motionEvent) {<NEW_LINE>int pointerIndex = motionEvent.getActionIndex();<NEW_LINE>int pointerId = motionEvent.getPointerId(pointerIndex);<NEW_LINE>FingerPosition position;<NEW_LINE>switch(motionEvent.getActionMasked()) {<NEW_LINE>case MotionEvent.ACTION_DOWN:<NEW_LINE>// Pa...
position = fingerPositions.get(movedPointerId);
955,107
private void drawShapes() {<NEW_LINE>g2.setColor(bgColor);<NEW_LINE>g2.setComposite(composites[1]);<NEW_LINE>for (StyleShape s : shapes) {<NEW_LINE>specialBgColor = !s.getBgColor().equals(bgColor);<NEW_LINE>if (specialBgColor) {<NEW_LINE>g2.<MASK><NEW_LINE>g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_O...
setColor(s.getBgColor());
863,724
public GetApplicationComponentStrategiesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetApplicationComponentStrategiesResult getApplicationComponentStrategiesResult = new GetApplicationComponentStrategiesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String ...
)).unmarshall(context));
90,058
public int compareTo(checkTableClass_result other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.<MASK><NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());<NEW_LINE>if (lastCo...
getClass().getName());
1,836,431
private static LLVMExpressionNode matchVectorOp(String intrinsicName, LLVMExpressionNode[] args) {<NEW_LINE>Matcher matcher = VECTOR_INTRINSIC_PATTERN.matcher(intrinsicName);<NEW_LINE>if (!matcher.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>int len = Integer.parseInt(matcher.group("len"));<NEW_LINE>switch(ma...
(args[1], len);
408,146
protected void configureRabbitConnectionFactory(RabbitConnectionFactoryBean factoryBean) {<NEW_LINE>// overrides all preceding items when set<NEW_LINE>JavaUtils.INSTANCE.acceptIfNotNull(this.host, factoryBean::setHost).acceptIfNotNull(this.port, factoryBean::setPort).acceptIfNotNull(this.username, factoryBean::setUsern...
factoryBean.setSslAlgorithm(this.sslAlgorithm);
696,753
private void checkIfTypeParameterImplementationType(DetailAST typeParameterAst) {<NEW_LINE>// Type parameters come in three flavors:<NEW_LINE>//<NEW_LINE>// Basic - Set<String> or Set<java.lang.String><NEW_LINE>// Upper Bound - Set<? extends String> or Set<A extends java.lang.String><NEW_LINE>// Lower Bound - Set<? sup...
-> checkAndLogTypeParam(typeParameterAst, lowerBoundsAst));
500,049
private void computeCentralDirectory() throws IOException {<NEW_LINE>Preconditions.checkState(state == ZipFileState.OPEN_RW, "state != ZipFileState.OPEN_RW");<NEW_LINE>Preconditions.checkNotNull(raf, "raf == null");<NEW_LINE>Preconditions.<MASK><NEW_LINE>Set<StoredEntry> newStored = Sets.newHashSet();<NEW_LINE>for (Fil...
checkState(directoryEntry == null, "directoryEntry != null");
126,880
// Change visibility so others can see it<NEW_LINE>@Override<NEW_LINE>public void addURL(URL url) {<NEW_LINE>// if we have such embedded jar within a jar, we copy it to temp file and use the<NEW_LINE>// the temp file with the super URLClassLoader<NEW_LINE>if (url.toString().contains("!/") || !(url.getProtocol().equals(...
.getPath(url), url);
922,060
public <T> Message serialize(T object) {<NEW_LINE><MASK><NEW_LINE>if (!(object instanceof EventData)) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException("Cannot serialize object that is not EventData. Class: " + object.getClass()));<NEW_LINE>}<NEW_LINE>final EventData eventData = (EventData) objec...
Objects.requireNonNull(object, "'object' to serialize cannot be null.");
167,998
static <T> Mono<T> wrap(Publisher<T> source, boolean enforceMonoContract) {<NEW_LINE>// some sources can be considered already assembled monos<NEW_LINE>// all conversion methods (from, fromDirect, wrap) must accommodate for this<NEW_LINE>if (source instanceof Mono) {<NEW_LINE>return (Mono<T>) source;<NEW_LINE>}<NEW_LIN...
return new MonoSource<>(source);