idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
796,121
private // F011127 start<NEW_LINE>void processConsumerSetChangeCallback(CommsByteBuffer buffer, Conversation conversation) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "processConsumerSetChangeCallback", new Object[] { buffer, conversation });<NEW_LINE>final...
ConsumerMonitorListenerCache consumerMonitorListenerCache = convState.getConsumerMonitorListenerCache();
951,769
public void onAuthentication(Authentication authentication, HttpServletRequest request, HttpServletResponse response) {<NEW_LINE>boolean hadSessionAlready = <MASK><NEW_LINE>if (!hadSessionAlready && !this.alwaysCreateSession) {<NEW_LINE>// Session fixation isn't a problem if there's no session<NEW_LINE>return;<NEW_LINE...
request.getSession(false) != null;
757,041
public int call(CXCursor cursor, CXCursor parent, CXClientData client_data) {<NEW_LINE>CXSourceLocation location = clang.clang_getCursorLocation(cursor);<NEW_LINE>if (clang.clang_Location_isFromMainFile(location) == 0)<NEW_LINE>return clang.CXChildVisit_Continue;<NEW_LINE>int level = client_data<MASK><NEW_LINE>System.o...
.asByteBuffer().getInt();
464,408
public int compareTo(getHistoricalStats_args other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetTinfo(), other.isSetTinfo());<NEW_LI...
this.tinfo, other.tinfo);
711,680
List<PaddingVector> createClassicModifiedPadding(CipherSuite suite, ProtocolVersion version) {<NEW_LINE>int macSize = AlgorithmResolver.getMacAlgorithm(<MASK><NEW_LINE>int paddingValue = DEFAULT_CIPHERTEXT_LENGTH - macSize - 1;<NEW_LINE>int applicationLength = 0;<NEW_LINE>List<PaddingVector> vectorList = createClassicM...
version, suite).getSize();
523,695
private double[] calculateProjectionOnRoutePoint(RoutingHelper helper, RotatedTileBox box) {<NEW_LINE>double[] projectionXY = null;<NEW_LINE><MASK><NEW_LINE>RouteCalculationResult route = helper.getRoute();<NEW_LINE>List<Location> locs = route.getImmutableAllLocations();<NEW_LINE>int cr = route.getCurrentRoute();<NEW_L...
Location ll = helper.getLastFixedLocation();
1,314,296
public void write(org.apache.thrift.protocol.TProtocol prot, add_trigger_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet optionals = new java.util.BitSet();<NEW_LINE>if (struct.isSet...
oprot.writeBitSet(optionals, 3);
823,054
public <E extends MemberElement> BeanElementBuilder produceBeans(ElementQuery<E> methodsOrFields, Consumer<BeanElementBuilder> childBeanBuilder) {<NEW_LINE>methodsOrFields = methodsOrFields.onlyConcrete().onlyInstance().modifiers((modifiers) -> modifiers.contains(ElementModifier.PUBLIC));<NEW_LINE>final List<E> enclose...
this.beanType.getEnclosedElements(methodsOrFields);
1,746,192
private void drawTwoFingersDistance(Canvas canvas, RotatedTileBox tb, LatLon firstTouch, LatLon secondTouch, boolean nightMode) {<NEW_LINE>float x1 = tb.getPixXFromLatLon(firstTouch.getLatitude(), firstTouch.getLongitude());<NEW_LINE>float y1 = tb.getPixYFromLatLon(firstTouch.getLatitude(), firstTouch.getLongitude());<...
), secondTouch.getLongitude());
1,195,537
private void superPostConstruct(InvocationContext inv) {<NEW_LINE>try {<NEW_LINE>Object results = getResultsObject(inv);<NEW_LINE>addPostConstruct(results, CLASS_NAME, "superPostConstruct");<NEW_LINE>// Validate and update context data.<NEW_LINE>Map<String, Object<MASK><NEW_LINE>String data;<NEW_LINE>if (map.containsKe...
> map = inv.getContextData();
12,789
boolean waitEvent(long timeout) {<NEW_LINE>// Transform a interrupt signal in an errno EINTR<NEW_LINE>if (Thread.interrupted()) {<NEW_LINE>errno.set(ZError.EINTR);<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int rc;<NEW_LINE>boolean brc = (rcursor < wcursor.get());<NEW_LINE>if (brc) {<NEW_LINE>return true;<NEW_LINE>}<NE...
errno.set(ZError.EINTR);
1,578,435
public void _Animation_3() {<NEW_LINE>Animation a;<NEW_LINE>a = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left);<NEW_LINE>a.setDuration(200);<NEW_LINE>main_box_1.startAnimation(a);<NEW_LINE>a = null;<NEW_LINE>Animation b;<NEW_LINE>b = AnimationUtils.loadAnimation(getApplicationContex...
android.R.anim.slide_in_left);
1,200,201
public void printResponseParts(Object response, String theMethod, String msg) throws Exception {<NEW_LINE>System.out.println("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Start Response Content @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@");<NEW_...
getKey() + " Value: " + value);
1,440,874
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* android.support.v4.app.Fragment#onCreateView(android.view.LayoutInflater,<NEW_LINE>* android.view.ViewGroup, android.os.Bundle)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedIns...
mCharacterCountTextView.setVisibility(View.VISIBLE);
1,079,941
private Collection<VirtualFile> computeRoots() {<NEW_LINE>final Collection<VirtualFile> result = new LinkedHashSet<>();<NEW_LINE>myOrderEnumerator.forEach(orderEntry -> {<NEW_LINE>OrderRootType type = getRootType(orderEntry);<NEW_LINE>if (orderEntry instanceof ModuleSourceOrderEntry) {<NEW_LINE>collectRoots(type, ((Mod...
isProductionOnly(), ourSourcesToFileFunc, ourRuntimeToFileFunc);
1,342,333
public static InterleavedU8 yuvToInterleavedRgbU8(ByteBuffer bufferY, ByteBuffer bufferU, ByteBuffer bufferV, int width, int height, int strideY, int strideUV, int stridePixelUV, @Nullable InterleavedU8 output, @Nullable GrowArray<DogArray_I8> workArrays) {<NEW_LINE>output = InputSanityCheck.declareOrReshape(output, wi...
indexOut++] = (byte) g;
1,511,897
private void initInterfaceIncomingFilterLines() {<NEW_LINE>_interfaceIncomingFilterLines = new HashMap<>();<NEW_LINE>_virtualAddressRejectIcmpHeaders.forEach((virtualAddressName, matchedHeaders) -> {<NEW_LINE>ExprAclLine line = ExprAclLine.rejecting().setMatchCondition(new MatchHeaderSpace(matchedHeaders)).setName(Stri...
virtual = _enabledVirtuals.get(virtualName);
642,397
public void validateCustomerVisibleNaming(IntermediateModel trimmedModel) {<NEW_LINE>Metadata metadata = trimmedModel.getMetadata();<NEW_LINE>validateCustomerVisibleName(metadata.getSyncInterface(), "metadata-derived interface name");<NEW_LINE>validateCustomerVisibleName(metadata.getSyncBuilderInterface(), "metadata-de...
getFluentEnumSetterMethodName(), shapeName + " shape");
1,704,905
final ListEventDataStoresResult executeListEventDataStores(ListEventDataStoresRequest listEventDataStoresRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listEventDataStoresRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
(super.beforeMarshalling(listEventDataStoresRequest));
112,296
final DeleteAuthenticationProfileResult executeDeleteAuthenticationProfile(DeleteAuthenticationProfileRequest deleteAuthenticationProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAuthenticationProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
invoke(request, responseHandler, executionContext);
1,630,544
protected Attributes adjust(Attributes match) throws DicomServiceException {<NEW_LINE>Attributes adjust = super.adjust(match);<NEW_LINE><MASK><NEW_LINE>if (keys.contains(Tag.SOPClassUID))<NEW_LINE>adjust.setString(Tag.SOPClassUID, VR.UI, match.getString(Tag.ReferencedSOPClassUIDInFile));<NEW_LINE>if (keys.contains(Tag....
adjust.remove(Tag.DirectoryRecordType);
1,197,252
private boolean moveUser(UserVO user, long newAccountId) {<NEW_LINE>if (newAccountId == user.getAccountId()) {<NEW_LINE>// could do a not silent fail but the objective of the user is reached<NEW_LINE>// no need to create a new user object for this user<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>return Transaction.execut...
randomUUID().toString());
1,607,687
public boolean load() {<NEW_LINE>// clean up data if needed.<NEW_LINE>if (null != heightData) {<NEW_LINE>unloadHeightMap();<NEW_LINE>}<NEW_LINE>heightData = new float[size * size];<NEW_LINE>float[][] tempBuffer = new float[size][size];<NEW_LINE>Random random = new Random(seed);<NEW_LINE>tempBuffer[0][<MASK><NEW_LINE>te...
0] = random.nextFloat();
811,461
private void remove() {<NEW_LINE>synchronized (lock) {<NEW_LINE>if (TenantGlobals.isDataIsolationEnabled() && TenantContainer.current() != null) {<NEW_LINE>TenantData td = TenantContainer.current().getTenantData();<NEW_LINE>if (td.getFieldValue(Finalizer.class, ID_UNFINALIZED) == this) {<NEW_LINE>if (this.next != null)...
.next.prev = this.prev;
1,385,779
public static JFileChooser promptToOpenFile(Component parentComponent, String[] exts, String existingFileName, boolean onlyDirectories) {<NEW_LINE>if (onlyDirectories) {<NEW_LINE>jfc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);<NEW_LINE>} else {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>setCurrentDirOnJFC(existingFil...
jfc.setFileSelectionMode(JFileChooser.FILES_ONLY);
88,969
public static TokenSequence<JavadocTokenId> findJavadocTokenSequence(CompilationInfo javac, Tree tree, Element e) {<NEW_LINE>if (e == null || javac.getElementUtilities().isSynthetic(e))<NEW_LINE>return null;<NEW_LINE>if (tree == null)<NEW_LINE>tree = javac.getTrees().getTree(e);<NEW_LINE>if (tree == null)<NEW_LINE>retu...
javac.getTokenHierarchy(), elementStartOffset);
585,923
public Void visitReturn(ReturnTree node, List<ErrorDescription> errors) {<NEW_LINE>boolean oldInheritDoc = foundInheritDoc;<NEW_LINE>DocTreePath currentDocPath = getCurrentPath();<NEW_LINE>DocTreePathHandle dtph = DocTreePathHandle.create(currentDocPath, javac);<NEW_LINE>if (dtph == null) {<NEW_LINE>return null;<NEW_LI...
"@return").toEditorFix()));
1,196,561
private DefinitionProtos.Definition.FunctionData writeFunctionDefinition(ExpressionSerialization defSerializer, FunctionDefinition definition) {<NEW_LINE>DefinitionProtos.Definition.FunctionData.Builder builder = DefinitionProtos.Definition.FunctionData.newBuilder();<NEW_LINE>builder.setIsStdLevels(definition.getLevelP...
addAllStrictParameters(definition.getStrictParameters());
1,808,173
public static NetworkStatus fromGrid(IGrid grid) {<NEW_LINE>IEnergyService eg = grid.getEnergyService();<NEW_LINE>NetworkStatus status = new NetworkStatus();<NEW_LINE>status.averagePowerInjection = eg.getAvgPowerInjection();<NEW_LINE>status.averagePowerUsage = eg.getAvgPowerUsage();<NEW_LINE>status.storedPower = eg.get...
group = new MachineGroup(ais));
555,264
final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "UntagResource");
701,792
final UpdateConfigResult executeUpdateConfig(UpdateConfigRequest updateConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateConfigRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<UpdateConfigRequest> request = null;<NEW_LINE...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
322,976
public static ServerStats parseBytes(byte[] serialized) throws ServerStatsDeserializationException {<NEW_LINE>final ByteBuffer bb = ByteBuffer.wrap(serialized);<NEW_LINE>bb.order(ByteOrder.LITTLE_ENDIAN);<NEW_LINE>long serviceLatencyNs = 0L;<NEW_LINE>long lbLatencyNs = 0L;<NEW_LINE>byte traceOption = (byte) 0;<NEW_LINE...
position(bb.limit());
1,103,083
public boolean exceedsLimit(TaskModel task) {<NEW_LINE>Optional<TaskDef> taskDefinition = task.getTaskDefinition();<NEW_LINE>if (taskDefinition.isEmpty()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int limit = taskDefinition.get().concurrencyLimit();<NEW_LINE>if (limit <= 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LI...
), task.getWorkflowType());
879,862
public static FindOrderableListResponse unmarshall(FindOrderableListResponse findOrderableListResponse, UnmarshallerContext _ctx) {<NEW_LINE>findOrderableListResponse.setRequestId(_ctx.stringValue("FindOrderableListResponse.RequestId"));<NEW_LINE>findOrderableListResponse.setCode(_ctx.integerValue("FindOrderableListRes...
("FindOrderableListResponse.Data.ServiceList[" + i + "].ServiceName"));
1,732,954
public RuleResult execute(Map<String, String> ruleParam, Map<String, String> resourceAttributes) {<NEW_LINE>logger.debug("========CheckAWSConfigEnabled started=========");<NEW_LINE>Map<String, Object> map = null;<NEW_LINE>AmazonConfigClient awsConfigClient = null;<NEW_LINE>String roleIdentifyingString = ruleParam.get(P...
issueList = new ArrayList<>();
853,320
private static void eulerToQuat(Tuple3d euler, Quat4d quat) {<NEW_LINE>// Implementation based on:<NEW_LINE>// http://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/19770024290.pdf<NEW_LINE>// Rotation sequence: 231 (YZX)<NEW_LINE>double t1 = euler.y * Math.PI / 180;<NEW_LINE>double t2 = euler.z * Math.PI / 180;<NEW_LIN...
.x * Math.PI / 180;
801,916
public void onLongPress(MotionEvent event) {<NEW_LINE>if (channel != null && channel.getType() != null && Channel.GroupType.GROUPOFTWO.getValue().equals(channel.getType())) {<NEW_LINE>String userId = ChannelService.getInstance(getActivity()).<MASK><NEW_LINE>if (!TextUtils.isEmpty(userId)) {<NEW_LINE>Contact newContact ...
getGroupOfTwoReceiverUserId(channel.getKey());
1,721,235
@OutputTimeUnit(TimeUnit.MICROSECONDS)<NEW_LINE>public void concurrentIndexedTable() throws InterruptedException {<NEW_LINE>int numSegments = 10;<NEW_LINE>// make 1 concurrent table<NEW_LINE>IndexedTable concurrentIndexedTable = new ConcurrentIndexedTable(_dataSchema, _queryContext, TRIM_SIZE, TRIM_SIZE, TRIM_THRESHOLD...
CountDownLatch operatorLatch = new CountDownLatch(numSegments);
719,310
public Map<String, FilterExpression> parseTypedExpression(String path, MultivaluedMap<String, String> filterParams, String apiVersion) throws ParseException {<NEW_LINE>Map<String, FilterExpression> expressionByType = new HashMap<>();<NEW_LINE>for (MultivaluedMap.Entry<String, List<String>> entry : filterParams.entrySet...
expressionText = paramValues.get(0);
924,243
public void onStyleLoaded(@NonNull Style style) {<NEW_LINE>List<Feature> markerCoordinates = new ArrayList<>();<NEW_LINE>markerCoordinates.add(// Boston Common Park<NEW_LINE>Feature.// Boston Common Park<NEW_LINE>fromGeometry(Point.fromLngLat(-71.065634, 42.354950)));<NEW_LINE>markerCoordinates.add(// Fenway Park<NEW_L...
, R.drawable.blue_marker_view));
1,817,135
protected void loadFromXml(EwsXmlReader reader) throws Exception {<NEW_LINE>do {<NEW_LINE>reader.read();<NEW_LINE>if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) {<NEW_LINE>if (reader.getLocalName().equals(XmlElementNames.AccountType)) {<NEW_LINE>this.setAccountType(reader.readElementValue());<NEW_...
String xmlResponseType = reader.readElementValue();
930,395
protected List<Person> doInBackground(Account... accounts) {<NEW_LINE>if (mActivityRef.get() == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Context context = mActivityRef.get().getApplicationContext();<NEW_LINE>try {<NEW_LINE>GoogleAccountCredential credential = GoogleAccountCredential.usingOAuth2(context, Collec...
setFields("names,emailAddresses").execute();
223,447
private String parseNumber(String info) {<NEW_LINE>boolean hasPoint = info.indexOf('.') != -1;<NEW_LINE>boolean hasComma = info.indexOf(',') != -1;<NEW_LINE>// delete thousands<NEW_LINE>if (hasComma && m_decimalPoint.equals("."))<NEW_LINE>info = info.replace(',', ' ');<NEW_LINE>if (hasPoint && m_decimalPoint.equals(","...
), 2, BigDecimal.ROUND_HALF_UP);
1,833,572
public Request<ListQueuesRequest> marshall(ListQueuesRequest listQueuesRequest) {<NEW_LINE>if (listQueuesRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ListQueuesRequest> request = new DefaultRequest<ListQueuesRequest>(listQueuesRequest,...
request.setHttpMethod(HttpMethodName.POST);
577,300
public static void doRename(final PsiElement element, String newName, UsageInfo[] usages, final Project project, @Nullable final RefactoringElementListener listener) throws IncorrectOperationException {<NEW_LINE>final RenamePsiElementProcessor processor = RenamePsiElementProcessor.forElement(element);<NEW_LINE>final St...
).undoElementMovedOrRenamed(element, fqn);
1,492,745
public final DeclareHandlerContext declareHandler() throws RecognitionException {<NEW_LINE>DeclareHandlerContext _localctx = new DeclareHandlerContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 372, RULE_declareHandler);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>se...
_la = _input.LA(1);
1,687,440
public boolean showDialog() {<NEW_LINE>final JButton okButton = new JButton();<NEW_LINE>// NOI18N<NEW_LINE>Mnemonics.setLocalizedText(okButton, NbBundle.getMessage(FinishPatch.class, "CTL_FinishPatch.ok.text"));<NEW_LINE>DialogDescriptor dd = new // NOI18N<NEW_LINE>// NOI18N<NEW_LINE>DialogDescriptor(// NOI18N<NEW_LINE...
(FinishPatch.class), null);
1,751,340
private static ksql.KsqlGrammarParser.StatementsContext parseStatements(final String sql) {<NEW_LINE>var lexer = new KsqlGrammarLexer(CaseInsensitiveStream.from(<MASK><NEW_LINE>var tokenStream = new CommonTokenStream(lexer);<NEW_LINE>var grammarParser = new ksql.KsqlGrammarParser(tokenStream);<NEW_LINE>lexer.addErrorLi...
CharStreams.fromString(sql)));
502,143
public Object clone() {<NEW_LINE>Object o = null;<NEW_LINE>try {<NEW_LINE>o = super.clone();<NEW_LINE>} catch (Exception e) {<NEW_LINE>com.ibm.ws.ffdc.FFDCFilter.processException(e, "com.ibm.ws.cache.CacheConfig", "314");<NEW_LINE>}<NEW_LINE>// --------------------------------------------------------------------<NEW_LI...
CacheConfig) o).jndiName = null;
1,630,802
private void addOLCand0(@NonNull final OLCand candidate) {<NEW_LINE>if (currentOrderLine == null) {<NEW_LINE>currentOrderLine = newOrderLine(candidate);<NEW_LINE>}<NEW_LINE>currentOrderLine.setM_Warehouse_ID(WarehouseId.toRepoId(candidate.getWarehouseId()));<NEW_LINE>currentOrderLine.setM_Warehouse_Dest_ID(WarehouseId....
orderLineGroup.getGroupKey(), orderLineId);
913,355
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.ibm.ws.sib.processor.impl.interfaces.DownstreamControl#sendFlushedMessage(com.ibm.ws.sib.utils.SIBUuid12)<NEW_LINE>*<NEW_LINE>* This is only called from attemptFlush() as flushQuery's are processed<NEW_LINE>* by the PubSubOuputHandler<NEW_LINE>*/<NEW_LINE>@Over...
new Object[] { streamID });
1,273,969
private TemporaryJobBuilder job(final Job.Builder jobBuilder) {<NEW_LINE>final TemporaryJobBuilder builder = new TemporaryJobBuilder(deployer, jobPrefixFile.prefix(), prober, env, reportWriter.get(), jobBuilder);<NEW_LINE>if (config.hasPath("env")) {<NEW_LINE>final Config <MASK><NEW_LINE>for (final Entry<String, Config...
env = config.getConfig("env");
1,103,738
public void propertyChange(PropertyChangeEvent evt) {<NEW_LINE>if (evt != null && !evt.getPropertyName().equals(InstanceDataObject.PROP_COOKIE))<NEW_LINE>return;<NEW_LINE>if (contextL != null && bean != null) {<NEW_LINE>((BeanContext) bean).removeBeanContextMembershipListener(contextL);<NEW_LINE>}<NEW_LINE>try {<NEW_LI...
instanceCreate()).getBeanContextProxy();
976,982
static Map<String, UserAgentParser> createUserAgentParsers(Path userAgentConfigDirectory, UserAgentCache cache) throws IOException {<NEW_LINE>Map<String, UserAgentParser> <MASK><NEW_LINE>UserAgentParser defaultParser = new UserAgentParser(DEFAULT_PARSER_NAME, IngestUserAgentPlugin.class.getResourceAsStream("/regexes.ym...
userAgentParsers = new HashMap<>();
944,490
public static void startService(Context context, String referrer) {<NEW_LINE>if (context == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {<NEW_LINE>Intent intent = new Intent(context, InstallationReferrerService.class);<NEW_LINE>if (referrer != null) {<NEW_LINE>intent....
AppLog.T.UTILS, "installation referrer job service > job scheduled");
532,244
private IfcModel realCheckout(Project project, Revision revision, DatabaseSession databaseSession, User user) throws BimserverLockConflictException, BimserverDatabaseException, UserException {<NEW_LINE>PluginConfiguration serializerPluginConfiguration = getDatabaseSession().get(StorePackage.eINSTANCE.getPluginConfigura...
setDate(subRevision.getDate());
964,514
public static Bitmap thumbnail(Document mDocument, int size, int page) {<NEW_LINE>int mWidthTwip = (int) mDocument.getDocumentWidth();<NEW_LINE>int mHeightTwip = (int) (mDocument.getDocumentHeight() / mDocument.getParts());<NEW_LINE>if (mDocument.getDocumentType() == Document.DOCTYPE_PRESENTATION) {<NEW_LINE>mDocument....
) (mDocument.getDocumentHeight());
1,088,011
public void updatePopup() {<NEW_LINE>int modelSize = rModel.getSize();<NEW_LINE>// plug this popup into layered pane if needed<NEW_LINE>JLayeredPane <MASK><NEW_LINE>// lPane can be null when the corresponding dialog is closed already<NEW_LINE>// for example, when the user didn't want to wait until the search finishes<N...
lPane = JLayeredPane.getLayeredPaneAbove(comboBar);
528,481
public static String format(final String message, final boolean supportsColors) {<NEW_LINE>return (String) OVariableParser.resolveVariables(message, "$ANSI{", "}", new OVariableParserListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Object resolve(final String iVariable) {<NEW_LINE>final int pos = iVariable.ind...
toUpperCase(Locale.ENGLISH)));
130,369
private Object jpql(Business business, Statement statement, Runtime runtime) throws Exception {<NEW_LINE>Object data = null;<NEW_LINE>Class<? extends JpaObject> cls = this.clazz(business, statement);<NEW_LINE>EntityManager em;<NEW_LINE>if (StringUtils.equalsIgnoreCase(statement.getEntityCategory(), Statement.ENTITYCATE...
.entityManagerContainer().commit();
1,641,576
public boolean verifyContact(DHTTransportContact c, boolean direct) {<NEW_LINE>boolean ok;<NEW_LINE>if (c.getRandomIDType() == DHTTransportContact.RANDOM_ID_TYPE1) {<NEW_LINE>ok = c.getRandomID() == generateSpoofID(c);<NEW_LINE>} else {<NEW_LINE>byte[] r1 = c.getRandomID2();<NEW_LINE>byte<MASK><NEW_LINE>if (r1 == null ...
[] r2 = generateSpoofID2(c);
380,113
public String doRegisterURI(final String selectorName, final List<URIRegisterDTO> uriList) {<NEW_LINE>if (CollectionUtils.isEmpty(uriList)) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>SelectorDO selectorDO = selectorService.findByNameAndPluginName(selectorName, PluginNameAdapter.rpcTypeAdapter(rpcType()));<NEW_LINE>if (O...
handler = buildHandle(validUriList, selectorDO);
1,423,092
private <T> void consumeTagValue(TagValue tagValue, StateTag<Long> stateTag) {<NEW_LINE>CoderAndFuture<T> coderAndFuture = getWaiting(stateTag, false);<NEW_LINE>SettableFuture<T> future = coderAndFuture.getNonDoneFuture(stateTag);<NEW_LINE>Coder<T> coder = coderAndFuture.getAndClearCoder();<NEW_LINE>if (tagValue.hasVal...
.getData().newInput();
222,805
public BranchRegisterRequestProto convert2Proto(BranchRegisterRequest branchRegisterRequest) {<NEW_LINE>final short typeCode = branchRegisterRequest.getTypeCode();<NEW_LINE>final AbstractMessageProto abstractMessage = AbstractMessageProto.newBuilder().setMessageType(MessageTypeProto.forNumber(typeCode)).build();<NEW_LI...
String lockKey = branchRegisterRequest.getLockKey();
614,867
static boolean validateAndRenameFileOnce(final AbstractFile thisFile, final SecurityContext securityContext, final ErrorBuffer errorBuffer) throws FrameworkException {<NEW_LINE>final PropertyKey<String> pathKey = StructrApp.key(AbstractFile.class, "path");<NEW_LINE>boolean valid = AbstractFile.validatePath(thisFile, se...
setProperty(AbstractNode.name, newName);
1,005,730
protected void construct() {<NEW_LINE>sa = new int[N];<NEW_LINE>sa2 = new int[N];<NEW_LINE>rank = new int[N];<NEW_LINE>c = new int[Math.max(alphabetSize, N)];<NEW_LINE>int i, p, r;<NEW_LINE>for (i = 0; i < N; ++i) c[rank[i] = T[i]]++;<NEW_LINE>for (i = 1; i < alphabetSize; ++i) c[i] += c[i - 1];<NEW_LINE>for (i = N - 1...
]]] = sa2[i];
534,580
public void handle(JsonNode packet) {<NEW_LINE>long channelId = packet.<MASK><NEW_LINE>long messageId = packet.get("message_id").asLong();<NEW_LINE>long userId = packet.get("user_id").asLong();<NEW_LINE>String serverId = packet.hasNonNull("guild_id") ? packet.get("guild_id").asText() : null;<NEW_LINE>TextChannel channe...
get("channel_id").asLong();
894,139
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, String path0, String path1) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wo wo = new Wo();<NEW_LINE>String executorSeed = null;<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance()...
business, work, path0, path1);
73,687
public static DescribeWebLockBindListResponse unmarshall(DescribeWebLockBindListResponse describeWebLockBindListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeWebLockBindListResponse.setRequestId(_ctx.stringValue("DescribeWebLockBindListResponse.RequestId"));<NEW_LINE>describeWebLockBindListResponse.setPageSize...
("DescribeWebLockBindListResponse.BindList[" + i + "].BlockCount"));
326,576
public Optional<String> parsePackage(Path androidManifestPath) {<NEW_LINE>Optional<Document> manifestDocument = readAndroidManifestDocument(projectFilesystem.getPathForRelativePath(androidManifestPath));<NEW_LINE>if (!manifestDocument.isPresent()) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>String packageNa...
.newInstance().newXPath();
1,663,979
public void accept(ReconcileProblem problem) {<NEW_LINE>try {<NEW_LINE>DiagnosticSeverity severity = getDiagnosticSeverity(problem);<NEW_LINE>if (severity != null) {<NEW_LINE>Diagnostic d = new Diagnostic();<NEW_LINE>d.setCode(problem.getCode());<NEW_LINE>d.setMessage(problem.getMessage());<NEW_LINE>Range rng = doc.toR...
setSource(getServer().EXTENSION_ID);
1,354,187
public Map<TopicPartition, Long> read() throws IOException {<NEW_LINE>synchronized (lock) {<NEW_LINE>try (final BufferedReader reader = Files.newBufferedReader(file.toPath())) {<NEW_LINE>final int oldVersion = readInt(reader);<NEW_LINE>if (oldVersion == version) {<NEW_LINE>final int expectedSize = readInt(reader);<NEW_...
LOG.warn("Old offset checkpoint version: " + oldVersion);
1,679,781
protected Connections initialValue() {<NEW_LINE>try {<NEW_LINE>// Obtain thread affinity<NEW_LINE>BitSet affinity = Affinity.getAffinity();<NEW_LINE>System.out.println(Thread.currentThread().<MASK><NEW_LINE>// Setup Vertx for connection<NEW_LINE>VertxOptions options = new VertxOptions().setPreferNativeTransport(true).s...
getName() + " has affinity " + affinity);
853,443
public InputDoc nextDoc() {<NEW_LINE>Annotation annotation = getNextDocument();<NEW_LINE>if (annotation == null)<NEW_LINE>return null;<NEW_LINE>Set<Triple<Integer, Integer, Integer>> filterMentionSpans = null;<NEW_LINE>if (filterCorefMentions != null) {<NEW_LINE>// filterMentionSpans = CorefUtils.getMatchingMentionsSpa...
annotation, docInfo, allGoldMentions, null);
877,687
public GatewayFilter apply(RequestHeaderSizeGatewayFilterFactory.Config config) {<NEW_LINE>String errorHeaderName = config.getErrorHeaderName() != null ? config.getErrorHeaderName() : "errorMessage";<NEW_LINE>return new GatewayFilter() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Mono<Void> filter(ServerWebExchange e...
longHeaders = new HashMap<>();
520,656
protected void dbSchemaUpgradeUntil6120(final String component, final int currentDatabaseVersionsIndex) {<NEW_LINE>FlowableVersion version = FlowableVersions.FLOWABLE_VERSIONS.get(currentDatabaseVersionsIndex);<NEW_LINE>String dbVersion = version.getMainVersion();<NEW_LINE>logger.info("upgrading flowable {} schema from...
, component, "all"), true);
303,814
private void readHeader() throws IOException {<NEW_LINE>assertInput();<NEW_LINE>if (header == null) {<NEW_LINE>header = PSDHeader.read(imageInput);<NEW_LINE>if (!header.hasValidDimensions()) {<NEW_LINE>processWarningOccurred(String.format("Dimensions exceed maximum allowed for %s: %dx%d (max %dx%d)", header.largeFormat...
flushBefore(imageInput.getStreamPosition());
969,782
public String createNewPolicyForResourceSet(@PathVariable(value = "rsid") Long rsid, @RequestBody String jsonString, Model m, Authentication auth) {<NEW_LINE>ResourceSet rs = resourceSetService.getById(rsid);<NEW_LINE>if (rs == null) {<NEW_LINE>m.addAttribute(<MASK><NEW_LINE>return HttpCodeView.VIEWNAME;<NEW_LINE>}<NEW...
HttpCodeView.CODE, HttpStatus.NOT_FOUND);
1,840,867
private ApplicationMap createMap(FilteredMapServiceOption option, FilteredMap filteredMap) {<NEW_LINE>final ApplicationMapBuilder applicationMapBuilder = applicationMapBuilderFactory.createApplicationMapBuilder(option.getOriginalRange());<NEW_LINE>applicationMapBuilder.linkType(LinkType.DETAILED);<NEW_LINE>final WasNod...
ResponseHistogramsNodeHistogramDataSource(filteredMap.getResponseHistograms());
632,848
public void onError(Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE>org.apache.thrift.TBase msg;<NEW_LINE>getBlobReplication_result result = new getBlobReplication_result();<NEW_LINE>if (e instanceof KeyNotFoundException) {<NEW_LINE>result.knf = (KeyNotFoundException) e;<N...
INTERNAL_ERROR, e.getMessage());
1,273,749
public static Object invokeMethod(final Object target, final String methodName, final Class<?>[] parameterTypes, final Object[] args) throws InvocationTargetException, IllegalAccessException, NoSuchMethodException {<NEW_LINE>if (parameterTypes.length != args.length) {<NEW_LINE>throw new IllegalArgumentException("Parame...
] methodParameterTypes = method.getParameterTypes();
1,559,600
final StartFHIRExportJobResult executeStartFHIRExportJob(StartFHIRExportJobRequest startFHIRExportJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startFHIRExportJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
(super.beforeMarshalling(startFHIRExportJobRequest));
1,262,914
private View createButtonWithDesc(int iconId, @NonNull String title, @NonNull String desc, boolean enabled, OnClickListener listener) {<NEW_LINE>int activeColor = selectedAppMode.getProfileColor(nightMode);<NEW_LINE>int defColor = ColorUtilities.getDefaultIconColor(app, nightMode);<NEW_LINE>int iconColor = enabled ? ac...
icon = getPaintedContentIcon(iconId, iconColor);
407,245
public static String usage() {<NEW_LINE>StringWriter sb = new StringWriter();<NEW_LINE>PrintWriter out = new PrintWriter(sb);<NEW_LINE>out.println("Usage: " + CMD + " config initial-token --server SERVER --realm REALM [--delete | TOKEN] [ARGUMENTS]");<NEW_LINE>out.println();<NEW_LINE>out.<MASK><NEW_LINE>out.println("au...
println("Command to configure an initial access token to be used with '" + CMD + " create' command. Even if an ");
447,380
public static Options parse(@NonNull Context context, TypefaceLoader typefaceManager, JSONObject json) {<NEW_LINE>Options result = new Options();<NEW_LINE>if (json == null)<NEW_LINE>return result;<NEW_LINE>result.topBar = TopBarOptions.parse(context, typefaceManager, json.optJSONObject("topBar"));<NEW_LINE>result.topTa...
, json.optJSONObject("statusBar"));
1,229,009
public ExportAssetToSignedUrlRequestDetails unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ExportAssetToSignedUrlRequestDetails exportAssetToSignedUrlRequestDetails = new ExportAssetToSignedUrlRequestDetails();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParen...
class).unmarshall(context));
1,558,504
public Builder mergeFrom(com.didiglobal.booster.aapt2.Resources.Type other) {<NEW_LINE>if (other == com.didiglobal.booster.aapt2.Resources.Type.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.hasTypeId()) {<NEW_LINE>mergeTypeId(other.getTypeId());<NEW_LINE>}<NEW_LINE>if (!other.getName().isEmpty()) {<NEW...
this.mergeUnknownFields(other.unknownFields);
1,442,525
protected void createSymbolicLink(PathFragment linkPath, PathFragment targetFragment) throws IOException {<NEW_LINE>PathFragment targetPath = targetFragment.isAbsolute() ? targetFragment : linkPath.<MASK><NEW_LINE>try {<NEW_LINE>java.nio.file.Path link = getIoFile(linkPath).toPath();<NEW_LINE>java.nio.file.Path target ...
getParentDirectory().getRelative(targetFragment);
423,184
private synchronized V _put(K key, V value, MODE m) {<NEW_LINE>LinkedEntry<K, V>[] tab = table;<NEW_LINE>int index = hash(key) % tab.length;<NEW_LINE>for (LinkedEntry<K, V> e = tab[index]; e != null; e = e.next) {<NEW_LINE>if (CompareUtil.equals(e.key, key)) {<NEW_LINE>V old = e.value;<NEW_LINE>e.value = value;<NEW_LIN...
K k = header.link_next.key;
1,367,413
private void alertCpu(float nextCpu) {<NEW_LINE>Configure conf = Configure.getInstance();<NEW_LINE>if (conf.cpu_alert_enabled == false)<NEW_LINE>return;<NEW_LINE>if (nextCpu < conf.cpu_warning_pct)<NEW_LINE>return;<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>int w = 0, f = 0;<NEW_LINE>long stime = System.c...
LongEnumer en = oldCpu.keys();
1,493,683
public boolean checkAtInjectValidator() {<NEW_LINE>Set<ConstraintViolation<AValidationXMLTestBean1>> cvSet = injectedValidator.validate(this);<NEW_LINE>if (cvSet != null && !cvSet.isEmpty()) {<NEW_LINE>svLogger.log(Level.INFO, CLASS_NAME, "found " + cvSet.size() + " contstraints " + "when there shouldn't have been any:...
cvSet = injectedValidator.validate(this);
491,974
private Component createKeepAlivePanel() {<NEW_LINE>JPanel emptyLabelPanel = new TransparentPanel();<NEW_LINE>emptyLabelPanel.setMaximumSize(new Dimension(40, 35));<NEW_LINE>JPanel keepAlivePanel = new TransparentPanel(new BorderLayout(10, 10));<NEW_LINE>JPanel keepAliveLabels = new TransparentPanel(new GridLayout(0, 1...
().deriveFont(8));
1,766,607
public static QueryAlertListResponse unmarshall(QueryAlertListResponse queryAlertListResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryAlertListResponse.setRequestId(_ctx.stringValue("QueryAlertListResponse.RequestId"));<NEW_LINE>queryAlertListResponse.setCode(_ctx.stringValue("QueryAlertListResponse.Code"));<NEW_LIN...
(_ctx.stringValue("QueryAlertListResponse.Message"));
355,754
final ListNamedQueriesResult executeListNamedQueries(ListNamedQueriesRequest listNamedQueriesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listNamedQueriesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
(super.beforeMarshalling(listNamedQueriesRequest));
6,608
private RRset signRRset(final RRset rrSet, final List<DnsSecKeyPair> kskPairs, final List<DnsSecKeyPair> zskPairs, final Date inception, final Date expiration, final ConcurrentMap<RRSIGCacheKey, ConcurrentMap<RRsetKey, RRSIGRecord>> RRSIGCache) {<NEW_LINE>final List<RRSIGRecord> signatures = new ArrayList<>();<NEW_LINE...
, privateKey, inception, expiration));
1,252,123
/* Sample generated code:<NEW_LINE>*<NEW_LINE>* @com.ibm.j9ddr.GeneratedFieldAccessor(offsetFieldName="_permOffset_", declaredType="J9Permission")<NEW_LINE>* public J9PermissionPointer perm() throws CorruptDataException {<NEW_LINE>* return J9PermissionPointer.cast(nonNullFieldEA(J9FileStat._permOffset_));<NEW_LINE>...
equals(fieldType) ? "Void" : fieldType;
608,850
public Optional<TypeSymbol> transform(QualifiedNameReferenceNode node) {<NEW_LINE>// Only handles the Type Definitions.<NEW_LINE>Predicate<Symbol> predicate = symbol -> symbol.getName().isPresent() && (symbol.kind() == SymbolKind.TYPE_DEFINITION || symbol.kind() == SymbolKind.CLASS) && symbol.getName().get().equals(nod...
identifier().text());
1,131,289
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>if (!hasValidCSRFToken(request)) {<NEW_LINE>respondCSRFError(response);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>Project project = getProject(request);<NEW_LINE>String jsonString = req...
readValue(jsonString, WikibaseSchema.class);
816,154
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View view = View.inflate(getContext(), R.layout.fragment_custom, null);<NEW_LINE>agVideo = view.findViewById(R.id.agvideo);<NEW_LINE>jzNoTitle = view.findViewById(R.id.jz_notitle);<NEW_LINE>lockScreen = view.fin...
findViewById(R.id.custom_videoplayer_standard_show_textureview_aoto_complete);
1,406,877
public PointList fetchWayGeometry(FetchMode mode) {<NEW_LINE>if (pointList.size() == 0)<NEW_LINE>return PointList.EMPTY;<NEW_LINE>// due to API we need to create a new instance per call!<NEW_LINE>if (mode == FetchMode.TOWER_ONLY) {<NEW_LINE>if (pointList.size() < 3)<NEW_LINE>return pointList.clone(false);<NEW_LINE>Poin...
pointList.size() - 1);