idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,444,166
private void dbUpdate(ContentType type) throws DotDataException {<NEW_LINE>DotConnect dc = new DotConnect();<NEW_LINE>dc.setSQL(this.contentTypeSql.UPDATE_TYPE);<NEW_LINE>dc.addParam(type.name());<NEW_LINE>dc.addParam(type.description());<NEW_LINE>dc.addParam(type.defaultType());<NEW_LINE>dc.<MASK><NEW_LINE>dc.addParam...
addParam(type.detailPage());
531,783
public boolean canRead(ODatabaseSession session, ORecord record) {<NEW_LINE>// TODO what about server users?<NEW_LINE>if (session.getUser() == null) {<NEW_LINE>// executeNoAuth<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (!session.getConfiguration().getValueAsBoolean(OGlobalConfiguration.SECURITY_ADVANCED_POLICY)) {<N...
"`", OSecurityPolicy.Scope.READ);
187,107
private void createCanvas() {<NEW_LINE>lwjglCanvas = new Canvas() {<NEW_LINE><NEW_LINE>private final Dimension minSize = new Dimension(1, 1);<NEW_LINE><NEW_LINE>private float scaleX;<NEW_LINE><NEW_LINE>private float scaleY;<NEW_LINE><NEW_LINE>public final void addNotify() {<NEW_LINE>super.addNotify();<NEW_LINE>AffineTr...
= getGraphicsConfiguration().getDefaultTransform();
1,855,182
CachedLayer writeTarLayer(DescriptorDigest diffId, Blob compressedBlob) throws IOException {<NEW_LINE>Files.createDirectories(cacheStorageFiles.getLocalDirectory());<NEW_LINE>Files.createDirectories(cacheStorageFiles.getTemporaryDirectory());<NEW_LINE>try (TempDirectoryProvider tempDirectoryProvider = new TempDirectory...
layerBlobDescriptor = compressedBlob.writeTo(fileOutputStream);
1,381,334
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c0,c1".split(",");<NEW_LINE>String epl = "@name('s0') select value in (select sum(intPrimitive) from SupportBean#keepall having last(theString) != 'E1') as c0," + "value not in (select sum(intPrimitive) from SupportBean#keepall having last(theStri...
[] { true, false });
968,714
public void visitNewArrayFunctionRef(ENewArrayFunctionRef userNewArrayFunctionRefNode, ScriptScope scriptScope) {<NEW_LINE>ReferenceNode irReferenceNode;<NEW_LINE>if (scriptScope.hasDecoration(userNewArrayFunctionRefNode, TargetType.class)) {<NEW_LINE>TypedInterfaceReferenceNode typedInterfaceReferenceNode = new TypedI...
NewArrayNode(userNewArrayFunctionRefNode.getLocation());
158,510
public static DescribeVulDetailsResponse unmarshall(DescribeVulDetailsResponse describeVulDetailsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeVulDetailsResponse.setRequestId(_ctx.stringValue("DescribeVulDetailsResponse.RequestId"));<NEW_LINE>List<Cve> cves = new ArrayList<Cve>();<NEW_LINE>for (int i = 0; i < ...
("DescribeVulDetailsResponse.Cves[" + i + "].ReleaseTime"));
1,789,631
private void parse(String[] args) {<NEW_LINE>ArgumentsParser parser = new ArgumentsParser(args);<NEW_LINE>parseFlags(parser);<NEW_LINE>fileNames = parser.getRemaining();<NEW_LINE>if (inputList != null && !inputList.isEmpty()) {<NEW_LINE>// append the file names to the end of the input list<NEW_LINE>inputList.addAll<MAS...
(Arrays.asList(fileNames));
677,009
public static <V, T> MutableObjectDoubleMap<V> sumByDouble(T[] array, int size, Function<? super T, ? extends V> groupBy, DoubleFunction<? super T> function) {<NEW_LINE>MutableObjectDoubleMap<V> result = ObjectDoubleMaps.mutable.empty();<NEW_LINE>MutableObjectDoubleMap<V> groupKeyToCompensation = ObjectDoubleMaps.mutab...
.get(groupByKey) - adjustedValue);
1,541,267
final DeleteStreamResult executeDeleteStream(DeleteStreamRequest deleteStreamRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteStreamRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteStream");
1,521,171
public List<MigrationQuery> compute(MappingModel mappingModel, Keyspace keyspace) {<NEW_LINE>List<MigrationQuery> <MASK><NEW_LINE>List<String> errors = new ArrayList<>();<NEW_LINE>for (EntityModel entity : mappingModel.getEntities().values()) {<NEW_LINE>switch(entity.getTarget()) {<NEW_LINE>case TABLE:<NEW_LINE>Table e...
queries = new ArrayList<>();
394,737
public void execute() {<NEW_LINE>UserVm result;<NEW_LINE>if (getStartVm()) {<NEW_LINE>try {<NEW_LINE>CallContext.current().setEventDetails("Vm Id: " + getEntityUuid());<NEW_LINE>result = _userVmService.startVirtualMachine(this);<NEW_LINE>} catch (ResourceUnavailableException ex) {<NEW_LINE>s_logger.warn("Exception: ", ...
INTERNAL_ERROR, ex.getMessage());
761,721
public void createSetterForField(AccessLevel level, JavacNode fieldNode, JavacNode sourceNode, boolean whineIfExists, List<JCAnnotation> onMethod, List<JCAnnotation> onParam) {<NEW_LINE>if (fieldNode.getKind() != Kind.FIELD) {<NEW_LINE>fieldNode.addError(SETTER_NODE_NOT_SUPPORTED_ERR);<NEW_LINE>return;<NEW_LINE>}<NEW_L...
methodName = toSetterName(fieldNode, accessors);
1,617,868
public UpdateMedicalVocabularyResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateMedicalVocabularyResult updateMedicalVocabularyResult = new UpdateMedicalVocabularyResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurren...
class).unmarshall(context));
1,766,918
public static boolean isBetterLocation(final Location location, final Location prevLoc) {<NEW_LINE>if (prevLoc == null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>// Check whether the new location fix is newer or older<NEW_LINE>final long timeDelta = location.getTime() - prevLoc.getTime();<NEW_LINE>final boolean isSig...
= timeDelta > Config.Map.LOCATION_FIX_SIGNIFICANT_TIME_DELTA;
1,130,393
public static DescribeTraceInfoDetailResponse unmarshall(DescribeTraceInfoDetailResponse describeTraceInfoDetailResponse, UnmarshallerContext context) {<NEW_LINE>describeTraceInfoDetailResponse.setRequestId(context.stringValue("DescribeTraceInfoDetailResponse.RequestId"));<NEW_LINE>describeTraceInfoDetailResponse.setSu...
("DescribeTraceInfoDetailResponse.TraceInfoDetail.EntityTypeList[" + i + "].Offset"));
1,384,880
public static double angle(NumberVector v1, NumberVector v2, NumberVector o) {<NEW_LINE>final int dim1 = v1.getDimensionality(), dim2 = v2.getDimensionality(), dimo = o.getDimensionality();<NEW_LINE>final int mindim = (dim1 <= dim2) ? dim1 : dim2;<NEW_LINE>// Essentially, we want to compute this:<NEW_LINE>// v1' = v1 -...
a < 1.) ? a : 1.;
593,716
protected InterceptorStatusToken beforeInvocation(Object object) {<NEW_LINE>Assert.notNull(object, "Object was null");<NEW_LINE>if (!getSecureObjectClass().isAssignableFrom(object.getClass())) {<NEW_LINE>throw new IllegalArgumentException("Security invocation attempted for object " + object.getClass().getName() + " but...
.format("Switched to RunAs authentication %s", runAs));
320,085
final DBParameterGroup executeCopyDBParameterGroup(CopyDBParameterGroupRequest copyDBParameterGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(copyDBParameterGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
(super.beforeMarshalling(copyDBParameterGroupRequest));
455,423
ArrayList<Object> new152() /* reduce AQuotedArrayRef */<NEW_LINE>{<NEW_LINE>@SuppressWarnings("hiding")<NEW_LINE>ArrayList<Object> nodeList <MASK><NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>ArrayList<Object> nodeArrayList2 = pop();<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>ArrayList<Object> nodeArrayList1 = pop(...
= new ArrayList<Object>();
1,759,429
public void handleBlockComment(int commentIndex) {<NEW_LINE>Token commentToken = this.tm.get(commentIndex);<NEW_LINE>boolean isFirstColumn = handleWhitespaceAround(commentIndex);<NEW_LINE>if (handleFormatOnOffTags(commentToken))<NEW_LINE>return;<NEW_LINE>boolean isHeader = this.tm.isInHeader(commentIndex);<NEW_LINE>boo...
(commentToken), commentToken.originalStart);
233,927
public ComplexNumber[] estimateComplexAmplitudesTD(double[] x, double f0InHz, int L, double samplingRateInHz) {<NEW_LINE>int N = x.length;<NEW_LINE>double[][] Q = new double[N][2 * L];<NEW_LINE>double w0InRadians = SignalProcUtils.hz2radian(f0InHz, (int) samplingRateInHz);<NEW_LINE>int i, j;<NEW_LINE>for (i = 0; i < N;...
) hopt[i + L]);
1,836,818
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View view = inflater.inflate(R.layout.fragment_mainmenu, container, false);<NEW_LINE>final int[] clickableIds = new int[] { R.id.easy_mode_button, R.id.hard_mode_button, R.id.show_achievements_button, R.id.show_...
sign_out_button, R.id.show_friends_button };
891,824
public ProtocolProviderService installAccount(ProtocolProviderFactory providerFactory, String user, String passwd) throws OperationFailedException {<NEW_LINE>Hashtable<String, String> accountProperties = new Hashtable<String, String>();<NEW_LINE>accountProperties.put(ProtocolProviderFactory.ACCOUNT_ICON_PATH, "resource...
providerFactory.modifyAccount(protocolProvider, accountProperties);
472,158
public static void vertical5(Kernel1D_S32 kernel, GrayU8 input, GrayI16 output, int skip) {<NEW_LINE>final byte[] dataSrc = input.data;<NEW_LINE>final short[] dataDst = output.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int...
[indexSrc] & 0xFF) * k5;
1,230,182
private static Pair<List<TResultBatch>, Status> executeStmt(ConnectContext context, ExecPlan plan) throws Exception {<NEW_LINE>Coordinator coord = new Coordinator(context, plan.getFragments(), plan.getScanNodes(), plan.getDescTbl().toThrift());<NEW_LINE>QeProcessorImpl.INSTANCE.registerQuery(context.getExecutionId(), c...
(!batch.isEos());
1,469,814
private void dependantFiller(TruthTable tt, DependencyAnalyser da) throws NodeException, AnalyseException {<NEW_LINE>model.init();<NEW_LINE>for (Signal out : outputs) {<NEW_LINE>ArrayList<Signal> ins = reorder(da.getInputs(out), inputs);<NEW_LINE>if (ins.size() > MAX_INPUTS_ALLOWED)<NEW_LINE>throw new AnalyseException(...
(e, ins, inputs));
1,348,296
protected <A extends Annotation> ExpressionResult checkPermissions(Type<?> resourceClass, Class<A> annotationClass, Set<String> fields, Supplier<Expression> expressionSupplier, Optional<Function<Expression, ExpressionResult>> expressionExecutor) {<NEW_LINE>// If the user check has already been evaluated before, return ...
expression)).orElse(expressionResult);
1,503,656
private soot.SootMethod addGetFieldAccessMeth(soot.SootClass conClass, polyglot.ast.Field field) {<NEW_LINE>if ((InitialResolver.v().getPrivateFieldGetAccessMap() != null) && (InitialResolver.v().getPrivateFieldGetAccessMap().containsKey(new polyglot.util.IdentityKey(field.fieldInstance())))) {<NEW_LINE>return InitialR...
).isStatic(), conClass);
1,308,071
public SyntheticMethodBinding addSyntheticMethod(LambdaExpression lambda) {<NEW_LINE>if (!isPrototype())<NEW_LINE>throw new IllegalStateException();<NEW_LINE>if (this.synthetics == null)<NEW_LINE>this<MASK><NEW_LINE>if (this.synthetics[SourceTypeBinding.METHOD_EMUL] == null)<NEW_LINE>this.synthetics[SourceTypeBinding.M...
.synthetics = new HashMap[MAX_SYNTHETICS];
1,554,097
private PrintElement createImageElement(final MPrintFormatItem item) {<NEW_LINE>Object obj = m_data.getNode(new Integer(item.getAD_Column_ID()));<NEW_LINE>if (obj == null)<NEW_LINE>return null;<NEW_LINE>else if (obj instanceof PrintDataElement)<NEW_LINE>;<NEW_LINE>else {<NEW_LINE>log.error("Element not PrintDataElement...
ImageElement.get(data, url);
773,389
public void kill(UUID userId, DisconnectReason reason) {<NEW_LINE>try {<NEW_LINE>if (reason == null) {<NEW_LINE>logger.fatal("User kill without disconnect reason userId: " + userId);<NEW_LINE>reason = DisconnectReason.Undefined;<NEW_LINE>}<NEW_LINE>if (userId != null && clients.containsKey(userId)) {<NEW_LINE>String u...
String message = reason.getMessage();
1,174,423
public void inc(final E obj, final int incrementScore) {<NEW_LINE>if (obj == null)<NEW_LINE>return;<NEW_LINE>synchronized (this) {<NEW_LINE>// get unique score key, old entry is not needed any more<NEW_LINE>Long usk = this.map.remove(obj);<NEW_LINE>if (usk == null) {<NEW_LINE>// set new value<NEW_LINE>if (incrementScor...
long c = usk.longValue();
675,275
public void publish0(final RfQResponsePublisherRequest request, final RfQReportType rfqReportType) {<NEW_LINE>final I_C_RfQResponse rfqResponse = request.getC_RfQResponse();<NEW_LINE>//<NEW_LINE>// Check and get the user's mail where we will send the email to<NEW_LINE>final I_AD_User userTo = rfqResponse.getAD_User();<...
message, mailTextBuilder.isHtml());
1,515,069
private void collect(Node node, StringBuilder prefix, Queue<String> queue) {<NEW_LINE>if (node == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (node.value != null) {<NEW_LINE>queue.<MASK><NEW_LINE>}<NEW_LINE>for (char nextChar = 0; nextChar < R; nextChar++) {<NEW_LINE>if (node.next[nextChar] != null) {<NEW_LINE>Stri...
enqueue(prefix.toString());
1,449,595
public void run() {<NEW_LINE>if (expand_stack_area.isDisposed()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (multi_selection_instance != null) {<NEW_LINE>multi_selection_instance<MASK><NEW_LINE>multi_selection_instance = null;<NEW_LINE>}<NEW_LINE>if (instances.size() == 1) {<NEW_LINE>OpenTorrentInstance first_instance =...
.getComposite().dispose();
1,394,586
public void marshall(SearchProductsAsAdminRequest searchProductsAsAdminRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (searchProductsAsAdminRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(...
searchProductsAsAdminRequest.getSortBy(), SORTBY_BINDING);
1,574,931
public void onMatch(RelOptRuleCall call) {<NEW_LINE>if (!call.getPlanner().getRelTraitDefs().contains(RelCollationTraitDef.INSTANCE)) {<NEW_LINE>// Collation is not an active trait.<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Sort sort = call.rel(0);<NEW_LINE>if (sort.offset != null || sort.fetch != null) {<NEW_LINE>// ...
.getInput(), traits));
612,366
public void execute(EditorAdaptor editorAdaptor) throws CommandExecutionException {<NEW_LINE>Selection selection = editorAdaptor.getSelection();<NEW_LINE>Position from = selection.getLeftBound();<NEW_LINE>Position to = selection.getRightBound();<NEW_LINE>TextContent modelContent = editorAdaptor.getModelContent();<NEW_L...
getModelOffset()).getNumber();
1,371,190
public IMessage onMessage(PacketEnderGasConduit message, MessageContext ctx) {<NEW_LINE>EnderGasConduit conduit = message.getConduit(ctx);<NEW_LINE>if (conduit != null) {<NEW_LINE>conduit.setInputColor(message.dir, message.colIn);<NEW_LINE>conduit.setOutputColor(message.dir, message.colOut);<NEW_LINE>conduit.setOutputP...
message.dir, message.selfFeed);
318,273
private void createAdvertiseCallback() {<NEW_LINE>advertiseCallback = new AdvertiseCallback() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onStartFailure(int errorCode) {<NEW_LINE>isAdvertising = false;<NEW_LINE>if (advertiseCallbackContext == null)<NEW_LINE>return;<NEW_LINE>JSONObject returnObj = new JSONObject...
addProperty(returnObj, keyMessage, "Too large data");
1,852,432
private void deleteSpecificServerRegistration(RESTRequest request, RESTResponse response) {<NEW_LINE>String source_objName = RESTHelper.getRequiredParam(request, APIConstants.PARAM_SOURCE_OBJNAME);<NEW_LINE>String listener_objName = RESTHelper.getRequiredParam(request, APIConstants.PARAM_LISTENER_OBJNAME);<NEW_LINE>Str...
JSONConverter converter = JSONConverter.getConverter();
892,497
public void processElement(@FieldAccess("row") Row row, @Timestamp Instant t, BoundedWindow w, OutputReceiver<Row> r) throws InterruptedException {<NEW_LINE>Map<String, Value> columns = new HashMap<>();<NEW_LINE>for (int i : referencedColumns) {<NEW_LINE>final Field field = inputSchema.getField(i);<NEW_LINE>columns.put...
.create(t, valueFuture));
784,342
private void init() {<NEW_LINE>int row = 0;<NEW_LINE>addLabelled("Width", tfRegionWidth, 0, row++, "Define region width");<NEW_LINE>addLabelled("Height", tfRegionHeight<MASK><NEW_LINE>addLabelled("Size units", comboUnits, 0, row++, "Choose the units used to define the region width & height");<NEW_LINE>addLabelled("Clas...
, 0, row++, "Define region height");
902,872
private boolean checkNonJsr109Valid(WizardDescriptor wizardDescriptor) {<NEW_LINE>ProjectInfo pInfo = new ProjectInfo(project);<NEW_LINE>// javase client should be source level 1.4 or higher<NEW_LINE>// other types of projects should have source level 1.5 or higher<NEW_LINE>if (pInfo.getProjectType() != ProjectInfo.JSE...
boolean jsr109Supported = stackUtils.isJsr109Supported();
1,566,289
private void parseDialogueLine(String dialogueLine, SsaDialogueFormat format, List<List<Cue>> cues, List<Long> cueTimesUs) {<NEW_LINE>Assertions.checkArgument(dialogueLine.startsWith(DIALOGUE_LINE_PREFIX));<NEW_LINE>String[] lineValues = dialogueLine.substring(DIALOGUE_LINE_PREFIX.length()).split(",", format.length);<N...
rawText = lineValues[format.textIndex];
297,346
// GEN-LAST:event_jButtonPrjLocationActionPerformed<NEW_LINE>private void jButtonSrcLocationActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_jButtonSrcLocationActionPerformed<NEW_LINE>JFileChooser chooser = new JFileChooser();<NEW_LINE>chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_O...
existingSourcesFile = FileUtil.toFile(existingSourcesFO);
762,939
public static void updateAuthConfigObj(UUID universeUUID, UUID configUUID, VaultSecretEngineBase engine, ObjectNode authConfig) {<NEW_LINE>LOG.debug("updateAuthConfigObj called for {} - {}", universeUUID.toString(), configUUID.toString());<NEW_LINE>try {<NEW_LINE>long existingTTL = -1, existingTTLExpiry = -1;<NEW_LINE>...
, ttlInfo.get(1));
1,132,369
final GetApplicationComponentStrategiesResult executeGetApplicationComponentStrategies(GetApplicationComponentStrategiesRequest getApplicationComponentStrategiesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getApplicationComponentStrategiesRequest);<NEW_LINE>AWSRequestMetrics awsRequest...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,125,555
public void collectGarbage(Long ttl) {<NEW_LINE>if (ttl != null && ttl > 0) {<NEW_LINE>long collectTime = System.currentTimeMillis() - ttl;<NEW_LINE>if (crdt != null && crdt.getTombstones() != null) {<NEW_LINE>Set<NitriteId> <MASK><NEW_LINE>for (Pair<NitriteId, Long> entry : crdt.getTombstones().entries()) {<NEW_LINE>i...
removeSet = new HashSet<>();
830,729
public void updateRoute(RotatedTileBox tb, TransportRouteResult route) {<NEW_LINE>if (tb.getMapDensity() != getMapDensity() || this.route != route) {<NEW_LINE>this.route = route;<NEW_LINE>List<Location> locations;<NEW_LINE>Map<Integer, GeometryWayStyle<?>> styleMap;<NEW_LINE>if (route == null) {<NEW_LINE>locations = Co...
setLongitude(n.getLongitude());
221,138
public static GetMetaProductListResponse unmarshall(GetMetaProductListResponse getMetaProductListResponse, UnmarshallerContext _ctx) {<NEW_LINE>getMetaProductListResponse.setRequestId(_ctx.stringValue("GetMetaProductListResponse.RequestId"));<NEW_LINE>getMetaProductListResponse.setSuccess(_ctx.booleanValue("GetMetaProd...
("GetMetaProductListResponse.MetaData.ProductsProfessional[" + i + "].TopicQuota"));
26,023
public void store(CrawlURI curi) {<NEW_LINE>if (!curi.hasContentDigestHistory() || curi.getContentDigestHistory().isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<String, Object> hist = curi.getContentDigestHistory();<NEW_LINE>try {<NEW_LINE>String digestKey = persistKeyFor(curi);<NEW_LINE>Object url = hist.get(A_...
), WRITE_SQL_TMPL, values, SCHEMA_ID);
167,784
public void validateJavaBean(Object bean, String rarName) {<NEW_LINE>if (bean != null) {<NEW_LINE>Validator validator = getBeanValidator(rarName);<NEW_LINE>if (validator != null) {<NEW_LINE>BeanDescriptor bd = validator.getConstraintsForClass(bean.getClass());<NEW_LINE>bd.getConstraintDescriptors();<NEW_LINE>Class[] ar...
ConstraintViolationException cve = new ConstraintViolationException(constraintViolations);
1,155,066
protected void exportDefinition(HttpServletResponse response, AbstractModel definitionModel, DmnJsonConverterContext converterContext) {<NEW_LINE>try {<NEW_LINE>JsonNode editorJsonNode = objectMapper.<MASK><NEW_LINE>// URLEncoder.encode will replace spaces with '+', to keep the actual name replacing '+' to '%20'<NEW_LI...
readTree(definitionModel.getModelEditorJson());
1,013,919
private void resolveWarnings(Generation gen, StringBuilder messages, SpringVersionInfo versionInfo) {<NEW_LINE>if (isInGeneration(versionInfo.getMajMin(), gen)) {<NEW_LINE>Date currentDate = new <MASK><NEW_LINE>Date ossEndDate = Date.valueOf(gen.getOssSupportEndDate());<NEW_LINE>Date commercialEndDate = Date.valueOf(ge...
Date(System.currentTimeMillis());
1,529,795
// Recursively creates all tree nodes for the given base type instance.<NEW_LINE>private void createTypeNodes(final DefaultMutableTreeNode currentNode, final BaseType baseType) {<NEW_LINE>if (baseType.getCategory() == BaseTypeCategory.ARRAY) {<NEW_LINE>// Array types are special in the sense that the nested member that...
memberNodes.put(member, memberNode);
1,208,934
public static Map<String, String> parseModuleWrappers(List<String> specs, Iterable<JSChunk> chunks) {<NEW_LINE>checkState(specs != null);<NEW_LINE>Map<String, String> wrappers = new HashMap<>();<NEW_LINE>// Prepopulate the map with module names.<NEW_LINE>for (JSChunk c : chunks) {<NEW_LINE>wrappers.put(c.getName(), "")...
spec.substring(pos + 1);
1,642,975
private void debugInstructionBitsDecision(SleighDebugLogger debug, ParserWalker walker, int val) {<NEW_LINE>if (debug == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int offset = walker.getOffset(-1);<NEW_LINE>int mask = (-1 << (32 - bitsize)) >>> startbit;<NEW_LINE>debug.addInstructionPattern(offset, new PatternBlock(...
+ bitsize + 7) / 8);
59,577
private ClientLifecycleEventListener updateAndGetEventListener() {<NEW_LINE>boolean contains = false;<NEW_LINE>ClientLifecycleEventListener eventListener = null;<NEW_LINE>for (final Map.Entry<String, ClientLifecycleEventListener> pluginEventListenerEntry : eventListeners.getPluginEventListenersMap().entrySet()) {<NEW_L...
eventListener = eventListenerProvider.getClientLifecycleEventListener(eventListenerProviderInput);
1,834,718
private final static void transformNormal(final float[] values, final int offset, final int size, Matrix3 transform) {<NEW_LINE>if (size > 2) {<NEW_LINE>vTmp.set(values[offset], values[offset + 1], values[offset + 2]).mul(transform).nor();<NEW_LINE>values[offset] = vTmp.x;<NEW_LINE>values[offset + 1] = vTmp.y;<NEW_LINE...
mul(transform).nor();
344,879
public BigDecimal generate(SourceOfRandomness random, GenerationStatus status) {<NEW_LINE>BigDecimal minToUse = min;<NEW_LINE>BigDecimal maxToUse = max;<NEW_LINE>int power = status.size() + 1;<NEW_LINE>if (minToUse == null && maxToUse == null) {<NEW_LINE>maxToUse = TEN.pow(power);<NEW_LINE>minToUse = maxToUse.negate();...
.compareTo(range) >= 0);
1,190,270
protected Object[] asArray() {<NEW_LINE>E.checkState(!StringUtils.isEmpty(this.name), "The name of project can't be null");<NEW_LINE>E.checkState(this.adminGroupId != null, "The admin group id of project '%s' can't be null", this.name);<NEW_LINE>E.checkState(this.opGroupId != null, "The op group id of project '%s' can'...
this.opGroupId.toString());
413,318
final TagCertificateAuthorityResult executeTagCertificateAuthority(TagCertificateAuthorityRequest tagCertificateAuthorityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagCertificateAuthorityRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
562,805
public int compareTo(SourceContact o) {<NEW_LINE>SourceContact target = o;<NEW_LINE>int comparePresence = 0;<NEW_LINE>if (getPresenceStatus() != null && target.getPresenceStatus() != null) {<NEW_LINE>int isOnline = (getPresenceStatus().isOnline()) ? 1 : 0;<NEW_LINE>int targetIsOnline = (target.getPresenceStatus().<MASK...
isOnline()) ? 1 : 0;
1,750,968
public static void planarToBuffered_U8(Planar<GrayU8> src, DataBufferInt buffer, WritableRaster dst) {<NEW_LINE>if (src.getNumBands() != dst.getNumBands())<NEW_LINE>throw new IllegalArgumentException("Unequal number of bands src = " + src.getNumBands() + " dst = " + dst.getNumBands());<NEW_LINE>final int[] dstData = bu...
c1 = band1[indexSrc] & 0xFF;
1,127,803
public void handleAsyncInvoke(Map<String, Object> inputParams, BaseRow input, ResultFuture<BaseRow> resultFuture) throws Exception {<NEW_LINE>String key = buildCacheKey(inputParams);<NEW_LINE>if (StringUtils.isBlank(key)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>RedisFuture<Map<String, String>> future = ((RedisHashAsyncC...
key, CacheMissVal.getMissKeyObj());
77,042
public void onEnable() {<NEW_LINE>// Catch bad things being done by naughty plugins that include<NEW_LINE>// WorldEdit's classes<NEW_LINE>ClassSourceValidator verifier = new ClassSourceValidator(this);<NEW_LINE>verifier.reportMismatches(ImmutableList.of(World.class, CommandManager.class, EditSession.class, Actor.class)...
new WorldEditListener(this), this);
424,599
public void createRateVariances(MPPCostCollector costCollector) {<NEW_LINE>MProduct product = null;<NEW_LINE>if (costCollector.isCostCollectorType(MPPCostCollector.COSTCOLLECTORTYPE_ActivityControl)) {<NEW_LINE>final I_AD_WF_Node node = costCollector.getPP_Order_Node().getAD_WF_Node();<NEW_LINE>product = MProduct.forS_...
node.getS_Resource_ID(), null);
1,768,584
public ListIdentityPoolUsageResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListIdentityPoolUsageResult listIdentityPoolUsageResult = new ListIdentityPoolUsageResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentE...
JsonToken token = context.getCurrentToken();
227,354
public void execute(final String configuration, final File data, final int repeat) throws IOException, InterruptedException {<NEW_LINE>final Path cfg = location.resolve("config.temp");<NEW_LINE>Files.write(cfg, configuration.getBytes(StandardCharsets.UTF_8), StandardOpenOption.WRITE, StandardOpenOption.TRUNCATE_EXISTIN...
(output)).start();
872,072
private void execute(CommandSender sender, CommandContext context) {<NEW_LINE>final String name = context.get(extensionName);<NEW_LINE>sender.sendMessage(Component.text("extensionFile = " + name + "...."));<NEW_LINE>ExtensionManager extensionManager = MinecraftServer.getExtensionManager();<NEW_LINE>Path extensionFolder...
(Component.text("Failed to load extension, check your logs."));
571,486
private void loadNode561() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.AuditOpenSecureChannelEventType_SecurityPolicyUri, new QualifiedName(0, "SecurityPolicyUri"), new LocalizedText("en", "SecurityPolicyUri"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new...
.expanded(), true));
1,571,615
// -------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public PortfolioItemSummary summarize() {<NEW_LINE>// 2Y Buy USD 1mm INDEX / 1.5% : 21Jan18-21Jan20<NEW_LINE><MASK><NEW_LINE>StringBuilder buf = new StringBuilder(96);<NEW_LINE>buf.append(SummarizerUtils.datePeriod(...
PeriodicSchedule paymentSchedule = product.getPaymentSchedule();
283,029
public double cost(int u1, int u2) {<NEW_LINE>double res = 0.0;<NEW_LINE>float<MASK><NEW_LINE>float[] v2 = leftJCF[u2];<NEW_LINE>for (int i = 0; i < v1.length; i++) {<NEW_LINE>float a = v1[i];<NEW_LINE>float b = v2[i];<NEW_LINE>// if (!Float.isNaN(v1[i]) && !Float.isNaN(v2[i])) {<NEW_LINE>if (!(a != a) && !(b != b)) {<...
[] v1 = rightJCF[u1];
1,516,224
public static <// TODO: Create a better duplicate handler, that takes Entries as parameters and returns an Entry<NEW_LINE>K, V> Map<V, K> invert(Map<K, V> pSource, Map<V, K> pResult, DuplicateHandler<K> pHandler) {<NEW_LINE>if (pSource == null) {<NEW_LINE>throw new IllegalArgumentException("source == null");<NEW_LINE>}...
.get(newKey), newValue);
361,638
public void convert(String sourceDecoded, String serviceName, FileFormat fileFormat, JsonObject options, Handler<AsyncResult<Buffer>> handler) {<NEW_LINE>String source;<NEW_LINE>try {<NEW_LINE>source = sanitize(sourceDecoded, this.safeMode, this.includeWhitelist);<NEW_LINE>source = source.trim();<NEW_LINE>source = with...
[]) o))));
1,542,948
private void updateMutables(SubscriptionResult _result, Map<Integer, Object> properties) {<NEW_LINE>Date pub_date = (Date) properties.get(SearchResult.PR_PUB_DATE);<NEW_LINE>if (pub_date == null) {<NEW_LINE>time = _result.getTimeFound();<NEW_LINE>} else {<NEW_LINE>long pt = pub_date.getTime();<NEW_LINE>if (pt <= 0) {<N...
properties.get(SearchResult.PR_SEED_COUNT);
1,737,069
private void addList(Collection<?> args) {<NEW_LINE>for (Object o : args) {<NEW_LINE>if (o.getClass() == String.class) {<NEW_LINE>addInt(3);<NEW_LINE>String s = (String) o;<NEW_LINE>addInt(s.length());<NEW_LINE>addString(s);<NEW_LINE>} else if (o.getClass() == Boolean.class) {<NEW_LINE>addInt(2);<NEW_LINE>addByte(((Boo...
addInt(l.size());
776,839
private ClassTemplateSpec processSchema(DataSchema schema, ClassTemplateSpec enclosingClass, String memberName) {<NEW_LINE>final CustomInfoSpec customInfo = getImmediateCustomInfo(schema);<NEW_LINE>ClassTemplateSpec result = null;<NEW_LINE>TyperefDataSchema originalTyperefSchema = null;<NEW_LINE>while (schema.getType()...
generateUnnamedComplexSchema(schema, enclosingClass, memberName);
1,478,634
private void parseBMP1(final byte[] s, final int offset, final int width, final int height, final COLORTABLE colortable) {<NEW_LINE>int n = 0;<NEW_LINE>int b;<NEW_LINE>for (int rows = 0; rows < height; rows++) {<NEW_LINE>for (int columns = 0; columns < width; columns = columns + 8) {<NEW_LINE>// emergency break<NEW_LIN...
& 0x40) >> 6]);
813,764
public WindowInfo createFakeWindowInfo(String src, String fragmentId) {<NEW_LINE>Element <MASK><NEW_LINE>screenElement.addAttribute("template", src);<NEW_LINE>screenElement.addAttribute("id", fragmentId);<NEW_LINE>Element windowElement = screenXmlLoader.load(src, fragmentId, Collections.emptyMap());<NEW_LINE>Class<? ex...
screenElement = DocumentHelper.createElement("screen");
927,649
public static DescribeAutoProvisioningGroupInstancesResponse unmarshall(DescribeAutoProvisioningGroupInstancesResponse describeAutoProvisioningGroupInstancesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeAutoProvisioningGroupInstancesResponse.setRequestId(_ctx.stringValue("DescribeAutoProvisioningGroupInstances...
("DescribeAutoProvisioningGroupInstancesResponse.Instances[" + i + "].CPU"));
66,068
final RegisterAVSDeviceResult executeRegisterAVSDevice(RegisterAVSDeviceRequest registerAVSDeviceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(registerAVSDeviceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
44,514
private void initJShell() {<NEW_LINE>if (shell != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Launcher l = null;<NEW_LINE>JShell shell = null;<NEW_LINE>Subscription sub = null;<NEW_LINE>try {<NEW_LINE>initializing = true;<NEW_LINE>l = initShellLauncher();<NEW_LINE>shell = launcher.getJShell();<NEW_LINE>// not necessar...
(Collectors.toList()));
1,134,393
public void configure(Binder binder) {<NEW_LINE>binder.bind(DatabaseConfig.class).toProvider(DatabaseConfigProvider.class).in(Scopes.SINGLETON);<NEW_LINE>binder.bind(DataSource.class).toProvider(DataSourceProvider.class).in(Scopes.SINGLETON);<NEW_LINE>binder.bind(AutoMigrator.class);<NEW_LINE>// don't make this singlet...
).in(Scopes.SINGLETON);
1,640,441
public void visit(BLangErrorVariable varNode) {<NEW_LINE>// Create error destruct block stmt.<NEW_LINE>final BLangBlockStmt blockStmt = ASTBuilderUtil.createBlockStmt(varNode.pos);<NEW_LINE>BType errorType = varNode.getBType() == null ? symTable.errorType : varNode.getBType();<NEW_LINE>// Create a simple var for the er...
name, errorType, null, errorVarSymbol);
1,716,471
public Object deserialize(JsonParser p, DeserializationContext ctxt) throws IOException {<NEW_LINE>if (!p.isExpectedStartArrayToken()) {<NEW_LINE>return ctxt.handleUnexpectedToken(EthSubscribeParams.class, p.<MASK><NEW_LINE>}<NEW_LINE>// skip '['<NEW_LINE>p.nextToken();<NEW_LINE>String subscriptionType = p.getText();<N...
currentToken(), p, "eth_subscribe parameters are expected to be arrays");
1,285,751
private void genFromRow(String visibility, DataObjectModel model, PrintWriter writer) {<NEW_LINE>writer.print("\n");<NEW_LINE>writer.print(" @io.vertx.codegen.annotations.GenIgnore\n");<NEW_LINE>writer.print(" " + genSimpleName(model) + " INSTANCE = new " + genSimpleName(model) + "() { };\n");<NEW_LINE>writer.print("...
).getSimpleName() + "();\n");
964,188
public String calculateAndCheckViewId(FacesContext context, String viewId) {<NEW_LINE>// If no viewId found, don't try to derive it, just continue.<NEW_LINE>if (viewId == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>FacesServletMapping mapping = getFacesServletMapping(context);<NEW_LINE>if (mapping == null || mapp...
, viewId) ? viewId : null);
385,309
public OperationResult<SchemaChangeResult> updateColumnFamily(final Properties props) throws ConnectionException {<NEW_LINE>if (props.containsKey("keyspace") && !props.get("keyspace").equals(getKeyspaceName())) {<NEW_LINE>throw new RuntimeException(String.format("'keyspace' attribute must match keyspace name. Expected ...
def.setKeyspace(getKeyspaceName());
394,082
public static long shaderc_compile_into_spv_assembly(@NativeType("shaderc_compiler_t const") long compiler, @NativeType("char const *") CharSequence source_text, @NativeType("shaderc_shader_kind") int shader_kind, @NativeType("char const *") CharSequence input_file_name, @NativeType("char const *") CharSequence entry_p...
stack.nUTF8(input_file_name, true);
928,834
private void dynInit(int C_BPartner_ID) {<NEW_LINE>log.config("C_BPartner_ID=" + C_BPartner_ID);<NEW_LINE>if (C_BPartner_ID != 0) {<NEW_LINE>int ShelfLifeMinPct = 0;<NEW_LINE>int ShelfLifeMinDays = 0;<NEW_LINE>String sql = "SELECT bp.ShelfLifeMinPct, bpp.ShelfLifeMinPct, bpp.ShelfLifeMinDays " + "FROM C_BPartner bp " +...
pct = rs.getInt(2);
1,126,570
private void generateRemoveGcRoot(Expr slotExpr) {<NEW_LINE>if (stackVariable == null) {<NEW_LINE>throw new IllegalStateException("Call to ShadowStack.removeGCRoot must be dominated by " + "Mutator.allocStack");<NEW_LINE>}<NEW_LINE>slotExpr.acceptVisitor(this);<NEW_LINE>WasmExpression slotOffset = getSlotOffset(result)...
(0), WasmInt32Subtype.INT32);
1,518,217
public void publish(final String topic) throws TubeClientException {<NEW_LINE>checkServiceStatus();<NEW_LINE>StringBuilder sBuilder = new StringBuilder(512);<NEW_LINE>try {<NEW_LINE>logger.info(sBuilder.append("[Publish begin 1] publish topic ").append(topic).append(", address = ").append(this.toString<MASK><NEW_LINE>s...
()).toString());
442,102
private void updateLayout() {<NEW_LINE>if (!isShowingJustFolders()) {<NEW_LINE>int filesCount = 0, foldersCount = 0;<NEW_LINE>int count = mFileListAdapter.getCount();<NEW_LINE>OCFile file;<NEW_LINE>for (int i = 0; i < count; i++) {<NEW_LINE>file = (OCFile) mFileListAdapter.getItem(i);<NEW_LINE>if (file.isFolder()) {<NE...
(generateFooterText(filesCount, foldersCount));
193,672
private void drawIcon(MatrixStack matrices, String line, int y, float opacity) {<NEW_LINE>if (METEOR_PREFIX_REGEX.matcher(line).find()) {<NEW_LINE>RenderSystem.setShaderTexture(0, METEOR_CHAT_ICON);<NEW_LINE>matrices.push();<NEW_LINE>RenderSystem.setShaderColor(1, 1, 1, opacity);<NEW_LINE>matrices.translate(0, y, 0);<N...
64, 64, 64, 64);
971,751
private void tableswitch(Locatable locatable, SortedMap<Integer, CodeContext.Offset> caseLabelMap, Offset switchOffset, Offset defaultLabelOffset) {<NEW_LINE>final int low = (Integer) caseLabelMap.firstKey();<NEW_LINE>final int high = (Integer) caseLabelMap.lastKey();<NEW_LINE>this.addLineNumberOffset(locatable);<NEW_L...
(Integer) me.getKey();
725,186
private ExportResult<PhotosContainerResource> requestAlbums(TokensAndUrlAuthData authData, PaginationData paginationData) throws IOException {<NEW_LINE>ImmutableList.Builder<PhotoAlbum> albumBuilder = ImmutableList.builder();<NEW_LINE>List<IdOnlyContainerResource> albumIds = new ArrayList<>();<NEW_LINE>int page = pagin...
.size(), start));
331,158
public void enterScenarioOutline(KarateParser.ScenarioOutlineContext ctx) {<NEW_LINE>FeatureSection section = new FeatureSection();<NEW_LINE>ScenarioOutline outline = new ScenarioOutline(feature, section);<NEW_LINE>outline.setLine(getActualLine(ctx.SCENARIO_OUTLINE()));<NEW_LINE>section.setScenarioOutline(outline);<NEW...
"example rows: {}", table.getRows());