idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,678,810
private void validateConditions() {<NEW_LINE>this.nodeMap.forEach((name, node) -> {<NEW_LINE>final String condition = node.getCondition();<NEW_LINE>boolean foundConditionOnJobStatus = false;<NEW_LINE>if (condition == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// First, remove all the whitespaces and parenthesis ().<N...
+ operands[i] + " is a condition on job status.");
128,630
public List<ValidateError> validate(Map<String, String> values) {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(values.get("knowledgeId"), con...
ValidatorFactory.getInstance(Validator.INTEGER);
734,513
public void call(FullAccessIntArrPointer dst, int stride, ReadOnlyIntArrPointer above, ReadOnlyIntArrPointer left) {<NEW_LINE>PositionableIntArrPointer pLeft = PositionableIntArrPointer.makePositionable(left);<NEW_LINE>PositionableIntArrPointer <MASK><NEW_LINE>final short I = pLeft.getAndInc();<NEW_LINE>final short J =...
pAbove = PositionableIntArrPointer.makePositionable(above);
1,234,650
private T collectReduceUnordered(Function<Batch<T>, T> map, Function2<T, T, T> function2) {<NEW_LINE>LazyIterable<? extends Batch<T>> chunks = this.split();<NEW_LINE>MutableList<Callable<T>> callables = chunks.collect((Function<Batch<T>, Callable<T>>) chunk -> () -> map.valueOf(chunk)).toList();<NEW_LINE>ExecutorComple...
(NullPointerException) e.getCause();
972,013
public static CodegenExpression codegenStartEnd(DTLocalLongOpsIntervalForge forge, CodegenExpressionRef start, CodegenExpressionRef end, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) {<NEW_LINE>CodegenExpression timeZoneField = codegenClassScope.addOrGetF...
, methodNode, exprSymbol, codegenClassScope));
700,958
public void updateAmountCost() {<NEW_LINE>if (movementQuantity.signum() > 0) {<NEW_LINE>costDetail.setCostAmt(costDetail.getAmt().subtract(costDetail.getCostAdjustment()));<NEW_LINE>costDetail.setCostAmtLL(costDetail.getAmtLL().subtract(costDetail.getCostAdjustmentLL()));<NEW_LINE>} else if (movementQuantity.signum() <...
setM_MatchPO_ID(poMatch.getM_MatchPO_ID());
267,221
public WebResponse invokeProtectedResource(String testcase, WebConversation wc, String accessToken, String where, TestSettings settings, List<validationData> expectations, String currentAction) throws Exception {<NEW_LINE>String thisMethod = "invokeProtectedResource";<NEW_LINE>msgUtils.printMethodName(thisMethod);<NEW_...
request, thisMethod, "Request for " + currentAction);
291,222
public String toObfuscatedKey(final PwmApplication pwmApplication) throws PwmUnrecoverableException {<NEW_LINE>// use local cache first.<NEW_LINE>if (StringUtil.notEmpty(obfuscatedValue)) {<NEW_LINE>return obfuscatedValue;<NEW_LINE>}<NEW_LINE>// check app cache. This is used primarily so that keys are static over some...
getSecureService().encryptToString(jsonValue);
1,073,060
public Map<K, ValueHolder<V>> bulkComputeIfAbsent(Set<? extends K> keys, final Function<Iterable<? extends K>, Iterable<? extends Map.Entry<? extends K, ? extends V>>> mappingFunction) throws StoreAccessException {<NEW_LINE>Map<K, ValueHolder<V>> result = new HashMap<>();<NEW_LINE>for (final K key : keys) {<NEW_LINE>fi...
keySet = Collections.singleton(keyParam);
67,094
public BackendEntry writeIndex(HugeIndex index) {<NEW_LINE>BinaryBackendEntry entry;<NEW_LINE>if (index.fieldValues() == null && index.elementIds().size() == 0) {<NEW_LINE>entry = this.formatILDeletion(index);<NEW_LINE>} else {<NEW_LINE>Id id = index.id();<NEW_LINE>HugeType type = index.type();<NEW_LINE>byte[] value = ...
.formatIndexName(index), value);
1,817,905
public void onBindViewHolder(@NonNull ViewHolder holder, int position) {<NEW_LINE>ListItem listItem = adapterList.get(position);<NEW_LINE>if (listItem.type == LIST_ITEM_GROUP_END) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Set title<NEW_LINE>holder.title.setText(listItem.getTitle());<NEW_LINE>if (listItem.type == LIST_I...
setOnClickListener(listItem.getOnActionClickListener());
1,390,731
void removeTable(QBNodeComponent selectedNode) {<NEW_LINE>String tableSpec = selectedNode.getTableSpec();<NEW_LINE>// NOI18N<NEW_LINE>Log.getLogger().<MASK><NEW_LINE>// Remove the specified node from the GraphLib scene<NEW_LINE>// First remove all edges<NEW_LINE>Collection edges = _scene.findNodeEdges(selectedNode, tru...
entering("QueryBuilderGraphFrame", "removeTable", tableSpec);
1,709,268
public Completion interpret(ExecutionContext context, boolean debug) {<NEW_LINE>Object exprRef = getRhs(<MASK><NEW_LINE>Object exprValue = getValue(this.rhsGet, context, exprRef);<NEW_LINE>if (exprValue == Types.NULL || exprValue == Types.UNDEFINED) {<NEW_LINE>return (Completion.createNormal());<NEW_LINE>}<NEW_LINE>JSO...
).interpret(context, debug);
88,419
public void addObserver(final ServiceObserverPrx observer, Ice.Current current) {<NEW_LINE>java.util.List<String> activeServices = new java.util.LinkedList<String>();<NEW_LINE>//<NEW_LINE>// Null observers and duplicate registrations are ignored<NEW_LINE>//<NEW_LINE>synchronized (this) {<NEW_LINE>if (observer != null &...
String[0]), _observerCompletedCB);
261,893
public ByQueryResponse byQueryResponse(DeleteByQueryResponse response) {<NEW_LINE>List<ByQueryResponse.Failure> failures = response.failures().stream().map(this::byQueryResponseFailureOf).collect(Collectors.toList());<NEW_LINE>ByQueryResponse.ByQueryResponseBuilder builder = ByQueryResponse.builder();<NEW_LINE>if (resp...
retries().bulk());
370,661
public DataStreamSource build(CDCBuilder cdcBuilder, StreamExecutionEnvironment env, CustomTableEnvironment customTableEnvironment, DataStreamSource<String> dataStreamSource) {<NEW_LINE>final List<Schema> schemaList = config.getSchemaList();<NEW_LINE>final String schemaFieldName = config.getSchemaFieldName();<NEW_LINE>...
rowDataDataStream, table, columnNameList, columnTypeList);
194,893
final DeleteRegistrationCodeResult executeDeleteRegistrationCode(DeleteRegistrationCodeRequest deleteRegistrationCodeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteRegistrationCodeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteRegistrationCode");
277,848
public // submit a topology as a group, containers as apps in the group<NEW_LINE>boolean submitTopology(String appConf) {<NEW_LINE>if (this.isVerbose) {<NEW_LINE>LOG.log(Level.INFO, "Topology conf is: " + appConf);<NEW_LINE>}<NEW_LINE>// Marathon atleast till 1.4.x does not allow upper case jobids<NEW_LINE>if (!this.to...
("token=%s", this.marathonAuthToken));
28,976
/*<NEW_LINE>* We only create cache key (CustomCacheKeyProvider.java) for hashtable login so there is no need to<NEW_LINE>* get the lookup key for userId/pwd and userId only cases.<NEW_LINE>*/<NEW_LINE>private Subject findSubjectBySubjectHashtable(AuthCacheService authCacheService, Subject partialSubject, Authentication...
createLookupKey(getRealm(), userid);
1,606,274
private int consumeOneArgument(ArgSpec argSpec, LookBehind lookBehind, boolean alreadyUnquoted, Range arity, int consumed, String arg, Class<?> type, List<Object> result, int index, String argDescription) {<NEW_LINE>if (!lookBehind.isAttached()) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>String[] values = unquoteAndSplit(ar...
parseResultBuilder.nowProcessing(argSpec, arg);
1,493,348
public static RocksDB openReadOnly(final DBOptions options, final String path, final List<ColumnFamilyDescriptor> columnFamilyDescriptors, final List<ColumnFamilyHandle> columnFamilyHandles) throws RocksDBException {<NEW_LINE>// when non-default Options is used, keeping an Options reference<NEW_LINE>// in RocksDB can p...
long[columnFamilyDescriptors.size()];
1,486,921
private static Set<String> scanBootstrapClasses() throws Exception {<NEW_LINE>int vmVersion = VMUtil.getVmVersion();<NEW_LINE>Set<String> classes = new LinkedHashSet<>(4096, 1F);<NEW_LINE>if (vmVersion < 9) {<NEW_LINE>Method method = ClassLoader.class.getDeclaredMethod("getBootstrapClassPath");<NEW_LINE>method.setAcces...
field.set(dummyLoader, bootstrapClasspath);
1,383,817
// ----------------------------------------------------------------<NEW_LINE>static void doFuzz(String verb, String[] args) {<NEW_LINE>if (args.length < 1) {<NEW_LINE>System.err.printf("%s %s: need number of bits to fuzz.\n", PROGNAME, verb);<NEW_LINE>System.exit(1);<NEW_LINE>}<NEW_LINE>int numErrorBits = 0;<NEW_LINE>t...
args, 1, args.length);
1,810,691
public ApiResponse<SearchFileContents> filesGetRecentWithHttpInfo(Integer pageIndex, Integer pageSize, Integer filter, String sortExpression, Boolean reversed) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'pageIndex' is set<NEW_LINE>if (pageIndex == null) {<NE...
("", "sortExpression", sortExpression));
42,220
private void makePositions() {<NEW_LINE>// Only recalculate if size has changed<NEW_LINE>if (compHeight == getHeight() && compWidth == getWidth()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>compHeight = getHeight();<NEW_LINE>compWidth = getWidth();<NEW_LINE>int cols = COLS;<NEW_LINE>int rows = ROWS;<NEW_LINE>colorsToDraw.c...
new ColorToDraw(c, r));
757,575
public void processParameter(Parameter parameter) {<NEW_LINE>String $ref = parameter.getRef();<NEW_LINE>if ($ref != null) {<NEW_LINE>RefFormat refFormat = computeRefFormat(parameter.getRef());<NEW_LINE>if (isAnExternalRefFormat(refFormat)) {<NEW_LINE>final String newRef = externalRefProcessor.processRefToExternalParame...
processSchema(parameter.getSchema());
146,123
// two-ended bfs<NEW_LINE>public int shortestPathBinaryMatrix(int[][] grid) {<NEW_LINE>// base condition<NEW_LINE>int maxX = grid.length - 1;<NEW_LINE>int maxY = grid[0].length - 1;<NEW_LINE>if (grid[0][0] == 1 || grid[maxX][maxY] == 1)<NEW_LINE>return -1;<NEW_LINE>if (grid.length == 1)<NEW_LINE>return 1;<NEW_LINE>Set<...
+ 1][maxY + 1];
724,553
public CompletableFuture<byte[]> readMemory(Address address, int length) {<NEW_LINE>AddressSpace addressSpace = address.getAddressSpace();<NEW_LINE>if (addressSpace.equals(impl.getAddressSpace("ram"))) {<NEW_LINE>byte[] bytes = new byte[length];<NEW_LINE>Method method = impl.getMethodForAddress(address);<NEW_LINE>if (m...
memoryUpdated(this, address, bytes);
1,560,032
public void renderSVG(Item item, SVGTarget target, PreviewProperties properties) {<NEW_LINE>Node node = (Node) item.getSource();<NEW_LINE>// Params<NEW_LINE>Float x = item.getData(NodeItem.X);<NEW_LINE>Float y = item.getData(NodeItem.Y);<NEW_LINE>Float size = item.getData(NodeItem.SIZE);<NEW_LINE>size /= 2f;<NEW_LINE>C...
item.getData(NodeItem.COLOR);
321,576
public Map<String, Object> doGetUnparseableEvents(String full) {<NEW_LINE>Map<String, Object> <MASK><NEW_LINE>boolean needsDeterminePartitions = false;<NEW_LINE>boolean needsBuildSegments = false;<NEW_LINE>if (full != null) {<NEW_LINE>needsDeterminePartitions = true;<NEW_LINE>needsBuildSegments = true;<NEW_LINE>} else ...
events = new HashMap<>();
1,580,759
public void handleEvent(Event event) {<NEW_LINE>SimpleTextEntryWindow entryWindow = new SimpleTextEntryWindow("max.sr.window.title", "max.sr.window.message");<NEW_LINE><MASK><NEW_LINE>entryWindow.selectPreenteredText(true);<NEW_LINE>entryWindow.prompt(new UIInputReceiverListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LIN...
entryWindow.setPreenteredText(existing, false);
1,145,101
public void saveScreenshot() {<NEW_LINE>// Since ScreenGrabber is initialized before DisplayResolutionDependentFbo (because the latter contains a reference to the former)<NEW_LINE>// on first call on saveScreenshot() displayResolutionDependentFBOs will be null.<NEW_LINE>if (displayResolutionDependentFBOs == null) {<NEW...
saveGamePreviewTask(buffer, width, height);
994,943
final DescribeSecretResult executeDescribeSecret(DescribeSecretRequest describeSecretRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeSecretRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DescribeSecretRequest> request = nu...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,288,666
public void insert(List<String> items) {<NEW_LINE>YAMLValue yamlCompoundValue = argumentsKeyValue.getValue();<NEW_LINE>if (!(yamlCompoundValue instanceof YAMLCompoundValue)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int appendEndOffset = -1;<NEW_LINE>String insertString = null;<NEW_LINE>if (yamlCompoundValue instanceof YA...
StringUtils.join(yamlSequences, eol);
243,461
private static boolean checkFrequencies(List<Integer> seq, int n, double falseNegativeTolerance) {<NEW_LINE>final double avg = (double) seq.size() / n;<NEW_LINE>final int kIndiv = computeDeviationMultiplier(falseNegativeTolerance, n);<NEW_LINE>final double p = 1.0 / n;<NEW_LINE>final double sigmaIndiv = Math.sqrt(seq.s...
(avg - freq) <= kSigmaIndiv);
1,140,565
public static JFreeChart createBubbleChart(String title, String xAxisLabel, String yAxisLabel, XYZDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls) {<NEW_LINE><MASK><NEW_LINE>NumberAxis xAxis = new NumberAxis(xAxisLabel);<NEW_LINE>xAxis.setAutoRangeIncludesZero(false);<NEW_LI...
Args.nullNotPermitted(orientation, "orientation");
1,037,319
// //////////////////////////////////////////////////////////////////////////<NEW_LINE>// Methods //<NEW_LINE>// //////////////////////////////////////////////////////////////////////////<NEW_LINE>Runner newRunner(final GlassFishServer srv, final Command cm...
GlassFishServer.class, Command.class);
267,794
void reset(byte[] bytes, int off, int len) {<NEW_LINE>Objects.checkFromIndexSize(off, len, bytes.length);<NEW_LINE>this.bytes = bytes;<NEW_LINE>this.base = off;<NEW_LINE>this.end = off + len;<NEW_LINE>final int bitsPerOffset;<NEW_LINE>if (len - LAST_LITERALS < 1 << Short.SIZE) {<NEW_LINE>bitsPerOffset = Short.SIZE;<NEW...
Integer.numberOfLeadingZeros(bitsPerOffset - 1);
1,702,870
public Object calculate(Context ctx) {<NEW_LINE>if (left == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("\"|\"" + mm.getMessage("operator.missingLeftOperation"));<NEW_LINE>}<NEW_LINE>if (right == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQ...
left.assign(result, ctx);
838,401
final GetUsageResult executeGetUsage(GetUsageRequest getUsageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getUsageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>R...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,022,836
private String resolveDriver(String dataSourceName, String dbKind, DataSourceJdbcBuildTimeConfig dataSourceJdbcBuildTimeConfig, List<JdbcDriverBuildItem> jdbcDriverBuildItems) {<NEW_LINE>if (dataSourceJdbcBuildTimeConfig.driver.isPresent()) {<NEW_LINE>return dataSourceJdbcBuildTimeConfig.driver.get();<NEW_LINE>}<NEW_LI...
.getDriverXAClass().get();
1,691,421
private String makeSimpleInsert(List<SQLExpr> columns, String[] fields, String table, boolean isAddEncose) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append(LoadData.loadDataHint).append("insert into ").append(table.toUpperCase());<NEW_LINE>if (columns != null && columns.size() > 0) {<NEW_LINE>sb.ap...
column = columns.get(i);
1,489,107
final CreateRelationalDatabaseFromSnapshotResult executeCreateRelationalDatabaseFromSnapshot(CreateRelationalDatabaseFromSnapshotRequest createRelationalDatabaseFromSnapshotRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createRelationalDatabaseFromSnapshotRequest);<NEW_LINE>AWSRequestMet...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
282,882
private ObjectGroup unmarshalObjectGroup(Node t) throws Exception {<NEW_LINE>ObjectGroup og = null;<NEW_LINE>try {<NEW_LINE>og = unmarshalClass(t, ObjectGroup.class);<NEW_LINE>} catch (JAXBException e) {<NEW_LINE>// todo: replace with log message<NEW_LINE>e.printStackTrace();<NEW_LINE>return og;<NEW_LINE>}<NEW_LINE>fin...
getAttribute(t, "x", 0);
523,609
public void testInvokeInlineWithinSameTransactionAndAppContext() throws Exception {<NEW_LINE>ManagedExecutorService executor = InitialContext.doLookup("java:comp/concurrent/remainingcontextunchangedexecutor");<NEW_LINE>long servletThreadId = Thread<MASK><NEW_LINE>Callable<Boolean> task = () -> {<NEW_LINE>boolean inline...
.currentThread().getId();
1,416,291
private void processDiffs(int threadId, StackTraceElement[] oldElements, StackTraceElement[] newElements, long timestamp, long timediff, Thread.State oldState, Thread.State newState) throws IllegalStateException {<NEW_LINE>// just to be sure<NEW_LINE>assert newState != Thread.State.NEW : "Invalid thread state " + newSt...
(Long.valueOf(threadId));
511,323
public BExpressionValue evaluate() throws EvaluationException {<NEW_LINE>try {<NEW_LINE>// An annotation access expression is evaluated by first evaluating expression resulting in a typedesc<NEW_LINE>// value t.<NEW_LINE>// If t has an annotation with the tag referenced by annot-tag-reference, then the result of the<NE...
argTypeNames = new ArrayList<>();
988,552
static int upgradeDbToVersion11(SQLiteDatabase db) {<NEW_LINE>Log.i(DatabaseHelper.LOG_TAG, "Upgrading database to version 9");<NEW_LINE>int oldVersion = 10;<NEW_LINE>db.beginTransaction();<NEW_LINE>try {<NEW_LINE>Cursor cursor = db.query(ScheduledActionEntry.TABLE_NAME, null, ScheduledActionEntry.COLUMN_TYPE + "= ?", ...
{ entry.getKey() });
1,216,249
public void addResourceHandlers(ResourceHandlerRegistry registry) {<NEW_LINE>String[] locations = new String[] { "classpath:/static/" };<NEW_LINE>if (NzbHydra.getDataFolder() != null) {<NEW_LINE>File staticFolderFile = new File(new File(NzbHydra.getDataFolder()).getParentFile(), "static");<NEW_LINE>try {<NEW_LINE>Strin...
: new String[] { "classpath:/static/" };
388,479
private OracleConnectOptions toOracleConnectOptions(DataSourceRuntimeConfig dataSourceRuntimeConfig, DataSourceReactiveRuntimeConfig dataSourceReactiveRuntimeConfig, DataSourceReactiveOracleConfig dataSourceReactiveOracleConfig) {<NEW_LINE>OracleConnectOptions oracleConnectOptions;<NEW_LINE>if (dataSourceReactiveRuntim...
user = credentials.get(USER_PROPERTY_NAME);
860,026
private void sendAndQueueIfNecessary(final ItemWrapper<W> itemWrapper) {<NEW_LINE>final <MASK><NEW_LINE>try {<NEW_LINE>final ProcessResult processResult = itemProcessor.process(itemWrapper.getWorkItem());<NEW_LINE>if (processResult == ProcessResult.SUCCESS) {<NEW_LINE>logAndStatUpdateForSuccess(itemWrapper, () -> TimeD...
Instant processStartTime = Instant.now();
1,327,408
public Request<StartMetricStreamsRequest> marshall(StartMetricStreamsRequest startMetricStreamsRequest) {<NEW_LINE>if (startMetricStreamsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<StartMetricStreamsRequest> request = new DefaultReque...
request.addParameter("Version", "2010-08-01");
1,626,488
protected void updateIndent(int prevMark, int originalOffset, int nodeIndex, TextEditGroup editGroup) {<NEW_LINE>if (prevMark != RewriteEvent.UNCHANGED && prevMark != RewriteEvent.REPLACED)<NEW_LINE>return;<NEW_LINE>// Do not change indent if the previous non removed node is on the same line<NEW_LINE>int previousNonRem...
prevLine = lineInformation.getLineOfOffset(prevEndPosition);
1,462,277
static void runCombinePerKeyExamples(Options options) {<NEW_LINE>Pipeline <MASK><NEW_LINE>// Build the table schema for the output table.<NEW_LINE>List<TableFieldSchema> fields = new ArrayList<>();<NEW_LINE>fields.add(new TableFieldSchema().setName("word").setType("STRING"));<NEW_LINE>fields.add(new TableFieldSchema()....
p = Pipeline.create(options);
971,138
public NotificationRead tryNotification(final Notification notification) {<NEW_LINE>try {<NEW_LINE>final NotificationClient notificationClient = NotificationClient.createNotificationClient(NotificationConverter.toConfig(notification));<NEW_LINE>final String messageFormat = "Hello World! This is a test from Airbyte to t...
).status(StatusEnum.FAILED);
511,417
protected void addEnumConstants(EnumDefinition enumDefinition, JDefinedClass _enum, Schema schema) {<NEW_LINE>JType type = enumDefinition.getBackingType();<NEW_LINE>String nodeName = enumDefinition.getNodeName();<NEW_LINE>JsonNode parentNode = enumDefinition.getEnumNode();<NEW_LINE>for (EnumValueDefinition enumValueDef...
descriptionNode, parentNode, constant, schema);
1,506,607
public Aggregation toDruidAggregation(final PlannerContext plannerContext, final RowSignature rowSignature, final VirtualColumnRegistry virtualColumnRegistry, final RexBuilder rexBuilder, final String name, final AggregateCall aggregateCall, final Project project, final List<Aggregation> existingAggregations, final boo...
toDruidExpressions(plannerContext, rowSignature, rexNodes);
680,446
final ModifyCapacityReservationResult executeModifyCapacityReservation(ModifyCapacityReservationRequest modifyCapacityReservationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyCapacityReservationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
ModifyCapacityReservationResult>(new ModifyCapacityReservationResultStaxUnmarshaller());
1,288,517
public DataType toDataType() throws DuplicateNameException, IOException {<NEW_LINE>Structure structure = new StructureDataType("ext4_inode", 0);<NEW_LINE>structure.add(WORD, "i_mode", null);<NEW_LINE>structure.add(WORD, "i_uid", null);<NEW_LINE>structure.add(DWORD, "i_size_lo", null);<NEW_LINE>structure.add(DWORD, "i_a...
add(DWORD, "i_version_hi", null);
333,565
public void testCaptureDebuggerBreakpointMarkerPlugin() throws Throwable {<NEW_LINE>ListingPanel panel = listing.getListingPanel();<NEW_LINE>mb.createTestModel();<NEW_LINE>modelService.addModel(mb.testModel);<NEW_LINE>mb.createTestProcessesAndThreads();<NEW_LINE>TestDebuggerTargetTraceMapper mapper = new TestDebuggerTa...
Msg.debug(this, "Clicking and capturing");
1,365,220
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>logDebug("onCreate()");<NEW_LINE>requestWindowFeature(Window.FEATURE_NO_TITLE);<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>Display display <MASK><NEW_LINE>outMetrics = new DisplayMetrics();<NEW_LINE>display.getMetrics(outMetrics);<NEW_LINE>dbH = D...
= getWindowManager().getDefaultDisplay();
127,629
private RoaringBitmap compute(long threshold, boolean upper, RoaringBitmap context) {<NEW_LINE>if (context.isEmpty()) {<NEW_LINE>return new RoaringBitmap();<NEW_LINE>}<NEW_LINE>if (Long.numberOfLeadingZeros(threshold) < Long.numberOfLeadingZeros(mask)) {<NEW_LINE>return upper ? RoaringBitmap.bitmapOfRange(0, max) : new...
toAppend.clone() : toAppend);
223,950
private boolean estimateMotion() {<NEW_LINE>CameraModel leftCM = cameraModels.get(CAMERA_LEFT);<NEW_LINE>CameraModel rightCM = cameraModels.get(CAMERA_RIGHT);<NEW_LINE>// Perform motion estimation relative to the most recent key frame<NEW_LINE>previousLeft.frame_to_world.invert(world_to_prev);<NEW_LINE>// Put observati...
l = candidates.get(candidateIdx);
779,780
private void addRelated(Object parent, Map<String, Object> pageModel) {<NEW_LINE>final Node<?> node = _relationships.getRelationships(parent);<NEW_LINE>Map<String, ResourceSchema> relatedResources;<NEW_LINE>Map<String, NamedDataSchema> relatedSchemas;<NEW_LINE>synchronized (this) {<NEW_LINE>relatedResources = _relatedR...
relatedSchemas = _relatedSchemaCache.get(parent);
1,191,834
public void draw(Batch batch, float parentAlpha) {<NEW_LINE>updateImage();<NEW_LINE>Color fontColor;<NEW_LINE>if (isDisabled() && style.disabledFontColor != null)<NEW_LINE>fontColor = style.disabledFontColor;<NEW_LINE>else if (isPressed() && style.downFontColor != null)<NEW_LINE>fontColor = style.downFontColor;<NEW_LIN...
getWidth(), getHeight());
359,192
public List<List<String>> accountsMerge(List<List<String>> accounts) {<NEW_LINE>int n = accounts.size();<NEW_LINE>p = new int[n];<NEW_LINE>for (int i = 0; i < n; ++i) {<NEW_LINE>p[i] = i;<NEW_LINE>}<NEW_LINE>Map<String, Integer> emailId = new HashMap<>();<NEW_LINE>for (int i = 0; i < n; ++i) {<NEW_LINE>List<String> acc...
t = new LinkedList<>();
1,692,806
public static ListDesignResponse unmarshall(ListDesignResponse listDesignResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDesignResponse.setRequestId(_ctx.stringValue("ListDesignResponse.RequestId"));<NEW_LINE>listDesignResponse.setSuccess(_ctx.booleanValue("ListDesignResponse.Success"));<NEW_LINE>listDesignResponse....
(_ctx.stringValue("ListDesignResponse.DesignVersion"));
45,264
protected void onSizeChanged(int w, int h, int oldw, int oldh) {<NEW_LINE>super.onSizeChanged(w, h, oldw, oldh);<NEW_LINE>if (w != oldw || h != oldh) {<NEW_LINE>getGlobalLayoutListener().checkUpdateDimension(w, h, false, false);<NEW_LINE>if (mEngineContext != null) {<NEW_LINE>HippyModuleManager manager = mEngineContext...
, PixelUtil.px2dp(h));
1,126,192
private void muxTrack(MKVMuxerTrack track) {<NEW_LINE>try {<NEW_LINE>track.trackStart = sink.position();<NEW_LINE>EbmlMaster trackEntryElem = (EbmlMaster) createByType(TrackEntry);<NEW_LINE>createLong(trackEntryElem, TrackNumber, track.trackNo);<NEW_LINE>createLong(trackEntryElem, TrackUID, track.trackNo);<NEW_LINE>if ...
trackEntryElem, CodecID, track.codecId);
1,094,772
protected void init() {<NEW_LINE>checkArgument(period >= 1 && period <= 9, "Period must be in the range 1-9");<NEW_LINE><MASK><NEW_LINE>ImmutableSet.Builder<String> domainsNonexistentBuilder = new ImmutableSet.Builder<>();<NEW_LINE>ImmutableSet.Builder<String> domainsDeletingBuilder = new ImmutableSet.Builder<>();<NEW_...
DateTime now = clock.nowUtc();
102,511
final DescribeFargateProfileResult executeDescribeFargateProfile(DescribeFargateProfileRequest describeFargateProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeFargateProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
endClientExecution(awsRequestMetrics, request, response);
1,819,727
public static ListRdsDBInstancesResponse unmarshall(ListRdsDBInstancesResponse listRdsDBInstancesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listRdsDBInstancesResponse.setRequestId(_ctx.stringValue("ListRdsDBInstancesResponse.RequestId"));<NEW_LINE>listRdsDBInstancesResponse.setTotalCount(_ctx.integerValue("ListRdsD...
("ListRdsDBInstancesResponse.RdsInstances[" + i + "].DBInstanceStatus"));
1,474,070
private BucketSet compare(BucketIdFactory factory, IdNode id, LiteralNode literal, String operator) {<NEW_LINE>String field = id.getField();<NEW_LINE>Object value = literal.getValue();<NEW_LINE>if (field == null) {<NEW_LINE>if (value instanceof String) {<NEW_LINE>String name = (String) value;<NEW_LINE>if ((operator.equ...
(new DocumentId(name)));
171,280
public static // FIXME: Proxy could just pass the pk index here which is much faster.<NEW_LINE>long createRowWithPrimaryKey(Table table, long primaryKeyColumnIndex, @Nullable Object primaryKeyValue) {<NEW_LINE>RealmFieldType type = table.getColumnType(primaryKeyColumnIndex);<NEW_LINE>final OsSharedRealm sharedRealm = t...
throw new IllegalArgumentException("Primary key value is not an UUID: " + primaryKeyValue);
1,257,656
public static RequestHeaders toArmeria(ChannelHandlerContext ctx, HttpRequest in, ServerConfig cfg, String scheme) throws URISyntaxException {<NEW_LINE>final String path = in.uri();<NEW_LINE>if (path.charAt(0) != '/' && !"*".equals(path)) {<NEW_LINE>// We support only origin form and asterisk form.<NEW_LINE>throw new U...
(path).scheme(scheme);
1,486,101
// -------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public Trade parseTrade(FpmlDocument document, XmlElement tradeEl) {<NEW_LINE>// supported elements:<NEW_LINE>// 'payerPartyReference'<NEW_LINE>// 'receiverPartyReference'<NEW_LINE>// 'startDate'<NEW_LINE>// 'maturi...
(termEl.getChild("principal"));
299,056
public void run(final Server server, final CommandSource sender, final String commandLabel, final String[] args) throws Exception {<NEW_LINE>if (args.length < 1) {<NEW_LINE>throw new NotEnoughArgumentsException();<NEW_LINE>}<NEW_LINE>String name;<NEW_LINE>try {<NEW_LINE>final User user = getPlayer(server, args, 0, true...
.getDisplayName() : Console.DISPLAY_NAME;
1,714,638
public static void nv21ToBoof(byte[] data, int width, int height, ImageBase output) {<NEW_LINE>if (output instanceof Planar) {<NEW_LINE>Planar pl = (Planar) output;<NEW_LINE>if (pl.getBandType() == GrayU8.class) {<NEW_LINE>ConvertNV21.nv21TPlanarRgb_U8(<MASK><NEW_LINE>} else if (pl.getBandType() == GrayF32.class) {<NEW...
data, width, height, pl);
884,178
AuthResponseMessage makeAuthInitiate(AuthInitiateMessage initiate, ECKey key) {<NEW_LINE>initiatorNonce = initiate.nonce;<NEW_LINE>remotePublicKey = initiate.publicKey;<NEW_LINE>BigInteger secretScalar = remotePublicKey.multiply(key.getPrivKey()).normalize().getXCoord().toBigInteger();<NEW_LINE>byte[] token = ByteUtil....
getSignature(), signed, false);
1,017,945
public void marshall(CreateBranchRequest createBranchRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createBranchRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createBranchRequest.getAppI...
createBranchRequest.getDisplayName(), DISPLAYNAME_BINDING);
1,284,774
public int execute(final String fullCommand, final CommandLine cl, final Shell shellState) throws Exception {<NEW_LINE>List<String> tservers;<NEW_LINE>ManagerMonitorInfo stats;<NEW_LINE>ManagerClientService.Iface client = null;<NEW_LINE>ClientContext context = shellState.getContext();<NEW_LINE>while (true) {<NEW_LINE>t...
tservers = new ArrayList<>();
126,065
/* (non-Javadoc)<NEW_LINE>* @see com.impetus.client.cassandra.index.InvertedIndexHandlerBase#deleteColumn(java.lang.String, java.lang.String, byte[], java.lang.String, org.apache.cassandra.thrift.ConsistencyLevel, byte[])<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected void deleteColumn(String indexColumnFamily, Stri...
log.error("Unable to delete data from inverted index, Caused by: .", e);
1,349,841
private Optional<EventStreamInfo> createEventStreamInfo(Model model, OperationShape operation, StructureShape structure, MemberShape member) {<NEW_LINE>Shape eventStreamTarget = model.expectShape(member.getTarget());<NEW_LINE>// Compute the events of the event stream.<NEW_LINE>Map<String, StructureShape> events = new H...
asStructureShape().get());
622,658
public void marshall(UpdateClusterRequest updateClusterRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateClusterRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocol...
updateClusterRequest.getClusterName(), CLUSTERNAME_BINDING);
1,764,050
public void updateStausIfNeededWhenVoiding(@NonNull final I_C_Flatrate_Term term) {<NEW_LINE>final OrderId <MASK><NEW_LINE>if (orderId == null || !X_C_Flatrate_Term.CONTRACTSTATUS_Voided.equals(term.getContractStatus())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final OrderId parentOrderId = contractOrderService.retrieveL...
orderId = contractOrderService.getContractOrderId(term);
1,679,929
public void pasteClipboard() {<NEW_LINE>// FIXME Maybe move editableProperty to the model..<NEW_LINE>List<TablePosition> selectedCells = cellsView.getSelectionModel().getSelectedCells();<NEW_LINE>if (!isEditable() || selectedCells.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>checkFormat();<NEW_LINE>final Clipboard...
(list.get(0));
263,225
protected String doIt() throws Exception {<NEW_LINE>// TODO Auto-generated method stub<NEW_LINE>log.info("Applying migrations scripts");<NEW_LINE>String sql = "select ad_migrationscript_id, script, name from ad_migrationscript where isApply = 'Y' and status = 'IP' order by name, created";<NEW_LINE>PreparedStatement pst...
sql, this.get_TrxName());
369,530
public MethodInvocation parseAndApplyInvocation(JsonArray rpcCall, ApplicationConnection connection) {<NEW_LINE>ConnectorMap connectorMap = ConnectorMap.get(connection);<NEW_LINE>String connectorId = rpcCall.getString(0);<NEW_LINE>String interfaceName = rpcCall.getString(1);<NEW_LINE>String methodName = rpcCall.getStri...
).invokeJsRpc(invocation, parametersJson);
215,235
int completeInternal(String buffer, int location, List<String> completions) {<NEW_LINE>String truncatedBuffer = buffer.substring(0, location);<NEW_LINE>String[] parsedBuffer = parseCommand(truncatedBuffer);<NEW_LINE>int argumentIndex = parsedBuffer.length - 1;<NEW_LINE>if (argumentIndex < 0 || !truncatedBuffer.endsWith...
length ? parsedBuffer[argumentIndex] : "";
1,155,671
final DeleteContainerServiceResult executeDeleteContainerService(DeleteContainerServiceRequest deleteContainerServiceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteContainerServiceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteContainerService");
172,519
public final <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Record16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> into(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<...
, field14, field15, field16 });
1,373,086
public Set<org.netbeans.modules.csl.api.Modifier> toModifiers() {<NEW_LINE>@SuppressWarnings("SetReplaceableByEnumSet")<NEW_LINE>Set<org.netbeans.modules.csl.api.Modifier> retval = new LinkedHashSet<>();<NEW_LINE>if ((isPublic() || isImplicitPublic()) && !isStatic()) {<NEW_LINE>retval.add(org.netbeans.modules.<MASK><NE...
csl.api.Modifier.PUBLIC);
932,274
public void trigger(CommandContext commandContext, PlanItemInstanceEntity planItemInstance) {<NEW_LINE>if (!PlanItemInstanceState.ACTIVE.equals(planItemInstance.getState())) {<NEW_LINE>throw new FlowableIllegalStateException("Can only trigger a plan item that is in the ACTIVE state");<NEW_LINE>}<NEW_LINE>if (planItemIn...
planItemInstance.getReferenceType() + "' not supported");
1,599,568
protected void jbInit() throws Exception {<NEW_LINE>getContentPane().<MASK><NEW_LINE>JScrollPane dataPane = new JScrollPane();<NEW_LINE>getContentPane().add(dataPane, BorderLayout.CENTER);<NEW_LINE>dataPane.getViewport().add(dataTable, null);<NEW_LINE>AppsAction selectAllAction = new AppsAction(SELECT_ALL, KeyStroke.ge...
add(parameterPanel, BorderLayout.NORTH);
234,769
protected void registerNativeAlpn(SSLEngine engine) {<NEW_LINE>if (isNativeAlpnActive()) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, "registerNativeAlpn entry " + engine);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>String[] protocols = new String[] { h2, h1 };<NEW_LINE><M...
SSLParameters params = engine.getSSLParameters();
53,002
public void marshall(SolutionConfig solutionConfig, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (solutionConfig == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(solutionConfig.getEventValueThreshold(), E...
solutionConfig.getAutoMLConfig(), AUTOMLCONFIG_BINDING);
1,546,073
public static Disposable subscribeChannel(final Context context, final String channelId) {<NEW_LINE>if (channelId != null) {<NEW_LINE>return DatabaseTasks.getChannelInfo(context, channelId, false).observeOn(Schedulers.io()).map(youTubeChannel -> new Pair<>(youTubeChannel, SubscriptionsDb.getSubscriptionsDb().subscribe(...
getSettings().setRefreshSubsFeedFromCache(true);
1,757,494
final StopRxNormInferenceJobResult executeStopRxNormInferenceJob(StopRxNormInferenceJobRequest stopRxNormInferenceJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopRxNormInferenceJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "StopRxNormInferenceJob");
720,650
private static void copyRequiredLibraries(AntProjectHelper h, ReferenceHelper rh, WebProjectCreateData data) throws IOException {<NEW_LINE>if (!h.isSharableProject()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!data.skipTests() && rh.getProjectLibraryManager().getLibrary("junit") == null) {<NEW_LINE>// NOI18N<NEW_LINE>...
().getLibrary("junit_4"));
486,474
protected void writeClassDescriptor(ObjectStreamClass desc) throws IOException {<NEW_LINE>Class<?> cl = desc.forClass();<NEW_LINE>if (ProxyFactory.isProxyClass(cl)) {<NEW_LINE>writeBoolean(true);<NEW_LINE>Class<?> superClass = cl.getSuperclass();<NEW_LINE>Class<?>[] interfaces = cl.getInterfaces();<NEW_LINE>byte[] sign...
String name = superClass.getName();