idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
432,499
private void replaceKeyByBubbleRightmostFromSubtree(PageCursor cursor, StructurePropagation<KEY> structurePropagation, int subtreePosition, long stableGeneration, long unstableGeneration, CursorContext cursorContext) throws IOException {<NEW_LINE>long currentPageId = cursor.getCurrentPageId();<NEW_LINE>long subtree = b...
UPDATE_MID_CHILD, stableGeneration, unstableGeneration, cursorContext);
304,385
void searchInternal(final SearchPhrase phrase, SearchResultMatcher matcher) {<NEW_LINE>preparePhrase(phrase);<NEW_LINE>ArrayList<SearchCoreAPI> lst <MASK><NEW_LINE>Collections.sort(lst, new Comparator<SearchCoreAPI>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int compare(SearchCoreAPI o1, SearchCoreAPI o2) {<NEW_L...
= new ArrayList<>(apis);
790,429
final CreatePricingRuleResult executeCreatePricingRule(CreatePricingRuleRequest createPricingRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createPricingRuleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
invoke(request, responseHandler, executionContext);
682,978
private void drawCellTextDecorated(@NotNull GC gc, @NotNull String text, @Nullable Object col, @Nullable Object row, boolean selected, @NotNull Rectangle bounds) {<NEW_LINE>final Color activeForeground = grid.<MASK><NEW_LINE>final Color activeBackground = grid.getCellBackground(col, row, selected);<NEW_LINE>final Color...
getCellForeground(col, row, selected);
1,203,152
public Function newInstance(int position, ObjList<Function> args, IntList argPositions, CairoConfiguration configuration, SqlExecutionContext sqlExecutionContext) {<NEW_LINE>// this is probably a special case factory<NEW_LINE>// NaN is always a double, so this could lead comparisons of all primitive types<NEW_LINE>// t...
int leftType = left.getType();
1,367,382
public static int[] quickSort(float[] x, int startIndex, int endIndex) {<NEW_LINE>if (startIndex < 0)<NEW_LINE>startIndex = 0;<NEW_LINE>if (startIndex > x.length - 1)<NEW_LINE>startIndex = x.length - 1;<NEW_LINE>if (endIndex < startIndex)<NEW_LINE>endIndex = startIndex;<NEW_LINE>if (endIndex > x.length - 1)<NEW_LINE>en...
- startIndex] = x[i];
684,390
private void drawPart1(UGraphic ug, double fullAvailableWidth) {<NEW_LINE>final StringBounder stringBounder = ug.getStringBounder();<NEW_LINE>ug = ug.apply(UTranslate.dy(getHeightForConstraints(stringBounder)));<NEW_LINE>if (compact) {<NEW_LINE>final double titleHeight = title.calculateDimension(stringBounder).getHeigh...
.dx(fullAvailableWidth - width));
609,225
public void initialize(ApplicationInfo appInfo, Collection<? extends Sniffer> sniffers, ExtendedDeploymentContext context) {<NEW_LINE>if (appInfo == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>appRegistry.removeTransient(appInfo.getName());<NEW_LINE>final ActionReport report = context.getActionReport();<NEW_LINE>Progr...
ExtendedDeploymentContext.Phase.START, context);
25,710
private Repository parseCollectionsRepositoryData(Element element) throws Exception {<NEW_LINE>String fullName = element.select("div > h1 > a").attr("href");<NEW_LINE><MASK><NEW_LINE>String owner = fullName.substring(0, fullName.lastIndexOf("/"));<NEW_LINE>String repoName = fullName.substring(fullName.lastIndexOf("/") ...
fullName = fullName.substring(1);
651,343
public okhttp3.Call readNamespacedPodStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/status".replaceAl...
= new ArrayList<Pair>();
1,222,809
public KubernetesServiceInstance map(Service service) {<NEW_LINE>final ObjectMeta meta = service.getMetadata();<NEW_LINE>final List<ServicePort> ports = service.getSpec().getPorts();<NEW_LINE>ServicePort port = null;<NEW_LINE>if (ports.size() == 1) {<NEW_LINE>port = ports.get(0);<NEW_LINE>} else if (ports.size() > 1 &&...
, getServiceMetadata(service), secure);
1,675,698
private static MergedAndroidData mergeDataAndWrite(final ParsedAndroidData primary, final Path primaryManifest, final List<? extends SerializedAndroidData> direct, final List<? extends SerializedAndroidData> transitive, final Path resourcesOut, final Path assetsOut, @Nullable final PngCruncher cruncher, final VariantTy...
.reset().start();
226,527
public void prepare() throws Exception {<NEW_LINE>// The task ID is different for local and cluster executions<NEW_LINE>// So including that in the log can help associate the log to the run<NEW_LINE>LOG.info("Task ID is {}", mBaseParameters.mId);<NEW_LINE><MASK><NEW_LINE>mCapacityMap = Maps.toMap(mTierAliases, (tier) -...
mTierAliases = getTierAliases(mParameters.mTiers);
1,380,774
public byte[] marshall(CreateUdfApplicationRequest request) {<NEW_LINE>StringBuffer xmlBody = new StringBuffer();<NEW_LINE>UdfApplicationConfiguration config = request.getUdfApplicationConfiguration();<NEW_LINE>xmlBody.append("<CreateUDFApplicationConfiguration>");<NEW_LINE>xmlBody.append("<ImageVersion>" + config.getI...
).getInstanceType() + "</InstanceType>");
734,842
private boolean performHandshake() {<NEW_LINE>try (var handshakeMemoryTracker = memoryTracker.getScopedMemoryTracker()) {<NEW_LINE>ArrayList<BoltProtocolVersion> suggestions = new ArrayList<BoltProtocolVersion>();<NEW_LINE>for (int i = 0; i < 4; i++) {<NEW_LINE>int rawBytes = handshakeBuffer.getInt((i + 1) * Integer.BY...
range = BoltProtocolVersion.getRangeFromRawBytes(rawBytes);
202,660
public static Version maintain(GameRepository repository, Version version) {<NEW_LINE>if (version.getInheritsFrom() != null)<NEW_LINE>throw new IllegalArgumentException("MaintainTask requires independent game version");<NEW_LINE>String mainClass = version.resolve(null).getMainClass();<NEW_LINE>if (mainClass != null && ...
(repository, unique(version));
287,669
private void initBootstrapDBMetadata() throws SQLException, BootstrapDatabaseTooOldException {<NEW_LINE>DatabusHttpClientImpl.RuntimeConfig clientRtConfig = getClientConfigManager().getReadOnlyConfig();<NEW_LINE>// create source list<NEW_LINE>for (ServerInfo relayInfo : clientRtConfig.getRelays()) {<NEW_LINE>_registere...
addAll(relayInfo.getSources());
755,577
// =======================================================================================<NEW_LINE>private boolean extendsJerseyServerLibraries(Project project) {<NEW_LINE>J2eeModuleProvider provider = project.getLookup().lookup(J2eeModuleProvider.class);<NEW_LINE>Collection<ServerLibrary> serverLibraries = getServerJ...
project, ProjectUtils.class, true);
1,755,804
public void configure(Context context) {<NEW_LINE>this.context = context;<NEW_LINE>port = context.getInteger(ConfigConstants.CONFIG_PORT);<NEW_LINE>host = context.getString(ConfigConstants.CONFIG_HOST, "0.0.0.0");<NEW_LINE>Configurables.ensureRequiredNonNull(context, ConfigConstants.CONFIG_PORT);<NEW_LINE>Preconditions...
ConfigConstants.TOPIC, ConfigConstants.ATTR);
1,500,549
public static void main(String[] args) {<NEW_LINE>// initialize creatures list<NEW_LINE>var creatures = List.of(new Goblin(), new Octopus(), new Dragon(), new Shark(), new Troll(), new KillerBee());<NEW_LINE>// so-called "hard-coded" specification<NEW_LINE>LOGGER.info("Demonstrating hard-coded specification :");<NEW_LI...
(new MassEqualSelector(400.0)));
914,430
static Handler<RoutingContext> createInfoHandler(final SockJSHandlerOptions options, final VertxContextPRNG prng) {<NEW_LINE>final long offset = 2L << 30;<NEW_LINE>return new Handler<RoutingContext>() {<NEW_LINE><NEW_LINE>final boolean websocket = !options.getDisabledTransports().contains(Transport.WEBSOCKET.toString()...
json.put("websocket", websocket);
777,791
public CodegenExpression codegen(EnumForgeCodegenParams premade, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope) {<NEW_LINE>CodegenExpressionField resultTypeMember = codegenClassScope.addFieldUnshared(true, ObjectArrayEventType.EPTYPE, cast(ObjectArrayEventType.EPTYPE, EventTypeUtility.resol...
"count", constant(-1));
1,248,922
protected ByteBuffer control(EPID pid, int command, ByteBuffer cmd) throws Pausable {<NEW_LINE>if (command == CTRL_OP_GET_WINSIZE) {<NEW_LINE>ByteBuffer rep = ByteBuffer.allocate(8);<NEW_LINE>rep.order(ByteOrder.nativeOrder());<NEW_LINE>rep.putInt(80);<NEW_LINE>rep.putInt(25);<NEW_LINE>return rep;<NEW_LINE>} else if (c...
(utf8_mode ? 1 : 0));
1,487,766
public static void main(String[] args) throws Exception {<NEW_LINE>ConvertInputStreamToStringBigBenchmark test = new ConvertInputStreamToStringBigBenchmark();<NEW_LINE>System.out.println();<NEW_LINE>System.out.println("1. apacheToInputStream : " + test.apacheToInputStream().length());<NEW_LINE>System.out.println("2. gu...
jdkJava8().length());
590,074
public static DescribeInstanceAutoRenewAttributeResponse unmarshall(DescribeInstanceAutoRenewAttributeResponse describeInstanceAutoRenewAttributeResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeInstanceAutoRenewAttributeResponse.setRequestId(_ctx.stringValue("DescribeInstanceAutoRenewAttributeResponse.RequestId")...
("DescribeInstanceAutoRenewAttributeResponse.InstanceRenewAttributes[" + i + "].Duration"));
602,600
public Object decode(Response response, Type type) throws IOException, DecodeException, FeignException {<NEW_LINE>final RequestTemplate template = response<MASK><NEW_LINE>final MeteredBody body = response.body() == null ? null : new MeteredBody(response.body());<NEW_LINE>response = response.toBuilder().body(body).build...
.request().requestTemplate();
588,271
private void fillRPrStack(String styleId, Stack<RPr> rPrStack) {<NEW_LINE>// get the style<NEW_LINE>Style style = liveStyles.get(styleId);<NEW_LINE>// add it to the stack<NEW_LINE>if (style == null) {<NEW_LINE>// No such style!<NEW_LINE>// For now, just log it..<NEW_LINE>log.error("Style definition not found: " + style...
debug("Added " + styleId + " to rPr stack");
145,432
// Dump the content of this bean returning it as a String<NEW_LINE>public void dump(StringBuffer str, String indent) {<NEW_LINE>String s;<NEW_LINE>org.netbeans.modules.schema2beans.BaseBean n;<NEW_LINE>str.append(indent);<NEW_LINE>// NOI18N<NEW_LINE>str.append("Name");<NEW_LINE>// NOI18N<NEW_LINE>str.append(indent + "\...
str.append(indent + "\t");
559,590
private ResponseSpec testJsonFormDataRequestCreation(String param, String param2) throws WebClientResponseException {<NEW_LINE>Object postBody = null;<NEW_LINE>// verify the required parameter 'param' is set<NEW_LINE>if (param == null) {<NEW_LINE>throw new WebClientResponseException("Missing the required parameter 'par...
localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
1,498,084
private void createUserClass() {<NEW_LINE>schema.createEAttribute(user, "name", ecorePackage.getEString(), Multiplicity.SINGLE);<NEW_LINE>schema.createEAttribute(user, "passwordHash", ecorePackage.getEByteArray(), Multiplicity.SINGLE);<NEW_LINE>schema.createEAttribute(user, "passwordSalt", ecorePackage.getEByteArray(),...
getEDate(), Multiplicity.SINGLE);
374,043
private void createInvoiceLine(MDDFreightLine freightLine) {<NEW_LINE>MFreightCategory freightCategory = MFreightCategory.getById(getCtx(), freightLine.getM_FreightCategory_ID(), get_TrxName());<NEW_LINE>BigDecimal qtyInvoiced = Env.ZERO;<NEW_LINE>if (Util.isEmpty(freightCategory.getFreightCalculationType()) || freight...
invoiceLine.setQty(Env.ONE);
1,290,331
public ServiceRegistry unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ServiceRegistry serviceRegistry = new ServiceRegistry();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
class).unmarshall(context));
159,726
SimpleConfigObject withoutPath(Path path) {<NEW_LINE>String key = path.first();<NEW_LINE><MASK><NEW_LINE>AbstractConfigValue v = this.value.get(key);<NEW_LINE>HashMap<String, AbstractConfigValue> smaller;<NEW_LINE>if (next != null && v instanceof AbstractConfigObject) {<NEW_LINE>v = ((AbstractConfigObject) v).withoutPa...
Path next = path.remainder();
2,464
private // parses the file in standard format<NEW_LINE>void parseStandardFormat(CsvIterator csv, ListMultimap<String, CurveSensitivities> parsed, List<FailureItem> failures) {<NEW_LINE>// loop around all rows, peeking to match batches with the same identifier<NEW_LINE>// no exception catch at this level to avoid infini...
-> matchId(r, id));
285,720
private void processConnectionData(Connection conn) {<NEW_LINE>logger.info("{} Processing connection data", name);<NEW_LINE>try {<NEW_LINE>addEvent(new Event(EventType.PROCESSING, "Processing messages"));<NEW_LINE>while (!isDone() && !reconnect.getAndSet(false)) {<NEW_LINE>if (conn.processResponse()) {<NEW_LINE>statsRe...
(EventType.DISCONNECTED, ex));
576,453
public synchronized void addMedias(List<MediaWrapper> mws) {<NEW_LINE>ContentValues values = new ContentValues();<NEW_LINE>mDatabase.beginTransaction();<NEW_LINE>for (MediaWrapper mw : mws) {<NEW_LINE>values.put(TomahawkSQLiteHelper.MEDIA_LOCATION, mw.getLocation());<NEW_LINE>values.put(TomahawkSQLiteHelper.MEDIA_TIME,...
MEDIA_SPUTRACK, mw.getSpuTrack());
1,715,352
public void visit(BIRBasicBlock birBasicBlock) {<NEW_LINE>// Name of the basic block<NEW_LINE>addCpAndWriteString(birBasicBlock.id.value);<NEW_LINE>// Number of instructions<NEW_LINE>// Adding the terminator instruction as well.<NEW_LINE>buf.writeInt(birBasicBlock.instructions.size() + 1);<NEW_LINE>birBasicBlock.instru...
terminator.kind.getValue());
1,753,143
public static void init(Context context) throws Exception {<NEW_LINE>mContext = context;<NEW_LINE>try {<NEW_LINE>Logger.debug("initializing System...");<NEW_LINE>mStoragePath = getSettings().getString("PREF_SAVE_PATH", Environment.getExternalStorageDirectory().toString());<NEW_LINE>mSessionName = "csploit-session-" + j...
mPorts = new HashMap<>();
1,579,870
public static int loadTexture(Buffer data, int width, int height, int usedTexId) {<NEW_LINE>if (data == null)<NEW_LINE>return NO_TEXTURE;<NEW_LINE>int[] textures = new int[1];<NEW_LINE>if (usedTexId == NO_TEXTURE) {<NEW_LINE>GLES20.glGenTextures(1, textures, 0);<NEW_LINE>GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, textu...
GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_LINEAR);
572,381
private synchronized boolean attachNotifier(FileObject mfo, int layer) {<NEW_LINE>FileSystem fsLayer = getLayer(layer);<NEW_LINE>String fn = mfo.getPath();<NEW_LINE>FileObject fo = null;<NEW_LINE>boolean isDelegate = true;<NEW_LINE>if (fsLayer == null)<NEW_LINE>return false;<NEW_LINE>// find new notifier - the FileObje...
.removeFileChangeListener(weakL[layer]);
136,234
private void sendInterestArea() {<NEW_LINE>log.info("R_InterestArea_ID=" + m_R_InterestArea_ID);<NEW_LINE>m_ia = MInterestArea.get(getCtx(), m_R_InterestArea_ID);<NEW_LINE>String unsubscribe = null;<NEW_LINE>if (m_ia.isSelfService()) {<NEW_LINE>unsubscribe = "\n\n---------.----------.----------.----------.----------.--...
+ "WHERE ci.IsActive='Y' AND u.IsActive='Y'" + " AND ci.OptOutDate IS NULL" + " AND u.EMail IS NOT NULL" + " AND ci.R_InterestArea_ID=?";
1,628,987
public void load(final String pluginPath) {<NEW_LINE>log.info("Loading plug-in checker and action types");<NEW_LINE>final <MASK><NEW_LINE>if (!triggerPluginPath.exists()) {<NEW_LINE>log.error("plugin path " + pluginPath + " doesn't exist!");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final ClassLoader parentLoader = getClass...
File triggerPluginPath = new File(pluginPath);
1,667,190
private void onRestoreFileVersionOperationFinish(RemoteOperationResult result) {<NEW_LINE>if (result.isSuccess()) {<NEW_LINE>OCFile file = getFile();<NEW_LINE>// delete old local copy<NEW_LINE>if (file.isDown()) {<NEW_LINE>List<OCFile> list = new ArrayList<>();<NEW_LINE>list.add(file);<NEW_LINE>getFileOperationsHelper(...
getFileOperationsHelper().syncFile(file);
958,189
public void sendEvent(String name, ReadableMap data, String scope) {<NEW_LINE>// Keep track of the current ongoing conference.<NEW_LINE>OngoingConferenceTracker.getInstance(<MASK><NEW_LINE>// The JavaScript App needs to provide uniquely identifying information<NEW_LINE>// to the native ExternalAPI module so that the la...
).onExternalAPIEvent(name, data);
1,048,753
public CalculateRouteTruckModeOptions unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CalculateRouteTruckModeOptions calculateRouteTruckModeOptions = new CalculateRouteTruckModeOptions();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCu...
class).unmarshall(context));
414,551
final GetDeploymentsResult executeGetDeployments(GetDeploymentsRequest getDeploymentsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDeploymentsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
false), new GetDeploymentsResultJsonUnmarshaller());
1,823,205
private void fetchImage() {<NEW_LINE>try {<NEW_LINE>Document doc = Http.url(url).get();<NEW_LINE>// Find image<NEW_LINE>Elements metaTags = doc.getElementsByTag("meta");<NEW_LINE>// initialize, so no NullPointerExceptions should ever happen.<NEW_LINE>String imgsrc = "";<NEW_LINE>for (Element metaTag : metaTags) {<NEW_L...
String.format("%03d_", index);
1,265,335
private void loadConfigValueTypeDesc(final MapPack param) {<NEW_LINE>ExUtil.asyncRun(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>MapPack pack = null;<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>try {<NEW_LINE>pack = (MapPack) tcp.getSingle(RequestCmd.CONFIGURE_VALUE_TYPE_DESC, ...
pack.get(key)));
585,834
public void start() {<NEW_LINE>if (current != null) {<NEW_LINE>current.show();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Form hi = new Form("Hi World", BoxLayout.y());<NEW_LINE>Button checkIfDetectionAvailable = new Button("Check if GPS Detection Available");<NEW_LINE>checkIfDetectionAvailable.addActionListener(e -> {<NEW_L...
getLocationManager().getCurrentLocationSync(3000);
1,662,442
public static String signature(String annotatorName, Properties props) {<NEW_LINE>StringBuilder os = new StringBuilder();<NEW_LINE>os.append(annotatorName + ".model:" + props.getProperty(annotatorName + ".model", LexicalizedParser.DEFAULT_PARSER_LOC));<NEW_LINE>os.append(annotatorName + ".debug:" + props.getProperty(an...
(annotatorName + ".keepPunct", "true"));
1,556,975
private List<Application> listApplication(Server applicationServer) throws Exception {<NEW_LINE>List<Application> list = new ArrayList<>();<NEW_LINE>GzipHandler gzipHandler = <MASK><NEW_LINE>HandlerList hanlderList = (HandlerList) gzipHandler.getHandler();<NEW_LINE>for (Handler handler : hanlderList.getHandlers()) {<NE...
(GzipHandler) applicationServer.getHandler();
825,837
public static GetInstanceListResponse unmarshall(GetInstanceListResponse getInstanceListResponse, UnmarshallerContext _ctx) {<NEW_LINE>getInstanceListResponse.setRequestId(_ctx.stringValue("GetInstanceListResponse.RequestId"));<NEW_LINE>getInstanceListResponse.setTotalCount(_ctx.integerValue("GetInstanceListResponse.To...
(_ctx.stringValue("GetInstanceListResponse.Message"));
534,157
private Map<String, String> filterProps(Map<String, Object> props) {<NEW_LINE>HashMap<String, String> filteredProps = new HashMap<>();<NEW_LINE>Iterator<String> it = props.keySet().iterator();<NEW_LINE>boolean debug = tc.isDebugEnabled() && TraceComponent.isAnyTracingEnabled();<NEW_LINE>while (it.hasNext()) {<NEW_LINE>...
(key).toString());
1,365,443
private URL extractWebserver() throws Exception {<NEW_LINE>this.webroot = File.createTempFile("warbler", "webroot");<NEW_LINE>this.webroot.delete();<NEW_LINE>this.webroot.mkdirs();<NEW_LINE>this.webroot = new File(this.webroot, new File(archive).getName());<NEW_LINE>debug("webroot directory is " + this.webroot.getPath(...
.toURI().toURL();
79,526
public Response checkReadiness(@QueryParam("check") Set<String> checks) {<NEW_LINE>boolean checkAll = checks == null || checks.isEmpty();<NEW_LINE>HashSet<String> requiredChecks = new HashSet<>(checkAll ? bundleService.defaultHealthCheckNames() : checks);<NEW_LINE>SortedMap<String, Result> status = healthCheckRegistry....
|| requiredChecks.contains(name));
1,472,728
public void testCompletionStageRxInvoker_get4WithExecutorService(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String serverPort = param.get("serverPort");<NEW_LINE>final String threadName = "jaxrs21Thread";<NEW_LINE>ThreadFactory jaxrs21ThreadFactory = Execu...
Response response = completableFuture.get();
218,679
public void paintInstance(InstancePainter painter) {<NEW_LINE>final var g = painter.getGraphics();<NEW_LINE>painter.drawBounds();<NEW_LINE>g.setColor(Color.GRAY);<NEW_LINE>painter.drawPort(IN0);<NEW_LINE>painter.drawPort(IN1);<NEW_LINE>painter.drawPort(OUT);<NEW_LINE>painter.drawPort(ERR);<NEW_LINE>final var loc = pain...
g.setColor(Color.BLACK);
794,648
private void downloadThumbnail(final Context context, final boolean allowHighRes, final int sizePixels, final CacheManager cm, final int listId) {<NEW_LINE>final RedditParsedPost.ImagePreviewDetails preview = allowHighRes ? src.getPreview(sizePixels, sizePixels) : null;<NEW_LINE>final String uriStr;<NEW_LINE>if (previe...
uriStr + " with status " + httpStatus, t);
1,693,442
public void writeExternal(Element rootElement) {<NEW_LINE>checkDisposed();<NEW_LINE>Element element = new Element(ELEMENT);<NEW_LINE>if (myName != null) {<NEW_LINE>element.setAttribute(LIBRARY_NAME_ATTR, myName);<NEW_LINE>}<NEW_LINE>if (myKind != null) {<NEW_LINE>element.setAttribute(LIBRARY_TYPE_ATTR, myKind.getKindId...
(propertiesElement.setName(PROPERTIES_ELEMENT));
1,232,040
private static StreamingHttpRequestResponseFactory defaultReqRespFactory(ReadOnlyHttpClientConfig roConfig, BufferAllocator allocator) {<NEW_LINE>if (roConfig.isH2PriorKnowledge()) {<NEW_LINE>H2ProtocolConfig h2Config = roConfig.h2Config();<NEW_LINE>assert h2Config != null;<NEW_LINE>return new DefaultStreamingHttpReque...
HTTP_1_1 + " but the " + HTTP_1_1 + " protocol was not configured.");
447,058
public int compareTo(rpc_column 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.valueOf(isSetTypeId()).compareTo(other.isSetTypeId());<NEW_LIN...
this.name, other.name);
1,157,394
public void onMapReady(GoogleMap map) {<NEW_LINE>mMap = map;<NEW_LINE>// Hide the zoom controls as the button panel will cover it.<NEW_LINE>mMap.getUiSettings().setZoomControlsEnabled(false);<NEW_LINE>// Add lots of markers to the map.<NEW_LINE>addMarkersToMap();<NEW_LINE>// Setting an info window adapter allows us to ...
.setInfoWindowAdapter(new CustomInfoWindowAdapter());
201,089
public // The idea is that it can be used as an additional optimization by processors in Standard Dialects, after casting.<NEW_LINE>void replaceAttribute(final AttributeName oldAttributeName, final AttributeDefinition attributeDefinition, final String attributeName, final String attributeValue, final AttributeValueQuot...
this.replaceAttributeValues[this.replaceAttributeValuesSize];
971,100
private void drawCompassCircle(Canvas canvas, RotatedTileBox tileBox, int circleNumber, QuadPoint center, RenderingLineAttributes attrs) {<NEW_LINE>if (!tileBox.isZoomAnimated()) {<NEW_LINE>float radiusLength = radius * circleNumber;<NEW_LINE>float innerRadiusLength = radiusLength - attrs.paint.getStrokeWidth() / 2;<NE...
drawPath(compass, attrs.shadowPaint);
499,678
public void run(RegressionEnvironment env) {<NEW_LINE>String stmtText = "@name('s0') select count(*) as cnt from SupportBean#time(10 seconds) output every 10 seconds";<NEW_LINE>env.compileDeploy(stmtText).addListener("s0");<NEW_LINE>sendTimer(env, 0);<NEW_LINE>sendTimer(env, 10000);<NEW_LINE>env.assertListenerNotInvoke...
0].get("cnt"));
1,258,049
protected void run() throws GitException {<NEW_LINE>Repository repository = getRepository();<NEW_LINE>Map<String, Ref> tags = repository.getTags();<NEW_LINE>allTags = new LinkedHashMap<<MASK><NEW_LINE>try (RevWalk walk = new RevWalk(repository)) {<NEW_LINE>for (Map.Entry<String, Ref> e : tags.entrySet()) {<NEW_LINE>Git...
>(tags.size());
1,261,492
public void enableLedgerReplication() throws ReplicationException.UnavailableException {<NEW_LINE>if (LOG.isDebugEnabled()) {<NEW_LINE>LOG.debug("enableLedegerReplication()");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>zkc.delete(basePath + '/' + BookKeeperConstants.DISABLE_NODE, -1);<NEW_LINE>LOG.info("Resuming automatic ledg...
LOG.error("Exception while resuming ledger replication", ke);
1,846,057
public void validate(MappingLookup mappers) {<NEW_LINE>if (Objects.equals(this.path(), this.name())) {<NEW_LINE>throw new MapperParsingException("Invalid [path] value [" + path + "] for field alias [" + name() + "]: an alias cannot refer to itself.");<NEW_LINE>}<NEW_LINE>if (mappers.fieldTypes().get(path) == null) {<NE...
"] for field alias [" + name() + "]: an alias must refer to an existing field in the mappings.");
424,454
private void doAddPane(@Nonnull final AbstractProjectViewPane newPane) {<NEW_LINE>ApplicationManager.getApplication().assertIsDispatchThread();<NEW_LINE>int index;<NEW_LINE>final ContentManager manager = getContentManager();<NEW_LINE>for (index = 0; index < manager.getContentCount(); index++) {<NEW_LINE>Content content...
String[] { null } : subIds;
423,634
private static SchemaKTable<?> buildTable(final PlanBuildContext buildContext, final DataSource dataSource, final Stacker contextStacker) {<NEW_LINE>final KeyFormat keyFormat = dataSource.getKsqlTopic().getKeyFormat();<NEW_LINE>if (keyFormat.isWindowed()) {<NEW_LINE>throw new IllegalArgumentException("windowed");<NEW_L...
dataSource.getTimestampColumn(), pseudoColumnVersionToUse);
376,429
public static JSONObject stringifyByObject(long byteNumber) {<NEW_LINE>JSONObject object = new JSONObject();<NEW_LINE>if (byteNumber / TB_IN_BYTES > 0) {<NEW_LINE>object.put("size", df.format((double) <MASK><NEW_LINE>object.put("type", "TB");<NEW_LINE>return object;<NEW_LINE>} else if (byteNumber / GB_IN_BYTES > 0) {<N...
byteNumber / (double) TB_IN_BYTES));
1,633,429
private void initRegistry() {<NEW_LINE>registry = RegistryFactory.getRegistry(appContext);<NEW_LINE>if (registry instanceof AbstractRegistry) {<NEW_LINE>((AbstractRegistry) registry).setNode(node);<NEW_LINE>}<NEW_LINE>registry.subscribe(node, new NotifyListener() {<NEW_LINE><NEW_LINE>private final Logger NOTIFY_LOGGER ...
t.getMessage(), t);
1,193,001
public InternalAggregation doReduce(List<InternalAggregation> aggregations, ReduceContext reduceContext) {<NEW_LINE>long[] docCounts = new long[buckets.size()];<NEW_LINE>InternalAggregations[][] aggs = new InternalAggregations[buckets.size()][];<NEW_LINE>for (int i = 0; i < aggs.length; ++i) {<NEW_LINE>aggs[i] = new In...
InternalTokenRange) aggregations.get(i);
1,607,801
public QueryParameterSetter create(ParameterBinding binding, DeclaredQuery declaredQuery) {<NEW_LINE>int parameterIndex = binding.getRequiredPosition() - 1;<NEW_LINE>//<NEW_LINE>//<NEW_LINE>Assert.//<NEW_LINE>isTrue(parameterIndex < expressions.size(), () -> //<NEW_LINE>String.//<NEW_LINE>format(//<NEW_LINE>"At least %...
metadata.getExpression(), temporalType);
1,614,661
private void registerDSDReferredByApplication(String appName, DataSourceDefinitionDescriptor dsd) {<NEW_LINE>// It is possible that JPA might call this method multiple times in a single deployment,<NEW_LINE>// when there are multiple PUs eg: one PU in each of war, ejb-jar. Make sure that<NEW_LINE>// DSD is bound to JND...
String dsdName = dsd.getName();
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...
this.maxIterations = (int) value;
1,441,038
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wo wo = new Wo();<NEW_LINE>String executorSeed = null;<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Task t...
emc.beginTransaction(Task.class);
450,206
public AgentFilter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AgentFilter agentFilter = new AgentFilter();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE...
JsonToken token = context.getCurrentToken();
42,198
public final static Py4JClass buildClass(Class<?> clazz, boolean sort) {<NEW_LINE>List<Py4JClass> classes = new ArrayList<Py4JClass>();<NEW_LINE>List<Py4JMethod> methods = new ArrayList<Py4JMethod>();<NEW_LINE>List<Py4JField> fields = new ArrayList<Py4JField>();<NEW_LINE>for (Class<?> memberClass : clazz.getDeclaredCla...
.buildClass(memberClass, sort));
916,320
// Returns true if the relation holds.<NEW_LINE>static boolean polygonRelatePolyline_(Polygon polygon_a, Polyline polyline_b, double tolerance, String scl, ProgressTracker progress_tracker) {<NEW_LINE>RelationalOperationsMatrix relOps = new RelationalOperationsMatrix();<NEW_LINE>relOps.resetMatrix_();<NEW_LINE>relOps.s...
), env_b = new Envelope2D();
203,012
public boolean validate(String name, Consumer<ValidationError>... listeners) {<NEW_LINE>Entry<String, List<String<MASK><NEW_LINE>List<AttributeMetadata> metadatas = new ArrayList<>();<NEW_LINE>metadatas.addAll(Optional.ofNullable(this.metadataByAttribute.get(attribute.getKey())).map(Collections::singletonList).orElse(C...
>> attribute = createAttribute(name);
1,467,006
private void calculateDiscount() {<NEW_LINE>discountSchema = false;<NEW_LINE>if (partnerId == 0 || productId == 0)<NEW_LINE>return;<NEW_LINE>int discountSchemaId = 0;<NEW_LINE>BigDecimal flatDiscount = null;<NEW_LINE>String sql = "SELECT COALESCE(p.M_DiscountSchema_ID,g.M_DiscountSchema_ID)," <MASK><NEW_LINE>PreparedSt...
+ " COALESCE(p.PO_DiscountSchema_ID,g.PO_DiscountSchema_ID), p.FlatDiscount " + "FROM C_BPartner p" + " INNER JOIN C_BP_Group g ON (p.C_BP_Group_ID=g.C_BP_Group_ID) " + "WHERE p.C_BPartner_ID=?";
547,802
private static List<String> computeMessageResourceNamesFromBase(final String resourceBaseName, final Locale locale) {<NEW_LINE>final List<String> resourceNames = <MASK><NEW_LINE>if (StringUtils.isEmptyOrWhitespace(locale.getLanguage())) {<NEW_LINE>throw new TemplateProcessingException("Locale \"" + locale.toString() + ...
new ArrayList<String>(5);
946,714
private static void tryPattern3Stream(RegressionEnvironment env, String text, AtomicInteger milestone, Integer[] intBoxedA, Double[] doubleBoxedA, Integer[] intBoxedB, Double[] doubleBoxedB, Integer[] intBoxedC, Double[] doubleBoxedC, boolean[] expected) {<NEW_LINE>assertEquals(intBoxedA.length, doubleBoxedA.length);<N...
"s0", milestone.getAndIncrement());
928,687
public void processOpts() {<NEW_LINE>super.processOpts();<NEW_LINE>if (additionalProperties.containsKey(CodegenConstants.OPTIONAL_PROJECT_FILE)) {<NEW_LINE>setOptionalProjectFileFlag(convertPropertyToBooleanAndWriteBack(CodegenConstants.OPTIONAL_PROJECT_FILE));<NEW_LINE>} else {<NEW_LINE>additionalProperties.put(Codege...
put("file", modelNamePrefix + "HttpFileElement");
37,759
public void repairDatabase(@ConsoleParameter(name = "options", description = "Options: [--fix-graph] [--force-embedded-ridbags] [--fix-links] [-v]] [--fix-ridbags] [--fix-bonsai]", optional = true) String iOptions) throws IOException {<NEW_LINE>checkForDatabase();<NEW_LINE>final boolean force_embedded = iOptions == nul...
null && iOptions.contains("-v");
1,030,531
static List<Pair<RexNode, RexNode>> extractJoinRexNodes(RexNode condition) {<NEW_LINE>// it's a CROSS JOIN because: condition == true<NEW_LINE>// or it's a JOIN ON false because: condition == false<NEW_LINE>if (condition instanceof RexLiteral) {<NEW_LINE>throw new UnsupportedOperationException("CROSS JOIN, JOIN ON FALS...
= extractJoinPairOfRexNodes((RexCall) rexNode);
295,372
protected Control createCustomArea(Composite parent) {<NEW_LINE>Composite container = createComposite(parent, new GridLayout(2, false));<NEW_LINE>container.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));<NEW_LINE>createLabel(container, Messages.COMMAND_ID + ":");<NEW_LINE><MASK><NEW_LINE>text.setLayoutData...
text = createTextbox(container, "");
390,894
public void marshall(TelemetryRecord telemetryRecord, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (telemetryRecord == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(telemetryRecord.getTimestamp(), TIMESTA...
telemetryRecord.getSegmentsSentCount(), SEGMENTSSENTCOUNT_BINDING);
1,558,375
protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>FullHttpRequest request = (FullHttpRequest) msg;<NEW_LINE>Document document = documentBuilder.parse(new ByteBufferBackedInputStream(request.content().nioBuffer()));<NEW_LINE>NodeList nodes = (NodeList) messageE...
evaluate("timestamp", node)));
702,328
private int indexTile(ResourceUrn uri) {<NEW_LINE>Optional<BlockTile> maybeTile = Assets.get(uri, BlockTile.class);<NEW_LINE>if (maybeTile.isPresent()) {<NEW_LINE>BlockTile tile = maybeTile.get();<NEW_LINE>if (numFrames + tile.getLength() > MAX_TILES) {<NEW_LINE>logger.error("Maximum tiles exceeded");<NEW_LINE>return 0...
tileIndexes.put(uri, index);
942,463
public void marshall(ListApplicationRevisionsRequest listApplicationRevisionsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (listApplicationRevisionsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller....
listApplicationRevisionsRequest.getNextToken(), NEXTTOKEN_BINDING);
1,605,516
public void save(final OutputStream os, final Object obj) {<NEW_LINE>final EncogWriteHelper out = new EncogWriteHelper(os);<NEW_LINE>final RBFNetwork net = (RBFNetwork) obj;<NEW_LINE>final FlatNetworkRBF flat = (FlatNetworkRBF) net.getFlat();<NEW_LINE>out.addSection("RBF-NETWORK");<NEW_LINE>out.addSubSection("PARAMS");...
TAG_HAS_CONTEXT, flat.getHasContext());
1,289,246
public void onPostParceling() {<NEW_LINE>mTintMode = PorterDuff.Mode.valueOf(mTintModeStr);<NEW_LINE>switch(mType) {<NEW_LINE>case TYPE_UNKNOWN:<NEW_LINE>if (mParcelable != null) {<NEW_LINE>mObj1 = mParcelable;<NEW_LINE>} else {<NEW_LINE>throw new IllegalArgumentException("Invalid icon");<NEW_LINE>}<NEW_LINE>break;<NEW...
, Charset.forName("UTF-16"));
682,359
/*<NEW_LINE>* Build a parse tree from the given TokenStream.<NEW_LINE>*<NEW_LINE>* @param ts the TokenStream to parse<NEW_LINE>*<NEW_LINE>* @return an Object representing the parsed program. If the parse fails, null<NEW_LINE>* will be returned. (The parse failure will result in a call to the current<NEW_LINE>* Context'...
(tempBlock, statement(ts));
177,365
public KinesisFirehoseConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>KinesisFirehoseConfig kinesisFirehoseConfig = new KinesisFirehoseConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
JsonToken token = context.getCurrentToken();
1,052,594
void processRedirect(@Nullable Uri redirectData) {<NEW_LINE>if (mCreatedSource == null || mCreateSourcePromise == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (redirectData == null) {<NEW_LINE>mCreateSourcePromise.reject(getErrorCode(mErrorCodes, "redirectCancelled"), getDescription(mErrorCodes, "redirectCancelled")...
, getDescription(mErrorCodes, "redirectFailed"));
1,178,495
public T handle(HttpResponse response) throws Exception {<NEW_LINE>final AmazonWebServiceResponse<T> awsResponse = delegate.handle(response);<NEW_LINE>if (awsResponse == null) {<NEW_LINE>throw new RuntimeException("Unable to unmarshall response metadata. Response Code: " + response.getStatusCode() + ", Response Text: "...
AmazonWebServiceRequest userRequest = request.getOriginalRequest();
714,806
public static Object dbcOpenStart(int hash, String msg, Object pool) {<NEW_LINE>TraceContext ctx = TraceContextManager.getContext();<NEW_LINE>if (ctx == null)<NEW_LINE>return null;<NEW_LINE>if (conf.profile_connection_open_enabled == false)<NEW_LINE>return null;<NEW_LINE>MethodStep p = new MethodStep();<NEW_LINE>p.star...
DataProxy.sendObjName(dbUrl.url);
378,799
public static ListOTAModuleByProductResponse unmarshall(ListOTAModuleByProductResponse listOTAModuleByProductResponse, UnmarshallerContext _ctx) {<NEW_LINE>listOTAModuleByProductResponse.setRequestId(_ctx.stringValue("ListOTAModuleByProductResponse.RequestId"));<NEW_LINE>listOTAModuleByProductResponse.setSuccess(_ctx.b...
("ListOTAModuleByProductResponse.Data[" + i + "].GmtModified"));