idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
414,362
private void verifyChangeLog(SchemaChangeLog schemaChangeLog, ChangeSet changeSet, int expectedOrder) {<NEW_LINE>String changeSetId = changeSet.getId();<NEW_LINE>String schemaChangeLogId = schemaChangeLog.getId();<NEW_LINE>if (!changeSetId.equals(schemaChangeLogId)) {<NEW_LINE>throw new IllegalArgumentException("Unexpe...
CheckSum actualCheckSum = schemaChangeLog.getCheckSum();
521,677
public SVD createSVD(final RealMatrix realMat) {<NEW_LINE>Utils.nonNull(realMat, "Cannot perform Spark MLLib SVD on a null matrix.");<NEW_LINE>final RowMatrix mat = SparkConverter.convertRealMatrixToSparkRowMatrix(sc, realMat, NUM_SLICES);<NEW_LINE>// Compute all of the singular values and corresponding singular vector...
] singularValues = s.toArray();
688,795
public String convertToString(Object value) {<NEW_LINE>String result;<NEW_LINE>if (value == null) {<NEW_LINE>result = "NULL";<NEW_LINE>} else {<NEW_LINE>if (value instanceof byte[]) {<NEW_LINE>// P6LogFactory may not be registered<NEW_LINE>P6LogLoadableOptions logOptions = P6LogOptions.getActiveInstance();<NEW_LINE>if ...
()).format(value);
1,223,439
public ValidationErrors validate(ChangeSet changeSet) {<NEW_LINE>//<NEW_LINE>// If no runWith setting then just go back<NEW_LINE>//<NEW_LINE>if (changeSet.getRunWith() == null || changeSet.getRunWith().isEmpty()) {<NEW_LINE>return new ValidationErrors();<NEW_LINE>}<NEW_LINE>//<NEW_LINE>// License check<NEW_LINE>//<NEW_...
> changes = changeSet.getChanges();
1,134,286
public void prepareHandshakeResponse(NettyWebSocketConnection webSocketConnection) {<NEW_LINE><MASK><NEW_LINE>if (getHybiVersion() < MIN_HYBI_VERSION) {<NEW_LINE>res.setStatus(HttpResponseStatus.UPGRADE_REQUIRED);<NEW_LINE>res.setHeader(SEC_WEBSOCKET_VERSION, String.valueOf(MIN_HYBI_VERSION));<NEW_LINE>return;<NEW_LINE...
webSocketConnection.setHybiWebSocketVersion(getHybiVersion());
989,556
public BaseDataSourceParamDTO createDatasourceParamDTO(String connectionJson) {<NEW_LINE>RedshiftConnectionParam connectionParams = (RedshiftConnectionParam) createConnectionParams(connectionJson);<NEW_LINE>String[] hostSeperator = connectionParams.getAddress().split(Constants.DOUBLE_SLASH);<NEW_LINE>String[] hostPortA...
].split(Constants.COMMA);
245,988
public void apply(Skeleton skeleton, float lastTime, float time, @Null Array<Event> events, float alpha, MixBlend blend, MixDirection direction) {<NEW_LINE>Bone bone = skeleton.bones.get(boneIndex);<NEW_LINE>if (!bone.active)<NEW_LINE>return;<NEW_LINE>float[] frames = this.frames;<NEW_LINE>if (time < frames[0]) {<NEW_L...
x = frames[i + VALUE1];
362,890
// obtains the data and calculates the grid of results<NEW_LINE>private static void calculate(CalculationRunner runner) {<NEW_LINE>// the trades that will have measures calculated<NEW_LINE>List<Trade> trades = ImmutableList.of(createTrade1(), createTrade2());<NEW_LINE>// the columns, specifying the measures to be calcu...
tradeReport.writeAsciiTable(System.out);
820,527
public static boolean isWorkDay(Calendar calendar, Sequence offDays) {<NEW_LINE>int week = calendar.get(Calendar.DAY_OF_WEEK);<NEW_LINE>boolean isWorkDay = week != Calendar.SUNDAY && week != Calendar.SATURDAY;<NEW_LINE>if (offDays == null || offDays.length() == 0)<NEW_LINE>return isWorkDay;<NEW_LINE>int year = calendar...
+ mm.getMessage("function.paramTypeError"));
722,120
public void eventPostCommitUpdate(Transaction transaction) throws SevereMessageStoreException {<NEW_LINE>super.eventPostCommitAdd(transaction);<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "eventPostCommitUpdate", transaction);<NEW_LINE>// Remove the current CPS fro...
getMessageProcessorMatching().removePubSubOutputHandlerMatchTarget(_controllableProxySubscription);
1,411,794
private void reset() {<NEW_LINE>if (!project.getProjectDirectoryFile().exists()) {<NEW_LINE>// recently deleted?<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ProjectManager.mutex().readAccess(new Mutex.Action<Void>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Void run() {<NEW_LINE>final ModuleList moduleList;<NEW_LINE>try ...
delegate.addPropertyChangeListener(Evaluator.this);
1,005,545
public DataType toDataType() throws DuplicateNameException, IOException {<NEW_LINE>StructureDataType struct = new StructureDataType(NAME + "_" + cls_def_cnt + "_" + cat_def_cnt + "_", 0);<NEW_LINE><MASK><NEW_LINE>struct.add(DWORD, "sel_ref_cnt", null);<NEW_LINE>struct.add(DWORD, "refs", null);<NEW_LINE>struct.add(WORD,...
struct.setCategoryPath(ObjectiveC1_Constants.CATEGORY_PATH);
201,614
protected void updateToolTipText() {<NEW_LINE>LocalizeValue textValue = myPresentation.getTextValue();<NEW_LINE>LocalizeValue descriptionValue = myPresentation.getDescriptionValue();<NEW_LINE>if (Registry.is("ide.helptooltip.enabled")) {<NEW_LINE>HelpTooltip.dispose(this);<NEW_LINE>if (textValue != LocalizeValue.of() |...
) : textValue.get());
754,158
protected void writeNodeChildren(java.io.Writer out, String nodeName, String namespace, String indent, java.util.Map namespaceMap) throws java.io.IOException {<NEW_LINE>String nextIndent = indent + " ";<NEW_LINE>for (java.util.Iterator it = _MetaElement.iterator(); it.hasNext(); ) {<NEW_LINE>org.netbeans.modules.schema...
writeXML(out, element, false);
730,747
public void withSingleClick() throws IOException {<NEW_LINE>ViewInteraction radioButton = onView(allOf(withId(R.id.radioNewFile), withParent(withId(R.id.radioGroup)), isDisplayed()));<NEW_LINE>radioButton.perform(click());<NEW_LINE>ViewInteraction checkBox = onView(allOf(withId(R.id.checkSingleClick), isDisplayed()));<...
(1, click()));
1,801,883
public void updateProcessOnCalendarChanged(List<String> calendarJobIds, ActionListener<Boolean> updateListener) {<NEW_LINE>ClusterState clusterState = clusterService.state();<NEW_LINE>Set<String> openJobIds = openJobIds(clusterState);<NEW_LINE>if (openJobIds.isEmpty()) {<NEW_LINE><MASK><NEW_LINE>return;<NEW_LINE>}<NEW_...
updateListener.onResponse(Boolean.TRUE);
1,008,203
public void createRecordType(MethodVisitor mv, BRecordType recordType, String typeOwnerClass, String internalName) {<NEW_LINE>// Create the record type<NEW_LINE>mv.visitTypeInsn(NEW, RECORD_TYPE_IMPL);<NEW_LINE>mv.visitInsn(DUP);<NEW_LINE>// Load type name<NEW_LINE>String name = getFullName(recordType);<NEW_LINE>mv.vis...
(packageName, toNameString(recordType));
1,817,536
public static boolean importPrintFormat(File arxml) {<NEW_LINE>PackIn.updateMode = false;<NEW_LINE>PackIn.packageDirectory = arxml.getParentFile().getAbsolutePath();<NEW_LINE>File doc = new File(PackIn.packageDirectory + File.separator + "doc");<NEW_LINE>doc.mkdir();<NEW_LINE>if (DB.isOracle())<NEW_LINE>PackIn.database...
DB.commit(true, trxName);
1,661,667
private void put(final List<ElementSelector> elementSelectors, final T value) {<NEW_LINE>if (elementSelectors.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final ElementSelector elementSelector = elementSelectors.get(0);<NEW_LINE>NodePathValueHolder<T> nodePathValueHolder = valueHolderForElementSelector(elementSele...
, elementSelectors.size()));
289,897
public void cancel(ActionRequest request, ActionResponse response) throws AxelorException {<NEW_LINE>try {<NEW_LINE>Expense expense = request.getContext(<MASK><NEW_LINE>expense = Beans.get(ExpenseRepository.class).find(expense.getId());<NEW_LINE>ExpenseService expenseService = Beans.get(ExpenseService.class);<NEW_LINE>...
).asType(Expense.class);
1,164,510
private JPanel createButtonPanel() {<NEW_LINE>boolean tableEmpty = tableModel.getRowCount() == 0;<NEW_LINE>// $NON-NLS-1$<NEW_LINE>JButton addButton = createButton("add", 'A', ADD_COMMAND, true);<NEW_LINE>// $NON-NLS-1$<NEW_LINE>deleteButton = createButton("delete"<MASK><NEW_LINE>// $NON-NLS-1$<NEW_LINE>JButton loadBut...
, 'D', DELETE_COMMAND, !tableEmpty);
496,370
public void accept(@NonNull final Pair<String, String> t) {<NEW_LINE>final String ref = eval.<MASK><NEW_LINE>if (ref != null) {<NEW_LINE>for (FileObject[] srcRoots : findSourceRoots()) {<NEW_LINE>final FileObject moduleInfo = findModuleInfo(srcRoots);<NEW_LINE>if (moduleInfo != null) {<NEW_LINE>final Set<String> module...
evaluate(t.second());
379,499
public static void dropTempTables(final String endpointId) throws DotDataException {<NEW_LINE>DotConnect dc = new DotConnect();<NEW_LINE>try {<NEW_LINE>IntegrityType[] types = IntegrityType.values();<NEW_LINE>for (IntegrityType integrityType : types) {<NEW_LINE>for (String tempTableName : integrityType.getIntegrityChec...
throw new DotDataException("Error dropping Temp tables", e);
1,579,078
public boolean add(Application appConfig) throws IllegalArgumentException {<NEW_LINE>if (appConfig == null) {<NEW_LINE>throw new IllegalArgumentException("The ApplicationConfig must not be null");<NEW_LINE>}<NEW_LINE>JaxRsRestlet jaxRsRestlet = this.jaxRsRestlet;<NEW_LINE>boolean everythingFine = true;<NEW_LINE>if (jax...
getLogger().warning("No JAX-RS to Restlet adapter available to handle to calls.");
901,665
private ResultImplementation<NBGroupInfo> findDependencyUsageGroups(String groupId, String artifactId, String version, ResultImpl<NBGroupInfo> result, List<RepositoryInfo> repos, final boolean skipUnIndexed) {<NEW_LINE>// tempmaps<NEW_LINE>Map<String, NBGroupInfo> groupMap = new HashMap<String, NBGroupInfo>();<NEW_LINE...
HashMap<String, NBArtifactInfo>();
673,872
public boolean activate(EventBean optionalTriggeringEvent, ContextControllerEndConditionMatchEventProvider endConditionMatchEventProvider, Map<String, Object> optionalTriggeringPattern) {<NEW_LINE>if (patternStopCallback != null) {<NEW_LINE>patternStopCallback.stop();<NEW_LINE>}<NEW_LINE>AgentInstanceContext agentInsta...
Object>emptyMap(), optionalTriggeringEvent);
413,386
public boolean fullyResolvesTo(String key, int depth) {<NEW_LINE>if (depth >= keys.size()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean isLastDepth = depth <MASK><NEW_LINE>String keyAtDepth = keys.get(depth);<NEW_LINE>boolean isGlobstar = keyAtDepth.equals("**");<NEW_LINE>if (!isGlobstar) {<NEW_LINE>boolean mat...
== keys.size() - 1;
1,711,068
// implement RelNode<NEW_LINE>public RelWriter explainTerms(RelWriter pw) {<NEW_LINE>// A little adapter just to get the tuples to come out<NEW_LINE>// with curly brackets instead of square brackets. Plus<NEW_LINE>// more whitespace for readability.<NEW_LINE>RelWriter relWriter = // For rel digest, include the row typ...
", ", "[", "]")));
1,855,085
public static void rotateCCW(GrayF64 image) {<NEW_LINE>if (image.width != image.height)<NEW_LINE>throw new IllegalArgumentException("Image must be square");<NEW_LINE>int w = image.height / 2 + image.height % 2;<NEW_LINE>int h = image.height / 2;<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, h, y0->{<NEW_LINE>...
+ y0 * image.stride + x0;
1,788,864
private <K, V> ConnectionFuture<StatefulRedisConnection<K, V>> connectStandaloneAsync(RedisCodec<K, V> codec, RedisURI redisURI, Duration timeout) {<NEW_LINE>assertNotNull(codec);<NEW_LINE>checkValidRedisURI(redisURI);<NEW_LINE><MASK><NEW_LINE>DefaultEndpoint endpoint = new DefaultEndpoint(getOptions(), getResources())...
logger.debug("Trying to get a Redis connection for: {}", redisURI);
1,788,508
public void onStatChanged(StatChanged statChanged) {<NEW_LINE>Skill skill = statChanged.getSkill();<NEW_LINE>int currentXp = statChanged.getXp();<NEW_LINE>int currentLevel = statChanged.getLevel();<NEW_LINE><MASK><NEW_LINE>XpGlobe cachedGlobe = globeCache[skillIdx];<NEW_LINE>// StatChanged event occurs when stats drain...
int skillIdx = skill.ordinal();
1,223,349
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {<NEW_LINE><MASK><NEW_LINE>int labelY = y + outsideInsets.top;<NEW_LINE>TitledSeparator titledSeparator = getTitledSeparator(c);<NEW_LINE>JLabel label = titledSeparator.getLabel();<NEW_LINE>Dimension labelSize = label.getPreferredSize...
int labelX = x + outsideInsets.left;
348,572
protected CButton createButtonAction(String action, KeyStroke accelerator) {<NEW_LINE>String acceleratorText = "";<NEW_LINE>if (action != null && accelerator != null) {<NEW_LINE>int modifiers = accelerator.getModifiers();<NEW_LINE>if (modifiers >= 0) {<NEW_LINE>acceleratorText = "(" + KeyEvent.getKeyModifiersText(modif...
AppsAction(action, accelerator, false);
1,439,417
public String evaluate(String code, Config scopedParams, ObjectMapper jsonMapper) throws TemplateException {<NEW_LINE>String resultText = null;<NEW_LINE>String checkText = null;<NEW_LINE>TemplateException resultEx = null;<NEW_LINE>Exception checkEx = null;<NEW_LINE>try {<NEW_LINE>resultText = evaluator.<MASK><NEW_LINE>...
evaluate(code, scopedParams, jsonMapper);
1,640,441
public void visit(BLangErrorVariable varNode) {<NEW_LINE>// Create error destruct block stmt.<NEW_LINE>final BLangBlockStmt blockStmt = ASTBuilderUtil.createBlockStmt(varNode.pos);<NEW_LINE>BType errorType = varNode.getBType() == null ? symTable.errorType : varNode.getBType();<NEW_LINE>// Create a simple var for the er...
result = rewrite(blockStmt, env);
731,058
public void run(RegressionEnvironment env) {<NEW_LINE>AtomicInteger milestone = new AtomicInteger();<NEW_LINE>String epl = "@name('s0') select symbol from " + "SupportMarketDataBean#length(10) " + "output every 6 events " + "order by symbol, price";<NEW_LINE>createAndSend(env, epl, milestone);<NEW_LINE>SymbolPricesVolu...
env, spv.symbols, "symbol");
1,427,317
public Set instantiate() throws IOException {<NEW_LINE>// new WebServiceCreator(project, wiz).createLogicalHandler();<NEW_LINE>HandlerCreator creator = CreatorProvider.getHandlerCreator(project, wiz);<NEW_LINE>if (creator != null) {<NEW_LINE>creator.createLogicalHandler();<NEW_LINE>// logging usage of wizard<NEW_LINE>O...
JaxWsUtils.getModuleType(project) + ")";
461,590
final DescribeBudgetNotificationsForAccountResult executeDescribeBudgetNotificationsForAccount(DescribeBudgetNotificationsForAccountRequest describeBudgetNotificationsForAccountRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeBudgetNotificationsForAccountRequest);<NEW_LINE>AWSReque...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
488,323
public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE>org.apache.thrift.TSerializable msg;<NEW_LINE>add_filter_result result = new add_filter_result();<NEW_LINE>if (e instanceof rpc_management_exception) {<NEW_LINE>result.ex = (rpc_management_except...
_LOGGER.error("TApplicationException inside handler", 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...
, member.getTarget()));
1,426,944
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String eplClass = "@public @name('clazz') create inlined_class \"\"\"\n" + "public class MyStateful implements java.io.Serializable {\n" + " private String value = \"X\";\n" <MASK><NEW_LINE>env.compileDeploy(ep...
+ " public String getValue() {return value;}\n" + " public void setValue(String value) {this.value = value;}\n" + "}\n" + "\"\"\"\n";
583,449
protected void internalSetBookieAffinityGroup(BookieAffinityGroupData bookieAffinityGroup) {<NEW_LINE>validateSuperUserAccess();<NEW_LINE>log.info("[{}] Setting bookie-affinity-group {} for namespace {}", clientAppId(), bookieAffinityGroup, this.namespaceName);<NEW_LINE>if (namespaceName.isGlobal()) {<NEW_LINE>// check...
clientAppId(), namespaceName, e);
564,840
public static SectionAnnotator makeAnnotator(@Nonnull DexAnnotator annotator, @Nonnull MapItem mapItem) {<NEW_LINE>return new SectionAnnotator(annotator, mapItem) {<NEW_LINE><NEW_LINE>@Nonnull<NEW_LINE>@Override<NEW_LINE>public String getItemName() {<NEW_LINE>return "method_handle_item";<NEW_LINE>}<NEW_LINE><NEW_LINE>@...
out.annotate(2, "unused");
551,139
private static List<QueryOffsetSummary> queryOffsetSummaries(final KsqlConfig ksqlConfig, final ServiceContext serviceContext, final List<RunningQuery> writeQueries) {<NEW_LINE>final Map<String, Map<TopicPartition, OffsetAndMetadata>> offsetsPerQuery = new HashMap<>(writeQueries.size());<NEW_LINE>final Map<String, Set<...
getTopicClient().listTopicsEndOffsets(allTopics);
1,211,714
public void parseRequest(BackchannelAuthenticationEndpointRequest request) {<NEW_LINE>request.scope = replaceIfNotNull(request.scope, getParameter(OIDCLoginProtocol.SCOPE_PARAM));<NEW_LINE>request.clientNotificationToken = replaceIfNotNull(request.clientNotificationToken, getParameter(CibaGrantType.CLIENT_NOTIFICATION_...
, getIntParameter(CibaGrantType.REQUESTED_EXPIRY));
159,989
static Geometry normalizeResult_(Geometry geomRes, Geometry geom_a, Geometry dummy, char op) {<NEW_LINE>// assert(strchr("-&^|",op) != NULL);<NEW_LINE>Geometry.Type gtRes = geomRes.getType();<NEW_LINE>if (gtRes == Geometry.Type.Envelope) {<NEW_LINE>Polygon poly = new Polygon(geomRes.getDescription());<NEW_LINE>if (!geo...
).getPointByVal(0, pt);
1,327,190
final UpdateUserPoolResult executeUpdateUserPool(UpdateUserPoolRequest updateUserPoolRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateUserPoolRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,698,144
private void paintTicks(Graphics g, int x0, int step, int max) {<NEW_LINE>if (step < 1) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>Font font = g.getFont();<NEW_LINE>// Use a small font<NEW_LINE>g.setFont(font.deriveFont((float) 10));<NEW_LINE>int x;<NEW_LINE>for (x = x0 + step; x < max; x += step) {<NEW_LIN...
int h = progressBar.getHeight();
121,567
protected DBTraceInstruction doCreate(Range<Long> lifespan, Address address, InstructionPrototype prototype, ProcessorContextView context) throws CodeUnitInsertionException, AddressOverflowException {<NEW_LINE>Address endAddress = address.addNoWrap(<MASK><NEW_LINE>AddressRangeImpl createdRange = new AddressRangeImpl(ad...
prototype.getLength() - 1);
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...
, listener.getAndClearIsInvoked()));
1,166,065
private List<NameValueCountPair> groupByApplication(Business business, Predicate predicate) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Read.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Tuple> cq = cb.createQuery(Tuple.class);<NEW_LINE>Ro...
(predicate).groupBy(pathApplication);
123,278
@NotNull<NEW_LINE>public SentryId captureTransaction(@NotNull final SentryTransaction transaction, @Nullable final TraceState traceState, @Nullable final Object hint) {<NEW_LINE>Objects.requireNonNull(transaction, "transaction is required");<NEW_LINE>SentryId sentryId = SentryId.EMPTY_ID;<NEW_LINE>if (!isEnabled()) {<N...
"Transaction %s was dropped due to sampling decision.", transaction.getEventId());
1,564,960
static void c_3() throws Exception {<NEW_LINE>AkSourceBatchOp train_data = new AkSourceBatchOp().setFilePath(DATA_DIR + TRAIN_FILE);<NEW_LINE>AkSourceBatchOp test_data = new AkSourceBatchOp(<MASK><NEW_LINE>NaiveBayesTrainBatchOp trainer = new NaiveBayesTrainBatchOp().setFeatureCols(FEATURE_COL_NAMES).setLabelCol(LABEL_...
).setFilePath(DATA_DIR + TEST_FILE);
1,161,492
public static void vertical(Kernel1D_S32 kernel, GrayS16 input, GrayI16 output, int skip) {<NEW_LINE>final short[] dataSrc = input.data;<NEW_LINE>final short[] dataDst = output.data;<NEW_LINE>final int[] dataKer = kernel.data;<NEW_LINE>final int radius = kernel.getRadius();<NEW_LINE>final int offset = UtilDownConvolve....
+ y * input.stride + x;
1,217,602
private void loadNode1114() throws IOException, SAXException {<NEW_LINE>DataTypeDescriptionTypeNode node = new DataTypeDescriptionTypeNode(this.context, Identifiers.OpcUa_BinarySchema_BuildInfo, new QualifiedName(0, "BuildInfo"), new LocalizedText("en", "BuildInfo"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInte...
.expanded(), true));
407,856
public static void main(String[] args) {<NEW_LINE>final PieChart pieChart = new PieChart();<NEW_LINE>pieChart.setBorder(BorderFactory.createEmptyBorder(5, 20, 5, 20));<NEW_LINE>pieChart.setPreferredSize(new Dimension(300, 200));<NEW_LINE>DynamicPieChartModel pieChartModel = new DynamicPieChartModel();<NEW_LINE>// NOI18...
), e.getY());
1,807,140
private RemoteVersion tryProcessDistance(final HttpURLConnection connection) throws IOException {<NEW_LINE>try (BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) {<NEW_LINE>final JsonObject obj = new Gson().fromJson(reader, JsonObject.class);<NEW_LIN...
("behind_by").getAsInt());
8,619
static char[][] internSimpleNames(char[][] simpleNames, boolean removeWellKnown, boolean doSort) {<NEW_LINE>if (simpleNames == null)<NEW_LINE>return EmptySimpleNames;<NEW_LINE>int length = simpleNames.length;<NEW_LINE>if (length == 0)<NEW_LINE>return EmptySimpleNames;<NEW_LINE>char[][] keepers = new char[length][];<NEW...
sLength < MaxSimpleNames ? sLength : 0];
606,287
public void showTables(UUID roomId) {<NEW_LINE>this.roomId = roomId;<NEW_LINE>UUID chatRoomId = null;<NEW_LINE>if (SessionHandler.getSession() != null) {<NEW_LINE>btnQuickStartDuel.setVisible(SessionHandler.isTestMode());<NEW_LINE>btnQuickStartCommander.setVisible(SessionHandler.isTestMode());<NEW_LINE>btnQuickStartMCT...
setVisible(SessionHandler.isTestMode());
1,288,960
public void updateASI() {<NEW_LINE>final Object sourceModel = getSourceModel();<NEW_LINE>final IAttributeSetInstanceAware asiAware = attributeSetInstanceAwareFactoryService.createOrNull(sourceModel);<NEW_LINE>if (asiAware == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (asiAware.getM_Product_ID() <= 0) {<NEW_LINE>re...
ofRepoId(asiAware.getM_AttributeSetInstance_ID());
1,669,767
protected void configure() {<NEW_LINE>// TODO Add instrumentation to ExecutorService and ThreadFactory<NEW_LINE>final ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(SCHEDULED_THREADS_POOL_SIZE, new ThreadFactoryBuilder().setNameFormat("scheduled-%d").setDaemon(false).setUncaughtExceptionHandler(n...
new Periodicals(scheduler, daemonScheduler));
1,558,010
private VersionOption alignedVersionOption(Library library, Map<String, Library> libraries) {<NEW_LINE>VersionAlignment versionAlignment = library.getVersion().getVersionAlignment();<NEW_LINE>Library alignmentLibrary = libraries.get(versionAlignment.getLibraryName());<NEW_LINE>DependencyVersions dependencyVersions = al...
), module.getName());
193,161
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>if (player == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int xValue = source.getManaCostsToPay().getX();<NEW_LINE>Cards cards = new CardsImpl(player.getLibrary().getTopCards(game, xValue...
getCard(target.getFirstTarget());
333,087
final DeleteAlarmResult executeDeleteAlarm(DeleteAlarmRequest deleteAlarmRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAlarmRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,687,447
public void addCookie(Cookie cookie) {<NEW_LINE>String cookieName = cookie.getName();<NEW_LINE>if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE)) {<NEW_LINE>// 306998.15<NEW_LINE>logger.logp(Level.FINE, CLASS_NAME, "addCookie", "Adding cookie --> " + cookieName, "[" + this + "]")...
(new Throwable(), "addCookie");
387,997
private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String resourceName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
838,156
public JSDynamicObject createPrototype(JSRealm realm, JSFunctionObject constructor) {<NEW_LINE>JSContext ctx = realm.getContext();<NEW_LINE>JSObject prototype = JSObjectUtil.createOrdinaryPrototypeObject(realm);<NEW_LINE>JSObjectUtil.putConstructorProperty(ctx, prototype, constructor);<NEW_LINE>JSObjectUtil.putBuiltinA...
(TemporalDurationPrototypeBuiltins.BUILTINS, MILLISECONDS));
561,777
final LabelParameterVersionResult executeLabelParameterVersion(LabelParameterVersionRequest labelParameterVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(labelParameterVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
(super.beforeMarshalling(labelParameterVersionRequest));
1,194,070
private String initiateMultipartUpload(CopyObjectRequest origReq) {<NEW_LINE>EncryptedInitiateMultipartUploadRequest req = new EncryptedInitiateMultipartUploadRequest(origReq.getDestinationBucketName(), origReq.getDestinationKey()).withCannedACL(origReq.getCannedAccessControlList()).withRequesterPays(origReq.isRequeste...
withObjectLockRetainUntilDate(origReq.getObjectLockRetainUntilDate());
1,179,411
private void removeExpired(EntityManagerContainer emc) throws Exception {<NEW_LINE>EntityManager em = <MASK><NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<String> cq = cb.createQuery(String.class);<NEW_LINE>Root<Bind> root = cq.from(Bind.class);<NEW_LINE>Calendar cal = Calendar.getInstan...
emc.get(Bind.class);
1,761,549
Object readline(VirtualFrame frame, PMMap self, @CachedLibrary("getPosixSupport()") PosixSupportLibrary posixLib, @Cached SequenceStorageNodes.AppendNode appendNode) {<NEW_LINE>// Posix abstraction is leaking here a bit: with read mmapped memory, we'd just read<NEW_LINE>// byte by byte, but that would be very inefficie...
(), buffer.length));
701,014
public static NavigationItem.CategoryNavigationItem convertToCategoryNavigationItem(@NonNull Context context, @NonNull CategoryWithNotesCount counter) {<NEW_LINE>final var res = context.getResources();<NEW_LINE>final var englishRes = getEnglishResources(context);<NEW_LINE>final String category = counter.getCategory().r...
), counter.getCategory());
1,336,926
private boolean processMethod(MethodReader method, CallLocation callLocation, InvokeInstruction invoke) {<NEW_LINE>String name = method.getName();<NEW_LINE>AnnotationReader methodAnnot = method.getAnnotations().get(JSMethod.class.getName());<NEW_LINE>if (methodAnnot != null) {<NEW_LINE>AnnotationValue redefinedMethodNa...
setLocation(invoke.getLocation());
659,301
private static AnnotationOrError findMapKeyAnnotation(Binder binder, Method method) {<NEW_LINE>Annotation foundAnnotation = null;<NEW_LINE>for (Annotation annotation : method.getAnnotations()) {<NEW_LINE>MapKey mapKey = annotation.annotationType().getAnnotation(MapKey.class);<NEW_LINE>if (mapKey != null) {<NEW_LINE>if ...
"Array types are not allowed in a MapKey with unwrapValue=true: %s", annotation.annotationType());
940,276
private boolean handleIndexedAssignment(JCTree.JCAssign tree) {<NEW_LINE>if (!(tree.lhs instanceof JCTree.JCArrayAccess)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>JCTree.JCArrayAccess lhs = (JCTree.JCArrayAccess) tree.lhs;<NEW_LINE>if (_tp.getTypes().isArray(lhs.indexed.type)) {<NEW_LINE>return false;<NEW_LINE>}<NE...
().get(0));
1,022,199
private void registryDefaultService() {<NEW_LINE>registryService.publishService(BizManagerService.class, ArkServiceContainerHolder.getContainer().getService(BizManagerService.class), new ContainerServiceProvider(PriorityOrdered.HIGHEST_PRECEDENCE));<NEW_LINE>registryService.publishService(BizFactoryService.class, ArkSe...
new ContainerServiceProvider(PriorityOrdered.HIGHEST_PRECEDENCE));
789,379
public DataObjectInStore findObject(long objId, DataObjectType type, long dataStoreId, DataStoreRole role, String deployAsIsConfiguration) {<NEW_LINE>DataObjectInStore vo = null;<NEW_LINE>if (role == DataStoreRole.Image || role == DataStoreRole.ImageCache) {<NEW_LINE>switch(type) {<NEW_LINE>case TEMPLATE:<NEW_LINE>vo =...
templateDataStoreDao.findByStoreTemplate(dataStoreId, objId);
550,863
public ServiceStatus update(String userId, String json) {<NEW_LINE>JSONObject jsonObject = JSONObject.parseObject(json);<NEW_LINE>DashboardDatasource datasource = new DashboardDatasource();<NEW_LINE>datasource.setUserId(userId);<NEW_LINE>datasource.setName(jsonObject.getString("name"));<NEW_LINE>datasource.setType(json...
ServiceStatus.Status.Fail, "Duplicated Name!");
174,852
public void run(RegressionEnvironment env) {<NEW_LINE>// test uncorrelated<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String epl = "@Hint('enable_window_subquery_indexshare') @public create window MyWindow#keepall as SupportEventWithManyArray;\n" + "insert into MyWindow select * from SupportEventWith...
0].get("c1"));
475,766
private String sendJson(String topicName, Producer<?, ?> producer, ProducerJsonRecord recordToSend, Boolean isAsync, String recordType, String requestJson) throws InterruptedException, ExecutionException {<NEW_LINE>ProducerRecord record = prepareJsonRecordToSend(<MASK><NEW_LINE>RecordMetadata metadata;<NEW_LINE>if (Boo...
topicName, recordToSend, recordType, requestJson);
1,280,292
public static void main(String[] args) {<NEW_LINE>Random rand = new Random(2342);<NEW_LINE>double[] data = new double[5000];<NEW_LINE>for (int i = 0; i < data.length; i++) {<NEW_LINE>data[i] = rand.nextDouble() * 100;<NEW_LINE>}<NEW_LINE>ListAccess list = new ListAccess(data);<NEW_LINE>ArrayAccess array = new ArrayAcce...
println("fast.ret = " + fastQueue.ret);
1,184,170
private Mono<PagedResponse<VirtualNetworkInner>> listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<N...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
115,286
private String addExtensions(SrcClass extendedClass, DiagnosticListener<JavaFileObject> errorHandler) {<NEW_LINE>boolean methodExtensions = false;<NEW_LINE>boolean interfaceExtensions = false;<NEW_LINE>boolean annotationExtensions = false;<NEW_LINE>Set<MASK><NEW_LINE>_model.pushProcessing(_fqn);<NEW_LINE>try {<NEW_LINE...
<String> allExtensions = findAllExtensions();
1,052,187
public void loadReplicationStrategy(Properties ctx) {<NEW_LINE>MReplicationStrategy.getByOrgAndRole(ctx, orgId, roleId, null).stream().filter(replicationStrategy -> replicationStrategy != null).forEach(replicationStrategy -> {<NEW_LINE>for (X_AD_ReplicationTable rplTable : replicationStrategy.getReplicationTables()) {<...
), rplDocument.getAD_Table_ID());
509,043
public Frame grab() throws Exception {<NEW_LINE>device.wait_for_frames();<NEW_LINE>// frameNumber++;<NEW_LINE>// For Framegrabber<NEW_LINE>if (colorEnabled && behaveAsColorFrameGrabber) {<NEW_LINE>IplImage image = grabVideo();<NEW_LINE>if (returnImage == null) {<NEW_LINE>int deviceWidth = device.get_stream_width(RealSe...
converter.convert(grabIR());
1,765,860
private void sendSentryReport(Report report) {<NEW_LINE>SentryEvent event = new SentryEvent();<NEW_LINE>event.setLevel(SentryLevel.ERROR);<NEW_LINE>event.setRelease(report.getVersion());<NEW_LINE>event.setServerName("Gephi Desktop");<NEW_LINE>event.setExtra("OS", report.getOs());<NEW_LINE>event.setExtra("Heap memory us...
"Non heap memory usage", report.getNonHeapMemoryUsage());
857,537
private void updateLockMetrics() {<NEW_LINE>LockStats.getGlobal().getLockMetricsByPath().forEach((lockPath, lockMetrics) -> {<NEW_LINE>Metric.Context context = getContext(Map.of("lockPath", lockPath));<NEW_LINE>LatencyMetrics acquireLatencyMetrics = lockMetrics.getAndResetAcquireLatencyMetrics();<NEW_LINE>setNonZero("l...
lockMetrics.getAndResetDeadlockCount(), context);
94,715
public YoBitOrderBooksReturn deserialize(JsonParser p, DeserializationContext ctxt) throws IOException {<NEW_LINE>JsonNode node = p.readValueAsTree();<NEW_LINE>Map<String, YoBitOrderBook> tickers = new HashMap<>();<NEW_LINE>if (node.isObject()) {<NEW_LINE>Iterator<Map.Entry<String, JsonNode><MASK><NEW_LINE>while (price...
> priceEntryIter = node.fields();
358,920
public int advance(int target) throws IOException {<NEW_LINE>if (target > nextSkipDoc) {<NEW_LINE>if (skipper == null) {<NEW_LINE>// Lazy init: first time this enum has ever been used for skipping<NEW_LINE>skipper = new Lucene90SkipReader(docIn.clone(), MAX_SKIP_LEVELS, true, indexHasOffsets, indexHasPayloads);<NEW_LIN...
skipper.skipTo(target) + 1;
1,568,157
public void print() {<NEW_LINE>super.print();<NEW_LINE>StringBuilder str = new StringBuilder();<NEW_LINE>str.append("unpSize: " + getUnpSize());<NEW_LINE>str.append("\nHostOS: " + hostOS.name());<NEW_LINE>str.append("\nMDate: " + mTime);<NEW_LINE>str.append("\nFileName: " + getFileNameString());<NEW_LINE>str.append("\n...
append("\nisSplitafter: " + isSplitAfter());
978,437
protected AuthenticationDetails loginInternal(Credentials credentials) throws LoginException {<NEW_LINE>Class<? extends Credentials<MASK><NEW_LINE>AuthenticationDetails details = null;<NEW_LINE>try {<NEW_LINE>publishBeforeLoginEvent(credentials);<NEW_LINE>List<LoginProvider> providers = getProviders();<NEW_LINE>for (Lo...
> credentialsClass = credentials.getClass();
395,076
public static DescribeDBInstancesResponse unmarshall(DescribeDBInstancesResponse describeDBInstancesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDBInstancesResponse.setRequestId(_ctx.stringValue("DescribeDBInstancesResponse.RequestId"));<NEW_LINE>describeDBInstancesResponse.setPageNumber(_ctx.integerValue("De...
("DescribeDBInstancesResponse.Items[" + i + "].Category"));
672,590
public void square(double x0, double y0, double width0, double thickness) {<NEW_LINE>int X0 = borderPixels + (int) (x0 + 0.5);<NEW_LINE>int Y0 = borderPixels + (int) (y0 + 0.5);<NEW_LINE>int WIDTH = (int) (width0 + 0.5);<NEW_LINE>int THICKNESS = (int) (thickness + 0.5);<NEW_LINE>ImageMiscOps.fillRectangle(gray, drawCol...
THICKNESS, WIDTH - THICKNESS * 2);
1,015,406
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {<NEW_LINE>int horzPadding = getPaddingLeft() + getPaddingRight();<NEW_LINE>int vertPadding = getPaddingTop() + getPaddingBottom();<NEW_LINE>int childWidthMSpec, childHeightMSpec;<NEW_LINE>if (isChildRotated()) {<NEW_LINE>// Swap both measure specs, ...
maxChildWidth, child.getMeasuredWidth());
1,172,068
public void onStateChanged(StateChangeEvent stateChangeEvent) {<NEW_LINE>super.onStateChanged(stateChangeEvent);<NEW_LINE>if (null != getState().errorMessage) {<NEW_LINE>getWidget().setAriaInvalid(true);<NEW_LINE>if (getWidget().errorIndicatorElement == null) {<NEW_LINE>getWidget()<MASK><NEW_LINE>getWidget().errorIndic...
.errorIndicatorElement = DOM.createSpan();
1,555,028
public /*private final String SEPARATOR = ",";<NEW_LINE>private final String END_OF_LINE = "\n";<NEW_LINE><NEW_LINE><NEW_LINE>private String convertResponsesToCommaDelimited(List<Object[]> guestbookResponses) {<NEW_LINE><NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("Guestbook, Dataset, Date, Type...
? "" : array[8]);
748,418
default void validateTypeAndInterfaces(Object value, List<String> parentPath, String key, boolean strict) {<NEW_LINE>Class<?> cls = value.getClass();<NEW_LINE>if (!getType().isAssignableFrom(cls)) {<NEW_LINE>String path = key == null ? null : PathUtils.toString(PathUtils.extend(parentPath, key));<NEW_LINE>String msg = ...
+ " does not implement required interface " + iface + " of schema " + this;
491,414
ActionResult<List<Wo>> execute(EffectivePerson effectivePerson, String shareId, String folderId) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<List<Wo>> result = new ActionResult<>();<NEW_LINE>Business business = new Business(emc...
collect(Collectors.toList());
400,578
public static void main(String... args) throws LineUnavailableException {<NEW_LINE>AudioGenerator generator = new AudioGenerator(1024, 0);<NEW_LINE>generator.addAudioProcessor(new NoiseGenerator(0.2));<NEW_LINE>generator.addAudioProcessor(new LowPassFS(1000, 44100));<NEW_LINE>generator.addAudioProcessor(new LowPassFS(1...
new SineGenerator(0.01, 2460));
536,620
private boolean replaceJavaFunctionPointerInvoke(GraphBuilderContext b, ResolvedJavaMethod method, ValueNode[] args) {<NEW_LINE>if (!functionPointerType.isAssignableFrom(method.getDeclaringClass())) {<NEW_LINE>throw UserError.abort(new CInterfaceError("Function pointer invocation method " + method.format("%H.%n(%p)") +...
args, 1, args.length);