idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,682,740
final UpdateInstanceCustomHealthStatusResult executeUpdateInstanceCustomHealthStatus(UpdateInstanceCustomHealthStatusRequest updateInstanceCustomHealthStatusRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateInstanceCustomHealthStatusRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
864,341
protected SessionDataSet executeQueryStatement(String sql, long timeout) throws StatementExecutionException, IoTDBConnectionException, RedirectException {<NEW_LINE>TSExecuteStatementReq execReq = new TSExecuteStatementReq(sessionId, sql, statementId);<NEW_LINE>execReq.setFetchSize(session.fetchSize);<NEW_LINE>execReq.s...
verifySuccess(execResp.getStatus());
112,149
private static void languageTab(Document doc) {<NEW_LINE>for (Element primary : doc.select(".listingblock.primary")) {<NEW_LINE>Element secondary = primary.nextElementSibling();<NEW_LINE>String secondaryTitle = secondary.selectFirst(".title").text().trim();<NEW_LINE>Element primaryContent = primary.selectFirst(".conten...
tab2 = tabs.appendElement("div");
1,555,193
public void onDocumentNoChange(IDocumentNoAware model, String newDocumentNo) {<NEW_LINE>final I_C_Order order = InterfaceWrapperHelper.create(model, I_C_Order.class);<NEW_LINE>if (!Check.isEmpty(order.getPOReference(), true)) {<NEW_LINE>// the POReference is already set.<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final <MASK...
String documentNo = order.getDocumentNo();
1,040,809
final GetPortalResult executeGetPortal(GetPortalRequest getPortalRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getPortalRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
invoke(request, responseHandler, executionContext);
953,542
public <Req, Resp> ClientCall<Req, Resp> newCall(final MethodDescriptor<Req, Resp> methodDescriptor, final BufferDecoderGroup decompressors) {<NEW_LINE>final HttpClient client = streamingHttpClient.asClient();<NEW_LINE>GrpcSerializer<Req> serializerIdentity = serializer(methodDescriptor);<NEW_LINE>GrpcDeserializer<<MAS...
Resp> deserializerIdentity = deserializer(methodDescriptor);
1,758,725
private void lookupLocal(String lookup, boolean isAmbiguous) throws Exception {<NEW_LINE>try {<NEW_LINE>AmbiguousNameHome beanHome = (AmbiguousNameHome) new InitialContext().lookup(lookup);<NEW_LINE>if (isAmbiguous) {<NEW_LINE>fail("lookup of " + lookup + " should have been ambiguous");<NEW_LINE>}<NEW_LINE><MASK><NEW_L...
AmbiguousName bean = beanHome.create();
584,632
public void dumpsignatureNameThread(String signatureName, String title) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append(title);<NEW_LINE>sb.append("\nASYNC TASK QUEUE DUMP:");<NEW_LINE>sb.append(String.format("\nTASK QUEUE NUMBER: %s\n", chainTasks.size()));<NEW_LINE>List<String> asyncTasks = new ...
w = chainTasks.get(signatureName);
1,221,095
final DeleteVaultNotificationsResult executeDeleteVaultNotifications(DeleteVaultNotificationsRequest deleteVaultNotificationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteVaultNotificationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
invoke(request, responseHandler, executionContext);
826,200
private BPartnerLocationAddressPart createNewLocationRecord(@NonNull final BPartnerLocationAddressPart address) {<NEW_LINE>final LocationCreateRequest.LocationCreateRequestBuilder requestBuilder = LocationCreateRequest.builder().address1(address.getAddress1()).address2(address.getAddress2()).address3(address.getAddress...
city(address.getCity());
1,763,583
// checkLogin<NEW_LINE>public boolean login(int AD_User_ID, int AD_Role_ID, int AD_Client_ID, int AD_Org_ID, int AD_Warehouse_ID, String Lang) {<NEW_LINE>LoggedIn = false;<NEW_LINE>String loginInfo = checkLogin(getM_ctx(), AD_User_ID, AD_Role_ID, AD_Client_ID, AD_Org_ID, AD_Warehouse_ID);<NEW_LINE>if (loginInfo == null...
LANGUAGE, m_lang.getAD_Language());
1,614,218
private void updateViewFaceShape() {<NEW_LINE>float faceShape = getValue(R.id.beauty_box_face_shape);<NEW_LINE>mBoxIntensityChin.setVisibility(faceShape != 4 ? GONE : VISIBLE);<NEW_LINE>mBoxIntensityForehead.setVisibility(<MASK><NEW_LINE>mBoxIntensityNose.setVisibility(faceShape != 4 ? GONE : VISIBLE);<NEW_LINE>mBoxInt...
faceShape != 4 ? GONE : VISIBLE);
1,025,151
public ImportDataSource unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ImportDataSource importDataSource = new ImportDataSource();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentT...
String currentParentElement = context.getCurrentParentElement();
759,572
private void detectOutdatedWrapper() {<NEW_LINE>List<String> wrapperFilenames = Arrays.asList("NZBHydra2.exe", "NZBHydra2 Console.exe", "nzbhydra2", "nzbhydra2wrapper.py", "nzbhydra2wrapperPy3.py");<NEW_LINE>Map<String, String> filenamesToExpectedHashes;<NEW_LINE>try {<NEW_LINE>filenamesToExpectedHashes = Jackson.JSON_...
logger.error("Error while trying to read wrapper hashes", e);
267,736
public void onTimeSet(RadialPickerLayout view, int hourOfDay, int minute) {<NEW_LINE>sharedPrefs.edit().putInt("day_start_hour", hourOfDay).putInt("day_start_min", minute).commit();<NEW_LINE>new AlertDialog.Builder(getActivity()).setTitle(R.string.night_mode_theme).setItems(getResources().getStringArray(R.array.choose_...
getBoolean("military_time", false)));
1,009,531
public boolean evaluateReference(VarnodeContext context, Instruction instr, int pcodeop, Address address, int size, RefType refType) {<NEW_LINE>// if this is a call, some processors use the register value<NEW_LINE>// used in the call for PIC calculations<NEW_LINE>if (refType.isFlow()) {<NEW_LINE>// set the called funct...
pcodeop, address, size, refType);
1,707,309
public Boolean sendMessage(String userId, String message) {<NEW_LINE>String payload = String.format(SLACK_MESSAGE_TEMPLATE, userId, message);<NEW_LINE>String response = "";<NEW_LINE>LOGGER.debug(payload);<NEW_LINE>String slackUrl = CommonUtils.getPropValue(SLACK_WEBHOOK);<NEW_LINE>LOGGER.debug(slackUrl);<NEW_LINE>HttpC...
PostMethod post = new PostMethod(slackUrl);
946,218
public static DescribeWhiteListEffectiveAssetsResponse unmarshall(DescribeWhiteListEffectiveAssetsResponse describeWhiteListEffectiveAssetsResponse, UnmarshallerContext context) {<NEW_LINE>describeWhiteListEffectiveAssetsResponse.setRequestId(context.stringValue("DescribeWhiteListEffectiveAssetsResponse.RequestId"));<N...
("DescribeWhiteListEffectiveAssetsResponse.Assets[" + i + "].StrategyName"));
1,843,317
public boolean isCompatibleMetadata(final ImageServerMetadata metadata) {<NEW_LINE>// if (!path.equals(metadata.path)) {<NEW_LINE>// logger.warn("Metadata paths are not compatible: \n{}\n{}", path, metadata.path);<NEW_LINE>// return false;<NEW_LINE>// }<NEW_LINE>if (pixelType != metadata.pixelType) {<NEW_LINE>logger.wa...
, metadata.getSizeT()));
912,198
public static long parseLong(final CharSequence s) {<NEW_LINE>if (s == null)<NEW_LINE>throw new NumberFormatException("Null string");<NEW_LINE>// Check for a sign.<NEW_LINE>long num = 0;<NEW_LINE>long sign = -1;<NEW_LINE>final int len = s.length();<NEW_LINE>final char <MASK><NEW_LINE>if (ch == '-') {<NEW_LINE>if (len =...
ch = s.charAt(0);
781,451
public void onMapReady(@NonNull final MapboxMap mapboxMap) {<NEW_LINE>// Add Features which represent the location of each profile photo SymbolLayer icon<NEW_LINE>Feature carlosFeature = Feature.fromGeometry(Point.fromLngLat(-7.9760742, 41.2778064));<NEW_LINE>carlosFeature.addStringProperty(PROFILE_NAME, CARLOS);<NEW_L...
fromLngLat(-8.0639648, 37.5445773));
1,283,908
public synchronized void noteAppRegistered(String packageName, String signature, String registrationId) {<NEW_LINE>SQLiteDatabase db = getWritableDatabase();<NEW_LINE>db.beginTransaction();<NEW_LINE>App app = getApp(db, packageName);<NEW_LINE>if (app == null) {<NEW_LINE>ContentValues cv = new ContentValues();<NEW_LINE>...
cv.put(FIELD_LAST_ERROR, "");
407,243
public void marshall(PushNotificationTemplateRequest pushNotificationTemplateRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (pushNotificationTemplateRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller....
pushNotificationTemplateRequest.getAPNS(), APNS_BINDING);
1,290,005
private List<CustomPropertyDefinition> writeResourceHeaders(SpreadsheetWriter writer) throws IOException {<NEW_LINE>for (Map.Entry<String, BooleanOption> entry : myCsvOptions.getResourceOptions().entrySet()) {<NEW_LINE>ResourceDefaultColumn defaultColumn = ResourceDefaultColumn.find(entry.getKey());<NEW_LINE>if (!entry...
print(nextDef.getName());
801,990
public DescribeStreamConsumerResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeStreamConsumerResult describeStreamConsumerResult = new DescribeStreamConsumerResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1...
String currentParentElement = context.getCurrentParentElement();
854,491
private void performGoTo(final Document doc, final int offset, final AtomicBoolean cancel) {<NEW_LINE>final Pair<Node, ELElement> nodeElem = <MASK><NEW_LINE>if (nodeElem == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final FileObject file = DataLoadersBridge.getDefault().getFileObject(doc);<NEW_LINE>ClasspathInfo cp =...
resolveNodeAndElement(doc, offset, cancel);
430,087
public TerminateSessionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TerminateSessionResult terminateSessionResult = new TerminateSessionResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_...
int originalDepth = context.getCurrentDepth();
833,837
public JComponent createControls() {<NEW_LINE>JPanel pane = new JPanel(new GridBagLayout());<NEW_LINE>JLabel lblX = new JLabel(_I("lblTargetOffsetX"));<NEW_LINE>JLabel lblY = <MASK><NEW_LINE>int x = _offset != null ? _offset.x : 0;<NEW_LINE>int y = _offset != null ? _offset.y : 0;<NEW_LINE>txtX = new JSpinner(new Spinn...
new JLabel(_I("lblTargetOffsetY"));
209,912
public void paste(Transferable t, NodeModel target, boolean asSibling, boolean isLeft, int dropAction) {<NEW_LINE>final ModeController modeController = Controller.getCurrentModeController();<NEW_LINE>final MMapController mapController = (MMapController) modeController.getMapController();<NEW_LINE>File mindmapFile = tar...
.getParentFile().mkdirs();
1,077,717
public void marshall(CreateStudioRequest createStudioRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createStudioRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createStudioRequest.getName...
createStudioRequest.getTags(), TAGS_BINDING);
668,949
public static FindInstanceListResponse unmarshall(FindInstanceListResponse findInstanceListResponse, UnmarshallerContext _ctx) {<NEW_LINE>findInstanceListResponse.setRequestId(_ctx.stringValue("FindInstanceListResponse.RequestId"));<NEW_LINE>findInstanceListResponse.setCode(_ctx.integerValue("FindInstanceListResponse.C...
("FindInstanceListResponse.Data.ItemList[" + i + "].FrontStatus"));
1,708,767
void handleStreamClosed(Status status) {<NEW_LINE>if (Objects.equal(status.getCode(), Code.UNIMPLEMENTED)) {<NEW_LINE>disabled = true;<NEW_LINE>logger.log(Level.SEVERE, "Health-check with {0} is disabled. Server returned: {1}", new Object[] { subchannel.getAllAddresses(), status });<NEW_LINE>subchannelLogger.log(Channe...
ChannelLogLevel.INFO, "TRANSIENT_FAILURE: health-check stream closed with {0}", status);
24,941
public boolean delete(String id) throws Exception {<NEW_LINE>if (LOG.isDebugEnabled())<NEW_LINE>LOG.debug("Remove:session {} for context {}", id, _context);<NEW_LINE>BasicDBObject mongoKey <MASK><NEW_LINE>DBObject sessionDocument = _dbSessions.findOne(new BasicDBObject(__ID, id));<NEW_LINE>if (sessionDocument != null) ...
= new BasicDBObject(__ID, id);
1,096,878
public static ListRecordingsResponse unmarshall(ListRecordingsResponse listRecordingsResponse, UnmarshallerContext context) {<NEW_LINE>listRecordingsResponse.setRequestId(context.stringValue("ListRecordingsResponse.RequestId"));<NEW_LINE>listRecordingsResponse.setSuccess(context.booleanValue("ListRecordingsResponse.Suc...
("ListRecordingsResponse.Recordings.List[" + i + "].CalledNumber"));
1,314,087
public synchronized void startDebug() {<NEW_LINE>// stopDebug(); // stop any running sessions<NEW_LINE>if (isStarted()) {<NEW_LINE>// do nothing<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// we are busy now<NEW_LINE>editor.statusBusy();<NEW_LINE>// clear console<NEW_LINE>editor.clearConsole();<NEW_LINE>// clear variable insp...
.getSrcFolder().getPath();
1,824,695
public void generateEnd(OptimizedTagContext context) {<NEW_LINE>// PK65013 - start<NEW_LINE>String pageContextVar = Constants.JSP_PAGE_CONTEXT_ORIG;<NEW_LINE>JspOptions jspOptions = context.getJspOptions();<NEW_LINE>if (jspOptions != null) {<NEW_LINE>if (context.isTagFile() && jspOptions.isModifyPageContextVariable()) ...
pageContextVar + ".getAttribute(\"TSXDefinedIndexManager\", PageContext.PAGE_SCOPE)).removeIndex(\"" + index + "\");");
1,669,226
int expireLimitedLeases(AssignableVMs.VMRejectLimiter vmRejectLimiter) {<NEW_LINE>if (singleLeaseMode)<NEW_LINE>return 0;<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>for (VirtualMachineLease l : leasesMap.values()) {<NEW_LINE>if (isRejectable(l) && l.getOfferedTime() < (now - leaseOfferExpirySecs * 1000) &...
logger.debug(hostname + ": cleared leases");
1,782,222
private void defineClass(String fqn, String injectToClass, byte[] classData) {<NEW_LINE>try {<NEW_LINE>Class<?> unsafeClass = Class.forName("sun.misc.Unsafe");<NEW_LINE>// NOI18N<NEW_LINE>Field <MASK><NEW_LINE>theUnsafe.setAccessible(true);<NEW_LINE>Object unsafe = theUnsafe.get(null);<NEW_LINE>// NOI18N<NEW_LINE>Class...
theUnsafe = unsafeClass.getDeclaredField("theUnsafe");
1,224,779
private void replayTo(Collector collector) throws IOException {<NEW_LINE>for (MatchingDocs docs : getMatchingDocs()) {<NEW_LINE>LeafCollector leafCollector = collector.getLeafCollector(docs.context);<NEW_LINE>Scorer scorer;<NEW_LINE>DocIdSetIterator idIterator = docs.docIdSet;<NEW_LINE>Weight weight = new Weight(null) ...
NaN, scoreMode(), idIterator);
523,695
private double[] calculateProjectionOnRoutePoint(RoutingHelper helper, RotatedTileBox box) {<NEW_LINE>double[] projectionXY = null;<NEW_LINE>Location ll = helper.getLastFixedLocation();<NEW_LINE>RouteCalculationResult route = helper.getRoute();<NEW_LINE>List<Location> locs = route.getImmutableAllLocations();<NEW_LINE><...
int cr = route.getCurrentRoute();
789,546
public static ListContactsResponse unmarshall(ListContactsResponse listContactsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listContactsResponse.setRequestId(_ctx.stringValue("ListContactsResponse.RequestId"));<NEW_LINE>listContactsResponse.setTotalCount(_ctx.integerValue("ListContactsResponse.TotalCount"));<NEW_LINE...
("ListContactsResponse.Contacts[" + i + "].Position"));
1,042,765
public IPSetForwardedIPConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>IPSetForwardedIPConfig iPSetForwardedIPConfig = new IPSetForwardedIPConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken tok...
String currentParentElement = context.getCurrentParentElement();
134,351
public <T> T merge(T entity, InsertOneOptions options) {<NEW_LINE>final Object id = mapper.getId(entity);<NEW_LINE>if (id == null) {<NEW_LINE>throw new MappingException("Could not get id for " + entity.getClass().getName());<NEW_LINE>}<NEW_LINE>VersionBumpInfo info = updateVersioning(entity);<NEW_LINE>final Query<T> qu...
(options.writeConcern()));
819,868
public void run() {<NEW_LINE>boolean ok = true;<NEW_LINE>final <MASK><NEW_LINE>List<FeedEntry> entries = context.getEntries();<NEW_LINE>if (entries.isEmpty()) {<NEW_LINE>feed.setMessage("Feed has no entries");<NEW_LINE>} else {<NEW_LINE>List<String> lastEntries = cache.getLastEntries(feed);<NEW_LINE>List<String> curren...
Feed feed = context.getFeed();
600,241
final DeleteProjectResult executeDeleteProject(DeleteProjectRequest deleteProjectRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteProjectRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
36,170
private void checkLoad() {<NEW_LINE>if (presentations == null) {<NEW_LINE>DataService ds = AppBeans.get(DataService.NAME);<NEW_LINE>LoadContext ctx = new LoadContext(Presentation.class);<NEW_LINE>ctx.setView("app");<NEW_LINE>UserSessionSource sessionSource = <MASK><NEW_LINE>UserSession session = sessionSource.getUserSe...
AppBeans.get(UserSessionSource.NAME);
1,499,104
protected void createFailedJobIncident() {<NEW_LINE>final ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration();<NEW_LINE>if (processEngineConfiguration.isCreateIncidentOnFailedJobEnabled()) {<NEW_LINE>String incidentHandlerType = Incident.FAILED_JOB_HANDLER_TYPE;<NEW_LINE>...
getDbEntityManager().merge(historicIncidentEvent);
1,454,008
protected Object createInstance(InstanceCookie[] cookies) throws IOException, ClassNotFoundException {<NEW_LINE>List<Action> actions <MASK><NEW_LINE>for (int i = 0; i < cookies.length; i++) {<NEW_LINE>Class<?> clazz = cookies[i].instanceClass();<NEW_LINE>if (JSeparator.class.isAssignableFrom(clazz)) {<NEW_LINE>// XXX <...
= new ArrayList<Action>();
905,763
public ModelBiasAppSpecification unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ModelBiasAppSpecification modelBiasAppSpecification = new ModelBiasAppSpecification();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()...
JsonToken token = context.getCurrentToken();
139,686
public void run() {<NEW_LINE>table.removeAll();<NEW_LINE>stacktrace.setText("");<NEW_LINE>int time = CastUtil.cint<MASK><NEW_LINE>boolean serviceThread = false;<NEW_LINE>String[] names = scouter.util.SortUtil.sort_string(pack.keys(), pack.size());<NEW_LINE>for (int i = 0, j = 0; i < names.length; i++) {<NEW_LINE>String...
(pack.get("Service Elapsed"));
1,338,408
private static void appendLong16(CharSink sink, long i) {<NEW_LINE>long c;<NEW_LINE>sink.put((char) <MASK><NEW_LINE>sink.put((char) ('0' + (c = i % 1000000000000000L) / 100000000000000L));<NEW_LINE>sink.put((char) ('0' + (c %= 100000000000000L) / 10000000000000L));<NEW_LINE>sink.put((char) ('0' + (c %= 10000000000000L)...
('0' + i / 1000000000000000L));
390,617
private int distanceOf(InternalPartition partition1, InternalPartition partition2) {<NEW_LINE>int distance = 0;<NEW_LINE>for (int i = 0; i < MAX_REPLICA_COUNT; i++) {<NEW_LINE>PartitionReplica replica1 = partition1.getReplica(i);<NEW_LINE>PartitionReplica replica2 = partition2.getReplica(i);<NEW_LINE>if (replica1 == nu...
replica1.uuid(), partition2);
1,027,539
public static <//<NEW_LINE>//<NEW_LINE>T> //<NEW_LINE>T //<NEW_LINE>parseObject(//<NEW_LINE>InputStream is, //<NEW_LINE>Charset charset, //<NEW_LINE>Type type, //<NEW_LINE>ParserConfig config, //<NEW_LINE>ParseProcess processor, int featureValues, Feature... features) throws IOException {<NEW_LINE>if (charset == null) ...
newBytes, 0, bytes.length);
747,833
private void createBrowserSection(Composite parent) {<NEW_LINE>Group group = new Group(parent, SWT.FLAT | SWT.SHADOW_IN);<NEW_LINE>group.setText(Messages.LaunchBrowserSettingsTab_WebBrowser);<NEW_LINE>group.setFont(parent.getFont());<NEW_LINE>group.setLayoutData(GridDataFactory.fillDefaults().grab(true, false).hint(500...
, false).create());
438,857
private BufferedImage printToImage(int dpi, final MapView view, final Rectangle innerBounds) {<NEW_LINE>double scaleFactor = (double) dpi / (double) (UITools.FONT_SCALE_FACTOR * 72);<NEW_LINE>int imageWidth = (int) Math.<MASK><NEW_LINE>int imageHeight = (int) Math.ceil(innerBounds.height * scaleFactor);<NEW_LINE>final ...
ceil(innerBounds.width * scaleFactor);
700,125
public void bind(ViewPager viewPager, TabLayout tabLayout, FloatingActionButton navigationFab, FloatingActionButton genericFab) {<NEW_LINE>viewPager.setPageMargin(viewPager.getResources().getDimensionPixelOffset(R.dimen.divider));<NEW_LINE>viewPager.setPageMarginDrawable(R.color.blackT12);<NEW_LINE>viewPager.setOffscre...
getItem(viewPager.getCurrentItem());
591,620
public static void broadcastEvent(final String name, final String data, final boolean authenticated, final boolean anonymous) {<NEW_LINE>if (anonymous == true && authenticated == true) {<NEW_LINE>broadcastEvent(name, data);<NEW_LINE>} else if (anonymous == true) {<NEW_LINE>// account for multiple open tabs/connections ...
es.sendEvent(name, data);
965,652
protected void dataChanged(CuratorFramework client, TreeCacheEvent event, String path) {<NEW_LINE>try {<NEW_LINE>if (isShutdown) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (executionPath.equals(path)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int item = getItem(path);<NEW_LINE>String runningPath = JobNodePath.getNodeFullPa...
new RunningPathListener(item), runningPath);
628,104
public Result write(Writable writable, Generator generator) {<NEW_LINE>if (writable instanceof ByteWritable) {<NEW_LINE>generator.writeNumber(((ByteWritable<MASK><NEW_LINE>} else if (writable instanceof DoubleWritable) {<NEW_LINE>generator.writeNumber(((DoubleWritable) writable).get());<NEW_LINE>} else if (writable ins...
) writable).get());
883,957
/*<NEW_LINE>* @see org.eclipse.swt.widgets.Listener#handleEvent(org.eclipse.swt.widgets. Event)<NEW_LINE>*/<NEW_LINE>public void handleEvent(Event event) {<NEW_LINE>if (event.widget instanceof Shell && PlatformUI.getWorkbench().getWorkbenchWindowCount() == 1 && PlatformUI.getWorkbench().getWorkbenchWindows()[0].getShel...
INSTANCE.getNode(JSDebugUIPlugin.PLUGIN_ID);
1,821,134
public synchronized boolean safelyAddFamily(Family family) {<NEW_LINE>initUnsafeDoc();<NEW_LINE>if (unsafeDoc == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Logger.trace("Family added or modified in Custom counter xml. Family - " + family.getName());<NEW_LINE>Element newElement = unsafeDoc.createElement(CounterE...
isAll() ? "true" : "false");
1,353,949
static void showFrame() throws IOException {<NEW_LINE>final String application = System.getProperty("javamelody.application");<NEW_LINE>final String url = System.getProperty("javamelody.url");<NEW_LINE>final String range = System.getProperty("javamelody.range");<NEW_LINE>if (application == null || url == null || range ...
DateFormat dateFormat = I18N.createDateFormat();
1,054,725
private static void initQueryableHandlerMap() {<NEW_LINE>QUERYABLE_HANDLER_MAP.put(ShowInstanceStatement.class.getName(), ShowInstanceHandler.class);<NEW_LINE>QUERYABLE_HANDLER_MAP.put(ShowInstanceModeStatement.class.getName(), ShowInstanceModeHandler.class);<NEW_LINE>QUERYABLE_HANDLER_MAP.put(CountInstanceRulesStateme...
getName(), ShowReadwriteSplittingReadResourcesHandler.class);
987,536
protected void doRunExample(final Engine engine) throws Exception {<NEW_LINE>final MockService<Integer> serviceX = getService();<NEW_LINE>final Task<Integer> fetchX = fetchX(serviceX, 24);<NEW_LINE>final Task<Integer> enlargeX = new BaseTask<Integer>("make x >= 42") {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected Pro...
bigX = seq(fetchX, enlargeX);
1,527,195
/* ======================================================================<NEW_LINE>* =========================================================== update ===<NEW_LINE>* ====================================================================== */<NEW_LINE>@Override<NEW_LINE>public int update(Uri uri, ContentValues values, St...
helper.model.mergeWith(values);
150,684
protected <T extends AbstractSearchFolder> void collapseItemInTree(CubaTree<T> tree, final String foldersCollapse) {<NEW_LINE>String s = userSettingService.loadSetting(foldersCollapse);<NEW_LINE>List<UUID> idFolders = strToIds(s);<NEW_LINE>List<T> foldersToCollapse = tree.getItems().filter(folder -> idFolders.contains(...
, addIdInStr(str, uuid));
982,905
public void onSensorChanged(SensorEvent event) {<NEW_LINE>// Attention : sensor produces a lot of events & can hang the system<NEW_LINE>if (inUpdateValue) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>synchronized (this) {<NEW_LINE>if (!sensorRegistered) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>inUpdateValue = true;<NEW_LINE>tr...
OsmandSettings settings = app.getSettings();
1,303,969
private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String providerName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (this.client.get...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
392,890
private void addCoverageProbeField() {<NEW_LINE>super.visitField(fieldModifiers(), CodeCoverageStore.PROBE_FIELD_NAME, "[Z", null, null);<NEW_LINE>super.visitField(fieldModifiers(), CodeCoverageStore.PROBE_LENGTH_FIELD_NAME, "I", null, this.probeCount + 1);<NEW_LINE>// If there is no <clinit>, then generate one that se...
className, CodeCoverageStore.PROBE_FIELD_NAME, "[Z");
778,560
public int enqueue(android.app.job.JobInfo job, android.app.job.JobWorkItem work) throws android.os.RemoteException {<NEW_LINE>android.os.Parcel _data = android<MASK><NEW_LINE>android.os.Parcel _reply = android.os.Parcel.obtain();<NEW_LINE>int _result;<NEW_LINE>try {<NEW_LINE>_data.writeInterfaceToken(DESCRIPTOR);<NEW_...
.os.Parcel.obtain();
1,501,255
private void computeBlock() {<NEW_LINE>// Prepare message schedule.<NEW_LINE>for (int t = 16; t < blockBuffer.length; t++) {<NEW_LINE>blockBuffer[t] = enforceOverflow(sigma1(blockBuffer[t - 2]) + blockBuffer[t - 7] + sigma0(blockBuffer[t - 15]) + blockBuffer[t - 16]);<NEW_LINE>}<NEW_LINE>// Init working variables with ...
(d + hash[3]);
735,221
private void mergeParameters() {<NEW_LINE>if ((queryParamString == null) || (queryParamString.length() < 1)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>HashMap<String, String[]> <MASK><NEW_LINE>String encoding = getCharacterEncoding();<NEW_LINE>if (encoding == null)<NEW_LINE>encoding = Globals.ISO_8859_1_ENCODING;<NEW_LINE...
queryParameters = new HashMap<>();
1,845,238
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {<NEW_LINE>try {<NEW_LINE>HttpSession session = RequestUtil.getSession(request);<NEW_LINE>Object userInfo = session.getAttribute(Consts.USER_INFO);<NEW_LINE>if (userInfo == null) {<NEW_LINE>if ...
CODEGEN_USERNAME, user.getUserName());
1,487,017
void reload(ClusterState state, String reason) {<NEW_LINE>boolean hasValidWatcherTemplates = WatcherIndexTemplateRegistry.validate(state);<NEW_LINE>if (hasValidWatcherTemplates == false) {<NEW_LINE>logger.warn("missing watcher index templates");<NEW_LINE>}<NEW_LINE>// this method contains the only async code block, bei...
error("error reloading watcher", e)));
1,014,358
public Table addTableProfileData(UUID tableId, TableProfile tableProfile) throws IOException {<NEW_LINE>// Validate the request content<NEW_LINE>Table table = daoCollection.tableDAO().findEntityById(tableId);<NEW_LINE>List<TableProfile> storedTableProfiles = getTableProfile(table);<NEW_LINE>Map<String, TableProfile> st...
.withTableProfile(getTableProfile(table));
1,243,516
private static void verifyContinuationsEnhancement() {<NEW_LINE>// only check in dev mode..<NEW_LINE>if (Play.mode == Play.Mode.PROD) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>throw new Exception();<NEW_LINE>} catch (Exception e) {<NEW_LINE>boolean haveSeenFirstApplicationClass = false;<NEW_LINE>for (StackT...
String className = ste.getClassName();
238,343
private static SubtitleProfile GetExternalSubtitleProfile(MediaStream subtitleStream, SubtitleProfile[] subtitleProfiles, PlayMethod playMethod, boolean allowConversion) {<NEW_LINE>for (SubtitleProfile profile : subtitleProfiles) {<NEW_LINE>if (profile.getMethod() != SubtitleDeliveryMethod.External && profile.getMethod...
), profile.getFormat());
436,121
public void putShort(byte[] buffer, int index, short value, ByteOrder byteOrder) {<NEW_LINE>if (!useOnlyAlignedAccess) {<NEW_LINE>if (!byteOrder.equals(ByteOrder.nativeOrder()))<NEW_LINE>value = Short.reverseBytes(value);<NEW_LINE>theUnsafe.putShort(buffer, index + BYTE_ARRAY_OFFSET, value);<NEW_LINE>} else {<NEW_LINE>...
+ BYTE_ARRAY_OFFSET, (byte) value);
1,206,013
protected Void doInBackground(Void... params) {<NEW_LINE>JSONObject requestBody = new JSONObject();<NEW_LINE>JSONObject data = new JSONObject();<NEW_LINE>try {<NEW_LINE>data.put("url", streamUrl);<NEW_LINE>data.put("position", streamPosition);<NEW_LINE><MASK><NEW_LINE>// data.put("duration", bufferDuration);<NEW_LINE>r...
data.put("stream_duration", streamDuration);
264,378
private static void _writeCause(Writer writer, Throwable ex) throws IOException {<NEW_LINE>String msg = ex.getMessage();<NEW_LINE>String contextAwareLocation = null;<NEW_LINE>if (ex instanceof ContextAware) {<NEW_LINE>ContextAware caex = (ContextAware) ex;<NEW_LINE>contextAwareLocation = caex.getLocation().toString() +...
+ caex.getExpressionString() + "\"";
1,502,570
final CreateServiceLinkedRoleResult executeCreateServiceLinkedRole(CreateServiceLinkedRoleRequest createServiceLinkedRoleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createServiceLinkedRoleRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LIN...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
802,050
final GetAssessmentResult executeGetAssessment(GetAssessmentRequest getAssessmentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAssessmentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetAssessment");
98,293
public static void mul(int[] x, int[] y, int[] zz) {<NEW_LINE>Nat224.<MASK><NEW_LINE>Nat224.mul(x, 7, y, 7, zz, 14);<NEW_LINE>int c21 = Nat224.addToEachOther(zz, 7, zz, 14);<NEW_LINE>int c14 = c21 + Nat224.addTo(zz, 0, zz, 7, 0);<NEW_LINE>c21 += Nat224.addTo(zz, 21, zz, 14, c14);<NEW_LINE>int[] dx = Nat224.create(), dy...
mul(x, y, zz);
1,679,036
public Mono<MqttClientProperties> createConfig(@Nonnull NetworkProperties properties) {<NEW_LINE>return Mono.defer(() -> {<NEW_LINE>MqttClientProperties config = FastBeanCopier.copy(properties.getConfigurations(), new MqttClientProperties());<NEW_LINE>config.setId(properties.getId());<NEW_LINE>config.setOptions(new JSO...
::setTrustOptions).thenReturn(config);
203,758
public <T> List<T> list(Class<T> clazz) throws DBException {<NEW_LINE>final List<T> list = new ArrayList<T>();<NEW_LINE>String sql = buildSQL(null, true);<NEW_LINE>PreparedStatement pstmt = null;<NEW_LINE>ResultSet rs = null;<NEW_LINE>try {<NEW_LINE>pstmt = DB.prepareStatement(sql, trxName);<NEW_LINE>rs = createResultS...
table.getPO(rs, trxName);
1,545,151
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "theString".split(",");<NEW_LINE>env.milestone(0);<NEW_LINE>String epl = "@Name('s0') select irstream * from SupportBean#length(2)";<NEW_LINE>env.compileDeployAddListenerMile(epl, "s0", 1);<NEW_LINE>env.<MASK><NEW_LINE>sendSupportBean(env, "E1");<N...
assertPropsPerRowIterator("s0", fields, null);
1,831,834
protected String doIt() throws Exception {<NEW_LINE>if (getOrgId() > 0)<NEW_LINE>organizationList.add(getOrgId());<NEW_LINE>else<NEW_LINE>organizationList.addAll(getOrganizations(getAD_Client_ID()));<NEW_LINE>if (getWarehouseId() > 0)<NEW_LINE>warehouseList.add(getWarehouseId());<NEW_LINE>else {<NEW_LINE>organizationLi...
checkDistributionOrderStock(warehouseId, productId, trxName);
1,738,600
private Mono<ResourceResponse<Permission>> deletePermissionInternal(String permissionLink, RequestOptions options, DocumentClientRetryPolicy retryPolicyInstance) {<NEW_LINE>try {<NEW_LINE>if (StringUtils.isEmpty(permissionLink)) {<NEW_LINE>throw new IllegalArgumentException("permissionLink");<NEW_LINE>}<NEW_LINE><MASK>...
logger.debug("Deleting a Permission. permissionLink [{}]", permissionLink);
1,833,629
public void remap(CustomRemapper remapper) {<NEW_LINE>AtomicInteger counter = new AtomicInteger();<NEW_LINE>classNodes().forEach(classNode -> {<NEW_LINE>if (classNode.sourceFile == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// todo handle inner classes gracefully (can we give them numerical ids? don't forget about ne...
) - ".java".length());
473,645
private void processLastRanges() {<NEW_LINE>// nothing to do<NEW_LINE>if (myRanges.size() < 2)<NEW_LINE>return;<NEW_LINE>Range range1 = myRanges.get(myRanges.size() - 2);<NEW_LINE>Range range2 = myRanges.get(myRanges.size() - 1);<NEW_LINE>if (range1.end1 != range2.start1 && range1.end2 != range2.start2) {<NEW_LINE>// i...
equalForward, equalBackward, range1, range2);
267,625
public boolean apply(Game game, Ability source) {<NEW_LINE>CardsImpl cardsInExile = new CardsImpl();<NEW_LINE>TargetCard target = new TargetCard(Zone.EXILED, StaticFilters.FILTER_CARD_CREATURE);<NEW_LINE>Player controller = game.<MASK><NEW_LINE>if (controller != null) {<NEW_LINE>ExileZone exile = game.getExile().getExi...
getPlayer(source.getControllerId());
71,081
public static DescribeCheckWarningsResponse unmarshall(DescribeCheckWarningsResponse describeCheckWarningsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeCheckWarningsResponse.setRequestId(_ctx.stringValue("DescribeCheckWarningsResponse.RequestId"));<NEW_LINE>describeCheckWarningsResponse.setCount<MASK><NEW_LINE...
(_ctx.integerValue("DescribeCheckWarningsResponse.Count"));
256,203
private void extractSearchableAnnotation(final Object annotationObj, final DataSchema currentSchema, final TraverserContext context) {<NEW_LINE>final PathSpec path = new PathSpec(context.getSchemaPathSpec());<NEW_LINE>final Optional<PathSpec> fullPath = FieldSpecUtils.getPathSpecWithAspectName(context);<NEW_LINE>final ...
fullPath.orElse(path)));
986,018
public static ListAlarmHistoriesResponse unmarshall(ListAlarmHistoriesResponse listAlarmHistoriesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listAlarmHistoriesResponse.setRequestId(_ctx.stringValue("ListAlarmHistoriesResponse.RequestId"));<NEW_LINE>listAlarmHistoriesResponse.setHttpCode(_ctx.stringValue("ListAlarmHi...
("ListAlarmHistoriesResponse.Data[" + i + "].AlarmPhone"));
1,232,068
final ListAttachedIndicesResult executeListAttachedIndices(ListAttachedIndicesRequest listAttachedIndicesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAttachedIndicesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.SERVICE_ID, "CloudDirectory");
459,521
public <T> void createProperty(Property<T> ap) {<NEW_LINE>Util.assertNotNull(ap);<NEW_LINE>Connection sqlConn = null;<NEW_LINE>PreparedStatement ps = null;<NEW_LINE>try {<NEW_LINE>sqlConn = getDataSource().getConnection();<NEW_LINE>if (existProperty(ap.getName())) {<NEW_LINE>throw new PropertyAlreadyExistException(ap.g...
2, ap.getType());
1,532,089
public Response build() {<NEW_LINE>ProfileHelper.requireFeature(Profile.Feature.DOCKER);<NEW_LINE>final MultivaluedMap<String, String> params = session.getContext().getUri().getQueryParameters();<NEW_LINE>account = params.getFirst(DockerAuthV2Protocol.ACCOUNT_PARAM);<NEW_LINE>if (account == null) {<NEW_LINE>logger.debu...
login)), false, false);
1,178,354
public void deleteSeriesCascade(String path) throws MetadataException {<NEW_LINE>IMNode cur = getPathNodeInTemplate(path);<NEW_LINE>IMNode par;<NEW_LINE>if (cur == null) {<NEW_LINE>throw new PathNotExistException(path);<NEW_LINE>}<NEW_LINE>par = cur.getParent();<NEW_LINE>if (par == null) {<NEW_LINE>directNodes.remove(c...
IMNode top = astack.pop();
1,427,393
public Collection<Link> lookupBeamLinks(SystemInfo system, int profile) {<NEW_LINE>Collection<Link> links = new LinkedHashSet<>();<NEW_LINE>// Look for beams around the stem<NEW_LINE>final Scale scale = system.getSheet().getScale();<NEW_LINE>final int maxBeamOutDx = scale.toPixels(BeamStemRelation.getXOutGapMaximum(pro...
(link.reverse(beam));
526,053
private Mono<PagedResponse<CommitmentTierInner>> listSinglePageAsync(String location, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (this.client....
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));