idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,451,516
protected int encodeLine(Message message, ByteBuf buf, char type, Policy policy) {<NEW_LINE>BufferHelper helper = m_bufferHelper;<NEW_LINE>int count = 0;<NEW_LINE>count += helper.write(buf, (byte) type);<NEW_LINE>if (type == 'T' && message instanceof Transaction) {<NEW_LINE>long duration = ((Transaction) message).getDu...
helper.write(buf, TAB);
1,266,478
void showCard(final MainFrame.BugCard card, final Cursor cursor, final Window window) {<NEW_LINE>Runnable doRun = () -> {<NEW_LINE>mainFrame.enableRecentMenu(card == MainFrame.BugCard.TREECARD);<NEW_LINE>getTableheader().setReorderingAllowed(card == MainFrame.BugCard.TREECARD);<NEW_LINE>mainFrame.getMainFrameMenu().ena...
card == MainFrame.BugCard.TREECARD);
503,314
private Node findPathPlain(FileObject fo, FileObject groupRoot, Node rootNode) {<NEW_LINE>FileObject folder = fo.isFolder() ? fo : fo.getParent();<NEW_LINE>String relPath = FileUtil.getRelativePath(groupRoot, folder);<NEW_LINE>List<String> path <MASK><NEW_LINE>// NOI18N<NEW_LINE>StringTokenizer strtok = new StringToken...
= new ArrayList<String>();
1,726,756
public LogEvent toLogEvent(LoggingEvent loggingEvent) {<NEW_LINE>LogEvent answer = new LogEvent();<NEW_LINE>answer.setClassName(loggingEvent.getLoggerName());<NEW_LINE>ThrowableProxy throwable = (ThrowableProxy) loggingEvent.getThrowableProxy();<NEW_LINE>if (throwable != null) {<NEW_LINE>ThrowableFormatter formatter = ...
Level level = loggingEvent.getLevel();
821,223
private void cftb040(float[] a, int offa) {<NEW_LINE>float x0r, x0i, x1r, x1i, x2r, x2i, x3r, x3i;<NEW_LINE>x0r = a[offa] + a[offa + 4];<NEW_LINE>x0i = a[offa + 1] + a[offa + 5];<NEW_LINE>x1r = a[offa] - a[offa + 4];<NEW_LINE>x1i = a[offa + 1] - a[offa + 5];<NEW_LINE>x2r = a[offa + 2] + a[offa + 6];<NEW_LINE>x2i = a[of...
offa + 3] = x1i - x3r;
427,327
private static void saveColorAndOrder(List allNodeFigures, XMLBuilder xml, NodePart nodePart) throws IOException {<NEW_LINE>if (nodePart != null) {<NEW_LINE>xml.addAttribute(ATTR_ORDER, allNodeFigures.indexOf(nodePart.getFigure()));<NEW_LINE>if (nodePart.getCustomTransparency()) {<NEW_LINE>xml.addAttribute(ATTR_TRANSPA...
ERDUIConstants.COLOR_ERD_NOTE_FOREGROUND : ERDUIConstants.COLOR_ERD_ENTITY_NAME_FOREGROUND);
329,022
public boolean updateBounds(int lb, int ub, ICause cause) throws ContradictionException {<NEW_LINE>assert cause != null;<NEW_LINE>int olb = this.getLB();<NEW_LINE>int oub = this.getUB();<NEW_LINE>boolean hasChanged = false;<NEW_LINE>if (olb < lb || oub > ub) {<NEW_LINE>IntEventType e = null;<NEW_LINE>if (olb < lb) {<NE...
= e == null ? DECUPP : BOUND;
467,588
public void actionPerformed(AnActionEvent e) {<NEW_LINE>DataContext dataContext = e.getDataContext();<NEW_LINE>final Project project = <MASK><NEW_LINE>final Module module = e.getData(LangDataKeys.MODULE);<NEW_LINE>if (project == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>AnalysisScope scope = getInspectionScope(dataC...
e.getData(CommonDataKeys.PROJECT);
1,043,138
public Module createFixed(Manifest mani, Object history, ClassLoader loader, boolean autoload, boolean eager) throws InvalidException, DuplicateException {<NEW_LINE>assertWritable();<NEW_LINE>// NOI18N<NEW_LINE>if (mani == null || loader == null)<NEW_LINE>throw new IllegalArgumentException("null manifest or loader");<N...
= new ArrayList<>(oldMods);
1,513,673
public void init(String host, int port) {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled()) {<NEW_LINE>c_logger.traceEntry(this, "init", host, port);<NEW_LINE>}<NEW_LINE>_port = port;<NEW_LINE>_isAnyHost = host.equals(ANY_HOST);<NEW_LINE>if (!_isAnyHost && (host.endsWith(ANY_HOST) || host.startsWith(ANY_HOST))) {<NEW_LI...
_inetAddress = InetAddress.getByName(host);
1,026,882
public void marshall(FilterCriteria filterCriteria, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (filterCriteria == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(filterCriteria.getAwsAccountId(), AWSACCOU...
filterCriteria.getVulnerabilityId(), VULNERABILITYID_BINDING);
956,985
public static Number numeric(final byte[] bytes, final int pos) {<NEW_LINE>short sign = readShort2(bytes, pos + 4);<NEW_LINE>short scale = readShort2(bytes, pos + 6);<NEW_LINE>validator(sign, scale);<NEW_LINE>if (sign == NUMERIC_NAN) {<NEW_LINE>return Double.NaN;<NEW_LINE>}<NEW_LINE>short <MASK><NEW_LINE>if (len == 0) ...
len = readShort2(bytes, pos);
1,341,455
public BeanDefinition parse(Element element, ParserContext context) {<NEW_LINE>context.pushContainingComponent(new CompositeComponentDefinition(element.getTagName(), context.extractSource(element)));<NEW_LINE>RuntimeBeanReference pathMatcherRef = null;<NEW_LINE>if (element.hasAttribute("path-matcher")) {<NEW_LINE>pathM...
new BeanComponentDefinition(mappedInterceptorDef, beanName));
11,652
private RefactoringStatus checkConflictingTypes(IProgressMonitor pm) throws CoreException {<NEW_LINE>RefactoringStatus result = new RefactoringStatus();<NEW_LINE>IJavaSearchScope scope = RefactoringScopeFactory.create(fType);<NEW_LINE>SearchPattern pattern = SearchPattern.createPattern(getNewElementName(), IJavaSearchC...
conflicts = getIntersection(cusWithReferencesToRenamedType, cusWithReferencesToConflictingTypes);
1,117,818
public static CodegenExpression codegen(PointIntersectsRectangleForge forge, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) {<NEW_LINE>CodegenMethod methodNode = codegenMethodScope.makeChild(EPTypePremade.BOOLEANBOXED.getEPType(), SettingsApplicationDotMet...
widthEval, methodNode, exprSymbol, codegenClassScope);
1,688,599
public ShortestPathAStar compute(final long startNode, final long goalNode, final String propertyKeyLat, final String propertyKeyLon, final Direction direction) {<NEW_LINE>reset();<NEW_LINE>final int startNodeInternal = graph.toMappedNodeId(startNode);<NEW_LINE>final double startNodeLat = getNodeCoordinate(startNodeInt...
openNodes.add(startNodeInternal, 0.0);
1,843,035
protected Object computeValueAt(int row, int col) {<NEW_LINE>int index = ((Integer) filteredToFullIndexes.get(row)).intValue();<NEW_LINE>switch(col) {<NEW_LINE>case 0:<NEW_LINE>return sortedClassNames[index];<NEW_LINE>case 1:<NEW_LINE>// return new Long(totalAllocObjectsSize[index]);<NEW_LINE>return (nTotalBytes == 0) ...
(double) nTotalBytes)) + ")";
655,852
CompletableFuture<Void> completeJob(MasterContext masterContext, Throwable error, long completionTime) {<NEW_LINE>return submitToCoordinatorThread(() -> {<NEW_LINE>// the order of operations is important.<NEW_LINE>List<RawJobMetrics> jobMetrics = masterContext.jobConfig().isStoreMetricsAfterJobCompletion() ? masterCont...
(existing.executionId()));
307,294
protected void onActivityResult(int requestCode, int resultCode, Intent data) {<NEW_LINE>// todo make sure delayed init has finished (ev mit countdownlatch)<NEW_LINE>switch(requestCode) {<NEW_LINE>case IMPORT_WORDLIST:<NEW_LINE>if (resultCode != RESULT_OK) {<NEW_LINE>// user cancelled the import, so just ask what he wa...
callMe(this, onTheFlyAccount, true);
783,428
public void computeBounds(JTextPane textPane, BoundsTranslator translator) {<NEW_LINE>Rectangle tpBounds = textPane.getBounds();<NEW_LINE>TextUI tui = textPane.getUI();<NEW_LINE>this.bounds = new Rectangle();<NEW_LINE>try {<NEW_LINE>Rectangle startr = tui.modelToView(textPane, docstart, Position.Bias.Forward).getBounds...
.getIcon().getIconWidth();
1,249,338
private ConstraintExpr compileBasic(String str, Map<String, ConstraintExpr> context) {<NEW_LINE>if (str.contains("||")) {<NEW_LINE>String[] bits = str.split("\\|\\|");<NEW_LINE>return (new ConstraintExprOr(compile(bits, context)));<NEW_LINE>} else if (str.contains("&&")) {<NEW_LINE>String[] bits = str.split("&&");<NEW_...
val = context.get(str);
728,741
private Optional<I_MKTG_ContactPerson> loadRecordIfPossible(@NonNull final ContactPerson contactPerson) {<NEW_LINE>final IQueryBL queryBL = Services.get(IQueryBL.class);<NEW_LINE>I_MKTG_ContactPerson contactPersonRecord = null;<NEW_LINE>if (contactPerson.getContactPersonId() != null) {<NEW_LINE>final ContactPersonId co...
UserId userId = contactPerson.getUserId();
865,206
private static Token<JavaTokenId> findIdentifierSpanImpl(CompilationInfo info, MemberReferenceTree tree, CompilationUnitTree cu, SourcePositions positions) {<NEW_LINE>int start = (int) positions.getStartPosition(cu, tree);<NEW_LINE>int endPosition = (int) positions.getEndPosition(cu, tree);<NEW_LINE>if (start == (-1) |...
> th = info.getTokenHierarchy();
1,623,546
public Animator createAnimator(final ViewGroup sceneRoot, TransitionValues startValues, TransitionValues endValues) {<NEW_LINE>Animator animator = super.createAnimator(sceneRoot, startValues, endValues);<NEW_LINE>animator.addListener(new AnimatorListenerAdapter() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onAn...
separatorLine.setVisibility(View.VISIBLE);
1,045,801
public static void serialize(final LocalDate value, final JsonWriter sw) {<NEW_LINE>final int year = value.getYear();<NEW_LINE>if (year < 0) {<NEW_LINE>throw new SerializationException("Negative dates are not supported.");<NEW_LINE>} else if (year > 9999) {<NEW_LINE>sw.writeByte(JsonWriter.QUOTE);<NEW_LINE>NumberConver...
.writeByte((byte) '-');
1,663,013
protected Invoice createDummyInInvoice(StockMove stockMove) {<NEW_LINE>Invoice dummyInvoice = new Invoice();<NEW_LINE>if (stockMove.getOriginId() != null && StockMoveRepository.ORIGIN_PURCHASE_ORDER.equals(stockMove.getOriginTypeSelect())) {<NEW_LINE>PurchaseOrder purchaseOrder = purchaseOrderRepository.find(stockMove....
getCompany().getCurrency());
1,853,066
public static void showEditInstance(final MapObject mapObject, final AppCompatActivity activity) {<NEW_LINE>final OsmEditingPlugin plugin = OsmandPlugin.getPlugin(OsmEditingPlugin.class);<NEW_LINE>if (plugin == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final OsmandApplication app = ((OsmandApplication) activity.getA...
() : plugin.getPoiModificationLocalUtil();
1,693,240
private String generateKey() {<NEW_LINE>int spaces = getRandom().nextInt(12) + 1;<NEW_LINE>int max = (int) (MAX / spaces);<NEW_LINE>max = Math.abs(max);<NEW_LINE>if (max == Integer.MIN_VALUE) {<NEW_LINE>max = Integer.MAX_VALUE;<NEW_LINE>}<NEW_LINE>int num = getRandom().nextInt(max) + 1;<NEW_LINE>long prod = num * space...
).nextInt(12) + 1;
497,549
public boolean hasNext() {<NEW_LINE>RestrictedMapRDBSubScanSpec rss = ((RestrictedMapRDBSubScanSpec) this.subScanSpec);<NEW_LINE>RowKeyJoin rjBatch = rss.getJoinForSubScan();<NEW_LINE>if (rjBatch == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean hasMore = false;<NEW_LINE>AbstractRecordBatch.BatchState state...
.getJoinForSubScan().getRowKeyJoinState();
848,763
private void onAttachWithReactContext() {<NEW_LINE>Log.d(TAG, "onCreateWithReactContext");<NEW_LINE>if (getView() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>loadingView.setVisibility(View.GONE);<NEW_LINE>if (!isSuccessfullyInitialized()) {<NEW_LINE>// TODO(lmr): should we make this configurable?<NEW_LINE>// ReactN...
(ReactRootView) reactViewStub.inflate();
1,011,004
public void fieldEofResponse(byte[] headerNull, List<byte[]> fieldsNull, List<FieldPacket> fieldPackets, byte[] eofNull, boolean isLeft, @NotNull AbstractService service) {<NEW_LINE>managerSession.setHandlerStart(this);<NEW_LINE>if (terminate.get()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>lock.lock();<NEW_LINE>try {<NEW...
source.getService(), true);
1,779,868
public CreateBackendAuthMFAConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateBackendAuthMFAConfig createBackendAuthMFAConfig = new CreateBackendAuthMFAConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentEleme...
().unmarshall(context));
1,380,187
MemorySessionStore.Session createSession(String uid, String clientId, ClientSession clientSession, int platform) {<NEW_LINE>Connection connection = null;<NEW_LINE>PreparedStatement statement = null;<NEW_LINE>LOG.info("Database create session {},{}", uid, clientId);<NEW_LINE>try {<NEW_LINE>connection = DBUtil.getConnect...
statement = connection.prepareStatement(sql);
306,492
static void addBuiltinConversions(BindInfo bi, Map<String, BIConversion> m) {<NEW_LINE>add(m, new BIUserConversion(bi, parse("<conversion name='boolean' type='java.lang.Boolean' parse='getBoolean' />")));<NEW_LINE>add(m, new BIUserConversion(bi, parse("<conversion name='byte' type='java.lang.Byte' parse='parseByte' />"...
bi, parse("<conversion name='double' type='java.lang.Double' parse='parseDouble' />")));
842,959
private JSONObject decode17(ByteBuffer buf) {<NEW_LINE>JSONObject m = new JSONObject();<NEW_LINE>while (buf.position() < buf.array().length) {<NEW_LINE>long tl = uint32(buf);<NEW_LINE>int t = (int) (tl >>> 3);<NEW_LINE>switch(t) {<NEW_LINE>case 1:<NEW_LINE>m.put("AAA311", uint32(buf));<NEW_LINE>break;<NEW_LINE>case 2:<...
("AAA303", uint64(buf));
1,561,809
public void open(String indexPath, String dirImpl, boolean readOnly, boolean useCompound, boolean keepAllCommits) {<NEW_LINE>Objects.requireNonNull(indexPath);<NEW_LINE>if (indexOpened()) {<NEW_LINE>close();<NEW_LINE>}<NEW_LINE>IndexReader reader;<NEW_LINE>try {<NEW_LINE>reader = <MASK><NEW_LINE>} catch (NoSuchFileExce...
IndexUtils.openIndex(indexPath, dirImpl);
1,841,417
long doBackOff(long maxSleepMs) {<NEW_LINE>long sleep = 0;<NEW_LINE>long v = expo(base, cap, attempts);<NEW_LINE>switch(strategy) {<NEW_LINE>case NoJitter:<NEW_LINE>sleep = v;<NEW_LINE>break;<NEW_LINE>case FullJitter:<NEW_LINE>sleep = ThreadLocalRandom.current().nextLong(v);<NEW_LINE>break;<NEW_LINE>case EqualJitter:<N...
).nextLong(v / 2);
905,790
private static SettingsDBAdapter upgrade(DBHandle dbHandle, SettingsDBAdapter oldAdapter, AddressMap addrMap, TaskMonitor monitor) throws VersionException, IOException, CancelledException {<NEW_LINE>String tableName = oldAdapter.getTableName();<NEW_LINE>monitor.setMessage("Upgrading " + tableName + "...");<NEW_LINE>mon...
DBRecord rec = iter.next();
104,362
private static void configureServiceClass(GetSCU main, CommandLine cl) throws Exception {<NEW_LINE>main.setInformationModel(informationModelOf(cl), CLIUtils.transferSyntaxesOf(cl), cl.hasOption("relational"));<NEW_LINE>String[] pcs = cl.getOptionValues("store-tc");<NEW_LINE>if (pcs != null)<NEW_LINE>for (String pc : pc...
> entrySet = p.entrySet();
594,719
public void postBundlesIdShare(Integer id, IdShareBody body) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'id' is set<NEW_LINE>if (id == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'id' when calling postBundlesIdShare");<NEW_LI...
localVarAuthNames = new String[] {};
849,737
final DeregisterMailDomainResult executeDeregisterMailDomain(DeregisterMailDomainRequest deregisterMailDomainRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deregisterMailDomainRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
529,831
public void onEvictInvalidateHash(long hash, Chain evictedChain) {<NEW_LINE>EvictionOutcome result = EvictionOutcome.SUCCESS;<NEW_LINE>clusteredStore.evictionObserver.begin();<NEW_LINE>if (clusteredStore.invalidationValve != null) {<NEW_LINE>try {<NEW_LINE>LOGGER.debug("CLIENT: calling invalidation valve for hash {}", ...
K key = entry.getKey();
220,863
private void renderMultipleBuildExceptions(MultipleBuildFailures failure) {<NEW_LINE>String message = failure.getMessage();<NEW_LINE>List<? extends Throwable> flattenedFailures = failure.getCauses();<NEW_LINE>StyledTextOutput output = textOutputFactory.create(BuildExceptionReporter.class, LogLevel.ERROR);<NEW_LINE>outp...
cause = flattenedFailures.get(i);
535,424
static HashMap<Integer, ArrayList<IhcEnumValue>> parseProject(Document doc, String dumpResourcesToFile) {<NEW_LINE>logger.debug("Parsing project file...");<NEW_LINE>HashMap<Integer, ArrayList<IhcEnumValue>> enumDictionary = new HashMap<Integer, ArrayList<IhcEnumValue>>();<NEW_LINE>NodeList nodes = doc.getElementsByTagN...
Element) nodes.item(i);
861,490
private void addScript(final File file, final boolean doSelect) throws IOException {<NEW_LINE>// Try to select an existing tab, if possible<NEW_LINE>for (ScriptTab tab : listScripts.getItems()) {<NEW_LINE>if (file.equals(tab.getFile())) {<NEW_LINE>if (doSelect)<NEW_LINE>listScripts.getSelectionModel().select(tab);<NEW_...
, n) -> updateCutCopyActionState());
374,935
public void run() {<NEW_LINE>boolean noAnnotations <MASK><NEW_LINE>while (this.processingThread != null) {<NEW_LINE>this.unitToProcess = null;<NEW_LINE>int index = -1;<NEW_LINE>boolean cleanup = noAnnotations || this.compiler.shouldCleanup(this.unitIndex);<NEW_LINE>try {<NEW_LINE>synchronized (this) {<NEW_LINE>if (this...
= this.compiler.annotationProcessorManager == null;
29,506
public void init_encode_frame_mb_context(Compressor cpi) {<NEW_LINE>mb_activity_ptr = cpi.mb_activity_map.shallowCopy();<NEW_LINE>act_zbin_adj = 0;<NEW_LINE>partition_info = pi.shallowCopy();<NEW_LINE>src = cpi.sourceYV12.shallowCopy();<NEW_LINE>vp8_build_block_offsets();<NEW_LINE>mvc = cpi.common.fc.mvc;<NEW_LINE>if (...
cpi.prob_intra_coded, 1, 255);
1,842,308
private static ProspectiveOperation handleCompoundAssignementReducer(TreeMaker tm, ExpressionTree expr, OperationType operationType, PreconditionsChecker precond, WorkingCopy workingCopy, List<ProspectiveOperation> ls, ProspectiveOperation redOp) {<NEW_LINE>// this variable will be removed at a later stage.<NEW_LINE>Va...
CompoundAssignmentTree) expr).getVariable();
1,682,303
public void showEmptyChatScreen() {<NEW_LINE>logDebug("showEmptyChatScreen");<NEW_LINE>listView.setVisibility(View.GONE);<NEW_LINE>emptyLayout.setVisibility(View.VISIBLE);<NEW_LINE>if (context instanceof ArchivedChatsActivity) {<NEW_LINE>CharSequence result = getSpannedMessageForEmptyChat(context.getString(R.string.rec...
(R.string.recent_chat_empty_text));
605,206
public static QueryPushSchedulerListResponse unmarshall(QueryPushSchedulerListResponse queryPushSchedulerListResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryPushSchedulerListResponse.setRequestId(_ctx.stringValue("QueryPushSchedulerListResponse.RequestId"));<NEW_LINE>queryPushSchedulerListResponse.setResultMessage(...
(_ctx.integerValue("QueryPushSchedulerListResponse.ResultContent.Data.TotalCount"));
1,822,657
protected void paintComponent(Graphics g) {<NEW_LINE>final Insets i = getInsets();<NEW_LINE>final Dimension d = getSize();<NEW_LINE>final int left = i.left + (d.width - i.left - i.right - getComponentWidth()) / 2;<NEW_LINE>final int top = i.top + (d.height - i.top - i.bottom - getComponentHeight()) / 2;<NEW_LINE>g.setC...
color = myRecentColors.get(r);
1,432,974
public void evaluateMinimal(GeoModelEstimatorN<DMatrixRMaj, AssociatedPair> estimatorN) {<NEW_LINE>DistanceEpipolarConstraint distance = new DistanceEpipolarConstraint();<NEW_LINE>Estimate1ofEpipolar estimator = new EstimateNto1ofEpipolar(estimatorN, distance, 1);<NEW_LINE>scores = new ArrayList<>();<NEW_LINE>int faile...
Random rand = new Random(234);
498,935
protected void drawRectangle(double zLevel, int left, int top, int right, int bottom, int color) {<NEW_LINE>float a = (color >> 24 & 255) / 255.0F;<NEW_LINE>float r = (color <MASK><NEW_LINE>float g = (color >> 8 & 255) / 255.0F;<NEW_LINE>float b = (color & 255) / 255.0F;<NEW_LINE>GlStateManager.disableTexture2D();<NEW_...
>> 16 & 255) / 255.0F;
14,959
final RegisterTransitGatewayMulticastGroupMembersResult executeRegisterTransitGatewayMulticastGroupMembers(RegisterTransitGatewayMulticastGroupMembersRequest registerTransitGatewayMulticastGroupMembersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(registerTransitGatewayMulticastGroupMemb...
endClientExecution(awsRequestMetrics, request, response);
1,352,654
private static <// to all tasks.<NEW_LINE>SideInputT> MessageStream<OpMessage<Iterable<SideInputT>>> groupAndBroadcastSideInput(SideInputId sideInputId, String sideInputCollectionId, RunnerApi.PCollection sideInputPCollection, WindowingStrategy<SideInputT, BoundedWindow> windowingStrategy, WindowedValue.WindowedValueCo...
sideInput = ctx.getMessageStreamById(sideInputCollectionId);
1,189,281
private String addSqlSelectByType(DbidMediaType requestType) {<NEW_LINE>switch(requestType) {<NEW_LINE>case TYPE_AUDIO:<NEW_LINE>return "select A.RATING, FILENAME, MODIFIED, F.ID as FID, F.ID as oid from FILES as F left outer join AUDIOTRACKS as A on F.ID = A.FILEID where ";<NEW_LINE>case TYPE_PERSON:<NEW_LINE>return "...
!= null ? requestType : "NULL"));
743,294
public ListProjectsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListProjectsResult listProjectsResult = new ListProjectsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
JsonToken token = context.getCurrentToken();
289,432
protected AssemblyResolution solveLeftCircularShift(PatternExpression expValue, PatternExpression expShift, int size, int dir, MaskedLong goal, Map<String, Long> vals, AssemblyResolvedPatterns cur, Set<SolverHint> hints, String description) throws NeedsBackfillException, SolverException {<NEW_LINE>MaskedLong valValue =...
getValue(expShift, vals, cur);
1,823,550
// Needs to be implemented instead of using parent method because we use template to search for HTMLPages<NEW_LINE>private void _viewWebAssets(RenderRequest req, User user) throws Exception {<NEW_LINE>com.liferay.portlet.RenderRequestImpl reqImpl = (com.liferay.portlet.RenderRequestImpl) req;<NEW_LINE>HttpServletReques...
ActionException(e.getMessage());
477,056
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, JsonElement jsonElement) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wi wi = this.convertToWrapIn(jsonElement, Wi.class);<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().crea...
copier.copy(wi, o);
1,334,742
public static void main(String[] args) throws Exception {<NEW_LINE>ExhibitorCreator creator;<NEW_LINE>try {<NEW_LINE>creator = new ExhibitorCreator(args);<NEW_LINE>} catch (ExhibitorCreatorExit exit) {<NEW_LINE>if (exit.getError() != null) {<NEW_LINE>System.err.<MASK><NEW_LINE>}<NEW_LINE>exit.getCli().printHelp();<NEW_...
println(exit.getError());
1,557,586
boolean hasCycles(InnerClassesAttribute.Entry[] entries) {<NEW_LINE>int curMark = 0;<NEW_LINE>int[] mark = new int[entries.length];<NEW_LINE>for (int i = 0; i < entries.length; i++) {<NEW_LINE>if (mark[i] != 0) {<NEW_LINE>// already visited<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>mark[i] = ++curMark;<NEW_LINE>int <MASK>...
v = entries[i].outerClassIndex;
639,064
public static GetMeetingInternationalResponse unmarshall(GetMeetingInternationalResponse getMeetingInternationalResponse, UnmarshallerContext _ctx) {<NEW_LINE>getMeetingInternationalResponse.setRequestId(_ctx.stringValue("GetMeetingInternationalResponse.RequestId"));<NEW_LINE>getMeetingInternationalResponse.setErrorCod...
(_ctx.stringValue("GetMeetingInternationalResponse.MeetingInfo.MeetingUUID"));
1,758,594
public boolean onPreferenceTreeClick(Preference preference) {<NEW_LINE>if (preference.getKey() != null && preference.getKey().equals(getString(R.string.pref_help))) {<NEW_LINE>Statistics.INSTANCE.trackEvent(Statistics.EventName.Settings.HELP);<NEW_LINE>AlohaHelper.logClick(AlohaHelper.Settings.HELP);<NEW_LINE>} else if...
(), ProfileActivity.class));
650,561
// @formatter:on<NEW_LINE>@Override<NEW_LINE>PComplex compute(VirtualFrame frame, double real, double imag) {<NEW_LINE>if (!Double.isFinite(real) || !Double.isFinite(imag)) {<NEW_LINE>if (Double.isInfinite(imag) && !Double.isNaN(real)) {<NEW_LINE>throw raise(ValueError, ErrorMessages.MATH_DOMAIN_ERROR);<NEW_LINE>}<NEW_...
, Math.cos(imag));
1,082,463
static void dissectNewLeadershipTerm(final MutableDirectBuffer buffer, final int offset, final StringBuilder builder) {<NEW_LINE>int absoluteOffset = offset;<NEW_LINE>absoluteOffset += dissectLogHeader(CONTEXT, NEW_LEADERSHIP_TERM, buffer, absoluteOffset, builder);<NEW_LINE>final long logLeadershipTermId = buffer.getLo...
(" isStartup=").append(isStartup);
39,128
public ExprEval apply(LambdaExpr lambdaExpr, List<Expr> argsExpr, Expr.ObjectBinding bindings) {<NEW_LINE>List<List<Object>> arrayInputs = new ArrayList<>();<NEW_LINE>boolean hadNull = false;<NEW_LINE>boolean hadEmpty = false;<NEW_LINE>ExpressionType arrayElementType = null;<NEW_LINE>for (int i = 0; i < argsExpr.size()...
ofStringArray(new String[0]);
605,846
protected void addDecorators(CustomResourceInfo config, TypeDef def, Optional<String> specReplicasPath, Optional<String> statusReplicasPath, Optional<String> labelSelectorPath) {<NEW_LINE>final String name = config.crdName();<NEW_LINE>final String version = config.version();<NEW_LINE>resources.decorate(new AddCustomRes...
new SortPrinterColumnsDecorator(name, version));
455,355
public Response<Void> deleteByIdWithResponse(String id, Context context) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not val...
Utils.getValueFromIdByName(id, "workspaces");
1,383,032
public StandardSource<C> register(CallableStatement statement, Map<String, Object> values) throws SQLException {<NEW_LINE>if (values == null) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>for (Map.Entry<String, Object> me : values.entrySet()) {<NEW_LINE>// { "key" : { "pos": n, "type" : "VARCHAR", "field" : "fieldname" }...
) o : o.toString();
893,422
public final void mCOMMENT_2(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {<NEW_LINE>int _ttype;<NEW_LINE>Token _token = null;<NEW_LINE><MASK><NEW_LINE>_ttype = COMMENT_2;<NEW_LINE>int _saveIndex;<NEW_LINE>match('{');<NEW_LINE>{<NEW_LINE>_loop192: do {<NEW_LINE>if ((LA(1)...
int _begin = text.length();
92,606
public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) {<NEW_LINE>float touchX = e1.getX();<NEW_LINE>WindowManager wm = (WindowManager) <MASK><NEW_LINE>int width = wm.getDefaultDisplay().getWidth();<NEW_LINE>final double FLING_MIN_DISTANCE = 0.5;<NEW_LINE>final double FLING_MIN_VELOCI...
mActivity.getSystemService(Context.WINDOW_SERVICE);
1,285,267
public ConfirmTopicRuleDestinationResult confirmTopicRuleDestination(ConfirmTopicRuleDestinationRequest confirmTopicRuleDestinationRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(confirmTopicRuleDestinationRequest);<NEW_LINE>AWSRequestM...
JsonUnmarshallerContext> unmarshaller = new ConfirmTopicRuleDestinationResultJsonUnmarshaller();
1,768,854
public void change(Event event, @Nullable Object[] delta, Changer.ChangeMode mode) {<NEW_LINE>float exhaustion = ((Number) delta[0]).floatValue();<NEW_LINE>switch(mode) {<NEW_LINE>case ADD:<NEW_LINE>for (Player player : getExpr().getArray(event)) player.setExhaustion(<MASK><NEW_LINE>break;<NEW_LINE>case REMOVE:<NEW_LIN...
player.getExhaustion() + exhaustion);
1,076,509
public void connect() throws IOException {<NEW_LINE>usbInterface = getSmartCardInterface(usbDevice);<NEW_LINE>if (usbInterface == null) {<NEW_LINE>throw new UsbTransportException("USB error: CCID mode must be enabled (no class 11 interface)");<NEW_LINE>}<NEW_LINE>final Pair<UsbEndpoint, <MASK><NEW_LINE>UsbEndpoint usbB...
UsbEndpoint> ioEndpoints = getIoEndpoints(usbInterface);
19,565
public static int lcsDP(String s, String t, int[][] storage) {<NEW_LINE>int m = s.length();<NEW_LINE>int n = t.length();<NEW_LINE>int[][] storage1 = new int[s.length() + 1][t.length() + 1];<NEW_LINE>for (int i = 0; i <= m; i++) {<NEW_LINE>// initialize 1st row as 0<NEW_LINE>storage1[i][0] = 0;<NEW_LINE>}<NEW_LINE>for (...
[0][i] = 0;
1,307,779
public ImmutableList<RateAccrualPeriod> createAccrualPeriods(Schedule accrualSchedule, Schedule paymentSchedule, ReferenceData refData) {<NEW_LINE>// resolve data by schedule<NEW_LINE>DoubleArray resolvedGearings = firstNonNull(gearing<MASK><NEW_LINE>DoubleArray resolvedSpreads = firstNonNull(spread, ALWAYS_0).resolveV...
, ALWAYS_1).resolveValues(accrualSchedule);
1,628,624
public static void writeToFile(Context context, String log) {<NEW_LINE>try {<NEW_LINE>String fileName = "/" + ALSpecificSettings.getInstance(context).getTextLogFileName() + ".txt";<NEW_LINE>BufferedWriter bufferedWriter = null;<NEW_LINE>try {<NEW_LINE>String folder = "/" + Utils.getMetaDataValue(context, "main_folder_n...
= new File(dir, fileName);
928,690
Pair<AggregatedPartitionClassStorageStats, AggregatedPartitionClassStorageStats> aggregateHostPartitionClassStorageStatsWrappers(Map<String, HostPartitionClassStorageStatsWrapper> statsWrappers) throws IOException {<NEW_LINE>Map<String, Map<Long, Map<Short, Map<Short, ContainerStorageStats>>>> combinedHostPartitionClas...
Pair<>(combinedAggregated, selectedAggregated);
680,357
public void run() {<NEW_LINE>try {<NEW_LINE>if (isActivityVisible()) {<NEW_LINE>logDebug("KEEPALIVE: " + System.currentTimeMillis());<NEW_LINE>if (megaChatApi != null) {<NEW_LINE>backgroundStatus = megaChatApi.getBackgroundStatus();<NEW_LINE>logDebug("backgroundStatus_activityVisible: " + backgroundStatus);<NEW_LINE>if...
"KEEPALIVEAWAY: " + System.currentTimeMillis());
273,868
private String addFileToDownloadsOld(String fileUri) throws IOException {<NEW_LINE>File downloadsDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);<NEW_LINE>if (!downloadsDir.exists()) {<NEW_LINE>boolean created = downloadsDir.mkdirs();<NEW_LINE>if (!created) {<NEW_LINE>throw new IOEx...
File(downloadsDir, fileInfo.name);
727,366
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent fromPermanent = game.getPermanent(source.getFirstTarget());<NEW_LINE>Permanent toPermanent = game.getPermanent(source.getTargets().get(1).getFirstTarget());<NEW_LINE>if (fromPerman...
), 1, source, game);
1,536,984
public void updateKeyInAccount(final Account account, final String alias) {<NEW_LINE>Log.d(Config.LOGTAG, account.getJid().asBareJid() + ": update key in account " + alias);<NEW_LINE>try {<NEW_LINE>X509Certificate[] chain = KeyChain.getCertificateChain(XmppConnectionService.this, alias);<NEW_LINE>Log.d(Config.LOGTAG, a...
showErrorToastInUi(R.string.certificate_does_not_contain_jid);
1,530,128
public SandBox retrieveNamedSandBox(SandBoxType sandBoxType, String sandboxName, Long authorId) {<NEW_LINE>CriteriaBuilder builder = sandBoxEntityManager.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<SandBox> criteria = builder.createQuery(SandBox.class);<NEW_LINE>Root<SandBoxManagementImpl> sandbox = criteria.from(Sand...
.class), 'Y')));
333,204
public void write(Page page) throws IOException {<NEW_LINE>requireNonNull(page, "page is null");<NEW_LINE>if (page.getPositionCount() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>checkArgument(page.getChannelCount() == columnWriters.size());<NEW_LINE>if (validationBuilder != null) {<NEW_LINE>validationBuilder.addPage(p...
.getStripeMaxRowCount() - stripeRowCount));
706,031
public void handleChunkUnload(ServerWorld world, WorldChunk chunk) {<NEW_LINE>if (!onchunkgenerate)<NEW_LINE>return;<NEW_LINE>if ((chunk != null) && (chunk.getStatus() == ChunkStatus.FULL)) {<NEW_LINE>FabricWorld fw = getWorld(world, false);<NEW_LINE>ChunkPos cp = chunk.getPos();<NEW_LINE>if (fw != null) {<NEW_LINE>if ...
int x = cp.x << 4;
525,465
public S3Tag createS3Tag(S3TagCreateRequest body, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'body' when calling createS3Tag...
= new String[] { "oauth2" };
230,594
public <A, R> EntryStream<K, R> collapseKeys(Collector<? super V, A, R> collector) {<NEW_LINE>Supplier<A> supplier = collector.supplier();<NEW_LINE>BiConsumer<A, ? super V> accumulator = collector.accumulator();<NEW_LINE>BinaryOperator<A> combiner = collector.combiner();<NEW_LINE>Function<A, R> finisher = collector.fin...
b, e.getValue());
1,101,374
public List<TypeSymbol> memberTypeDescriptors() {<NEW_LINE>if (this.memberTypes == null) {<NEW_LINE>List<TypeSymbol> members = new ArrayList<>();<NEW_LINE>if (this.getBType().tag == TypeTags.UNION) {<NEW_LINE>TypesFactory typesFactory = TypesFactory.getInstance(this.context);<NEW_LINE>for (BType memberType : ((BUnionTy...
().id() : null;
331,350
final UpdateContactChannelResult executeUpdateContactChannel(UpdateContactChannelRequest updateContactChannelRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateContactChannelRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<Updat...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,694,175
public R invoke(Object... arguments) {<NEW_LINE>ConversionService<?> conversionService = this.conversionService;<NEW_LINE>Argument[] targetArguments = getArguments();<NEW_LINE>if (targetArguments.length == 0) {<NEW_LINE>return executableMethod.invoke();<NEW_LINE>} else {<NEW_LINE>List<Object> argumentList = new ArrayLi...
, Object> variables = getVariableValues();
1,490,365
private boolean isRequestURLEqualsExitPageHost(HttpServletRequest req, String logoutURLhost) {<NEW_LINE>boolean acceptURL = false;<NEW_LINE>try {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())<NEW_LINE>Tr.debug(tc, "about to attempt matching the logout exit url with the domain of the request....
URL(new String(requestURLString));
408,928
public void run(RegressionEnvironment env) {<NEW_LINE>CompilerArguments args = new CompilerArguments(env.getConfiguration());<NEW_LINE>args.getOptions().setAccessModifierEventType(ctx -> NameAccessModifier.PUBLIC);<NEW_LINE>EPCompiled first = env.compile("@name('s0') insert into SomeStream select theString as a, intPri...
sendAssert(env, "E2", 2);
1,836,896
protected void propagateResults(Map<Local, Constant> localToConstant) {<NEW_LINE>ShimpleLocalDefs localDefs = new ShimpleLocalDefs(sb);<NEW_LINE>ShimpleLocalUses localUses = new ShimpleLocalUses(sb);<NEW_LINE>for (Local local : sb.getLocals()) {<NEW_LINE>Constant <MASK><NEW_LINE>if (constant instanceof MetaConstant) {<...
constant = localToConstant.get(local);
58,492
private static SearchHits topDocsToSearchHits(TopDocs topDocs, SearchPhaseController.TopDocsStats topDocsStats) {<NEW_LINE>SearchHit[] searchHits;<NEW_LINE>if (topDocs == null) {<NEW_LINE>// merged TopDocs is null whenever all clusters have returned empty hits<NEW_LINE>searchHits = new SearchHit[0];<NEW_LINE>} else {<N...
searchHits[i] = scoreDoc.searchHit;
1,633,247
public void sSet(SField sField, Object val) {<NEW_LINE>if (sField.getName().equals("id")) {<NEW_LINE>setId((Integer) val);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (sField.getName().equals("projectId")) {<NEW_LINE>setProjectId((Long) val);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (sField.getName().equals("checksum")) {<N...
(List<Long>) val);
683,481
public void defaultWriteObject() throws IOException {<NEW_LINE>// tag defaultwriteObject<NEW_LINE>writeByte(99);<NEW_LINE>FSTClazzInfo newInfo = clinfo;<NEW_LINE>Object replObj = toWrite;<NEW_LINE>if (newInfo.getWriteReplaceMethod() != null) {<NEW_LINE>LOGGER.log(FSTLogger.Level.WARN, "WRITE REPLACE NOT FULLY SUPPORTED...
replObj.getClass(), conf);
555,454
public Address populate(Customer source, Address target, MerchantStore store, Language language) throws ConversionException {<NEW_LINE>if (source.getDelivery() != null) {<NEW_LINE>if (StringUtils.isNotBlank(source.getDelivery().getCity())) {<NEW_LINE>target.setCity(source.getDelivery().getCity());<NEW_LINE>}<NEW_LINE>i...
getCountry().getIsoCode());
1,561,747
public NetworkConnection createConnection(Object endpoint) throws FrameworkException {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "createConnection", endpoint);<NEW_LINE>NetworkConnection conn = null;<NEW_LINE>try {<NEW_LINE>// Create the connection from the VC Factory. As we are connecting using ...
this, tc, "Unable to create connection", e);
482,406
private static byte[] transform(final InputStream body) throws IOException {<NEW_LINE>final SAXSource source = new SAXSource(new InputSource(body));<NEW_LINE>final ByteArrayOutputStream result = new ByteArrayOutputStream();<NEW_LINE>try {<NEW_LINE>final XMLReader xmlreader = SAXParserFactory.newInstance().newSAXParser(...
setOutputProperty(OutputKeys.INDENT, yes);