idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
41,639
public OrganizationNode unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>OrganizationNode organizationNode = new OrganizationNode();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = c...
int originalDepth = context.getCurrentDepth();
263,188
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static java.util.List<com.sun.jdi.ReferenceType> allClasses0(com.sun.jdi.VirtualMachine a) {<NEW_LINE>if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) {<NEW_LINE>org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallSt...
new Object[] { a });
1,581,786
// suppress deprecation until https://github.com/checkstyle/checkstyle/issues/11166<NEW_LINE>@SuppressWarnings("deprecation")<NEW_LINE>@Override<NEW_LINE>public void visitToken(DetailAST ast) {<NEW_LINE>if (shouldCheck(ast)) {<NEW_LINE>final FileContents contents = getFileContents();<NEW_LINE>final int lineNo = ast.get...
String> recordComponentNames = getRecordComponentNames(ast);
1,732,639
private void remove(MethodCall call, MethodChannel.Result result) {<NEW_LINE>String taskId = call.argument("task_id");<NEW_LINE>boolean shouldDeleteContent = call.argument("should_delete_content");<NEW_LINE>DownloadTask task = taskDao.loadTask(taskId);<NEW_LINE>if (task != null) {<NEW_LINE>if (task.status == DownloadSt...
error("invalid_task_id", "not found task corresponding to given task id", null);
1,433,056
public static void main(String[] args) throws InterruptedException {<NEW_LINE>// Creating Siddhi Manager<NEW_LINE>SiddhiManager siddhiManager = new SiddhiManager();<NEW_LINE>// Register the extension to Siddhi Manager<NEW_LINE>siddhiManager.setExtension("custom:plus", CustomFunctionExtension.class);<NEW_LINE>// Siddhi ...
{ "IBM", 700L, 100L });
39,011
public SubjectAreaOMASAPIResponse<Category> updateCategory(String serverName, String userId, String guid, Category category, boolean isReplace) {<NEW_LINE>final String methodName = "updateCategory";<NEW_LINE>RESTCallToken token = restCallLogger.logRESTCall(serverName, userId, methodName);<NEW_LINE>SubjectAreaOMASAPIRes...
response = new SubjectAreaOMASAPIResponse<>();
53,038
private void createGui() {<NEW_LINE>final JPanel topPanel = new JPanel(new BorderLayout());<NEW_LINE>final JPanel innerTopPanel = new JPanel(new BorderLayout());<NEW_LINE>topPanel.add(innerTopPanel);<NEW_LINE>innerTopPanel.add(m_stdEditPanel);<NEW_LINE>innerTopPanel.add(m_debuggerPanel, BorderLayout.SOUTH);<NEW_LINE>fi...
new JPanel(new BorderLayout());
340,806
private Map<String, String> fetchColumnType(Connection conn, String actualTableName) {<NEW_LINE>Map<String, String> specialType = new TreeMap(String.CASE_INSENSITIVE_ORDER);<NEW_LINE>Statement stmt = null;<NEW_LINE>ResultSet rs = null;<NEW_LINE>try {<NEW_LINE>stmt = conn.createStatement();<NEW_LINE>rs = stmt.executeQue...
logger.warn("", e);
15,743
public void visitPhpFunctionCall(@NotNull FunctionReference reference) {<NEW_LINE>final String functionName = reference.getName();<NEW_LINE>if (functionName != null && functionName.equals("date")) {<NEW_LINE>final PsiElement[] arguments = reference.getParameters();<NEW_LINE>if (arguments.length == 2) {<NEW_LINE>final P...
String innerName = inner.getName();
978,696
// isAmbiguous = should we get AmbiguousEJBReferenceException or just the first bean<NEW_LINE>private void lookupRemote(String lookup, boolean isAmbiguous) throws Exception {<NEW_LINE>try {<NEW_LINE>AmbiguousNameRemoteHome beanHome = (AmbiguousNameRemoteHome) new InitialContext().lookup(lookup);<NEW_LINE>if (isAmbiguou...
AmbiguousRemoteName bean = beanHome.create();
127,553
public static DescribeSnapshotsResponse unmarshall(DescribeSnapshotsResponse describeSnapshotsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSnapshotsResponse.setRequestId<MASK><NEW_LINE>describeSnapshotsResponse.setNextToken(_ctx.stringValue("DescribeSnapshotsResponse.NextToken"));<NEW_LINE>describeSnapshotsRe...
(_ctx.stringValue("DescribeSnapshotsResponse.RequestId"));
1,656,722
public void run() {<NEW_LINE>final Properties props = loadProperties(file);<NEW_LINE>if (props == null) {<NEW_LINE>NotifyDescriptor nd = new NotifyDescriptor.Message(NbBundle.getMessage(PersistenceSupport.class, "MSG_FailedLoadFromFile"), NotifyDescriptor.ERROR_MESSAGE);<NEW_LINE>DialogDisplayer.getDefault().notifyLate...
.getProperty(SecurityModel.KEYSTORE_TYPE));
378,183
public static void assertEqualsToScale(Se3_F64 expected, Se3_F64 found, double tolAngle, double tolT) {<NEW_LINE>var R = new DMatrixRMaj(3, 3);<NEW_LINE>CommonOps_DDRM.multTransA(expected.R, found.R, R);<NEW_LINE>Rodrigues_F64 rod = ConvertRotation3D_F64.matrixToRodrigues(R, null);<NEW_LINE>assertEquals(0.0, rod.theta,...
- found.T.x / normFound;
1,400,695
protected Sheet createSheet() {<NEW_LINE>Sheet propertySheet = super.createSheet();<NEW_LINE>Sheet.Set properties = propertySheet.get(Sheet.PROPERTIES);<NEW_LINE>if (properties == null) {<NEW_LINE>properties = Sheet.createPropertiesSet();<NEW_LINE>propertySheet.put(properties);<NEW_LINE>}<NEW_LINE>properties.put(new No...
, tag.getComment()));
1,244,956
private void sendCancelObserve() {<NEW_LINE>proactiveCancel = false;<NEW_LINE>Response response = current;<NEW_LINE>Request request = this.request;<NEW_LINE>EndpointContext destinationContext = response != null ? response.getSourceContext() : request.getDestinationContext();<NEW_LINE>Request cancel = Request.newGet();<...
setPayload(request.getPayload());
1,816,698
private void generateQueryParamBindingMethods(JDefinedClass facadeClass, ParameterSchemaArray parameters, JDefinedClass derivedBuilderClass, RecordTemplate methodSchema) {<NEW_LINE>for (ParameterSchema param : parameters) {<NEW_LINE>if ("array".equals(param.getType())) {<NEW_LINE>final JClass paramItemsClass = getJavaB...
.class).narrow(paramItemsClass);
617,713
public void update(final long clusterPosition, final OClusterPositionMapBucket.PositionEntry entry, final OAtomicOperation atomicOperation) throws IOException {<NEW_LINE>final long pageIndex <MASK><NEW_LINE>final int index = (int) (clusterPosition % OClusterPositionMapBucket.MAX_ENTRIES);<NEW_LINE>final long lastPage =...
= clusterPosition / OClusterPositionMapBucket.MAX_ENTRIES + 1;
1,496,228
public void testCBSyncFallback() throws Exception {<NEW_LINE>String result = null;<NEW_LINE>for (int i = 0; i < 3; i++) {<NEW_LINE>try {<NEW_LINE>result = bean.serviceE();<NEW_LINE>assertThat(result, is("serviceEFallback"));<NEW_LINE>} catch (ConnectException e) {<NEW_LINE>// We should have fallen back, assert if a Con...
throw new AssertionError("Unexpected exception " + ue);
878,709
public static SQLQueryAdapter generate(CockroachDBGlobalState globalState) {<NEW_LINE>int nrColumns <MASK><NEW_LINE>StringBuilder sb = new StringBuilder("CREATE ");<NEW_LINE>sb.append("VIEW ");<NEW_LINE>sb.append(globalState.getSchema().getFreeViewName());<NEW_LINE>sb.append("(");<NEW_LINE>for (int i = 0; i < nrColumns...
= Randomly.smallNumber() + 1;
1,596,236
final UpdateBotAliasResult executeUpdateBotAlias(UpdateBotAliasRequest updateBotAliasRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateBotAliasRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.SERVICE_ID, "Lex Models V2");
1,042,406
public DateFormat compile(CharSequence pattern, int lo, int hi, boolean generic) {<NEW_LINE>this.lexer.of(pattern, lo, hi);<NEW_LINE>IntList ops;<NEW_LINE>ObjList<String> delimiters;<NEW_LINE>if (generic) {<NEW_LINE>ops = new IntList();<NEW_LINE>delimiters = new ObjList<>();<NEW_LINE>} else {<NEW_LINE>ops = this.ops;<N...
) : compile(ops, delimiters);
1,134,768
private void extractSearchIndexParameters(RequestDetails theRequestDetails, ResourceIndexedSearchParams theParams, IBaseResource theResource, ResourceTable theEntity) {<NEW_LINE>// Strings<NEW_LINE>ISearchParamExtractor.SearchParamSet<ResourceIndexedSearchParamString> strings = extractSearchParamStrings(theResource);<N...
.add((ResourceIndexedSearchParamCoords) next);
398,219
public void visitIfElse(final IfStatement node) {<NEW_LINE>scopes.add(new VariableScope(scopes.getLast(), node, false));<NEW_LINE>try {<NEW_LINE>// TODO: Assignment within expression may be conditional or unconditional due to short-circuit evaluation.<NEW_LINE>node.getBooleanExpression().visit(this);<NEW_LINE>Map<Strin...
getIfBlock().visit(this);
940,990
final CreateSubnetGroupResult executeCreateSubnetGroup(CreateSubnetGroupRequest createSubnetGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createSubnetGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
848,635
public void configure(Configuration configuration) {<NEW_LINE>List<String> hosts = config.getStringList(HOSTS);<NEW_LINE>Settings.Builder settings = Settings.builder();<NEW_LINE>config.entrySet().forEach(entry -> {<NEW_LINE>String key = entry.getKey();<NEW_LINE>Object value = entry.getValue().unwrapped();<NEW_LINE>if (...
PreBuiltTransportClient(settings.build());
837,977
public String buildXPath(XPathModifier modifier) {<NEW_LINE>StringBuffer xpath = new StringBuffer();<NEW_LINE>for (Iterator<String> i = nsMap.keySet().iterator(); i.hasNext(); ) {<NEW_LINE>String ns = i.next();<NEW_LINE>xpath.append("declare namespace " + nsMap.get(ns) + "='" + ns + "';\n");<NEW_LINE>}<NEW_LINE>if (fun...
(pathComponents.get(c));
1,378,547
public static Icon cropIcon(@Nonnull Icon icon, int maxWidth, int maxHeight) {<NEW_LINE>if (icon.getIconHeight() <= maxHeight && icon.getIconWidth() <= maxWidth) {<NEW_LINE>return icon;<NEW_LINE>}<NEW_LINE>Image image = toImage(icon);<NEW_LINE>if (image == null)<NEW_LINE>return icon;<NEW_LINE>double scale = 1f;<NEW_LIN...
w, h, Transparency.TRANSLUCENT);
420,243
final DeleteConfigurationSetEventDestinationResult executeDeleteConfigurationSetEventDestination(DeleteConfigurationSetEventDestinationRequest deleteConfigurationSetEventDestinationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteConfigurationSetEventDestinationRequest);<NEW_LINE>AWS...
endClientExecution(awsRequestMetrics, request, response);
1,581,674
private void checkSchemaVersion(final DOMWrapper schemaDom) {<NEW_LINE>String schemaVersion = schemaDom.getAttribute("metamodelVersion");<NEW_LINE>if (schemaVersion == null) {<NEW_LINE>if (hasMondrian4Elements(schemaDom)) {<NEW_LINE>schemaVersion = "4.x";<NEW_LINE>} else {<NEW_LINE>schemaVersion = "3.x";<NEW_LINE>}<NEW...
0 ? versionParts[0] : "";
1,501,848
protected PNone doIt(VirtualFrame frame, PThreadLocal object, Object keyObj, @Cached ThreadLocalNodes.GetThreadLocalDict getThreadLocalDict, @Cached LookupAttributeInMRONode.Dynamic getExisting, @Cached GetClassNode getClassNode, @Cached("create(__DELETE__)") LookupAttributeInMRONode lookupDeleteNode, @Cached CallBinar...
ErrorMessages.OBJ_P_HAS_NO_ATTR_S, object, key);
958,305
final GetWirelessGatewayStatisticsResult executeGetWirelessGatewayStatistics(GetWirelessGatewayStatisticsRequest getWirelessGatewayStatisticsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getWirelessGatewayStatisticsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
addHandlerContext(HandlerContextKey.SERVICE_ID, "IoT Wireless");
1,474,100
public void read(org.apache.thrift.protocol.TProtocol prot, TopologyInfo struct) throws org.apache.thrift.TException {<NEW_LINE>TTupleProtocol iprot = (TTupleProtocol) prot;<NEW_LINE>struct.topology = new TopologySummary();<NEW_LINE>struct.topology.read(iprot);<NEW_LINE>struct.set_topology_isSet(true);<NEW_LINE>{<NEW_L...
<TaskSummary>(_list191.size);
407,622
private void processProgramHeader(ElfProgramHeader elfProgramHeader, int segmentNumber) throws AddressOutOfBoundsException {<NEW_LINE>// FIXME: If physical and virtual addresses do not match this may be an overlay situation.<NEW_LINE>// If sections exist they should use file offsets to correlate to overlay segment - th...
+ "]: " + getMessage(e));
1,339,061
private static Map<String, Integer> makeUnitsMap() {<NEW_LINE>// NOTE: consciously choosing not to support WEEK at this time,<NEW_LINE>// because of complexity in rounding down to the nearest week<NEW_LINE>// arround a month/year boundry.<NEW_LINE>// (Not to mention: it's not clear what people would *expect*)<NEW_LINE>...
put("MONTH", Calendar.MONTH);
1,447,270
public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>Bundle argument = getArguments();<NEW_LINE>String errorMessage = argument.getString(ERROR_MESSAGE);<NEW_LINE>final OsmPoint point = (OsmPoint) argument.getSerializable(POINT);<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(getActivity())...
.deleteAllBugModifications((OsmNotesPoint) point);
939,546
public static GetSubscriptionItemDetailResponse unmarshall(GetSubscriptionItemDetailResponse getSubscriptionItemDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>getSubscriptionItemDetailResponse.setRequestId(_ctx.stringValue("GetSubscriptionItemDetailResponse.RequestId"));<NEW_LINE>getSubscriptionItemDetailResponse...
("GetSubscriptionItemDetailResponse.SubscriptionItemDetail.Contacts[" + i + "].LastEmailVerificationTimeStamp"));
251,067
public Map<String, String> updateSensorProperties(OwBaseBridgeHandler bridgeHandler) throws OwException {<NEW_LINE>Map<String, String> properties = new <MASK><NEW_LINE>OwPageBuffer pages = bridgeHandler.readPages(sensorId);<NEW_LINE>OwSensorType sensorType = OwSensorType.UNKNOWN;<NEW_LINE>try {<NEW_LINE>sensorType = Ow...
HashMap<String, String>();
1,451,496
public void addDbmsDataSourceHandler(ConnectionPoolComponent connectionPoolComponent) {<NEW_LINE>final Function<Dbms, PoolableConnection> extractor = connectionPoolComponent::getConnection;<NEW_LINE>final Consumer<PoolableConnection> starter = wrapSqlException(c -> c.setAutoCommit(false), "setup connection");<NEW_LINE>...
setTransactionIsolation(newLevel.getSqlIsolationLevel());
784,224
protected static ArrayList<SubtitleItem> findSubtitlesByName(DLNAResource resource, String languageCodes, FileNamePrettifier prettifier) {<NEW_LINE>if (resource == null) {<NEW_LINE>return new ArrayList<>();<NEW_LINE>}<NEW_LINE>String fileName = null;<NEW_LINE>if (resource instanceof RealFile) {<NEW_LINE>File file = ((R...
, prettifier.getSeason()));
545,195
private void loadNode157() {<NEW_LINE>ServerCapabilitiesTypeNode node = new ServerCapabilitiesTypeNode(this.context, Identifiers.Server_ServerCapabilities, new QualifiedName(0, "ServerCapabilities"), new LocalizedText("en", "ServerCapabilities"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), UByte...
.expanded(), true));
1,469,386
public static Object fromPropertyDescriptor(ExecutionContext context, Object d) {<NEW_LINE>// 8.10.4<NEW_LINE>if (d == Types.UNDEFINED) {<NEW_LINE>return Types.UNDEFINED;<NEW_LINE>}<NEW_LINE>final PropertyDescriptor desc = (PropertyDescriptor) d;<NEW_LINE>JSObject obj = new DynObject(context.getGlobalContext());<NEW_LI...
, true, true), false);
1,184,013
// ==== Dialog ====<NEW_LINE>public void showDialog(Node node) {<NEW_LINE>FXUtils.checkFxUserThread();<NEW_LINE>if (dialog == null) {<NEW_LINE>if (decorator.getDrawerWrapper() == null) {<NEW_LINE>// Sometimes showDialog will be invoked before decorator was initialized.<NEW_LINE>// Keep trying again.<NEW_LINE>Platform.r...
() -> showDialog(node));
1,265,685
public boolean onSingleTapConfirmed(MotionEvent e) {<NEW_LINE>// create a point where the user tapped<NEW_LINE>android.graphics.Point point = new android.graphics.Point(Math.round(e.getX()), Math.round(e.getY()));<NEW_LINE>Point mapPoint = mMapView.screenToLocation(point);<NEW_LINE>if (addFacilityButton.isSelected()) {...
.toGeometry(), barrierLine));
526,438
public Result doWork() {<NEW_LINE>final var repo = NotesRepository.getInstance(getApplicationContext());<NEW_LINE>for (final var account : repo.getAccounts()) {<NEW_LINE>try {<NEW_LINE>final var ssoAccount = AccountImporter.getSingleSignOnAccount(getApplicationContext(), account.getAccountName());<NEW_LINE>Log.i(TAG, "...
), capabilities.getApiVersion());
233,397
public String startMinion(String minionStarterClassName, PinotConfiguration minionConf) throws Exception {<NEW_LINE>LOGGER.info("Trying to start Pinot Minion...");<NEW_LINE>if (!minionConf.containsKey(CommonConstants.Helix.CONFIG_OF_CLUSTER_NAME)) {<NEW_LINE>minionConf.setProperty(CommonConstants.Helix.CONFIG_OF_CLUSTE...
LOGGER.info("Pinot Minion instance [{}] is Started...", instanceId);
1,601,711
private void initialize(AgentWorkContext agentWorkContext) {<NEW_LINE>JobIdentifier jobIdentifier = assignment.getJobIdentifier();<NEW_LINE>this.timeProvider = new TimeProvider();<NEW_LINE>agentWorkContext.getAgentRuntimeInfo().busy(new AgentBuildingInfo(jobIdentifier.buildLocatorForDisplay(), jobIdentifier.buildLocato...
agentWorkContext.getPluginRequestProcessorRegistry(), workingDirectory);
179,274
public static JsonWebKey fromRsa(KeyPair keyPair) {<NEW_LINE>RSAPrivateCrtKey privateKey = <MASK><NEW_LINE>JsonWebKey key = null;<NEW_LINE>if (privateKey != null) {<NEW_LINE>key = new JsonWebKey().setKeyType(KeyType.RSA).setN(toByteArray(privateKey.getModulus())).setE(toByteArray(privateKey.getPublicExponent())).setD(t...
(RSAPrivateCrtKey) keyPair.getPrivate();
664,996
Mono<Response<BlockBlobItem>> uploadFromUrlWithResponse(BlobUploadFromUrlOptions options, Context context) {<NEW_LINE>StorageImplUtils.assertNotNull("options", options);<NEW_LINE>BlobRequestConditions destinationRequestConditions = options.getDestinationRequestConditions() == null ? new BlobRequestConditions() : option...
), hd.getXMsVersionId());
754,062
private void addStep(String path, long value) {<NEW_LINE>if (ongoingGpuProfiling && renderer != null) {<NEW_LINE>renderer.stopProfiling();<NEW_LINE>ongoingGpuProfiling = false;<NEW_LINE>}<NEW_LINE>if (prevPath != null) {<NEW_LINE>StatLine prevLine = data.get(prevPath);<NEW_LINE>if (prevLine != null) {<NEW_LINE>prevLine...
line.taskIds.add(id);
1,159,961
protected Record rebalance(int id1, Record r1, int id2, Record r2) {<NEW_LINE>RecordBufferPageMgr mgr = bpt.getRecordsMgr().getRecordBufferPageMgr();<NEW_LINE>RecordBufferPage page1 = mgr.getWrite(id1);<NEW_LINE>RecordBufferPage <MASK><NEW_LINE>// Wrong calculation.<NEW_LINE>for (int i = page2.getCount(); i < page1.get...
page2 = mgr.getWrite(id2);
1,106,798
public Boolean removeTranslationPageFromCache(final String uri, String localeCode, boolean isSecure) {<NEW_LINE>String cacheKey = buildBaseKey(uri, localeCode, isSecure);<NEW_LINE>List<String> cacheKeys = new ArrayList<>();<NEW_LINE>cacheKeys.add(cacheKey);<NEW_LINE>if (queryExtensionManager != null) {<NEW_LINE>Extensi...
getPageCache().remove(cKey);
1,177,917
/*<NEW_LINE>* This method is called from invalidateAll for local invalidations.<NEW_LINE>*/<NEW_LINE>public void invalidate(String sessionId) {<NEW_LINE>if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_CORE.isLoggable(Level.FINE)) {<NEW_LINE>StringBuffer sb = new StringBuffer("for ...
(methodClassName, methodNames[INVALIDATE]);
1,558
public BaseMethodBinding<?> determineResourceMethod(RequestDetails requestDetails, String requestPath) {<NEW_LINE>RequestTypeEnum requestType = requestDetails.getRequestType();<NEW_LINE>ResourceBinding resourceBinding = null;<NEW_LINE>BaseMethodBinding<?> resourceMethod = null;<NEW_LINE>String resourceName = requestDet...
throwUnknownFhirOperationException(requestDetails, requestPath, requestType);
1,349,270
public static FileObject resolveFileObjectForClass(FileObject referenceFileObject, final String className) throws IOException {<NEW_LINE>final FileObject[] result = new FileObject[1];<NEW_LINE>JavaSource <MASK><NEW_LINE>if (javaSource == null) {<NEW_LINE>// Should not happen, at least some debug logging, see i.e. issue...
javaSource = JavaSource.forFileObject(referenceFileObject);
1,278,582
public final /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see SimplifiedSerialization.writeObject(java.io.DataInputStream)<NEW_LINE>*/<NEW_LINE>void writeObject(java.io.DataOutputStream dataOutputStream) throws ObjectManagerException {<NEW_LINE>if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())<NEW_LINE...
cclass, "writeObject", exception, "1:1229:1.26");
121,607
public void ldc(TypeBinding typeBinding) {<NEW_LINE>this.countLabels = 0;<NEW_LINE>int index = this.constantPool.literalIndexForType(typeBinding);<NEW_LINE>this.stackDepth++;<NEW_LINE>pushTypeBinding(typeBinding);<NEW_LINE>if (this.stackDepth > this.stackMax)<NEW_LINE>this.stackMax = this.stackDepth;<NEW_LINE>if (index...
classFileOffset++] = (byte) index;
129,562
protected void addBookmark(int level, String title, int x, int y) {<NEW_LINE>Bookmark parent = bookmarkStack.peek();<NEW_LINE>// searching for parent<NEW_LINE>while (parent.level >= level) {<NEW_LINE>bookmarkStack.pop();<NEW_LINE>parent = bookmarkStack.peek();<NEW_LINE>}<NEW_LINE>if (!getCurrentItemConfiguration().isCo...
= new Bookmark(parent, EMPTY_BOOKMARK_TITLE);
1,840,177
protected void renderBg(PoseStack transform, float f, int mx, int my) {<NEW_LINE>RenderSystem.enableBlend();<NEW_LINE>ClientUtils.bindTexture(TEXTURE);<NEW_LINE>this.blit(transform, leftPos, topPos, <MASK><NEW_LINE>RenderSystem.disableBlend();<NEW_LINE>GuiHelper.handleGuiTank(transform, tile.tank, leftPos + 8, topPos +...
0, 0, imageWidth, imageHeight);
1,766,433
private void reloadField(Object component, IssueField field) {<NEW_LINE>String newValue;<NEW_LINE>if (component instanceof JList) {<NEW_LINE>newValue = mergeValues(issue.getFieldValues(field));<NEW_LINE>} else {<NEW_LINE>newValue = issue.getFieldValue(field);<NEW_LINE>}<NEW_LINE>boolean fieldDirty = unsavedFields.conta...
) component).setText(newValue);
1,218,753
public void execute(CommandLine commandLine, Options options, RPCHook rpcHook) throws SubCommandException {<NEW_LINE>DefaultMQAdminExt defaultMQAdminExt = new DefaultMQAdminExt(rpcHook);<NEW_LINE>defaultMQAdminExt.setInstanceName(Long.toString(System.currentTimeMillis()));<NEW_LINE>try {<NEW_LINE>String clusterName = c...
clusterScaleMap.put("slaveBrokerSize", slaveBrokerSize);
261,026
public String serialize(int numberOfSpacesToIndent, HttpResponse httpResponse) {<NEW_LINE>StringBuffer output = new StringBuffer();<NEW_LINE>if (httpResponse != null) {<NEW_LINE>appendNewLineAndIndent(numberOfSpacesToIndent * INDENT_SIZE, output).append("response()");<NEW_LINE>if (httpResponse.getStatusCode() != null) ...
))).append("\"))");
1,766,178
public final <X> P8<A, X, C, D, E, F, G, H> map2(final fj.F<B, X> f) {<NEW_LINE>return new P8<A, X, C, D, E, F, G, H>() {<NEW_LINE><NEW_LINE>public A _1() {<NEW_LINE>return P8.this._1();<NEW_LINE>}<NEW_LINE><NEW_LINE>public X _2() {<NEW_LINE>return f.f(P8.this._2());<NEW_LINE>}<NEW_LINE><NEW_LINE>public C _3() {<NEW_LI...
return P8.this._7();
1,437,800
protected double computeWeightedOrientation(int c_x, int c_y) {<NEW_LINE>computeAngles();<NEW_LINE>double windowRadius = windowSize / 2.0;<NEW_LINE>int w = rect.x1 - rect.x0;<NEW_LINE>double bestScore = -1;<NEW_LINE>double bestAngle = 0;<NEW_LINE>double stepAngle = Math.PI * 2.0 / numAngles;<NEW_LINE>int N = w * (rect....
derivY.get(x, y);
86,519
private <T extends Annotation> void inspect(Object handler, Method method, Class<T> annotationType, Class<? extends RepositoryEvent> eventType) {<NEW_LINE>T annotation = AnnotationUtils.findAnnotation(method, annotationType);<NEW_LINE>if (annotation == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (method.getParamete...
events = handlerMethods.get(eventType);
870,884
private JSONObject findProperty(final JSONObject parent, final String name) {<NEW_LINE>JSONArray properties = getJSONArrayProperty(parent, PROPERTIES);<NEW_LINE>if (properties != null) {<NEW_LINE>for (Object propertyTmp : properties) {<NEW_LINE>JSONObject property = (JSONObject) propertyTmp;<NEW_LINE>String <MASK><NEW_...
propertyName = getJSONStringProperty(property, NAME);
583,906
public void run() {<NEW_LINE>try {<NEW_LINE>if (mPokemonGo != null && NianticManager.this.currentBatchCall == myCurrentBatch) {<NEW_LINE>Thread.sleep(133);<NEW_LINE>mPokemonGo.setLocation(latitude, longitude, alt);<NEW_LINE>Thread.sleep(133);<NEW_LINE>Collection<FortDataOuterClass.FortData> gyms = mPokemonGo.getMap().g...
"Failed to fetch map information via getGyms(). Login credentials wrong or user banned. Raised: " + e.getMessage());
626,487
public void invoke(@Nonnull Project project, Editor editor, PsiFile file, DataContext dataContext) {<NEW_LINE>int offset = editor.getCaretModel().getOffset();<NEW_LINE>editor.getScrollingModel().scrollToCaret(ScrollType.MAKE_VISIBLE);<NEW_LINE>PsiElement element = file.findElementAt(offset);<NEW_LINE>while (true) {<NEW...
TextRange range = element.getTextRange();
172,544
public ArrangementSettings deserialize(@Nonnull Element element) {<NEW_LINE>final Set<StdArrangementRuleAliasToken> tokensDefinition = deserializeTokensDefinition(element, myDefaultSettings);<NEW_LINE>final List<ArrangementGroupingRule> groupingRules = deserializeGropings(element, myDefaultSettings);<NEW_LINE>final Ele...
StdArrangementExtendableSettings(groupingRules, sectionRules, tokensDefinition);
1,753,749
public static byte[] ecdsaDer2Ieee(byte[] der, int ieeeLength) throws GeneralSecurityException {<NEW_LINE>if (!isValidDerEncoding(der)) {<NEW_LINE>throw new GeneralSecurityException("Invalid DER encoding");<NEW_LINE>}<NEW_LINE>byte[] ieee = new byte[ieeeLength];<NEW_LINE>int length = der[1] & 0xff;<NEW_LINE>int offset ...
rLength + extraZero, rLength - extraZero);
121,352
private void buildDialog(boolean wasException) {<NEW_LINE>try {<NEW_LINE>final AlertDialog.Builder b = new AlertDialog.Builder(MultiredditOverview.this).setCancelable(false).setOnDismissListener(dialog -> finish());<NEW_LINE>if (wasException) {<NEW_LINE>b.setTitle(R.string.err_title).setMessage(R.string.err_loading_con...
, which) -> finish());
1,341,235
private void collectPlatformProperties(ApplicationModelBuilder appBuilder, List<Dependency> managedDeps) throws AppModelResolverException {<NEW_LINE>final PlatformImportsImpl platformReleases = new PlatformImportsImpl();<NEW_LINE>for (Dependency d : managedDeps) {<NEW_LINE>final Artifact artifact = d.getArtifact();<NEW...
extension, artifact.getVersion());
1,128,935
private Flux<AsyncPollResponse<T, U>> pollingLoop(PollingContext<T> pollingContext) {<NEW_LINE>return // Create a Polling Context per subscription<NEW_LINE>Flux.// Create a Polling Context per subscription<NEW_LINE>using(// Do polling<NEW_LINE>() -> pollingContext, // set|read to|from context as needed, reactor guarant...
.cancelOperation, this.fetchResultOperation));
381,412
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.digitalpebble.stormcrawler.persistence.Scheduler#schedule(com.<NEW_LINE>* digitalpebble. stormcrawler.persistence .Status,<NEW_LINE>* com.digitalpebble.stormcrawler.Metadata)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public Optional<Date> schedule(Status status, ...
customInterval = checkCustomInterval(metadata, status);
1,344,741
public static void square(long[] x, long[] z) {<NEW_LINE>long[] t = new long[4];<NEW_LINE>Interleave.expand64To128(x<MASK><NEW_LINE>Interleave.expand64To128(x[1], t, 2);<NEW_LINE>long z0 = t[0], z1 = t[1], z2 = t[2], z3 = t[3];<NEW_LINE>z1 ^= z3 ^ (z3 << 1) ^ (z3 << 2) ^ (z3 << 7);<NEW_LINE>z2 ^= (z3 >>> 63) ^ (z3 >>> ...
[0], t, 0);
56,678
public void testRxFlowableInvoker_get3WithGenericType(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String serverPort = param.get("serverPort");<NEW_LINE>final String threadName = "jaxrs21Thread";<NEW_LINE>ThreadFactory jaxrs21ThreadFactory = Executors.defaul...
newBuilder().executorService(executorService);
1,273,358
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "theString".split(",");<NEW_LINE>String epl = "create window ABCWin#length_batch(3) as SupportBean;\n" + "insert into ABCWin select * from SupportBean;\n" + "on SupportBean_A delete from ABCWin where theString = id;\n" + "@Name('s0') select irstrea...
new Object[0][]);
1,608,611
public boolean tryLock(final byte[] ctx, final long timeout, final TimeUnit unit) {<NEW_LINE>final long timeoutNs = unit.toNanos(timeout);<NEW_LINE>final long startNs = System.nanoTime();<NEW_LINE>int attempts = 1;<NEW_LINE>try {<NEW_LINE>for (; ; ) {<NEW_LINE>final Owner owner = internalTryLock(ctx);<NEW_LINE>if (owne...
(remaining, 2 << attempts));
17,912
public void analyze(Analyzer analyzer) throws AnalysisException, UserException {<NEW_LINE>super.analyze(analyzer);<NEW_LINE>// check auth<NEW_LINE>if (!Env.getCurrentEnv().getAuth().checkGlobalPriv(ConnectContext.get(), PrivPredicate.ADMIN)) {<NEW_LINE>ErrorReport.<MASK><NEW_LINE>}<NEW_LINE>tblRef.getName().analyze(ana...
reportAnalysisException(ErrorCode.ERR_SPECIFIC_ACCESS_DENIED_ERROR, "ADMIN");
629,465
private void removeWildcardsWithoutNullColumns(QueryStatement queryStatement) throws StatementAnalyzeException {<NEW_LINE>List<Expression> expressions = queryStatement.getFilterNullComponent().getWithoutNullColumns();<NEW_LINE>// because timeSeries path may be with "*", so need to remove it for getting some actual<NEW_...
actualExpressions = new ArrayList<>();
1,694,393
private static Collection<StateExpr> pruneRoot(StateExpr root, Multimap<StateExpr, StateExpr> postStates, Multimap<StateExpr, StateExpr> preStates, BiConsumer<StateExpr, StateExpr> removeEdge, Set<StateExpr> statesToKeep) {<NEW_LINE>assert !statesToKeep.contains(root);<NEW_LINE>assert !preStates.containsKey(root);<NEW_...
successors = postStates.removeAll(root);
140,108
protected Chunk newMediaChunk(RepresentationHolder representationHolder, DataSource dataSource, int trackType, Format trackFormat, int trackSelectionReason, Object trackSelectionData, long firstSegmentNum, int maxSegmentCount, long seekTimeUs) {<NEW_LINE>Representation representation = representationHolder.representati...
length, representation.getCacheKey());
927,641
public void onViewCreated(@NonNull final View view, final Bundle savedInstanceState) {<NEW_LINE>super.onViewCreated(view, savedInstanceState);<NEW_LINE>final Context context = view.getContext();<NEW_LINE>final AppSettings as = new AppSettings(context);<NEW_LINE>final ContextUtils cu = new ContextUtils(context);<NEW_LIN...
ShareIntoImportOptionsFragment.TAG).commit();
734,877
private static void createValidationCodePath(MethodCreator bytecodeCreator, ResultHandle configObject, String configPrefix) {<NEW_LINE>ResultHandle validationResult = bytecodeCreator.invokeInterfaceMethod(MethodDescriptor.ofMethod(VALIDATOR_CLASS, "validate", Set.class, Object.class, Class[].class), bytecodeCreator.get...
, boolean.class), validationResult);
608,718
public List<Long> jobOperatorGetJobInstanceIds(String jobName, String appTag, int start, int count) {<NEW_LINE>List<Long> data = new ArrayList<>();<NEW_LINE>try (Connection conn = getConnection();<NEW_LINE>PreparedStatement statement = conn.prepareStatement(queryStrings.get(JOBOPERATOR_GET_JOB_INSTANCE_IDS))) {<NEW_LIN...
id = rs.getLong("jobinstanceid");
455,400
public // , ISequentialInStream<NEW_LINE>int // , ISequentialInStream<NEW_LINE>Code(// ISequentialOutStream<NEW_LINE>java.io.InputStream inStream, java.io.OutputStream outStream, long outSize, ICompressProgressInfo progress) throws java.io.IOException {<NEW_LINE>byte[] _buffer = new byte[kBufferSize];<NEW_LINE>long Tot...
progress.SetRatioInfo(TotalSize, TotalSize);
1,139,248
private GeneralPath makeDocumentPath(Diagram diagram) {<NEW_LINE>if (points.size() != 4)<NEW_LINE>return null;<NEW_LINE>Rectangle bounds = makeIntoPath().getBounds();<NEW_LINE>ShapePoint point1 = new ShapePoint((float) bounds.getMinX(), (float) bounds.getMinY());<NEW_LINE>ShapePoint point2 = new ShapePoint((float) boun...
float) bounds.getMinY());
712,065
public void selectPackagePrefixByProject() {<NEW_LINE>TreeSet<String> projects = new TreeSet<>(String.CASE_INSENSITIVE_ORDER);<NEW_LINE>Multiset<String> count = new Multiset<>();<NEW_LINE>int total = 0;<NEW_LINE>for (BugInstance b : getBugCollection().getCollection()) {<NEW_LINE>if (shouldDisplayIssueIgnoringPackagePre...
projects.size() + 1);
1,769,677
public static void main(String[] args) {<NEW_LINE>if (args.length < 3) {<NEW_LINE>System.out.println("paramters not specified.");<NEW_LINE>System.out.println("H2Control <h2 command> <h2 host> <h2 port> <h2 home> <redirect output>");<NEW_LINE>System.exit(1);<NEW_LINE>}<NEW_LINE>H2Control h2Control = null;<NEW_LINE>if (a...
3], args[4]);
1,248,437
public static Resource findRootByType(Model model, Resource atype) {<NEW_LINE>String s = String.join("\n", "PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>", "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>", "SELECT DISTINCT ?root { { ?root rdf:type ?ATYPE } UNION { ?root rdf:type ?t . ?t rdfs:su...
qsm.add("ATYPE", atype);
1,361,499
private ListenableFuture<Optional<BuildResult>> checkManifestBasedCaches() {<NEW_LINE>Optional<DependencyFileRuleKeyFactory.RuleKeyAndInputs> manifestKeyAndInputs = manifestBasedKeySupplier.get();<NEW_LINE>if (!manifestKeyAndInputs.isPresent()) {<NEW_LINE>return Futures.<MASK><NEW_LINE>}<NEW_LINE>getBuildInfoRecorder()...
immediateFuture(Optional.empty());
1,462,964
public void excuteSetCommand(List<Map<String, String>> attributesToAdd, List<Map<String, String>> attributesToDelete) throws TransactionFailure {<NEW_LINE>try {<NEW_LINE>// Add all required metrics<NEW_LINE>for (Map<String, String> attribute : attributesToAdd) {<NEW_LINE>Map<String, String> parameters = new HashMap<>()...
parameters.put("service", "mp-metrics");
1,263,561
public /* synchronized */<NEW_LINE>Pair<String, String> putIfAbsent(String accountName, String remotePath, V value) {<NEW_LINE>String targetKey = buildKey(accountName, remotePath);<NEW_LINE>Node<V> valuedNode = new Node(targetKey, value);<NEW_LINE>Node<V> previousValue = <MASK><NEW_LINE>if (previousValue != null) {<NEW...
mMap.putIfAbsent(targetKey, valuedNode);
237,865
public void converterFor(RelationalColumn column, ConverterRegistration<SchemaBuilder> registration) {<NEW_LINE>String sqlType = column.typeName().toUpperCase();<NEW_LINE>SchemaBuilder schemaBuilder = null;<NEW_LINE>Converter converter = null;<NEW_LINE>if ("DATE".equals(sqlType)) {<NEW_LINE>schemaBuilder = SchemaBuilde...
optional().name("org.apache.inlong.agent.date.string");
955,010
private void markupReferenceListEntry(ResourceMap map, Address mapAddress, ResourceType type, Address resourceDataAddress) throws DuplicateNameException, IOException, Exception {<NEW_LINE>ProgramModule module = createModule("ResourceListEntry");<NEW_LINE>int id = 0;<NEW_LINE>Address entryAddress = mapAddress.add(map.ge...
add(entryDT.getLength());
1,511,903
public void init(FilterConfig filterConfig) throws ServletException {<NEW_LINE>final MetricRegistry metricsRegistry = getMetricsFactory(filterConfig);<NEW_LINE>String metricName = filterConfig.getInitParameter(METRIC_PREFIX);<NEW_LINE>if (metricName == null || metricName.isEmpty()) {<NEW_LINE>metricName = getClass().ge...
(name(metricName, "errors"));
579,588
public RelDataType deriveType(SqlValidator validator, SqlValidatorScope scope, SqlCall call) {<NEW_LINE>final RelDataTypeFactory typeFactory = validator.getTypeFactory();<NEW_LINE>List<RelDataTypeFieldImpl> <MASK><NEW_LINE>int index = 0;<NEW_LINE>columns.add(new RelDataTypeFieldImpl("SCHEDULE_ID", index++, typeFactory....
columns = new LinkedList<>();
1,154,304
public void run() {<NEW_LINE>logger.info("Aggregating account stats for local report");<NEW_LINE>try {<NEW_LINE>// Each time we collect account stats from blob stores, we will recalculate the delete tombstone related stats<NEW_LINE>// as well. So before starting collecting account stats, let's reset the delete tombston...
collectAndAggregateAccountStorageStats(hostStorageStatsMap, partitionId, unreachablePartitions);
403,158
public Request<GetIdentityProviderByIdentifierRequest> marshall(GetIdentityProviderByIdentifierRequest getIdentityProviderByIdentifierRequest) {<NEW_LINE>if (getIdentityProviderByIdentifierRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(GetIdentityProviderByIdentifierReq...
request.addHeader("X-Amz-Target", target);
1,656,050
public List<ResourceHistoryTable> fetchEntities(RequestPartitionId thePartitionId, Integer theOffset, int theFromIndex, int theToIndex) {<NEW_LINE>CriteriaBuilder cb = myEntityManager.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<ResourceHistoryTable> criteriaQuery = cb.createQuery(ResourceHistoryTable.class);<NEW_LINE>...
fetch("myProvenance", JoinType.LEFT);
683,502
private static void patchGeneratedMessageLite() {<NEW_LINE>try {<NEW_LINE>ClassPool classPool = getClassPool();<NEW_LINE>CtClass generatedMessageLite = classPool.get(protobufPackage + "GeneratedMessageLite");<NEW_LINE>removeFinal(generatedMessageLite.getDeclaredMethod("getParserForType"));<NEW_LINE>removeFinal(generate...
logger.warn("Unable to patch Protobuf.", e);