idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,005,154
private boolean breakBlock(BlockPos pos) {<NEW_LINE>Direction[] sides = Direction.values();<NEW_LINE>Vec3d eyesPos = RotationUtils.getEyesPos();<NEW_LINE>Vec3d relCenter = BlockUtils.getBoundingBox(pos).offset(-pos.getX(), -pos.getY(), -pos.getZ()).getCenter();<NEW_LINE>Vec3d center = Vec3d.of(pos).add(relCenter);<NEW_...
int bestSide = side.ordinal();
603,395
public void subscribe(@NonNull SingleEmitter<T> emitter) throws Throwable {<NEW_LINE>try {<NEW_LINE>checkState(!subscribed.getAndSet(true), "This single cannot be subscribed to twice");<NEW_LINE>ListenableFuture<T> future = supplier.get();<NEW_LINE>Futures.addCallback(future, new FutureCallback<T>() {<NEW_LINE><NEW_LIN...
-> emitter.onError(t));
976,805
public static Object decode(EntitySource source, Class<?> type, Class<?> elementType, Splittable split) {<NEW_LINE>if (split == null || split == Splittable.NULL) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// Collection support<NEW_LINE>if (elementType != null) {<NEW_LINE>Collection<Object> collection = null;<NEW_LINE>...
getBeanForPayload(split).as();
1,749,624
final GetVaultAccessPolicyResult executeGetVaultAccessPolicy(GetVaultAccessPolicyRequest getVaultAccessPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getVaultAccessPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,245,853
private List<Map<String, Object>> executeQuery(final String sql, final Object... params) {<NEW_LINE>List<Map<String, Object>> list = null;<NEW_LINE>try (Connection con = dataSource.getConnection();<NEW_LINE>PreparedStatement ps = createPreparedStatement(con, sql, params);<NEW_LINE>ResultSet rs = ps.executeQuery()) {<NE...
rs.getObject(i)));
701,857
public void deletePolicy(PolicyBean policy) throws StorageException {<NEW_LINE>String docType = <MASK><NEW_LINE>String pid = id(policy.getOrganizationId(), policy.getEntityId(), policy.getEntityVersion());<NEW_LINE>Map<String, Object> source = getEntity(docType, pid);<NEW_LINE>if (source == null) {<NEW_LINE>// $NON-NLS...
getPoliciesDocType(policy.getType());
917,904
private static Map<String, ProviderGroup> unMarshal(String context) {<NEW_LINE>if (StringUtils.isBlank(context)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Map<String, ProviderGroup> map = new HashMap<String, ProviderGroup>();<NEW_LINE>String[] lines = StringUtils.split(context, FileUtils.LINE_SEPARATOR);<NEW_LINE>for...
<ProviderInfo>(values)));
936,234
public String check(@RequestAttribute SysSite site, @SessionAttribute SysUser admin, String path, Long[] ids, HttpServletRequest request, ModelMap model) {<NEW_LINE>SysDept dept = sysDeptService.getEntity(admin.getDeptId());<NEW_LINE>if (ControllerUtils.verifyNotEmpty("deptId", admin.getDeptId(), model) || ControllerUt...
getId(), ids, path);
697,771
public void handleEvent(EventSubscriptionEntity eventSubscription, Object payload, CommandContext commandContext) {<NEW_LINE>String configuration = eventSubscription.getConfiguration();<NEW_LINE>if (configuration == null) {<NEW_LINE>throw new ActivitiException(<MASK><NEW_LINE>}<NEW_LINE>ExecutionEntity compensatingExec...
"Compensating execution not set for compensate event subscription with id " + eventSubscription.getId());
415,702
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View view = inflater.inflate(R.layout.authflood_dialog, container);<NEW_LINE>getDialog().setTitle("AuthFlood Attack");<NEW_LINE>btnAuthFloodStart = (Button) view.findViewById(R.id.button_start_authflood);<NEW_LI...
intent.putExtra("ATTACK", ob);
249,773
private static void decode15(DataInput in, long[] tmp, long[] longs) throws IOException {<NEW_LINE>in.readLongs(tmp, 0, 30);<NEW_LINE>shiftLongs(tmp, 30, longs, 0, 1, MASK16_15);<NEW_LINE>shiftLongs(tmp, 30, <MASK><NEW_LINE>for (int iter = 0, tmpIdx = 0, longsIdx = 30; iter < 2; ++iter, tmpIdx += 15, longsIdx += 1) {<N...
tmp, 0, 0, MASK16_1);
1,641,328
public <T, E extends Throwable> T withArrayFaillible(int minimalSize, FaillibleFunction<A, T, E> arrayMapper) throws E {<NEW_LINE>int requiredSize = Math.max(initialSize, minimalSize);<NEW_LINE>A dataArray = arrays.poll();<NEW_LINE>if (dataArray == null) {<NEW_LINE>// No arrays available in queue: create a fresh one<NE...
dataArray = constructor.apply(cur);
605,465
private void build(Implicant imp) {<NEW_LINE>final var table = model.getTruthTable();<NEW_LINE>if (table.getInputColumnCount() > KarnaughMapPanel.MAX_VARS)<NEW_LINE>return;<NEW_LINE>int kmapRows = 1 << KarnaughMapPanel.ROW_VARS[table.getInputColumnCount()];<NEW_LINE>int kmapCols = 1 << KarnaughMapPanel.<MASK><NEW_LINE>...
COL_VARS[table.getInputColumnCount()];
1,209,930
public static GetNotificationConfigResponse unmarshall(GetNotificationConfigResponse getNotificationConfigResponse, UnmarshallerContext context) {<NEW_LINE>getNotificationConfigResponse.setRequestId(context.stringValue("GetNotificationConfigResponse.RequestId"));<NEW_LINE>getNotificationConfigResponse.setSuccess(contex...
(context.stringValue("GetNotificationConfigResponse.Message"));
993,314
public void makeClientSortable() {<NEW_LINE>this.clientSortable = true;<NEW_LINE>table.getRowFormatter().addStyleName(0, DataTable.HEADER_STYLE + "-sortable");<NEW_LINE>sortIndicators = new SortIndicator[columns.length];<NEW_LINE>for (int i = 0; i < columns.length; i++) {<NEW_LINE>sortIndicators[i] = new SortIndicator(...
name + " <span id=\"" + id + "\"></span>");
34,754
private void loadAzureVmMetaData() {<NEW_LINE>AzureVMMetadata metadataSnapshot = azureVmMetaDataSingleton.get();<NEW_LINE>if (metadataSnapshot != null) {<NEW_LINE>this.populateAzureVmMetaData(metadataSnapshot);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>URI targetEndpoint = null;<NEW_LINE>try {<NEW_LINE>targetEndpoint = new ...
logger.debug("Unable to get azure vm metadata", throwable);
430,668
public Tuple2<DataSet<Tuple2<Long, float[]>>, ApsContext> train(IterativeDataSet<Tuple2<Long, float[]>> loop, DataSet<int[]> miniBatch, ApsContext curContext, BatchOperator[] others, Params params) {<NEW_LINE>curContext = curContext.map(new RichMapFunction<Params, Params>() {<NEW_LINE><NEW_LINE>private static final lon...
set(ApsContext.SEEDS, seeds);
315,797
private int next(int state, int fromTransitionIndex, int label, Transition transition) {<NEW_LINE>assert state >= 0;<NEW_LINE>assert label >= 0;<NEW_LINE>int stateIndex = 2 * state;<NEW_LINE>int firstTransitionIndex = states[stateIndex];<NEW_LINE>int numTransitions = states[stateIndex + 1];<NEW_LINE>// Since transition...
low + high) >>> 1;
1,593,808
public static SipURL parseNameAdressFromConfig(String nameAdress) throws SipParseException {<NEW_LINE>SipURL retVal;<NEW_LINE>try {<NEW_LINE>String host = null;<NEW_LINE>String port = null;<NEW_LINE>String transport = null;<NEW_LINE>if (nameAdress != null && nameAdress.length() > 0) {<NEW_LINE>int doublequete = nameAdr...
nameAdress.substring(0, doublequete);
100,791
public static ExecutableDdlJob4BringUpGsiTable addGlobalIndexTasks(String schemaName, String primaryTableName, String indexName) {<NEW_LINE>ExecutableDdlJob4BringUpGsiTable executableDdlJob4BringUpGsiTable = new ExecutableDdlJob4BringUpGsiTable();<NEW_LINE>GsiUpdateIndexStatusTask deleteOnlyTask = new GsiUpdateIndexSta...
IndexStatus.DELETE_ONLY, IndexStatus.WRITE_ONLY);
228,238
public org.python.Object __ilshift__(org.python.Object other) {<NEW_LINE>if (other instanceof org.python.types.Bool) {<NEW_LINE>long val = this.value;<NEW_LINE>val <<= (((org.python.types.Bool) other<MASK><NEW_LINE>return getInt(val);<NEW_LINE>} else if (other instanceof org.python.types.Int) {<NEW_LINE>long other_val ...
).value ? 1 : 0);
330,810
public static String timeSpan(Context context, long time_s) {<NEW_LINE>// Time in unit x<NEW_LINE>int time_x;<NEW_LINE>Resources res = context.getResources();<NEW_LINE>if (Math.abs(time_s) < TIME_MINUTE) {<NEW_LINE>time_x = (int) time_s;<NEW_LINE>return res.getQuantityString(R.plurals.time_span_seconds, time_x, time_x)...
plurals.time_span_minutes, time_x, time_x);
301,921
private static String figureValidationURL(final PwmRequest pwmRequest, final String validationKey) {<NEW_LINE>final HttpServletRequest req = pwmRequest.getHttpServletRequest();<NEW_LINE>final String queryString = req.getQueryString();<NEW_LINE>final String verificationParamName = pwmRequest.getDomainConfig().readAppPro...
appendAndEncodeUrlParameters(redirectURL, paramName, value);
729,095
public Expression rewriteMethodCall(MethodCall methodCall) {<NEW_LINE><MASK><NEW_LINE>if (!targetMethodDescriptor.isInstanceMember()) {<NEW_LINE>return methodCall;<NEW_LINE>}<NEW_LINE>if (targetMethodDescriptor.isJsFunction()) {<NEW_LINE>return methodCall;<NEW_LINE>}<NEW_LINE>DeclaredTypeDescriptor originType = targetM...
MethodDescriptor targetMethodDescriptor = methodCall.getTarget();
1,206,790
public org.python.Object __xor__(org.python.Object other) {<NEW_LINE>java.util.Set set = ((org.python.types.Set) this.copy()).value;<NEW_LINE>java.util.Set intersect_set = ((org.python.types.Set) this.copy()).value;<NEW_LINE>if (other instanceof org.python.types.Set) {<NEW_LINE>set.addAll(((org.python.types.Set) other)...
.FrozenSet) other).value);
992,140
public java.util.List<github.tornaco.android.thanos.core.pm.Pkg> enableAllThanoxDisabledPackages(boolean removeFromSmartFreezeList) throws android.os.RemoteException {<NEW_LINE>android.os.Parcel _data = android.os.Parcel.obtain();<NEW_LINE>android.os.Parcel _reply = android.os.Parcel.obtain();<NEW_LINE>java.util.List<g...
core.pm.Pkg.CREATOR);
1,450,435
private static void sendTraffic(Map<String, Long> trafficProportion, D2Client d2Client) throws Exception {<NEW_LINE>for (Map.Entry<String, Long> proportion : trafficProportion.entrySet()) {<NEW_LINE>long queryPerSecond = proportion.getValue();<NEW_LINE><MASK><NEW_LINE>Random random = new Random();<NEW_LINE>for (int i =...
String serviceName = proportion.getKey();
701,399
private boolean isValid(final I_M_Material_Tracking_Ref ref, final I_M_Material_Tracking_Report report) {<NEW_LINE>final IDocumentBL docActionBL = Services.get(IDocumentBL.class);<NEW_LINE>final IMaterialTrackingPPOrderBL materialTrackingPPOrderBL = Services.get(IMaterialTrackingPPOrderBL.class);<NEW_LINE>final I_M_Mat...
I_M_InOut io = iol.getM_InOut();
1,324,017
private void updateActions() {<NEW_LINE>synchronized (name2Action) {<NEW_LINE>// Fill up the actions from layer<NEW_LINE>Lookup.Result<Action> actionsResult = EditorActionUtilities.createActionsLookupResult(mimeType);<NEW_LINE>Collection<? extends Action<MASK><NEW_LINE>actions = new Action[actionColl.size()];<NEW_LINE>...
> actionColl = actionsResult.allInstances();
883,057
public MessageDsn unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>MessageDsn messageDsn = new MessageDsn();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 2;<NEW_LINE>while (t...
().unmarshall(context));
703,059
private CostDetailCreateResult createUsageVariance(@NonNull final CostDetailCreateRequest request) {<NEW_LINE>final AcctSchema acctSchema = acctSchemasRepo.getById(request.getAcctSchemaId());<NEW_LINE>final CostSegmentAndElement costSegmentAndElement = utils.extractCostSegmentAndElement(request);<NEW_LINE>final CostPri...
(qty).roundToCostingPrecisionIfNeeded(acctSchema);
1,788,789
public Sentence visitUnarySentence(ComplexSentence s, Object arg) {<NEW_LINE>Sentence result;<NEW_LINE>Sentence <MASK><NEW_LINE>if (negated.isPropositionSymbol()) {<NEW_LINE>// Already moved in fully<NEW_LINE>result = s;<NEW_LINE>} else if (negated.isNotSentence()) {<NEW_LINE>// ~(~&alpha;) &equiv; &alpha; (double-nega...
negated = s.getSimplerSentence(0);
1,145,053
public RelRoot expandView(RelDataType rowType, String queryString, List<String> schemaPath, List<String> viewPath) {<NEW_LINE>if (planner == null) {<NEW_LINE>ready();<NEW_LINE>}<NEW_LINE>SqlParser parser = SqlParser.create(queryString, parserConfig);<NEW_LINE>SqlNode sqlNode;<NEW_LINE>try {<NEW_LINE>sqlNode = parser.pa...
operatorTable, catalogReader, typeFactory, conformance);
804,495
public void updateSQLXML(String columnLabel, SQLXML xmlObject) throws SQLException {<NEW_LINE>try {<NEW_LINE>rsetImpl.updateSQLXML(columnLabel, xmlObject);<NEW_LINE>} catch (SQLException sqlX) {<NEW_LINE>FFDCFilter.processException(sqlX, getClass().getName() + ".updateSQLXML", "5280", this);<NEW_LINE>throw WSJdbcUtil.m...
this, tc, "updateSQLXML", err);
1,752,394
public boolean restoreBackup(final Long backupId) {<NEW_LINE>final BackupVO backup = backupDao.findById(backupId);<NEW_LINE>if (backup == null) {<NEW_LINE>throw new CloudRuntimeException("Backup " + backupId + " does not exist");<NEW_LINE>}<NEW_LINE>validateForZone(backup.getZoneId());<NEW_LINE>final VMInstanceVO vm = ...
backup.getVmId() + " couldn't be found on existing or removed VMs");
173,746
public void channelRead(final ChannelHandlerContext ctx, Object msg) throws Exception {<NEW_LINE>Channel channel = ctx.channel();<NEW_LINE>Object attribute = Channels.getAttribute(channel);<NEW_LINE>try {<NEW_LINE>if (attribute instanceof OnLastHttpContentCallback) {<NEW_LINE>if (msg instanceof LastHttpContent) {<NEW_L...
OnLastHttpContentCallback) attribute).call();
1,273,740
public static void registerType(ModelBuilder modelBuilder) {<NEW_LINE>ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(ServiceTask.class, BPMN_ELEMENT_SERVICE_TASK).namespaceUri(BPMN20_NS).extendsType(Task.class).instanceProvider(new ModelTypeInstanceProvider<ServiceTask>() {<NEW_LINE><NEW_LINE>public Serv...
defaultValue("##WebService").build();
854,342
static // How we handle it depends upon whether we are in a JodaTime context or not.<NEW_LINE>Replacement handleNonDaylightSavingsZone(boolean inJodaTimeContext, String daylightSavingsZone, String fixedOffset, String message) {<NEW_LINE>if (inJodaTimeContext) {<NEW_LINE>String newDescription = message + "\n\n" + <MASK>...
observesDaylightSavingsMessage("DateTimeZone", daylightSavingsZone, fixedOffset);
1,040,237
public void write(JsonWriter out, Fruit value) throws IOException {<NEW_LINE>if (value == null || value.getActualInstance() == null) {<NEW_LINE>elementAdapter.write(out, null);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// check if the actual instance is of the type `Apple`<NEW_LINE>if (value.getActualInstance() instanceof A...
getActualInstance()).getAsJsonObject();
1,192,197
public Pair<List<? extends VpnUser>, Integer> searchForVpnUsers(ListVpnUsersCmd cmd) {<NEW_LINE>String username = cmd.getUsername();<NEW_LINE>Long id = cmd.getId();<NEW_LINE>String keyword = cmd.getKeyword();<NEW_LINE>Account caller = CallContext.current().getCallingAccount();<NEW_LINE>List<Long> permittedAccounts = ne...
"keyword", "%" + keyword + "%");
692,014
protected void writeResultTable(StringBuffer buffer, StatisticEntry entry) {<NEW_LINE>// buffer.append("<h2>Statistics</h2>\n");<NEW_LINE>buffer.append("<ul>\n");<NEW_LINE>buffer.append("<li>");<NEW_LINE>buffer.append(entry.result_fitness_evaluations);<NEW_LINE>buffer.append(" fitness evaluations, ");<NEW_LINE>buffer.a...
end_time - entry.start_time) / 1000;
685,483
private boolean isIdenticalDatabase(final DataSourceSegment segment, final DataSource dataSource) {<NEW_LINE>String hostName = segment.getHostname();<NEW_LINE>String port = segment.getPort();<NEW_LINE>String database = segment.getDatabase();<NEW_LINE>if (null != segment.getUrl() && (null == hostName || null == port || ...
StandardJdbcUrlParser().parse(url);
1,146,576
private void mergeExtendedTweet(JSONObject extendedTweet) throws TwitterException {<NEW_LINE>try {<NEW_LINE>JSONArray indicesArray = extendedTweet.getJSONArray("display_text_range");<NEW_LINE>displayTextRangeStart = indicesArray.getInt(0);<NEW_LINE><MASK><NEW_LINE>collectEntities(extendedTweet);<NEW_LINE>userMentionEnt...
displayTextRangeEnd = indicesArray.getInt(1);
594,887
public void display(boolean verbose, PrintWriter pw) {<NEW_LINE>super.display(verbose, pw);<NEW_LINE>if (doCatLevelEval) {<NEW_LINE>final NumberFormat nf = new DecimalFormat("0.00");<NEW_LINE>final Set<String> cats = Generics.newHashSet();<NEW_LINE>final Random rand = new Random();<NEW_LINE>cats.addAll(precisions.keySe...
rnum2 = rnums2.getCount(cat);
1,207,424
public static void transform(final GrayU8 input, final GrayS32 transformed) {<NEW_LINE>int indexSrc = input.startIndex;<NEW_LINE>int indexDst = transformed.startIndex;<NEW_LINE>int end = indexSrc + input.width;<NEW_LINE>int total = 0;<NEW_LINE>for (; indexSrc < end; indexSrc++) {<NEW_LINE>transformed.data[indexDst++] =...
.startIndex + transformed.stride * y;
872,357
public void postComment(View view) {<NEW_LINE>if (dribbblePrefs.isLoggedIn()) {<NEW_LINE>if (TextUtils.isEmpty(enterComment.getText()))<NEW_LINE>return;<NEW_LINE>enterComment.setEnabled(false);<NEW_LINE>dribbbleApi.postComment(shot.id, enterComment.getText().toString().trim(), new retrofit.Callback<Comment>() {<NEW_LIN...
DribbbleShot.this, DribbbleLogin.class);
1,811,424
public static void main(final String[] args) throws Exception {<NEW_LINE><MASK><NEW_LINE>opts.addOption(Option.builder("b").longOpt("bootstrap-servers").hasArg().desc("Kafka cluster bootstrap server string (ex: broker:9092)").build());<NEW_LINE>opts.addOption(Option.builder("s").longOpt("schema-registry").hasArg().desc...
final Options opts = new Options();
1,047,546
final ListMembersResult executeListMembers(ListMembersRequest listMembersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listMembersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,383,632
public String generateHensonNavigatorClass(Set<String> targetActivities, String packageName) {<NEW_LINE><MASK><NEW_LINE>StringBuilder importStatement = new StringBuilder("import android.content.Context;\n");<NEW_LINE>targetActivities.stream().forEach(targetActivity -> {<NEW_LINE>importStatement.append(format("import %s...
String packageStatement = "package " + packageName + ";\n";
380,396
public String decrypt(String value) {<NEW_LINE>if (value == null || value.length() == 0)<NEW_LINE>return value;<NEW_LINE>boolean isEncrypted = value.startsWith(ENCRYPTEDVALUE_START) && value.endsWith(ENCRYPTEDVALUE_END);<NEW_LINE>if (isEncrypted)<NEW_LINE>value = value.substring(ENCRYPTEDVALUE_START.length(), value.len...
AlgorithmParameters ap = m_cipher.getParameters();
1,332,369
public InstanceSummary unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>InstanceSummary instanceSummary = new InstanceSummary();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
)).unmarshall(context));
1,480,048
private TypeUpdateResult invokeListener(TypeUpdateInfo updateInfo, InsnNode insn, InsnArg arg, ArgType candidateType) {<NEW_LINE>BaseInvokeNode invoke = (BaseInvokeNode) insn;<NEW_LINE>if (isAssign(invoke, arg)) {<NEW_LINE>// TODO: implement backward type propagation (from result to instance)<NEW_LINE>return SAME;<NEW_...
TypeUtils typeUtils = root.getTypeUtils();
458,249
private static void placeVolumeIdsInVag(SolidFireUtil.SolidFireConnection sfConnection, List<SolidFireUtil.SolidFireVag> sfVags, SolidFireVag sfVag, Host host, HostDao hostDao) {<NEW_LINE>SolidFireVag sfVagForRandomHostInCluster = getVagForRandomHostInCluster(sfVags, host, hostDao);<NEW_LINE>if (sfVagForRandomHostInClu...
(new Long[0]));
508,265
public void run(RegressionEnvironment env) {<NEW_LINE>AtomicInteger milestone = new AtomicInteger();<NEW_LINE>String[] filtersAB = new String[] { "theString='a' and (intPrimitive=1 or longPrimitive=10)" };<NEW_LINE>for (String filter : filtersAB) {<NEW_LINE>String epl = "@name('s0') select * from SupportBean(" + filter...
"x", 1, 10) });
410,072
public static void convert(InterleavedS32 input, InterleavedI16 output) {<NEW_LINE>if (input.isSubimage() || output.isSubimage()) {<NEW_LINE>final int N = input.width * input.getNumBands();<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, input.height, y -> {<NEW_LINE>for (int y = 0; y < input.height; y++) {<NEW...
.height * input.getNumBands();
1,009,872
public String modelChange(final PO po, final int typeInt) {<NEW_LINE>final ModelChangeType type = ModelChangeType.valueOf(typeInt);<NEW_LINE>if (InterfaceWrapperHelper.isInstanceOf(po, I_C_OrderLine.class)) {<NEW_LINE>if (type.isNew() && type.isBefore() && po.getDynAttribute(PO.DYNATTR_CopyRecordSupport) == null) {<NEW...
Adempiere.getBean(OrderFreightCostsService.class);
1,782,970
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>notificationsViewModel = new ViewModelProvider(this, new ViewModelProvider.NewInstanceFactory()<MASK><NEW_LINE>View root = inflater.inflate(R.layout.fragment_notifications, container, false);<NEW_LINE>f...
).get(NotificationsViewModel.class);
1,102,503
public static void modifyJobTime(String jobName, String cron) {<NEW_LINE>try {<NEW_LINE>Scheduler sched = schedulerFactory.getScheduler();<NEW_LINE>TriggerKey triggerKey = TriggerKey.triggerKey("ke_trigger_name_" + new Date().getTime(), "ke_trigger_group_" + new Date().getTime());<NEW_LINE>CronTrigger trigger = (CronTr...
Date().getTime());
384,899
public void addBreezemoon(final RequestContext context) {<NEW_LINE>context.renderJSON(StatusCodes.ERR);<NEW_LINE>final Request request = context.getRequest();<NEW_LINE>final JSONObject requestJSONObject = context.requestJSON();<NEW_LINE>if (isInvalid(context, requestJSONObject)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>f...
put(Breezemoon.BREEZEMOON_CONTENT, breezemoonContent);
51,112
final GetWebACLForResourceResult executeGetWebACLForResource(GetWebACLForResourceRequest getWebACLForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getWebACLForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
193,366
private String inspectSpecializes(Element element) {<NEW_LINE>if (element instanceof TypeElement) {<NEW_LINE>String name = doGetName(element, element);<NEW_LINE>if (name != null) {<NEW_LINE>return name;<NEW_LINE>}<NEW_LINE>TypeElement superElement = AnnotationObjectProvider.checkSuper((TypeElement) element, NAMED_QUALI...
element, getModel(), NAMED_QUALIFIER_ANNOTATION);
903,395
private void copyExistingEventToBuffer() {<NEW_LINE>// validation<NEW_LINE>if (valueWriter == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// copy event to buffer<NEW_LINE>final int metadataLength = metadataWriter.getLength();<NEW_LINE>final int valueLength = valueWriter.getLength();<NEW_LINE>eventBuffer.putLong(<MASK>...
eventBufferOffset, key, Protocol.ENDIANNESS);
1,235,977
public static long byteStringAs(String str, ByteUnit unit) {<NEW_LINE>String lower = str.toLowerCase().trim();<NEW_LINE>try {<NEW_LINE>Matcher m = Pattern.compile("([0-9]+)([a-z]+)?").matcher(lower);<NEW_LINE>Matcher fractionMatcher = Pattern.compile("([0-9]+\\.[0-9]+)([a-z]+)?").matcher(lower);<NEW_LINE>if (m.matches(...
"\n" + e.getMessage());
262,240
protected void processMouseEvent(MouseEvent e) {<NEW_LINE>MouseEvent treeEvent = null;<NEW_LINE>if (e != null) {<NEW_LINE>Point point = e.getPoint();<NEW_LINE>int column = columnAtPoint(point);<NEW_LINE>if (column != -1 && getColumnClass(column) == JTree.class) {<NEW_LINE>int row = rowAtPoint(point);<NEW_LINE>Rectangle...
.x + treeCellRect.width / 2;
1,482,186
public String convertAuditRecordToMessage(final PwmApplication pwmApplication, final AuditRecord auditRecord) throws PwmUnrecoverableException {<NEW_LINE>final AppConfig domainConfig = pwmApplication.getConfig();<NEW_LINE>final Settings settings = Settings.fromConfiguration(domainConfig);<NEW_LINE>final String auditRec...
value = auditRecordMap.get(auditFieldName);
73,713
private static Pair<String, String> offsetROR(final long offset, final ITranslationEnvironment environment, final List<ReilInstruction> instructions, final String registerNodeValue1, final String registerNodeValue2, final String immediateNodeValue) {<NEW_LINE>final String address = environment.getNextVariableString();<...
String tmpVar3 = environment.getNextVariableString();
1,204,880
public DescribeAppVersionTemplateResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeAppVersionTemplateResult describeAppVersionTemplateResult = new DescribeAppVersionTemplateResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = conte...
JsonToken token = context.getCurrentToken();
1,831,874
final GetAppInstanceRetentionSettingsResult executeGetAppInstanceRetentionSettings(GetAppInstanceRetentionSettingsRequest getAppInstanceRetentionSettingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAppInstanceRetentionSettingsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
false), new GetAppInstanceRetentionSettingsResultJsonUnmarshaller());
948,491
public RelWriter explainTerms(RelWriter pw) {<NEW_LINE>for (RelNode rel : rels) {<NEW_LINE>if (rel instanceof TableScan) {<NEW_LINE>TableScan tableScan = (TableScan) rel;<NEW_LINE>pw.item("table", tableScan.getTable().getQualifiedName());<NEW_LINE>pw.item("intervals", intervals);<NEW_LINE>} else if (rel instanceof Filt...
ord.e.getFieldIndex());
251,613
// transformer /////////////////////////////<NEW_LINE>public static ParseExceptionDto fromException(ParseException exception) {<NEW_LINE>ParseExceptionDto dto = new ParseExceptionDto();<NEW_LINE>dto.setType(ParseException.class.getSimpleName());<NEW_LINE>dto.<MASK><NEW_LINE>for (ResourceReport report : exception.getRes...
setMessage(exception.getMessage());
1,602,840
public void saveData(LdapDirectorySettings settings) {<NEW_LINE>settings.setName(this.nameField.getText());<NEW_LINE>settings.setHostname(hostnameField.getText());<NEW_LINE>if (encryptionBox.isSelected()) {<NEW_LINE>settings.setEncryption(Encryption.SSL);<NEW_LINE>} else {<NEW_LINE>settings.setEncryption(Encryption.CLE...
settings.setScope(Scope.SUB);
570,034
final DescribeExportImageTasksResult executeDescribeExportImageTasks(DescribeExportImageTasksRequest describeExportImageTasksRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeExportImageTasksRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
(super.beforeMarshalling(describeExportImageTasksRequest));
297,176
public void checkJvmCompatibilityAndIssueWarning() {<NEW_LINE>String javaVmName = jvmMetadataRepository.getJavaVmName();<NEW_LINE>Runtime.Version javaVersion = jvmMetadataRepository.getJavaVersion();<NEW_LINE>if (!SUPPORTED_JAVA_NAME_PATTERN.matcher(javaVmName).matches()) {<NEW_LINE>log.warn(INCOMPATIBLE_JVM_WARNING);<...
> jvmArguments = jvmMetadataRepository.getJvmInputArguments();
1,145,143
private static void processCreateTargetExecutionRecord(CreateTargetExecutionLog log, JavaRefactoringArguments arguments, String token) {<NEW_LINE>final StringTokenizer tokenizer = new StringTokenizer(token, DELIMITER_ELEMENT, false);<NEW_LINE>String value = null;<NEW_LINE>if (tokenizer.hasMoreTokens()) {<NEW_LINE>value...
getProject(), value, false);
1,196,745
public static void main(String[] args) {<NEW_LINE>RedBlackBST<String, Bag<String>> redBlackBST = new RedBlackBST<>();<NEW_LINE>Bag<String> colorsBag = new Bag<>();<NEW_LINE>colorsBag.add("red");<NEW_LINE>colorsBag.add("green");<NEW_LINE>colorsBag.add("blue");<NEW_LINE>redBlackBST.put("Colors", colorsBag);<NEW_LINE>Bag<...
StdOut.println(" " + value);
1,082,329
private boolean findTimeoutAndSave() throws IOException {<NEW_LINE>List<GlobalSession> globalSessionsOverMaxTimeout = sessionManager.<MASK><NEW_LINE>if (CollectionUtils.isEmpty(globalSessionsOverMaxTimeout)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>for (GlobalSession globalSession : globalSessionsOverMaxTimeout) {<N...
findGlobalSessions(new SessionCondition(MAX_TRX_TIMEOUT_MILLS));
549,961
public synchronized void draw(BoundingBox boundingBox, byte zoomLevel, Canvas canvas, Point topLeftPoint) {<NEW_LINE>if (this.latLongs.isEmpty() || this.paintStroke == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (this.boundingBox != null && !this.boundingBox.intersects(boundingBox)) {<NEW_LINE>return;<NEW_LINE>}<NE...
path.moveTo(x, y);
1,236,720
public static void collect(CollectInfo collectInfo, String basePath, Restlet restlet, ChallengeScheme scheme, List<? extends IntrospectionHelper> introspectorHelpers) {<NEW_LINE>if (restlet instanceof Router) {<NEW_LINE>collectForRouter(collectInfo, basePath, (Router) restlet, scheme, introspectorHelpers);<NEW_LINE>} e...
Finder) restlet, scheme, introspectorHelpers);
1,848,737
private void applyFilter(RpcConnection rpcConnection, Request<JsonObject> request) {<NEW_LINE>Participant participant;<NEW_LINE>try {<NEW_LINE>participant = sanityCheckOfSession(rpcConnection, "applyFilter");<NEW_LINE>} catch (OpenViduException e) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String filterType = getStringPara...
Participant moderator = isModerator ? participant : null;
282,133
private RelNode convertToDataStreamScan(DataStream<?> dataStream, int[] fieldIndices, TableSchema tableSchema, Optional<ObjectIdentifier> identifier) {<NEW_LINE>List<String> names;<NEW_LINE>if (identifier.isPresent()) {<NEW_LINE>names = Arrays.asList(identifier.get().getCatalogName(), identifier.get().getDatabaseName()...
names = Collections.singletonList(refId);
616,186
private SqlDynamicParam visitAllDynamicParam(SqlDynamicParam dynamicParam) {<NEW_LINE>if (autoIncrementColumn != curFieldIndex) {<NEW_LINE>return SqlNode.clone(dynamicParam);<NEW_LINE>}<NEW_LINE>int dynamicParamIndex = dynamicParam.getIndex();<NEW_LINE>List<Map<Integer, ParameterContext>> batchParameters = parameterSet...
{ dynamicParamIndex + 1, nextVal });
12,298
private static int[][] parse(int[][] members) {<NEW_LINE>// Create vector to hold int[] elements, each element being one range<NEW_LINE>// parsed out of members.<NEW_LINE>Vector<int[]> ranges = new Vector<>();<NEW_LINE>// Process all integer groups in members.<NEW_LINE>int n = (members == null ? 0 : members.length);<NE...
= members[i][0];
1,509,621
public LogGroup unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>LogGroup logGroup = new LogGroup();<NEW_LINE>reader.beginObject();<NEW_LINE>whi...
().unmarshall(context));
1,850,047
public static ListDeviceDistributeJobResponse unmarshall(ListDeviceDistributeJobResponse listDeviceDistributeJobResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDeviceDistributeJobResponse.setRequestId(_ctx.stringValue("ListDeviceDistributeJobResponse.RequestId"));<NEW_LINE>listDeviceDistributeJobResponse.setSuccess(...
("ListDeviceDistributeJobResponse.Data.JobInfo[" + i + "].Total"));
247,782
public void drawTo(Graphic graphic, Style heighLight) {<NEW_LINE>graphic.drawPolygon(new Polygon(true).add(0, -SIZE).add(0, SIZE * 2).add(-SIZE * 3, SIZE * 2).add(-SIZE * 3, -SIZE), Style.NORMAL);<NEW_LINE>final int r = SIZE;<NEW_LINE>graphic.drawCircle(CENTER.add(-r, -r), CENTER.add(r, r), KNOB);<NEW_LINE>final double...
0, SIZE2 * 3 + 4);
1,372,972
final UpdateAppResult executeUpdateApp(UpdateAppRequest updateAppRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateAppRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
994,909
private Map<?, String> initializeColors(BlameType blameType, List<AnnotatedLine> lines) {<NEW_LINE>ColorFactory colorFactory = new ColorFactory();<NEW_LINE>Map<?, String> colorMap;<NEW_LINE>if (BlameType.AGE == blameType) {<NEW_LINE>Set<Date> keys = new TreeSet<Date>(new Comparator<Date>() {<NEW_LINE><NEW_LINE>@Overrid...
= new HashSet<String>();
401,126
public Mat apply(Mat input) {<NEW_LINE>// Must be RGB<NEW_LINE>assert input.channels() == 3;<NEW_LINE>int w = input.cols();<NEW_LINE>int h = input.rows();<NEW_LINE>input.convertTo(input, opencv_core.CV_32F);<NEW_LINE>var matCols = input.reshape(1, w * h);<NEW_LINE>double[] max = new double[] { stains.getMaxRed(), stain...
opencv_core.max(col, 1.0);
1,411,791
final CreateApplicationPresignedUrlResult executeCreateApplicationPresignedUrl(CreateApplicationPresignedUrlRequest createApplicationPresignedUrlRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createApplicationPresignedUrlRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
178,997
public List<SelectedRecord> sortMetrics(final TopNCondition metrics, final String valueColumnName, final Duration duration, List<KeyValue> additionalConditions) throws IOException {<NEW_LINE>List<Object> conditions = new ArrayList<>(10);<NEW_LINE>StringBuilder sql = buildMetricsValueSql(valueColumnName, metrics.getName...
topNEntities = new ArrayList<>();
1,482,656
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>contentView = View.inflate(getContext(), R.layout.bottom_sheet_general_chat_messages, null);<NEW_LINE>reactionsLayout = contentView.findViewById(R.id.reactions_layout);<NEW_LINE>reac...
ChatActivity) requireActivity()).selectedMessageId;
358,470
DocumentReferenceQuery computeFilter(MongoPersistentProperty property, Object source, SpELContext spELContext) {<NEW_LINE>DocumentReference documentReference = property.isDocumentReference() ? property.getDocumentReference() : ReferenceEmulatingDocumentReference.INSTANCE;<NEW_LINE>String lookup = documentReference.look...
>) value).entrySet();
418,149
private void inplaceEditWindows(ThreadContext context, String filename, String extension) throws RaiseException {<NEW_LINE><MASK><NEW_LINE>if (extension.length() > 0) {<NEW_LINE>String backup = filename + extension;<NEW_LINE>File backupFile = new File(backup);<NEW_LINE>// we can't rename a file while it's open in windo...
File file = new File(filename);
489,607
final UpdateJobResult executeUpdateJob(UpdateJobRequest updateJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateJob");
1,294,540
// using synchronized to avoid exception if invoked at the same time on multiple threads<NEW_LINE>@Override<NEW_LINE>public synchronized Object createValue(UIDefaults table) {<NEW_LINE>if (inCreateValue)<NEW_LINE>throw new IllegalStateException("FlatLaf: endless recursion in font");<NEW_LINE>Font baseFont = null;<NEW_L...
baseFont = UIManager.getFont("Label.font");
126,328
public void addInitState(ITool tool, TLCState state, long stateFP) {<NEW_LINE>for (int soln = 0; soln < solutions.length; soln++) {<NEW_LINE>OrderOfSolution os = solutions[soln];<NEW_LINE>BEGraph bgraph = bgraphs[soln];<NEW_LINE>int slen = os.getCheckState().length;<NEW_LINE>int alen = os.getCheckAction().length;<NEW_L...
.getTableau().getInitCnt();
1,016,833
public StartUserImportJobResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StartUserImportJobResult startUserImportJobResult = new StartUserImportJobResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE...
().unmarshall(context));
240,937
public void initialize() {<NEW_LINE>this.viewModel = new CitationKeyPatternTabViewModel(dialogService, preferencesService);<NEW_LINE>overwriteAllow.selectedProperty().<MASK><NEW_LINE>overwriteWarning.selectedProperty().bindBidirectional(viewModel.overwriteWarningProperty());<NEW_LINE>generateOnSave.selectedProperty().b...
bindBidirectional(viewModel.overwriteAllowProperty());
40,229
public void run() {<NEW_LINE>Set<DatasourceMap> datasourceMaps = new HashSet<>(DATASOURCE_MAP_CACHE.values());<NEW_LINE>try {<NEW_LINE>EurekaClientRefreshUtils.apply().refreshEurekaClient();<NEW_LINE>} catch (Throwable t) {<NEW_LINE>logger.warn("DatasourceMapCache clean runner refresh eureka client error, {}", t);<NEW_...
getServiceInstances(datasourceMap.getServiceId());
1,168,918
final CreateFunctionResult executeCreateFunction(CreateFunctionRequest createFunctionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createFunctionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<CreateFunct...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);