idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
244,725
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_places_on_map);<NEW_LINE>ButterKnife.bind(this);<NEW_LINE>editTextSearch.addTextChangedListener(this);<NEW_LINE>Intent intent = getIntent();<NEW_LINE>mCity = (City) intent.getSeria...
()).setHomeButtonEnabled(true);
1,376,639
public void init(boolean forWrapping, CipherParameters param) {<NEW_LINE>this.forWrapping = forWrapping;<NEW_LINE>this.engine = new CBCBlockCipher(new RC2Engine());<NEW_LINE>if (param instanceof ParametersWithRandom) {<NEW_LINE>ParametersWithRandom pWithR = (ParametersWithRandom) param;<NEW_LINE>sr = pWithR.getRandom()...
= this.paramPlusIV.getParameters();
1,409,166
public void markAsDefinitelyNull(LocalVariableBinding local) {<NEW_LINE>// protected from non-object locals in calling methods<NEW_LINE>if (this != DEAD_END) {<NEW_LINE>this.tagBits |= NULL_FLAG_MASK;<NEW_LINE>long mask;<NEW_LINE>int position;<NEW_LINE>// position is zero-based<NEW_LINE>if ((position = local.id + this....
5][vectorIndex] = ~0;
1,705,275
private ScopeStore createScopeWrapper(StoreFactory storeFactory) {<NEW_LINE>return new ScopeStore() {<NEW_LINE><NEW_LINE>ScopeStore delegate = storeFactory.getScopeStore();<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Scope create(ResourceServer resourceServer, String name) {<NEW_LINE>return delegate.create(resourceSer...
delete(permission.getId());
728,283
private List<Node> construct(int start, int end) {<NEW_LINE>if (start > end) {<NEW_LINE>return Collections.singletonList(null);<NEW_LINE>}<NEW_LINE>List<Node> allTrees = new ArrayList<>();<NEW_LINE>for (int root = start; root <= end; root++) {<NEW_LINE>// get all subtrees from left and right side.<NEW_LINE>List<Node> a...
construct(root + 1, end);
1,796,167
public void handleEvent(Event event) {<NEW_LINE>TableItem item = (TableItem) event.item;<NEW_LINE>int index = table.indexOf(item);<NEW_LINE>PluginInterface pluginIF = pluginIFs.get(index);<NEW_LINE>for (int i = 0; i < COLUMN_HEADERS.length; i++) {<NEW_LINE>if (i == FilterComparator.FIELD_NAME)<NEW_LINE>item.setImage(i,...
comparator.getFieldValue(i, pluginIF);
1,040,113
public CreateRepositoryResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateRepositoryResult createRepositoryResult = new CreateRepositoryResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i...
JsonToken token = context.getCurrentToken();
995,146
private synchronized void fireTreeChange(TreeModelEvent e, int type) {<NEW_LINE>// Event may be null for offscreen info, etc.<NEW_LINE>if (e == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>assert (e.getSource() == getModel());<NEW_LINE>TreeModelListener[] listeners;<NEW_LINE>synchronized (this) {<NEW_LINE>listeners = n...
listeners = treeListeners.toArray(listeners);
1,824,979
public RichIterable<IntIterable> chunk(int size) {<NEW_LINE>if (size <= 0) {<NEW_LINE>throw new IllegalArgumentException("Size for groups must be positive but was: " + size);<NEW_LINE>}<NEW_LINE>MutableList<IntIterable> result = Lists.mutable.empty();<NEW_LINE>if (this.notEmpty()) {<NEW_LINE>int innerFrom = this.from;<...
= IntLists.mutable.empty();
141,805
final GetDetectorResult executeGetDetector(GetDetectorRequest getDetectorRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDetectorRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,710,804
public CommandResult<EstimationProbe> execute(MutableBucketEntry mutableEntry, long currentTimeNanos) {<NEW_LINE>if (!mutableEntry.exists()) {<NEW_LINE>return CommandResult.bucketNotFound();<NEW_LINE>}<NEW_LINE>RemoteBucketState state = mutableEntry.get();<NEW_LINE>state.refillAllBandwidth(currentTimeNanos);<NEW_LINE>l...
estimationProbe = EstimationProbe.canBeConsumed(availableToConsume);
977,419
private void writeAttributes(OutputStream out, byte[] name, MBeanAttributeInfo[] value, Map<String, String> urls) throws IOException {<NEW_LINE>if (value == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>writeFieldName(out, name);<NEW_LINE>writeStartArray(out);<NEW_LINE>for (MBeanAttributeInfo item : value) {<NEW_LINE>wr...
OM_TYPE, item.getType());
779,602
public void run() {<NEW_LINE>ServerSocket ss = null;<NEW_LINE>try {<NEW_LINE>String str = "127.0.0.1";<NEW_LINE>String[] ipStr = str.split("\\.");<NEW_LINE>byte[] ipBuf = new byte[4];<NEW_LINE>for (int i = 0; i < 4; i++) {<NEW_LINE>ipBuf[i] = (byte) (Integer.parseInt(ipStr[i]) & 0xFF);<NEW_LINE>}<NEW_LINE>InetAddress a...
InputStream is = s.getInputStream();
1,521,806
private void acceptConnectionAndExecute() throws IOException {<NEW_LINE>final Socket socket;<NEW_LINE>try {<NEW_LINE>if (this.serverSocket == null) {<NEW_LINE>logger.debug(() -> this + " stopped before accept");<NEW_LINE>throw new IOException(this + " stopped before accept");<NEW_LINE>} else {<NEW_LINE>socket = this.se...
":" + socket.getPort());
1,137,675
public void write(SAML11StatusType status) throws ProcessingException {<NEW_LINE>StaxUtil.writeStartElement(writer, PROTOCOL_PREFIX, SAML11Constants.STATUS, namespace);<NEW_LINE><MASK><NEW_LINE>if (statusCode != null) {<NEW_LINE>write(statusCode);<NEW_LINE>}<NEW_LINE>String statusMsg = status.getStatusMessage();<NEW_LI...
SAML11StatusCodeType statusCode = status.getStatusCode();
478,098
public void build() throws IOException {<NEW_LINE>State state = validate();<NEW_LINE>if (state != State.VALID) {<NEW_LINE>throw new IOException(NbBundle.getMessage(AbstractPanel.class, "MSG_" + state.value()));<NEW_LINE>}<NEW_LINE>InputStream is = null;<NEW_LINE>try {<NEW_LINE>is = fileObject.getInputStream();<NEW_LINE...
createResource(doc, node, null);
1,561,804
public void createSchedulesOnServer(EjbDescriptor ejbDescriptor, String server_name) {<NEW_LINE>Map<MethodDescriptor, List<ScheduledTimerDescriptor>> schedules = new HashMap<>();<NEW_LINE>for (ScheduledTimerDescriptor schd : ejbDescriptor.getScheduledTimerDescriptors()) {<NEW_LINE>MethodDescriptor method = schd.getTime...
getUniqueId(), schedules, server_name);
1,578,934
public double rpv01(NodalCurve creditCurve, PriceType cleanOrDirty) {<NEW_LINE>double pv = 0.0;<NEW_LINE>for (int i = startPeriodIndex; i < nPayments; i++) {<NEW_LINE>CreditCouponPaymentPeriod coupon = cds.getPaymentPeriods().get(i);<NEW_LINE>double yc = offsetAccEnd[i];<NEW_LINE>double q = Math.exp(-creditCurve<MASK><...
.yValue(yc) * yc);
851,684
private static Row createRow(OspfNeighborConfig nodeU, OspfNeighborConfig nodeV, OspfSessionStatus sessionStatus, Map<String, ColumnMetadata> columnMetadataMap) {<NEW_LINE>return Row.builder(columnMetadataMap).put(COL_INTERFACE, NodeInterfacePair.of(nodeU.getHostname(), nodeU.getInterfaceName())).put(COL_VRF, nodeU.get...
toString()).build();
396,791
public void postProcessFile(File file, String fileType) {<NEW_LINE>if (file == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String rubyPostProcessFile = System.getenv("RUBY_POST_PROCESS_FILE");<NEW_LINE>if (StringUtils.isEmpty(rubyPostProcessFile)) {<NEW_LINE>// skip if RUBY_POST_PROCESS_FILE env variable is not define...
command, e.getMessage());
688,353
public void checkRepository(RepositoryConfig config, boolean existingRepository, boolean checkRootDir) throws RepositoryException {<NEW_LINE>String repositoryName = config.getDisplayName();<NEW_LINE>// check domain name for validity<NEW_LINE>new RepositoryNameValidator(getMessages().getRepositoryNameMessage<MASK><NEW_L...
()).validate(repositoryName);
665,989
private // ------------//<NEW_LINE>void initialize() {<NEW_LINE>// Displayer<NEW_LINE>displayer = () -> {<NEW_LINE>int total = (int) Math.rint(Memory.total() / MEGA);<NEW_LINE>int used = (int) Math.rint(Memory.occupied() / MEGA);<NEW_LINE>int threshold = (int) Math.rint(constants.alarmThreshold.getValue() * total);<NEW...
progressBar.setForeground(Color.red);
332,345
private static String createIdFieldDeclaration(String idPropertyType, String valueVar) {<NEW_LINE>String idField;<NEW_LINE>if (idPropertyType.startsWith("java.lang.")) {<NEW_LINE>String shortName = idPropertyType.substring(10);<NEW_LINE>idField = shortName + " id = " + createIdFieldInitialization(idPropertyType, valueV...
createIdFieldInitialization(idPropertyType, valueVar) + ";";
703,420
public static void shareNodeFromChat(Context context, MegaNode node, long chatId, long msgId) {<NEW_LINE>if (!MegaNodeUtil.shouldContinueWithoutError(context, "sharing node", node)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String path = getLocalFile(node);<NEW_LINE>if (!isTextEmpty(path)) {<NEW_LINE>logDebug("Node is dow...
), node.getPublicLink());
1,081,984
public void validate(final AccountDimension accountDimension) {<NEW_LINE>final Set<String> mandatoryFieldsNotFilled = new HashSet<>();<NEW_LINE>//<NEW_LINE>// Validate C_AcctSchema_ID<NEW_LINE>if (AcctSchemaId.equals(accountDimension.getAcctSchemaId(), acctSchemaId)) {<NEW_LINE>throw new AdempiereException("C_AcctSchem...
(), I_C_ValidCombination.COLUMNNAME_Alias));
677,565
public static DbfsRecordResponse unmarshall(DbfsRecordResponse dbfsRecordResponse, UnmarshallerContext _ctx) {<NEW_LINE>dbfsRecordResponse.setRequestId(_ctx.stringValue("DbfsRecordResponse.RequestId"));<NEW_LINE>dbfsRecordResponse.setPageNo(_ctx.longValue("DbfsRecordResponse.PageNo"));<NEW_LINE>dbfsRecordResponse.setPa...
("DbfsRecordResponse.Records[" + i + "].EcsId"));
893,652
public void testReceiveBodyTimeOutByteMsg_TcpIp_SecOff(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>JMSContext jmsContext = jmsQCFTCP.createContext();<NEW_LINE>emptyQueue(jmsQCFTCP, jmsQueue);<NEW_LINE>byte[] msgOutBytes = new byte[] { 124, 3 };<NEW_LINE>BytesMessage msgOut = jm...
jmsConsumer = jmsContext.createConsumer(jmsQueue);
22,097
private void abortIfOutdated(DeploymentStatus status, Map<JobId, List<DeploymentStatus.Job>> jobs, JobId job) {<NEW_LINE>status.jobs().get(job).flatMap(JobStatus::lastTriggered).filter(last -> !last.hasEnded() && last.reason().isEmpty()).ifPresent(last -> {<NEW_LINE>if (jobs.get(job).stream().noneMatch(versions -> vers...
"Aborting outdated run " + last + ", which is blocking runs: " + blocked);
1,514,975
private void updateDataSourceStringValue(CorrelationDataSource eamDataSource, String column, String value) throws CentralRepoException {<NEW_LINE>if (eamDataSource == null) {<NEW_LINE>throw new CentralRepoException("Correlation data source is null");<NEW_LINE>}<NEW_LINE>Connection conn = connect();<NEW_LINE>PreparedSta...
preparedStatement = conn.prepareStatement(sql);
202,381
public boolean payCreditMemo(MInvoice creditNote, BigDecimal amount) {<NEW_LINE>int invoiceId = order.getC_Invoice_ID();<NEW_LINE>if (invoiceId == 0)<NEW_LINE>return false;<NEW_LINE>MPayment payment = createPayment(MPayment.TENDERTYPE_Account);<NEW_LINE>if (payment.getC_Invoice_ID() > 0)<NEW_LINE>payment.setC_Invoice_I...
payment.setDateAcct(getDateTrx());
61,893
public void throttleDelta(long bytesDelta) {<NEW_LINE>int newTargetBytesPerMS = fun.targetThroughput();<NEW_LINE>if (// throttling disabled<NEW_LINE>newTargetBytesPerMS < 1) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// if the target changed, log<NEW_LINE>if (newTargetBytesPerMS != targetBytesPerMS) {<NEW_LINE>logger.debug...
= System.currentTimeMillis() - timeAtLastDelay;
915,272
public static void vertical(GrayS16 input, GrayI16 output, int offset, int length, @Nullable GrowArray<DogArray_I32> workspaces) {<NEW_LINE>workspaces = BoofMiscOps.checkDeclare(workspaces, DogArray_I32::new);<NEW_LINE>// CONCURRENT_REMOVE_LINE<NEW_LINE>final DogArray_I32 work = workspaces.grow();<NEW_LINE>final int ba...
offset) * input.stride + x;
1,413,801
final DescribeWorkforceResult executeDescribeWorkforce(DescribeWorkforceRequest describeWorkforceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeWorkforceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
(super.beforeMarshalling(describeWorkforceRequest));
67,743
public void executionPhaseStarting(ActionGraph actionGraph, Supplier<ImmutableSet<Artifact>> topLevelArtifacts) throws AbruptExitException, InterruptedException {<NEW_LINE>IncludeParser.HintsRules hintsRules;<NEW_LINE>if (useIncludeHints) {<NEW_LINE>try {<NEW_LINE>hintsRules = (IncludeParser.HintsRules) env.getSkyframe...
).getArtifactFactory())));
210,097
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>binding = ActivityMainBinding.inflate(getLayoutInflater());<NEW_LINE>View rootView = binding.getRoot();<NEW_LINE>setContentView(rootView);<NEW_LINE>Debuger.enable();<NEW_LINE>binding.openBtn.setOnClickListener(thi...
binding.detailDownloadActivity.setOnClickListener(this);
997,449
public Object instantiateItem(@NonNull ViewGroup container, int position) {<NEW_LINE><MASK><NEW_LINE>// display default city image if no image is present in array<NEW_LINE>if (mImagesArray.size() == 0) {<NEW_LINE>Picasso.with(mContext).load(R.drawable.placeholder_image).error(R.drawable.placeholder_image).fit().centerC...
ImageView imageView = new ImageView(mContext);
720,071
final CreateInstanceEventWindowResult executeCreateInstanceEventWindow(CreateInstanceEventWindowRequest createInstanceEventWindowRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createInstanceEventWindowRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateInstanceEventWindow");
1,661,615
public Request<DescribeReceiptRuleRequest> marshall(DescribeReceiptRuleRequest describeReceiptRuleRequest) {<NEW_LINE>if (describeReceiptRuleRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DescribeReceiptRuleRequest)");<NEW_LINE>}<NEW_LINE>Request<DescribeReceiptRuleRequ...
request.addParameter("Action", "DescribeReceiptRule");
1,518,080
public static DescribeSuspEventsResponse unmarshall(DescribeSuspEventsResponse describeSuspEventsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSuspEventsResponse.setRequestId(_ctx.stringValue("DescribeSuspEventsResponse.RequestId"));<NEW_LINE>describeSuspEventsResponse.setCurrentPage<MASK><NEW_LINE>describeSus...
(_ctx.integerValue("DescribeSuspEventsResponse.CurrentPage"));
1,360,226
private PlanFragment createScanFragment(PlanNode node) throws UserException {<NEW_LINE>if (node instanceof MysqlScanNode || node instanceof OdbcScanNode || node instanceof JdbcScanNode) {<NEW_LINE>return new PlanFragment(ctx.getNextFragmentId(), node, DataPartition.UNPARTITIONED);<NEW_LINE>} else if (node instanceof Sc...
), node, DataPartition.RANDOM);
154,902
public Map<String, String> installedLibraries() {<NEW_LINE>Map<String, String> result = null;<NEW_LINE>NpmExecutable executable = NpmExecutable.getDefault(project, false);<NEW_LINE>if (executable != null) {<NEW_LINE>JSONObject json = executable.list(0);<NEW_LINE>if (json != null) {<NEW_LINE>result = new HashMap<>();<NE...
> entrySet = dependencies.entrySet();
906,794
private void okPressed() {<NEW_LINE>String title = MessageFormat.format(res<MASK><NEW_LINE>if (jrbCrlCheckDistPoint.isSelected()) {<NEW_LINE>verifyOption = VerifyOptions.CRL_DIST;<NEW_LINE>} else if (jrbCrlCheckFile.isSelected()) {<NEW_LINE>if (jtfCrlFile.getText().isEmpty()) {<NEW_LINE>JOptionPane.showMessageDialog(th...
.getString("DVerifyCertificate.Title"), certificateAlias);
1,544,434
protected boolean exist(Business business, EffectivePerson effectivePerson, String name, String excludeId) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Share.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Long> cq = cb.createQuery(Long.class...
createQuery(cq).getSingleResult();
185,213
public void marshall(UpdateDatasetRequest updateDatasetRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateDatasetRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(updateDatasetRequest.get...
e.getMessage(), e);
864,643
protected void updateDetails(final String description, final String language, final int watchers, final int forks, final boolean isPrivate, final boolean isFork, final String mirrorUrl) {<NEW_LINE>if (TextUtils.isEmpty(mirrorUrl))<NEW_LINE>if (isPrivate)<NEW_LINE>setText(0, TypefaceUtils.ICON_LOCK);<NEW_LINE>else if (i...
setText(0, TypefaceUtils.ICON_MIRROR);
1,034,028
public <K, V> OnHeapStore<K, V> createStoreInternal(Configuration<K, V> storeConfig, StoreEventDispatcher<K, V> eventDispatcher, ServiceConfiguration<?, ?>... serviceConfigs) {<NEW_LINE>TimeSource timeSource = getServiceProvider().getService(TimeSourceService.class).getTimeSource();<NEW_LINE>CopyProvider copyProvider =...
createdStores.put(onHeapStore, copiers);
503,175
private synchronized void activateFileMonitor(ComponentContext cc) {<NEW_LINE>final int pollingInterval = new ConfigProcessor(CustomCSSProcessor.class.getClassLoader()).getFilePollingInterval();<NEW_LINE>if (OpenAPIUtils.isEventEnabled(tc)) {<NEW_LINE>Tr.event(this, tc, OASConfig.EXTENSIONS_PREFIX + "liberty.file.polli...
", ", "{", "}")));
954,641
private IBaseResource loadAndAddConfDstu3(HttpServletRequest theServletRequest, final HomeRequest theRequest, final ModelMap theModel) {<NEW_LINE>CaptureInterceptor interceptor = new CaptureInterceptor();<NEW_LINE>GenericClient client = theRequest.newClient(theServletRequest, getContext(theRequest), myConfig, intercept...
).getValue(), nextCount);
71,611
protected void build() {<NEW_LINE>switch(kind) {<NEW_LINE>default:<NEW_LINE>case SLUR_CONNECTION:<NEW_LINE>{<NEW_LINE>final Page page = one.getSig().getSystem().getPage();<NEW_LINE><MASK><NEW_LINE>final SlurInter s2 = (SlurInter) two;<NEW_LINE>// Remove conflicting connections/relations if any<NEW_LINE>final SlurInter ...
final SlurInter s1 = (SlurInter) one;
402,334
private void initializeRecyclerView() {<NEW_LINE>// Initialize Adapter and RecyclerView<NEW_LINE>// Use of stableIds, I strongly suggest to implement 'item.hashCode()'<NEW_LINE>FlexibleAdapter.useTag("ViewPagerAdapter");<NEW_LINE>mAdapter = new FlexibleAdapter<>(createList(50, 5), getActivity(), true);<NEW_LINE>mAdapte...
new SmoothScrollLinearLayoutManager(getActivity()));
1,004,856
public AviatorObject call(final Map<String, Object> env, final AviatorObject arg1) {<NEW_LINE>Object first = arg1.getValue(env);<NEW_LINE>if (first == null) {<NEW_LINE>return AviatorNil.NIL;<NEW_LINE>}<NEW_LINE>Class<?> clazz = first.getClass();<NEW_LINE>if (List.class.isAssignableFrom(clazz)) {<NEW_LINE>List<?> list =...
length = Array.getLength(first);
1,703,785
protected Invoice determineIfReconcileFromInvoice(Move move) {<NEW_LINE>List<MoveLine> moveLineList = move.getMoveLineList();<NEW_LINE>if (moveLineList == null || moveLineList.size() != 2) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>for (MoveLine moveLine : moveLineList) {<NEW_LINE>// search for the reconcile between t...
.getCreditMoveLine().getMove();
1,655,231
PatchState forVarbitValue(int value) {<NEW_LINE>if (value >= 0 && value <= 3) {<NEW_LINE>// Spirit Tree Patch[Rake,Inspect,Guide] 8342,8341,8340,8339<NEW_LINE>return new PatchState(Produce.WEEDS, <MASK><NEW_LINE>}<NEW_LINE>if (value >= 4 && value <= 7) {<NEW_LINE>// Spirit Tree Patch[Rake,Inspect,Guide] 8342,8342,8342,...
CropState.GROWING, 3 - value);
832,181
final GetServiceResult executeGetService(GetServiceRequest getServiceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getServiceRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<GetServiceRequest> request = null;<NEW_LINE>Response<Ge...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,282,710
public void paint(final Graphics g, final JComponent c) {<NEW_LINE>B button = (B) c;<NEW_LINE>final int width = button.getWidth();<NEW_LINE>final int height = button.getHeight();<NEW_LINE>final Graphics2D g2 = (Graphics2D) g.create();<NEW_LINE>g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_AN...
super.paint(g, c);
1,474,990
public ThrottleSettings unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ThrottleSettings throttleSettings = new ThrottleSettings();<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();
603,804
public static Pair<VerifyAccountResponse, MasterKey> verifyNumber(String verificationCode, String pin, PinHelper pinHelper, Verifier verifier) throws IOException, PinLockedException, IncorrectPinException {<NEW_LINE>verificationCode = verificationCode.replace("-", "");<NEW_LINE>try {<NEW_LINE>final var response = verif...
.getMasterKey().deriveRegistrationLock();
1,730,066
public static void addWikimediaImageCards(@NonNull MapActivity mapActivity, @NonNull String wikiMediaTagContent, @NonNull ImageCardsHolder holder) {<NEW_LINE>if (wikiMediaTagContent.startsWith(WIKIMEDIA_FILE)) {<NEW_LINE>String fileName = wikiMediaTagContent.replace(WIKIMEDIA_FILE, "");<NEW_LINE>addImageCard(mapActivit...
addWikimediaImageCards(mapActivity, memberTitle, holder);
1,208,743
public void runSupport() {<NEW_LINE>if (allTags != null) {<NEW_LINE>boolean create_tabs = false;<NEW_LINE>List<Tag> ourPendingTags = new ArrayList<>();<NEW_LINE>boolean filterOnly = COConfigurationManager.getBooleanParameter("Library.ShowTagButtons.FiltersOnly");<NEW_LINE>synchronized (pending_tag_changes) {<NEW_LINE>o...
boolean selected = painter.isSelected();
1,534,130
public Screen onCreateScreen(@NonNull Intent intent) {<NEW_LINE>Log.i(TAG, "In onCreateScreen()");<NEW_LINE>settingsAction = new Action.Builder().setIcon(new CarIcon.Builder(IconCompat.createWithResource(getCarContext(), R.drawable.ic_action_settings)).build()).setOnClickListener(() -> getCarContext().getCarService(Scr...
String action = intent.getAction();
823,675
protected static String buildAttributeSelect(AssetQuery query, List<ParameterBinder> binders, Supplier<Long> timeProvider) {<NEW_LINE>Select select = query.select;<NEW_LINE>boolean hasAttributeFilter = select != null && select.attributes != null <MASK><NEW_LINE>if (!hasAttributeFilter && query.access == PRIVATE) {<NEW_...
&& select.attributes.length > 0;
138,347
public final void sendCompletedInternal(SIBUuid8 remoteME, SIBUuid12 gatheringTargetDestUuid, SIBUuid12 streamId, long[] startTicks, long[] endTicks) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "sendCompletedInternal", new Object[] { remoteME, gatheringTargetDest...
msg, remoteME, gatheringTargetDestUuid, streamId);
496,736
public ClassVisitor apply(String className, ClassVisitor classVisitor) {<NEW_LINE>ClassVisitor cv = new ClassVisitor(Gizmo.ASM_API_VERSION, classVisitor) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) {<NEW_LINE>su...
"<init>", "()V", null, null);
194
// GRECLIPSE end<NEW_LINE>private void checkCyclicInheritance(final ClassNode node, final ClassNode type) {<NEW_LINE>if (type.redirect() == node || type.getOuterClasses().contains(node)) {<NEW_LINE>addError("Cycle detected: the type " + node.getUnresolvedName() + " cannot extend/implement itself or one of its own membe...
todo, type.getInterfaces());
1,193,070
// Thread: worker<NEW_LINE>void handleRename(PreprocSketch ps, int tabIndex, int startTabOffset, int stopTabOffset) {<NEW_LINE>if (ps.hasSyntaxErrors) {<NEW_LINE>editor.<MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ASTNode root = ps.compilationUnit;<NEW_LINE>// Map offsets<NEW_LINE>int startJavaOffset = ps.tabOffsetToJav...
statusMessage("Cannot rename until syntax errors are fixed", EditorStatus.WARNING);
1,561,318
private GeneratorTask createTask(String javaShapeName, ShapeModel shapeModel) throws Exception {<NEW_LINE>final Template template = freemarker.getModelUnmarshallerTemplate();<NEW_LINE>final ShapeType shapeType = shapeModel.getShapeType();<NEW_LINE>String shapeFqcn = shapeModel.getShapeName();<NEW_LINE>if (TypeUtils.isR...
javaShapeName + unmarshallerNameSuffix, template, dataModel);
981,358
public void run() {<NEW_LINE>String errorMsg = null;<NEW_LINE>YBClient client = null;<NEW_LINE>int numErrors = 0;<NEW_LINE>double percent = 0;<NEW_LINE>int numIters = 0;<NEW_LINE>// Get the master addresses and certificate info.<NEW_LINE>Universe universe = Universe.getOrBadRequest(taskParams().universeUUID);<NEW_LINE>...
"Running {} on masterAddress = {}.", getName(), masterAddresses);
1,813,905
protected void initPlaylists(@NonNull Context context, @NonNull FragmentPlaylistVideosBinding binding, @NonNull YouTubePlaylist playlist) {<NEW_LINE>this.youTubePlaylist = playlist;<NEW_LINE>initVideos(context, videoGridAdapter, binding.videosGridview);<NEW_LINE>binding.playlistTitleTextView.setText(youTubePlaylist.get...
String channelTitle = youTubePlaylist.getChannelTitle();
738,548
public String buildItemProductDisplayName() {<NEW_LINE>final I_M_HU_PI_Item_Product itemProduct = getM_HU_PI_Item_Product();<NEW_LINE>final I_M_HU_PI_Item piItem = itemProduct.getM_HU_PI_Item();<NEW_LINE>if (piItem == null || piItem.getM_HU_PI_Item_ID() <= 0) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>final StringBuilde...
DisplayType.getNumberFormat(DisplayType.Quantity);
1,522,771
private String readStream(InputStream stream, int maxLength) throws IOException {<NEW_LINE>String result = null;<NEW_LINE>// Read InputStream using the UTF-8 charset.<NEW_LINE>InputStreamReader reader = new InputStreamReader(stream, "UTF-8");<NEW_LINE>// Create temporary buffer to hold Stream data with specified max le...
= (100 * numChars) / maxLength;
1,251,713
public DescribeAlgorithmResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeAlgorithmResult describeAlgorithmResult = new DescribeAlgorithmResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI...
().unmarshall(context));
249,909
private Table resultToTable(ExecuteStatementResult result, String strCols) {<NEW_LINE>Table tbl = null;<NEW_LINE>try {<NEW_LINE>String[] cols = null;<NEW_LINE>if (strCols.equals("*")) {<NEW_LINE>cols = getColsFromScanItem(result);<NEW_LINE>} else {<NEW_LINE>cols = strCols.split(",");<NEW_LINE>for (int n = 0; n < cols.l...
= new Object[cols.length];
378,397
private static boolean hasOutOfBoundsPositiveMinor(NavigableMap<Integer, VoxelPlane> minorAxisMap, int majorKey) {<NEW_LINE>Map.Entry<Integer, VoxelPlane> minorEntry = minorAxisMap.lastEntry();<NEW_LINE>while (minorEntry != null) {<NEW_LINE><MASK><NEW_LINE>if (minorKey <= majorKey) {<NEW_LINE>// If our outer minor plan...
int minorKey = minorEntry.getKey();
1,160,082
private void initialize(Snapshot snapshot) {<NEW_LINE>// TODO: if some property cannot be loaded for current snapshot version, FAIL initializing the snapshot!<NEW_LINE>Storage storage = snapshot.getStorage();<NEW_LINE>String version = getProperty(storage, SNAPSHOT_VERSION);<NEW_LINE>chartCache = Integer.parseInt(getPro...
(getProperty(storage, PROP_PROCESS_CPU_TIME));
1,390,786
public void doLock(String insertStatementTemplate, String updateLockStatement, String deleteExpiredLockStatement, String booleanTrue) throws SQLException {<NEW_LINE>int retryCount = 0;<NEW_LINE>while (true) {<NEW_LINE>try {<NEW_LINE>jdbcTemplate.execute(generateDeleteExpiredLockStatement(deleteExpiredLockStatement));<N...
LOG.error("Waiting for lock on Flyway schema history table. Application may be deadlocked. Lock row may require manual removal " + "from the schema history table.");
617,681
final CreateStudioResult executeCreateStudio(CreateStudioRequest createStudioRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createStudioRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<CreateStudioRequest> ...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
990,006
public void updateUI(@NotNull final C component) {<NEW_LINE>// Check whether or not we need to create new UI instance<NEW_LINE>// It will be created and applied if component doesn't have its own UI instance yet<NEW_LINE>// It will also be created and applied if component UI instance class is not assignable to the base ...
existingUI = LafUtils.getUI(component);
988,888
protected ShardValidateQueryResponse shardOperation(ShardValidateQueryRequest request, Task task) throws IOException {<NEW_LINE>boolean valid;<NEW_LINE>String explanation = null;<NEW_LINE>String error = null;<NEW_LINE>ShardSearchRequest shardSearchLocalRequest = new ShardSearchRequest(request.shardId(), request.nowInMi...
searchContext, request.rewrite());
605,003
final DeleteIdentityProviderResult executeDeleteIdentityProvider(DeleteIdentityProviderRequest deleteIdentityProviderRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteIdentityProviderRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
endClientExecution(awsRequestMetrics, request, response);
1,466,938
private static void emitHistogramBuckets(List<Double> bucketBoundaries, List<Long> bucketCounts, PrintWriter out, Formatter formatter) {<NEW_LINE>checkArgument(bucketBoundaries.size() == bucketCounts.size() - 1, "Bucket boundaries and counts don't match");<NEW_LINE>out.write("<td class=\"borderLL\">");<NEW_LINE>out.wri...
POSITIVE_INFINITY : bucketBoundaries.get(i);
431,399
//<NEW_LINE>@Override<NEW_LINE>protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>String <MASK><NEW_LINE>PrintWriter out = response.getWriter();<NEW_LINE>out.println("Starting " + test + "<br>");<NEW_LINE>// The injection engine doesn't like th...
test = request.getParameter("test");
1,415,104
public void initEntryFact(TaintFrame fact) {<NEW_LINE>fact.setValid();<NEW_LINE>fact.clearStack();<NEW_LINE>String methodFullSignature = methodDescriptor.getSlashedClassName() + "." + methodDescriptor.getName() + methodDescriptor.getSignature();<NEW_LINE>boolean inMainMethod = isInMainMethod();<NEW_LINE><MASK><NEW_LINE...
int numSlots = fact.getNumSlots();
66,946
public void handleFocus(final Context context, final float x, final float y, final FocusCallback callback) {<NEW_LINE>if (mCamera == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Camera.Parameters params = mCamera.getParameters();<NEW_LINE>Rect focusRect = calculateTapArea(x, y, 1f, context);<NEW_LINE>mCamera.canc...
.Area(focusRect, 800));
1,847,818
// Add authors for export<NEW_LINE>private void addAuthor(Document document, Element allAuthors, String entryName, List<MsBibAuthor> authorsLst) {<NEW_LINE>if (authorsLst == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Element authorTop = document.createElementNS(MSBibDatabase.NAMESPACE, MSBibDatabase.PREFIX + entryNam...
NAMESPACE, MSBibDatabase.PREFIX + "Person");
302,371
public static void processType(Project project, ErlangTypeDefinition type) {<NEW_LINE>PsiFile containingFile = type.getContainingFile();<NEW_LINE>if (containingFile instanceof ErlangFile) {<NEW_LINE>String exportText = ErlangPsiImplUtil.createTypePresentation(type);<NEW_LINE>List<ErlangAttribute> attributes = ((ErlangF...
ErlangExportTypes exportTypes = export.getExportTypes();
1,673,822
public static Type createType(Class<?> clazz, List<AnnotationElement> dynamicAnnotations, List<ValueDescriptor> dynamicFields) {<NEW_LINE>if (Thread.class == clazz) {<NEW_LINE>return Type.THREAD;<NEW_LINE>}<NEW_LINE>if (Class.class.isAssignableFrom(clazz)) {<NEW_LINE>return Type.CLASS;<NEW_LINE>}<NEW_LINE>if (String.cl...
LogTag.JFR_METADATA, LogLevel.INFO);
131,953
public void process(IndexEntryUpdate<?> update) {<NEW_LINE>assert update.indexKey().schema().<MASK><NEW_LINE>final var valueUpdate = asValueUpdate(update);<NEW_LINE>// ignoreStrategy set update to null; ignore update<NEW_LINE>if (valueUpdate == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final var entityId = valueUpda...
equals(descriptor.schema());
791,568
private void initializeAuth() throws CommandException {<NEW_LINE>LoginInfo li = null;<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>li = store.read(programOpts.getHost(), programOpts.getPort());<NEW_LINE>if (li == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>} catch (StoreException se) {<NEW_LINE>logger.finer("Login info cou...
LoginInfoStore store = LoginInfoStoreFactory.getDefaultStore();
224,978
private void readPrefixedNameOrKeyword(Token token) {<NEW_LINE>long posn = reader.getPosition();<NEW_LINE>// Prefix part or keyword<NEW_LINE>String prefixPart = readPrefixPart();<NEW_LINE>token.setImage(prefixPart);<NEW_LINE>token.setType(TokenType.KEYWORD);<NEW_LINE><MASK><NEW_LINE>if (ch == CH_COLON) {<NEW_LINE>reade...
int ch = reader.peekChar();
1,623,217
protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {<NEW_LINE>builder.getRawBeanDefinition().setBeanClass(RedisClient.class);<NEW_LINE>if (helper.hasAttribute(element, HOST_ATTRIBUTE)) {<NEW_LINE>helper.addConstructorArgs(element, HOST_ATTRIBUTE, String.class, builder);<...
PORT_ATTRIBUTE, int.class, builder);
646,015
public ClipFragmentSelector unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ClipFragmentSelector clipFragmentSelector = new ClipFragmentSelector();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>Jso...
int originalDepth = context.getCurrentDepth();
1,442,184
public void write(Writer out, Document doc, int pos, int len, Map<String, String> copiedImgs) throws IOException, BadLocationException {<NEW_LINE>Debug.log(9, "SikuliEditorKit.write %d %d", pos, len);<NEW_LINE>DefaultStyledDocument sdoc = (DefaultStyledDocument) doc;<NEW_LINE>int i = pos;<NEW_LINE>String absPath;<NEW_L...
copiedImgs.put(fname, absPath);
1,645,070
private static void insertFactoryMethods(Type type) {<NEW_LINE>if (type.isAbstract() || type.isNative()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<Member> members = type.getMembers();<NEW_LINE>for (int i = 0; i < members.size(); i++) {<NEW_LINE>if (!members.get(i).isMethod()) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>...
, synthesizeBoxedJsPrimitiveFactoryMethod(type, method));
1,276,688
public void explain(int p, ExplanationForSignedClause explanation) {<NEW_LINE>IntVar pivot = explanation.readVar(p);<NEW_LINE>assert !explanation.readDom(p).isEmpty();<NEW_LINE>int value = getValue();<NEW_LINE>if (value == 1) {<NEW_LINE>// b is true and X < c holds<NEW_LINE>if (pivot == this) {<NEW_LINE>// b is the piv...
this.intersectLit(0, explanation);
1,406,879
public com.amazonaws.services.rekognition.model.ResourceNotReadyException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.rekognition.model.ResourceNotReadyException resourceNotReadyException = new com.amazonaws.services.rekognition.model.ResourceNotReadyExcepti...
JsonToken token = context.getCurrentToken();
822,050
public void renderTranslucent(PoseStack poseStack, float tickDelta, Camera camera, GameRenderer gameRenderer, WorldRenderingPipeline pipeline) {<NEW_LINE>if (!canRender(camera, gameRenderer) || !isAnyHandTranslucent() || !IrisApi.getInstance().isShaderPackInUse()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ACTIVE = true;<N...
pipeline.setPhase(WorldRenderingPhase.NONE);
673,164
public boolean apply(Game game, Ability source) {<NEW_LINE>Player tappingPlayer = game.getPlayer(firstControllerId);<NEW_LINE>Permanent permanentToControl = game.getPermanent(this.getTargetPointer().getFirst(game, source));<NEW_LINE>if (tappingPlayer != null && permanentToControl != null) {<NEW_LINE>// Create opponent ...
add(new PlayerIdPredicate(opponentId));
753,825
final DisassociateDeviceFromPlacementResult executeDisassociateDeviceFromPlacement(DisassociateDeviceFromPlacementRequest disassociateDeviceFromPlacementRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateDeviceFromPlacementRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
(super.beforeMarshalling(disassociateDeviceFromPlacementRequest));
396,966
private void loadNode143() {<NEW_LINE>CertificateGroupTypeNode node = new CertificateGroupTypeNode(this.context, Identifiers.ServerConfigurationType_CertificateGroups_DefaultApplicationGroup, new QualifiedName(0, "DefaultApplicationGroup"), new LocalizedText("en", "DefaultApplicationGroup"), LocalizedText.NULL_VALUE, U...
.expanded(), true));
899,357
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String loadTestName, 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>}...
error(new IllegalArgumentException("Parameter loadTestName is required and cannot be null."));