idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
665,367
private void validateMandatoryPricingSystems(@NonNull final I_C_BPartner_QuickInput template, final ArrayList<BPartnerLocation> locations) {<NEW_LINE>final Optional<CountryId> shipToDefaultCountry = locations.stream().filter(BPartnerLocation::isActive).filter(location -> location.getLocationType().getIsShipToDefaultOr(...
collect(ImmutableList.toImmutableList());
375,354
private int[] executeBatchSQL() throws TException, BatchUpdateException {<NEW_LINE>isCancelled = false;<NEW_LINE>TSExecuteBatchStatementReq execReq <MASK><NEW_LINE>TSStatus execResp = client.executeBatchStatement(execReq);<NEW_LINE>int[] result = new int[batchSQLList.size()];<NEW_LINE>boolean allSuccess = true;<NEW_LIN...
= new TSExecuteBatchStatementReq(sessionId, batchSQLList);
1,361,594
public static String buildWriteSql(String tableName, List<String> columnHolders, Connection conn, String writeMode, String obUpdateColumns) {<NEW_LINE>List<String> valueHolders = new ArrayList<String>(columnHolders.size());<NEW_LINE>for (int i = 0; i < columnHolders.size(); i++) {<NEW_LINE>valueHolders.add("?");<NEW_LI...
(column).append(",");
1,441,815
public void readCustomNBT(CompoundTag nbt, boolean descPacket) {<NEW_LINE>if (!descPacket) {<NEW_LINE>NonNullList<ItemStack> merged = NonNullList.withSize(2 * NUM_SLOTS, ItemStack.EMPTY);<NEW_LINE>ContainerHelper.loadAllItems(nbt, merged);<NEW_LINE>for (int i = 0; i < NUM_SLOTS; ++i) {<NEW_LINE>this.buffers.set(i, merg...
, merged.get(i));
1,368,341
public void initialize(WizardDescriptor wiz) {<NEW_LINE>this.wizardInfo = getWizardInfo(DATAFILE);<NEW_LINE>this.holder = new ResourceConfigHelperHolder();<NEW_LINE>this.helper = holder.getDataSourceHelper();<NEW_LINE>// this.wiz = wiz;<NEW_LINE>// NOI18N<NEW_LINE>wiz.putProperty("NewFileWizard_Title", NbBundle.getMess...
getData().setTargetFileObject(pkgLocation);
742,252
public RecordStore openRecordStore(String recordStoreName, boolean createIfNecessary) throws RecordStoreException {<NEW_LINE>initializeIfNecessary();<NEW_LINE>recordStoreName = recordStoreName.replaceAll(FileUtils.ILLEGAL_FILENAME_CHARS, "");<NEW_LINE>Object value = recordStores.get(recordStoreName);<NEW_LINE>if (value...
AppClassLoader.getDataDir(), headerName);
927,627
public UpdateFolderResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateFolderResult updateFolderResult = new UpdateFolderResult();<NEW_LINE>updateFolderResult.setStatus(context.getHttpResponse().getStatusCode());<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NE...
String currentParentElement = context.getCurrentParentElement();
1,510,366
public void map(InfoMap infoMap) {<NEW_LINE>infoMap.put(new Info("std::set<std::string>").pointerTypes("StringSet").define());<NEW_LINE>infoMap.put(new Info("std::list<std::string>").pointerTypes("StringList").define());<NEW_LINE>infoMap.put(new Info("std::list<modsecurity::RuleMessage>").pointerTypes("RuleMessageList"...
("std::list<std::pair<int,std::string> >").skip());
743,978
public static void main(String[] args) throws IOException {<NEW_LINE>PersistentHashMap<Integer, Integer> lkeys = createOrOpenMap();<NEW_LINE>List<Integer> mapping = (List<<MASK><NEW_LINE>System.out.println(mapping.size());<NEW_LINE>final IntIntMap map = IntMaps.newIntIntHashMap(mapping.size());<NEW_LINE>for (Integer i ...
Integer>) lkeys.getAllKeysWithExistingMapping();
1,689,423
public void marshall(UpdateFleetMetricRequest updateFleetMetricRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateFleetMetricRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(updateFleetM...
updateFleetMetricRequest.getPeriod(), PERIOD_BINDING);
205,524
public void resolve() {<NEW_LINE>if (alreadyResolved()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ComponentOverrideMetadata componentOverrideMetadata;<NEW_LINE>if (selectors != null && selectors.size() > 0) {<NEW_LINE>// Taking the first selector here to determine the 'changing' status and 'client module' is our best bet ...
SelectorState firstSelector = selectors.first();
685,220
public void recomputeStatistics(@NonNull final RecomputeStatisticsRequest request) {<NEW_LINE>final BPartnerId bpartnerId = request.getBpartnerId();<NEW_LINE>final Set<ProductId> productIds = request.getProductIds();<NEW_LINE>final Map<ProductId, BPartnerProductStats> existingStatsByProductId = getByPartnerAndProducts(...
, salesInvoiceOnlineRecords.get(productId));
800,588
public static void classDictInit(PyObject dict) {<NEW_LINE>dict.__setitem__("__name__", new PyString("itertools"));<NEW_LINE>dict.__setitem__("__doc__", __doc__);<NEW_LINE>dict.__setitem__("chain", chain.TYPE);<NEW_LINE>dict.__setitem__("combinations", combinations.TYPE);<NEW_LINE>dict.__setitem__("combinations_with_re...
__setitem__("dropwhile", dropwhile.TYPE);
722,016
public boolean process(@Nonnull PackagingElement<?> element, @Nonnull PackagingElementPath path) {<NEW_LINE>if (element instanceof FileOrDirectoryCopyPackagingElement<?>) {<NEW_LINE>final VirtualFile root = ((FileOrDirectoryCopyPackagingElement) element).findFile();<NEW_LINE>if (root != null && VfsUtil.isAncestor(root,...
, (ModuleOutputPackagingElement) element, context);
1,534,501
private void loadNode482() {<NEW_LINE>TwoStateVariableTypeNode node = new TwoStateVariableTypeNode(this.context, Identifiers.NonExclusiveLimitAlarmType_HighHighState, new QualifiedName(0, "HighHighState"), new LocalizedText("en", "HighHighState"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new ...
.expanded(), false));
600,702
public boolean updateRouterConfigToDB(RouterConfig config) {<NEW_LINE>try {<NEW_LINE>String name = RouterConfigBuilder.ID;<NEW_LINE>String domain = Constants.CAT;<NEW_LINE>List<DailyReport> reports = m_dailyReportDao.queryLatestReportsByDomainName(domain, name, 1, DailyReportEntity.READSET_FULL);<NEW_LINE>DailyReport o...
binaryContent = DefaultNativeBuilder.build(config);
617,510
public Keycloak build() {<NEW_LINE>if (serverUrl == null) {<NEW_LINE>throw new IllegalStateException("serverUrl required");<NEW_LINE>}<NEW_LINE>if (realm == null) {<NEW_LINE>throw new IllegalStateException("realm required");<NEW_LINE>}<NEW_LINE>if (authorization == null && grantType == null) {<NEW_LINE>grantType = PASS...
grantType, resteasyClient, authorization, scope);
589,587
private void addColumnToTable(TableInfo tableInfo, ColumnInfo column) throws Exception {<NEW_LINE>CQLTranslator translator = new CQLTranslator();<NEW_LINE>StringBuilder addColumnQuery = new StringBuilder("ALTER TABLE ");<NEW_LINE>translator.ensureCase(addColumnQuery, tableInfo.getTableName(), false);<NEW_LINE>addColumn...
tableInfo.getTableName(), ireforAddColumn);
1,351,674
public void validateReferences(Version indexVersionCreated, Function<String, MappedFieldType> fieldResolver) {<NEW_LINE>if (fieldName != null) {<NEW_LINE>MappedFieldType <MASK><NEW_LINE>if (mappedFieldType == null) {<NEW_LINE>if (indexVersionCreated.before(Version.V_7_0_0)) {<NEW_LINE>deprecationLogger.warn(Deprecation...
mappedFieldType = fieldResolver.apply(fieldName);
1,609,218
public static MapValue convert(ExecutionPlanDescription plan) {<NEW_LINE>boolean hasProfilerStatistics = plan.hasProfilerStatistics();<NEW_LINE>int size = hasProfilerStatistics ? 10 : 4;<NEW_LINE>MapValueBuilder out = new MapValueBuilder(size);<NEW_LINE>out.add("operatorType", utf8Value(plan.getName()));<NEW_LINE>out.a...
(plan.getIdentifiers()));
1,088,764
static void updateHighlightersByTyping(@Nonnull Project project, @Nonnull DocumentEvent e) {<NEW_LINE>ApplicationManager.getApplication().assertIsDispatchThread();<NEW_LINE>final Document document = e.getDocument();<NEW_LINE>if (document instanceof DocumentEx && ((DocumentEx) document).isInBulkUpdate())<NEW_LINE>return...
toRemove = new ArrayList<>();
926,494
public Credentials parse(HttpResponse response) throws ClientException {<NEW_LINE>String jsonContent = new String(response.getHttpContent());<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>if (!jsonObject.has("StatusCode")) {<NEW_LINE>throw new ClientException("Invalid json " + jsonContent + " got from oss auth server.");<NEW...
JSONObject jsonObject = new JSONObject(jsonContent);
658,611
static TLSCertificateKeyPair fromX509CertKeyPair(X509Certificate x509Cert, KeyPair keyPair) throws IOException {<NEW_LINE>ByteArrayOutputStream baos = new ByteArrayOutputStream();<NEW_LINE>OutputStreamWriter writer = new OutputStreamWriter(baos);<NEW_LINE>JcaPEMWriter w = new JcaPEMWriter(writer);<NEW_LINE>w.writeObjec...
PemReader pr = new PemReader(isr);
1,791,946
public void execute(@Param("canalId") Long canalId, Context context) throws Exception {<NEW_LINE>Canal canal = canalService.findById(canalId);<NEW_LINE>AutoKeeperCluster zkCluster = autoKeeperClusterService.findAutoKeeperClusterById(canal.getCanalParameter().getZkClusterId());<NEW_LINE>List<Pipeline> pipelines = pipeli...
(canal.getCanalParameter()));
1,639,633
public void revokeRoomUsers(RoomUsersDeleteBatchRequest body, Long roomId, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'body'...
String[] localVarContentTypes = { "application/json" };
117,171
private void createRouteBadges(List<TransportRouteResultSegment> segments, boolean badgesRowClickable) {<NEW_LINE>int itemsSpacing = AndroidUtils.dpToPx(app, 6);<NEW_LINE>FlowLayout routesBadges = (FlowLayout) view.findViewById(R.id.routes_badges);<NEW_LINE>routesBadges.removeAllViews();<NEW_LINE>TransportRoutingHelper...
.getStart().getLocation();
1,530,085
public String postHttp(@ShellOption(value = { "", "--target" }, help = "the location to post to", defaultValue = Target.DEFAULT_TARGET) String target, @ShellOption(help = "the text payload to post. exclusive with file. " + "embedded double quotes are not supported if next to a space character", defaultValue = ShellOpti...
data = FileCopyUtils.copyToString(isr);
1,672,501
private void initNativeSupport() {<NEW_LINE>if (!Settings.isMac()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>log(lvl, "initNativeSupport: starting");<NEW_LINE>if (System.getProperty("sikulix.asapp") != null) {<NEW_LINE>Settings.isMacApp = true;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (runTime.isJava9()) {<NEW_LINE>log(lvl, ...
comAppleEawtApplication.getDeclaredMethod("getApplication", null);
786,787
public CloseableHttpClient createHttpClient(@Nullable GraphQLConfigSecurity sslConfig) throws NoSuchAlgorithmException, KeyManagementException, KeyStoreException, IOException, UnrecoverableKeyException, CertificateException {<NEW_LINE>HttpClientBuilder builder = HttpClients.custom();<NEW_LINE><MASK><NEW_LINE>if (Proper...
builder.setRedirectStrategy(LaxRedirectStrategy.INSTANCE);
1,562,627
final DescribeAlarmResult executeDescribeAlarm(DescribeAlarmRequest describeAlarmRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAlarmRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeAlarm");
281,775
public Shader resize(int width, int height) {<NEW_LINE>// Fetch the gradient's start/end points within the view, in pixels.<NEW_LINE>float startX = startPoint.getX().getAsPixels(view);<NEW_LINE>float startY = startPoint.getY().getAsPixels(view);<NEW_LINE>float endX = endPoint.getX().getAsPixels(view);<NEW_LINE>float en...
Math.max(endPixelRadius, 1.0f);
597,183
void newPolyglotEngineInstance(ObjectReference engine, JPDAThreadImpl thread) {<NEW_LINE>LOG.log(Level.FINE, "Engine created breakpoint hit: engine = {0} in thread = {1}", new Object[] { engine, thread.getThreadReference() });<NEW_LINE>assert inited.get() : "The remote services should have been initialized already from...
FINE, "Setting engine and step into = {0}", isStepInto());
199,026
private RoutingAlgorithm createAlgo(GraphHopper hopper) {<NEW_LINE>Profile profile = hopper.getProfiles().iterator().next();<NEW_LINE>if (useCH) {<NEW_LINE>RoutingCHGraph chGraph = hopper.getCHGraphs().get(profile.getName());<NEW_LINE>logger.info("CH algo, profile: " + profile.getName());<NEW_LINE>QueryGraph qGraph = Q...
opts.getTraversalMode(), mg);
573,797
public DeleteEnvironmentAccountConnectionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteEnvironmentAccountConnectionResult deleteEnvironmentAccountConnectionResult = new DeleteEnvironmentAccountConnectionResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>Str...
().unmarshall(context));
1,353,276
public static KeyValuePart[] split(MatrixMeta matrixMeta, int rowId, int[] keys, IElement[] values) {<NEW_LINE>PartitionKey[] matrixParts = matrixMeta.getPartitionKeys();<NEW_LINE>int matrixPartNumMinus1 = matrixParts.length - 1;<NEW_LINE>KeyValuePart[] keyValueParts = new KeyValuePart[matrixParts.length];<NEW_LINE>int...
hashCodes[i] & (matrixPartNumMinus1);
317,615
void dropAllIndices() {<NEW_LINE>for (Map.Entry<Fields, AtomicBoolean> entry : indexBuildTracker.entrySet()) {<NEW_LINE>if (entry.getValue() != null && entry.getValue().get()) {<NEW_LINE>throw new IndexingException(<MASK><NEW_LINE>}<NEW_LINE>}<NEW_LINE>// we can drop all indices in parallel<NEW_LINE>List<Future<?>> fut...
"cannot drop index as indexing is running on " + entry.getKey());
1,283,339
final DeleteClusterResult executeDeleteCluster(DeleteClusterRequest deleteClusterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteClusterRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DeleteClusterRequest> request = null;<NE...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,273,321
private FileSystemLocationSnapshot snapshot(String location, SnapshottingFilter filter) {<NEW_LINE><MASK><NEW_LINE>FileMetadata fileMetadata = this.stat.stat(file);<NEW_LINE>switch(fileMetadata.getType()) {<NEW_LINE>case RegularFile:<NEW_LINE>HashCode hash = hasher.hash(file, fileMetadata.getLength(), fileMetadata.getL...
File file = new File(location);
1,351,557
private void handleUse(AncestorChain<Identifier> id, ScopeTree<S> s) {<NEW_LINE>ParseTreeNode n = id.parent.node;<NEW_LINE>if (n instanceof Reference) {<NEW_LINE>// Now that we're done with all the declaration in the scope, we can<NEW_LINE>// tell whether a use corresponds to a declaration in the scope.<NEW_LINE>String...
= id.node.getName();
908,108
public static // }<NEW_LINE>org.docx4j.wml.P newImage(WordprocessingMLPackage wordMLPackage, Part sourcePart, byte[] bytes, String filenameHint, String altText, int id1, int id2) throws Exception {<NEW_LINE>BinaryPartAbstractImage imagePart = BinaryPartAbstractImage.createImagePart(wordMLPackage, sourcePart, bytes);<NE...
getContent().add(run);
638,790
public MappeableContainer and(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>if (card > x.cardinality) {<NEW_LINE>card = x.cardinality;...
.getLength(rlepos)) + 1;
322,995
public static void initializeProject(@NonNull ClientSideProject project, @NullAllowed String sources, @NullAllowed String siteRoot, @NullAllowed String test, @NullAllowed String testSelenium) throws IOException {<NEW_LINE>assert sources != null || siteRoot != null : "Sources and/or Site Root must be set";<NEW_LINE>File...
.resolveFile(projectDirectory, testSelenium));
1,081,998
private static List<ControllerAndMode> createLayers(@NonNull TrafficButton traffic, @NonNull View subway, @NonNull View isoLinesView, @NonNull View guides, @NonNull AppCompatActivity activity, @NonNull View.OnClickListener dialogClickListener) {<NEW_LINE>traffic.setOnclickListener(dialogClickListener);<NEW_LINE>Traffic...
= new TrafficButtonController(traffic, activity);
375,079
public static ItemType parseItemType(String s) {<NEW_LINE>if (s.isEmpty())<NEW_LINE>return null;<NEW_LINE>s = "" + s.trim();<NEW_LINE>final ItemType t = new ItemType();<NEW_LINE>Matcher m;<NEW_LINE>if ((m = p_of_every.matcher(s)).matches()) {<NEW_LINE>t.setAmount(Utils.parseInt("" + m.group(1)));<NEW_LINE>t.setAll(true...
EnchantmentType.parse("" + ench);
1,109,496
public void execute() throws MojoExecutionException, MojoFailureException {<NEW_LINE>validateParameters();<NEW_LINE>try {<NEW_LINE>final GitHub github = (dryRun || !publishToGithub) ? GitHub.connectAnonymously() : (githubPassword != null ? GitHub.connectUsingPassword(githubLogin, githubPassword) : GitHub.connect(github...
releaseDate, releaseNotesFilePath, getLog());
1,812,835
private CallRequestController makeChunkRequest(@NonNull OkHttpClient client, @NonNull String url, @NonNull ByteRange range) {<NEW_LINE>Request request = new Request.Builder().url(url).cacheControl(NO_CACHE).addHeader("Range", "bytes=" + range.start + "-" + range.end).addHeader("Accept-Encoding", "identity").build();<NE...
call = client.newCall(request);
1,564,634
public Map<String, LocalMapStats> createAllLocalMapStats() {<NEW_LINE>Map statsPerMap = new HashMap();<NEW_LINE>PartitionContainer[] partitionContainers = mapServiceContext.getPartitionContainers();<NEW_LINE>for (int i = 0; i < partitionContainers.length; i++) {<NEW_LINE>PartitionContainer partitionContainer = partitio...
partitionContainer.getPartitionId(), false);
288,228
public void process(final SimpleImageSequence<T> sequence) {<NEW_LINE>if (!sequence.hasNext())<NEW_LINE>throw new IllegalArgumentException("Empty sequence");<NEW_LINE>image = sequence.next();<NEW_LINE>gui.setFrame((BufferedImage) sequence.getGuiImage());<NEW_LINE>ShowImages.showWindow(gui, "Circulant Tracker", true);<N...
totalFrames / (totalTime / 2e9));
705,245
public static GetHeatMapDataResponse unmarshall(GetHeatMapDataResponse getHeatMapDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>getHeatMapDataResponse.setEMapName(_ctx.stringValue("GetHeatMapDataResponse.EMapName"));<NEW_LINE>getHeatMapDataResponse.setWidth(_ctx.floatValue("GetHeatMapDataResponse.Width"));<NEW_LINE...
(_ctx.stringValue("GetHeatMapDataResponse.EMapUrl"));
1,030,842
public void raiseChangeForAllExcept(final long tierIndex, final long pos, final byte remoteIdentifier) {<NEW_LINE>throwExceptionIfClosed();<NEW_LINE>updateModificationIteratorsArray();<NEW_LINE>if (tierIndex <= actualSegments) {<NEW_LINE>final long segmentIndex = tierIndex - 1;<NEW_LINE>final long offsetToTierBitSet = ...
raiseChangeInTierBulk(bulkIndex, offsetToTierBitSet, pos);
1,750,870
final DeleteQueuedSavingsPlanResult executeDeleteQueuedSavingsPlan(DeleteQueuedSavingsPlanRequest deleteQueuedSavingsPlanRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteQueuedSavingsPlanRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
endClientExecution(awsRequestMetrics, request, response);
259,809
private static SinkRequest createKafkaRequest(StreamSink streamSink, InlongStreamInfo streamInfo) {<NEW_LINE>KafkaSinkRequest kafkaSinkRequest = new KafkaSinkRequest();<NEW_LINE>KafkaSink kafkaSink = (KafkaSink) streamSink;<NEW_LINE>kafkaSinkRequest.setSinkName(streamSink.getSinkName());<NEW_LINE>kafkaSinkRequest.setAd...
setInlongStreamId(streamInfo.getInlongStreamId());
1,304,310
private void initView(View view) {<NEW_LINE>mToolbar = (Toolbar) view.findViewById(R.id.toolbar);<NEW_LINE>mRecy = (RecyclerView) view.findViewById(R.id.recy);<NEW_LINE>mTitles = getResources().<MASK><NEW_LINE>mContents = getResources().getStringArray(R.array.array_content);<NEW_LINE>mToolbar.setTitle(R.string.home);<N...
getStringArray(R.array.array_title);
1,397,457
// returns pair.second != null always<NEW_LINE>Pair<VirtualFile, String> update() {<NEW_LINE>final long lastUpdated = myLastUpdated;<NEW_LINE>final Pair<VirtualFile, String> fileAndUrl = myFileAndUrl;<NEW_LINE>if (fileAndUrl == null)<NEW_LINE>return null;<NEW_LINE>final long fsModCount = ManagingFS.getInstance().getStr...
!= null && file.isValid();
1,429,744
private void saveContextVariable(String contextIDStr, JsonElement variables, ContextClient contextClient, String variablePrefix, String nodeName) {<NEW_LINE>try {<NEW_LINE>if (variables.isJsonArray()) {<NEW_LINE>JsonArray flowProp = variables.getAsJsonArray();<NEW_LINE>for (JsonElement prop : flowProp) {<NEW_LINE>Set<M...
.getAsJsonObject().entrySet();
1,519,082
public com.amazonaws.services.healthlake.model.ThrottlingException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.healthlake.model.ThrottlingException throttlingException = new com.amazonaws.services.healthlake.model.ThrottlingException(null);<NEW_LINE><MASK><N...
int originalDepth = context.getCurrentDepth();
125,848
public static SWTSkinObjectContainer buildStandAlone(SWTSkinObjectContainer soParent, String skinRef, SWTSkin skin, String id, Object datasource, int controlType, UISWTViewBuilderCore originalBuilder) {<NEW_LINE><MASK><NEW_LINE>if (parent == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (skinRef != null) {<NEW_L...
Composite parent = soParent.getComposite();
837,800
public void _editFolder(ActionRequest req, ActionResponse res, PortletConfig config, ActionForm form) throws Exception {<NEW_LINE>User user = _getUser(req);<NEW_LINE>String inode = req.getParameter("inode");<NEW_LINE>Folder f;<NEW_LINE>if (UtilMethods.isSet(inode)) {<NEW_LINE>f = APILocator.getFolderAPI().find(inode, u...
(f.isShowOnMenu()));
642,979
public static void main(String[] args) throws IOException, GitAPIException {<NEW_LINE><MASK><NEW_LINE>try (Repository repository = CookbookHelper.openJGitCookbookRepository()) {<NEW_LINE>try (Git git = new Git(repository)) {<NEW_LINE>// create a map of commit-refs and corresponding list of tags<NEW_LINE>Map<ObjectId, L...
long start = System.currentTimeMillis();
420,282
public void patch(Context context, HttpServletRequest request, String apiCategory, String model, Integer id, Patch patch) throws SQLException, AuthorizeException {<NEW_LINE>List<Operation> operations = patch.getOperations();<NEW_LINE>WorkflowItemRest wsi = findOne(context, id);<NEW_LINE>XmlWorkflowItem source = <MASK><...
wis.find(context, id);
893,172
public static int decodeConsecutiveOctets(StringBuilder dest, String s, int start) {<NEW_LINE>final int n = s.length();<NEW_LINE>if (start >= n) {<NEW_LINE>throw new IllegalArgumentException("Cannot decode from index " + start + " of a length-" + n + " string");<NEW_LINE>}<NEW_LINE>if (s.charAt(start) != '%') {<NEW_LIN...
throw new IllegalArgumentException("Malformed percent-encoded octet at index " + start);
1,211,670
private void _fixOrphanVertices() {<NEW_LINE>int pathCount = 0;<NEW_LINE>// clean any path info<NEW_LINE>for (int node = m_sortedVertices.getFirst(m_sortedVertices.getFirstList()); node != -1; node = m_sortedVertices.getNext(node)) {<NEW_LINE>int vertex = m_sortedVertices.getData(node);<NEW_LINE>m_shape.setPathToVertex...
path = m_shape.getNextPath(path);
1,009,504
public static void printExecption(Logger LOG, Exception e, int eventType) {<NEW_LINE>String message = "";<NEW_LINE>for (StackTraceElement stackTraceElement : e.getStackTrace()) {<NEW_LINE>message = message + System.lineSeparator() + stackTraceElement.toString();<NEW_LINE>}<NEW_LINE>LOG.error("Exception: {}", e.getMessa...
"\n")[0] : "null");
505,395
private int nodeSourceEnd(Binding field, ASTNode node, int index) {<NEW_LINE>if (node instanceof ArrayTypeReference) {<NEW_LINE>return ((ArrayTypeReference) node).originalSourceEnd;<NEW_LINE>} else if (node instanceof QualifiedNameReference) {<NEW_LINE>QualifiedNameReference ref = (QualifiedNameReference) node;<NEW_LIN...
.sourcePositions[i + offset]);
240,087
private static void writeAttachedPartitions(FilesFacade ff, long tempMem8b, Path path, MemoryMARW txMem, int partitionBy, int symbolsCount, MemoryARW writeTo) {<NEW_LINE><MASK><NEW_LINE>long minTimestamp = txMem.getLong(TX_OFFSET_MIN_TIMESTAMP);<NEW_LINE>long maxTimestamp = txMem.getLong(TX_OFFSET_MAX_TIMESTAMP);<NEW_L...
int rootLen = path.length();
243,538
void paintMatch(Graphics2D g2d) {<NEW_LINE>int w = (int) (getWidth() * _ratio);<NEW_LINE>int h = (int) ((float) w / _img.getWidth() * _img.getHeight());<NEW_LINE>int x = getWidth() / 2 - w / 2;<NEW_LINE>int y = getHeight() / 2 - h / 2;<NEW_LINE>Color c = PatternSimilaritySlider.getScoreColor((_match == null ? 1.0 : _ma...
Stroke savedStroke = g2d.getStroke();
1,402,558
public static void main(String[] args) {<NEW_LINE>final int numElements = 8;<NEW_LINE>final int numKernels = 8;<NEW_LINE>int[] a = new int[numElements];<NEW_LINE>Arrays.fill(a, 0);<NEW_LINE>// @formatter:off<NEW_LINE>TaskSchedule s0 = new TaskSchedule("s0");<NEW_LINE>for (int i = 0; i < numKernels; i++) {<NEW_LINE>s0.t...
+ Arrays.toString(a));
567,107
private Parameter[] createParameters(Constructor constructor) {<NEW_LINE>Type[<MASK><NEW_LINE>Parameter[] parameters = new Parameter[genericParameterTypes.length];<NEW_LINE>for (int i = 0; i < genericParameterTypes.length; i++) {<NEW_LINE>Type genericParameterType = genericParameterTypes[i];<NEW_LINE>if (genericParamet...
] genericParameterTypes = constructor.getGenericParameterTypes();
1,500,121
public static String loadResourceContent(String resourcePath, DeploymentEntity deployment) {<NEW_LINE>String[] pathSplit = resourcePath.split("://", 2);<NEW_LINE>String resourceType;<NEW_LINE>if (pathSplit.length == 1) {<NEW_LINE>resourceType = "classpath";<NEW_LINE>} else {<NEW_LINE>resourceType = pathSplit[0];<NEW_LI...
resourceEntity = deployment.getResource(resourceLocation);
108,478
public String buildStatement(boolean forUpdate) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>if (forUpdate) {<NEW_LINE>sb.append("ALTER SEQUENCE ");<NEW_LINE>} else {<NEW_LINE>sb.append("CREATE SEQUENCE ");<NEW_LINE>}<NEW_LINE>sb.append(getFullyQualifiedName(DBPEvaluationContext.DDL)).append(" ");<NEW_LI...
()).append(" ");
74,925
private STNode parseLetExpression(boolean isRhsExpr, boolean isInConditionalExpr) {<NEW_LINE>STNode letKeyword = parseLetKeyword();<NEW_LINE>STNode letVarDeclarations = parseLetVarDeclarations(ParserRuleContext.LET_EXPR_LET_VAR_DECL, isRhsExpr);<NEW_LINE>STNode inKeyword = parseInKeyword();<NEW_LINE>// If the variable ...
letKeyword, letVarDeclarations, inKeyword, expression);
478,588
final CreateSpotDatafeedSubscriptionResult executeCreateSpotDatafeedSubscription(CreateSpotDatafeedSubscriptionRequest createSpotDatafeedSubscriptionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createSpotDatafeedSubscriptionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
invoke(request, responseHandler, executionContext);
1,062,022
private void initOrUpdateSink(InlongStreamInfo streamInfo) {<NEW_LINE>List<StreamSink> streamSinks = sinkClient.listSinks(inlongGroupId, inlongStreamId);<NEW_LINE>// delete or update the sink info<NEW_LINE>List<String> updateSinkNames = Lists.newArrayList();<NEW_LINE>for (StreamSink sink : streamSinks) {<NEW_LINE>final...
String sinkName = sink.getSinkName();
1,285,979
private void unclose(final I_PP_Order ppOrder) {<NEW_LINE>ModelValidationEngine.get().fireDocValidate(ppOrder, ModelValidator.TIMING_BEFORE_UNCLOSE);<NEW_LINE>//<NEW_LINE>// Unclose PP_Order's Qty<NEW_LINE>ppOrderBL.uncloseQtyOrdered(ppOrder);<NEW_LINE>ppOrdersRepo.save(ppOrder);<NEW_LINE>//<NEW_LINE>// Unclose PP_Orde...
ppOrder.setDocAction(IDocument.ACTION_Close);
777,251
public static void assertActionsEnabled(int tweetResId) {<NEW_LINE>// tweet actions enabled<NEW_LINE>onView(allOf(withId(R.id.tw__tweet_action_bar), isDescendantOfA(withId(tweetResId)))).check<MASK><NEW_LINE>// share tweet button<NEW_LINE>onView(allOf(withId(R.id.tw__tweet_share_button), isDescendantOfA(withId(tweetRes...
(matches(isDisplayed()));
483,653
private long restart(Num num, long ilvl, long val) throws InvalidOperationException {<NEW_LINE>if (num == null) {<NEW_LINE>throw new InvalidOperationException("Abstract List does not exist!");<NEW_LINE>}<NEW_LINE>// (Ensure maps are initialised)<NEW_LINE>if (em == null) {<NEW_LINE>getEmulator();<NEW_LINE>}<NEW_LINE>// ...
listDef.getListNumberId(), listDef);
968,255
// Copy pixel data from one PixelBuffer location to another<NEW_LINE>public void copyRect(Rect rect, Point move_by_delta) {<NEW_LINE>Raster srcData;<NEW_LINE>WritableRaster dstData;<NEW_LINE>Rect drect, srect;<NEW_LINE>drect = new Rect(<MASK><NEW_LINE>if (!drect.enclosed_by(getRect())) {<NEW_LINE>String msg = "Destinat...
rect.tl, rect.br);
1,477,478
public static StreamingOutput buildResponseOfDomLR(final File storagePath, final List<String> availableRes) {<NEW_LINE>final StreamingOutput sOutput = new StreamingOutput() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void write(final OutputStream output) throws IOException, WebApplicationException {<NEW_LINE>Documen...
transformer.transform(domSource, streamResult);
505,262
public void aggregate(int length, AggregationResultHolder aggregationResultHolder, Map<ExpressionContext, BlockValSet> blockValSetMap) {<NEW_LINE>BlockValSet <MASK><NEW_LINE>if (blockValSet.getValueType() != DataType.BYTES) {<NEW_LINE>long[] longValues = blockValSet.getLongValuesSV();<NEW_LINE>QuantileDigest quantileDi...
blockValSet = blockValSetMap.get(_expression);
1,443,597
public void onResponse(Call call, final Response response) {<NEW_LINE>handler.post(() -> {<NEW_LINE>if (response.isSuccessful()) {<NEW_LINE>try {<NEW_LINE>String res = response<MASK><NEW_LINE>Log.v("RESULT", res);<NEW_LINE>JSONArray ar = new JSONArray(res);<NEW_LINE>for (int i = 0; i < ar.length(); i++) {<NEW_LINE>mSea...
.body().string();
1,071,795
public synchronized String summary() {<NEW_LINE>StringBuilder summary = new StringBuilder();<NEW_LINE>summary.append("\n\n");<NEW_LINE>summary.append("Consistency Fix Summary\n");<NEW_LINE>summary.append("-----------------------\n");<NEW_LINE>summary.append("Total bad keys processed: " + fixCount + "\n");<NEW_LINE>summ...
append("Total ObsoleteVersionExceptions encountered: " + oveCount + "\n");
2,288
public String generate() {<NEW_LINE>final ImmutableSet.Builder<JApiSemanticVersionLevel> builder = ImmutableSet.builder();<NEW_LINE>Filter.filter(jApiClasses, new Filter.FilterVisitor() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void visit(Iterator<JApiClass> iterator, JApiClass jApiClass) {<NEW_LINE>builder<MASK><...
.add(signs(jApiClass));
620,087
public void tableDataSourceChanged(Object newDataSource) {<NEW_LINE>if (newDataSource instanceof Tag[]) {<NEW_LINE>// neverShowCatButtons = true;<NEW_LINE>setCurrentTags((Tag[]) newDataSource);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (newDataSource instanceof Object[]) {<NEW_LINE>Object[] datasources = ((Object[]) newD...
0 ? datasources[0] : null;
332,152
public Stream<NodeResult> neighborsAtHop(@Name("node") Node node, @Name(value = "types", defaultValue = "") String types, @Name(value = "distance", defaultValue = "1") Long distance) {<NEW_LINE>if (distance < 1)<NEW_LINE>return Stream.empty();<NEW_LINE>if (types == null || types.isEmpty())<NEW_LINE>return Stream.empty(...
i - 1].iterator();
360,947
public static void install(@NonNull final EmojiProvider provider) {<NEW_LINE>synchronized (EmojiManager.class) {<NEW_LINE>INSTANCE.categories = checkNotNull(provider.getCategories(), "categories == null");<NEW_LINE>INSTANCE.emojiMap.clear();<NEW_LINE>INSTANCE.emojiReplacer = provider instanceof EmojiReplacer ? (EmojiRe...
int unicodesForPatternSize = unicodesForPattern.size();
490,560
private static void loadAllChannelsInternal(final Response<Integer> outerResponse) {<NEW_LINE>LiveTvPreferences liveTvPreferences = get(LiveTvPreferences.class);<NEW_LINE>LiveTvChannelQuery query = new LiveTvChannelQuery();<NEW_LINE>query.setUserId(TvApp.getApplication().getCurrentUser().<MASK><NEW_LINE>query.setAddCur...
getId().toString());
1,145,570
public void doExecute(Editor editor, @Nullable Caret c, DataContext dataContext) {<NEW_LINE>Caret caret = c == null ? editor.getCaretModel().getPrimaryCaret() : c;<NEW_LINE>TextRange wordSelectionRange = getSelectionRange(editor, caret);<NEW_LINE>boolean notFoundPreviously = getAndResetNotFoundStatus(editor);<NEW_LINE>...
() + findResult.getStartOffset();
1,387,028
public boolean writeValue(Object object) {<NEW_LINE>if (super.writeValue(object)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (!treatArrayBufferViewsAsHostObjects && JSValue.is(object) && ((JSValue) object).isDataView()) {<NEW_LINE>JSDataView<?> view = (JSDataView<?>) object;<NEW_LINE>assignId(view);<NEW_LINE>if (vi...
(JSDataView<?>) value);
109,323
private void addNextEntryPoints(OResult nextStep, int depth, List<OIdentifiable> path, OCommandContext ctx) {<NEW_LINE>if (!nextStep.isElement()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (this.traversed.contains(nextStep.getElement().get().getIdentity())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (nextStep instanceof ...
getElement().get());
511,129
private Comparator<DataSource> byPidComparator() {<NEW_LINE>return new Comparator<DataSource>() {<NEW_LINE><NEW_LINE>public int compare(DataSource d1, DataSource d2) {<NEW_LINE>if (isFinishedAtBottom()) {<NEW_LINE>int ret = checkUnavailable(d1, d2);<NEW_LINE>if (ret != 0)<NEW_LINE>return ret;<NEW_LINE>}<NEW_LINE>boolea...
Application) d2).getPid();
594,576
public static CustomerShortNames[] fromCustomers(Customer[] customers) {<NEW_LINE>CustomerShortNames[] feedback = new CustomerShortNames[customers.length];<NEW_LINE>for (int i = 0; i < customers.length; i++) {<NEW_LINE>Customer aCustomer = customers[i];<NEW_LINE>CustomerShortNames newOne = new CustomerShortNames();<NEW...
setState(aCustomer.getState());
1,005,838
public boolean needDeploy() {<NEW_LINE>if (StringUtils.isEmpty(password)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>Ssh ssh = new Ssh();<NEW_LINE>ssh.setUsername(username).setPrivateKey(privateKey).setPassword(password).setPort<MASK><NEW_LINE>try {<NEW_LINE>ssh.command(String.format("echo %s | sudo -S sed -i '/baseur...
(sshPort).setHostname(targetIp);
319,516
void initFromCameraParameters(OpenCamera camera, int width, int height) {<NEW_LINE>Camera.Parameters parameters = camera.getCamera().getParameters();<NEW_LINE>WindowManager manager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);<NEW_LINE>Display display = manager.getDefaultDisplay();<NEW_LINE>int di...
i(TAG, "Final display orientation: " + cwRotationFromDisplayToCamera);
748,322
private void updateEditorTexts(final MethodNodeBase<M> node) {<NEW_LINE>final MethodNodeBase<M> parentNode = (MethodNodeBase) node.getParent();<NEW_LINE>final String callerText = node != myRoot ? getText(node.getMethod()) : "";<NEW_LINE>final Document callerDocument = myCallerEditor.getDocument();<NEW_LINE>final String...
EditorColorsManager colorManager = EditorColorsManager.getInstance();
1,066,742
private void handleCreate(final HttpServletRequest req, final HttpServletResponse resp, final Session session) throws ServletException {<NEW_LINE>final String projectName = hasParam(req, "name") ? <MASK><NEW_LINE>final String projectDescription = hasParam(req, "description") ? getParam(req, "description") : null;<NEW_L...
getParam(req, "name") : null;
783,473
public int compareTo(TKey other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetRow(), other.isSetRow());<NEW_LINE>if (lastComparison !...
this.colFamily, other.colFamily);
1,722,212
public com.amazonaws.services.organizations.model.OrganizationalUnitNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.organizations.model.OrganizationalUnitNotFoundException organizationalUnitNotFoundException = new com.amazonaws.services.organiz...
String currentParentElement = context.getCurrentParentElement();
1,354,415
public void configure() {<NEW_LINE>// these bindings exist because this module is called from AbstractJdbiConfigurationModule which instantiates<NEW_LINE>// an InternalJdbiBinder that defines all the multibindings with the same annotation as this module.<NEW_LINE>// So when guice tries to resolve the following bindings...
.get(PLUGINS_TYPE_LITERAL, annotation));
162,362
public void addPet(Pet body) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'body' when calling addPet");<NEW_LINE>}<NEW_LINE>// create path and map v...
] localVarContentTypes = { "application/json", "application/xml" };
151,768
public void registerPush(Hashtable metaData, boolean noFallback) {<NEW_LINE>int port = Integer.parseInt(Display.getInstance().getProperty("$CN1Port", "100"));<NEW_LINE>String appId = Display.getInstance().getProperty("$CN1AppId", "");<NEW_LINE>String bpsUrl = Display.getInstance().getProperty("$CN1BpsURL", "");<NEW_LIN...
byte pasStatus = pushApplicationStatus.getStatus();