idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
566,839
private static I32 inlineConvertValueToHash(J9JavaVMPointer vm, UDATA objectPointer) throws CorruptDataException {<NEW_LINE>final U32 MUL1 = new U32(0x85ebca6b);<NEW_LINE>final <MASK><NEW_LINE>U32 hashValue = getSalt(vm, objectPointer);<NEW_LINE>UDATA shiftedAddress = objectPointer.div(ObjectModel.getObjectAlignmentInB...
U32 MUL2 = new U32(0xc2b2ae35);
968,264
public void paintInstance(InstancePainter painter) {<NEW_LINE>Graphics2D g2 = (Graphics2D) painter.getGraphics();<NEW_LINE>Location loc = painter.getLocation();<NEW_LINE>painter.drawBounds();<NEW_LINE>painter.drawLabel();<NEW_LINE>g2.drawLine(loc.getX(), loc.getY() + 20, loc.getX() + 200, loc.getY() + 20);<NEW_LINE>g2....
IRQ_PIN, "IRQ", Direction.WEST);
1,114,244
protected AggregatingMessageHandler createHandler() {<NEW_LINE>MessageGroupProcessor outputProcessor;<NEW_LINE>if (this.processorBean instanceof MessageGroupProcessor) {<NEW_LINE>outputProcessor = (MessageGroupProcessor) this.processorBean;<NEW_LINE>} else {<NEW_LINE>if (!StringUtils.hasText(this.methodName)) {<NEW_LIN...
this.processorBean, this.methodName);
1,709,140
public static GetRuleDimensionResponse unmarshall(GetRuleDimensionResponse getRuleDimensionResponse, UnmarshallerContext _ctx) {<NEW_LINE>getRuleDimensionResponse.setRequestId(_ctx.stringValue("GetRuleDimensionResponse.RequestId"));<NEW_LINE>getRuleDimensionResponse.setCurrentPage(_ctx.integerValue("GetRuleDimensionRes...
("GetRuleDimensionResponse.Data[" + i + "].HitRealViolationRate"));
9,643
private void processChanges(java.util.List<? extends OWLOntologyChange> changes) {<NEW_LINE>Set<OWLEntity> possiblyAddedEntities = new HashSet<>();<NEW_LINE>Set<OWLEntity> possiblyRemovedEntities = new HashSet<>();<NEW_LINE>OWLEntityCollector addedCollector = new OWLEntityCollector(possiblyAddedEntities);<NEW_LINE>OWLE...
getAxiom().accept(removedCollector);
280,810
private void registerSagaBeanDefinitions(EventProcessingConfigurer configurer) {<NEW_LINE>String[] sagas = beanFactory.getBeanNamesForAnnotation(Saga.class);<NEW_LINE>for (String saga : sagas) {<NEW_LINE>Saga sagaAnnotation = beanFactory.findAnnotationOnBean(saga, Saga.class);<NEW_LINE>Class<?> sagaType = beanFactory.g...
value(), sagaType::equals);
1,305,106
public int[] transformToIntValuesSV(ProjectionBlock projectionBlock) {<NEW_LINE>int length = projectionBlock.getNumDocs();<NEW_LINE>if (_results == null || _results.length < length) {<NEW_LINE>_results = new int[length];<NEW_LINE>}<NEW_LINE>int[<MASK><NEW_LINE>Arrays.fill(_results, 0);<NEW_LINE>if (_nullValueVectorIter...
] docIds = projectionBlock.getDocIds();
373,465
ActionResult<Wo> execute(HttpServletRequest request, EffectivePerson effectivePerson, String accessToken, String contentType) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Business busi...
remove(oauthCode, CheckRemoveType.all);
283,508
public Expression buildFilterExpression() {<NEW_LINE>if (_identifier == null) {<NEW_LINE>throw new Pql2CompilationException("Between predicate has no identifier");<NEW_LINE>}<NEW_LINE>if (getChildren().size() == 2) {<NEW_LINE>try {<NEW_LINE>LiteralAstNode left = (LiteralAstNode) getChildren().get(0);<NEW_LINE>LiteralAs...
Function rangeFuncCall = betweenExpr.getFunctionCall();
1,632,209
public void copyInterval(TerminalRow line, int sourceX1, int sourceX2, int destinationX) {<NEW_LINE>mHasNonOneWidthOrSurrogateChars |= line.mHasNonOneWidthOrSurrogateChars;<NEW_LINE>final int x1 = line.findStartOfColumn(sourceX1);<NEW_LINE>final int x2 = line.findStartOfColumn(sourceX2);<NEW_LINE>boolean startingFromSe...
sourceChars[++i]) : sourceChar;
871,335
private void renderTo(final N node, GraphRenderer graphRenderer, Collection<N> rendered, boolean lastChild) {<NEW_LINE>final boolean alreadySeen = !rendered.add(node);<NEW_LINE>graphRenderer.visit(new Action<StyledTextOutput>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void execute(StyledTextOutput output) {<NEW_L...
= new ArrayList<N>();
1,510,366
public void map(InfoMap infoMap) {<NEW_LINE>infoMap.put(new Info("std::set<std::string>").pointerTypes("StringSet").define());<NEW_LINE>infoMap.put(new Info("std::list<std::string>").pointerTypes("StringList").define());<NEW_LINE>infoMap.put(new Info("std::list<modsecurity::RuleMessage>").pointerTypes("RuleMessageList"...
("std::shared_ptr<modsecurity::RequestBodyProcessor::MultipartPartTmpFile>").skip());
1,204,367
public int cleanUnusedTopic(Set<String> topics) {<NEW_LINE>Iterator<Entry<String, ConcurrentMap<Integer, ConsumeQueue>>> it = this.consumeQueueTable.entrySet().iterator();<NEW_LINE>while (it.hasNext()) {<NEW_LINE>Entry<String, ConcurrentMap<Integer, ConsumeQueue>> next = it.next();<NEW_LINE>String topic = next.getKey()...
log.info("cleanUnusedTopic: {},topic destroyed", topic);
512,726
protected void cleanup() {<NEW_LINE>final String methodName = "cleanup";<NEW_LINE>if (TRACE.isEntryEnabled()) {<NEW_LINE>SibTr.entry(this, TRACE, methodName);<NEW_LINE>}<NEW_LINE>if (_unsuccessfulMessages.size() > 0) {<NEW_LINE>try {<NEW_LINE>// 250710: Fix to workaround the problem where failed messages are<NEW_LINE>/...
"." + methodName, FFDC_PROBE_1, this);
1,801,968
public void update(float delta) {<NEW_LINE>if (nextSendState < time.getGameTimeInMs()) {<NEW_LINE>long lastSendTime = nextSendState - TIME_BETWEEN_STATE_REPLICATE;<NEW_LINE>for (Map.Entry<EntityRef, CircularBuffer<CharacterStateEvent>> entry : characterStates.entrySet()) {<NEW_LINE>if (entry.getValue().size() > 0) {<NE...
keySet().removeAll(characterStatesToRemove);
1,184,766
private PurchaseCandidatesGroup createPurchaseCandidatesGroup(@NonNull final PurchaseDemand demand, @NonNull final PurchaseCandidatesGroupKey groupKey, @NonNull final Collection<PurchaseCandidate> candidates) {<NEW_LINE>Quantity qtyToPurchase = null;<NEW_LINE>Quantity purchasedQty = null;<NEW_LINE>ZonedDateTime purchas...
reminderTime, candidate.getReminderTime());
420,143
public final void sendFlushed(SIBUuid8 remoteME, SIBUuid12 gatheringTargetDestUuid, SIBUuid12 streamId) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "sendFlushed", new Object[] <MASK><NEW_LINE>try {<NEW_LINE>ControlMessageFactory cmf;<NEW_LINE>ControlFlushed msg;<...
{ remoteME, gatheringTargetDestUuid, streamId });
847,412
private // that contains the curve we want to dash in the first type elements<NEW_LINE>void somethingTo(final int type) {<NEW_LINE>final float[] _curCurvepts = curCurvepts;<NEW_LINE>if (pointCurve(_curCurvepts, type)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final LengthIterator _li = li;<NEW_LINE>final float[] _dash = d...
curCurveoff, _curCurvepts, 0, type);
47,964
protected void buildMainPanel() {<NEW_LINE>mainPanel.setContinuousLayout(true);<NEW_LINE>JPanel modulePanel = new JPanel(new BorderLayout());<NEW_LINE>moduleTable = new GhidraTable(moduleTableModel);<NEW_LINE>moduleTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);<NEW_LINE>modulePanel.add(new JScr...
maxCol.setCellRenderer(CustomToStringCellRenderer.MONO_OBJECT);
1,008,927
public void onCompletion(Void result, Exception exception) {<NEW_LINE>long processingStartTimeMs = SystemTime.getInstance().milliseconds();<NEW_LINE>metrics.getPeersSecurityPostProcessRequestTimeInMs.update(processingStartTimeMs - operationStartTimeMs);<NEW_LINE>ReadableStreamChannel channel = null;<NEW_LINE>try {<NEW_...
replicaIdList = clusterMap.getReplicaIds(dataNodeId);
565,757
protected void paintComponent(Graphics g) {<NEW_LINE>super.paintComponent(g);<NEW_LINE>Dimension size = getSize();<NEW_LINE>g.setColor(topColor);<NEW_LINE>g.fillRect(0, 0, size.width, size.height / 2);<NEW_LINE>// ((Graphics2D)g).setPaint(new GradientPaint(0, size.height/2, TOP_COLOR, 0,<NEW_LINE>// size.height, BOTTOM...
width - 1, size.height);
1,224,157
public <T> ObjectConstructor<T> createConstructor(Class<T> type) throws NoSuchMethodException {<NEW_LINE>String constructorClassName = type.getName() + "_ReflectConstructor";<NEW_LINE>try {<NEW_LINE>return (ObjectConstructor<T>) type.getClassLoader().loadClass(constructorClassName).getConstructor().newInstance();<NEW_L...
error("Error instantiating constructor object for '{}', falling back on reflection", type, e);
1,075,783
public void migrateSnapshots(MetaClass metaClass, Object id, Map<Class, Class> classMapping) {<NEW_LINE>metaClass = extendedEntities.getOriginalOrThisMetaClass(metaClass);<NEW_LINE>// load snapshots<NEW_LINE>List<EntitySnapshot> snapshotList = getSnapshots(metaClass, id);<NEW_LINE>Class javaClass = metaClass.getJavaCla...
String snapshotXml = snapshot.getSnapshotXml();
978,948
private // region Popup menus ("popup" means that they pop up, not that they belong to the popup player)<NEW_LINE>void buildQualityMenu() {<NEW_LINE>if (qualityPopupMenu == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>qualityPopupMenu.getMenu().removeGroup(POPUP_MENU_ID_QUALITY);<NEW_LINE>for (int i = 0; i < availableS...
) + " " + videoStream.resolution);
1,074,394
public void run(String command, String[] args, IContext context, PrintStream out) throws CommandException {<NEW_LINE>if (initCommand(command, args, context, out)) {<NEW_LINE>// processing already handled by super class<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Object obj = ctx.getProperties().get(SessionProperties.SESSION_P...
ISession) obj).getContextManager();
1,373,547
public static Story fromCursor(final Cursor cursor) {<NEW_LINE>if (cursor.isBeforeFirst()) {<NEW_LINE>cursor.moveToFirst();<NEW_LINE>}<NEW_LINE>Story story = new Story();<NEW_LINE>story.authors = cursor.getString(cursor.getColumnIndex(DatabaseConstants.STORY_AUTHORS));<NEW_LINE>story.shortContent = cursor.getString(cur...
.getColumnIndex(DatabaseConstants.STORY_LAST_READ_DATE));
618,661
public ApiResponse<Void> testInlineAdditionalPropertiesWithHttpInfo(Map<String, String> param) throws ApiException {<NEW_LINE>HttpRequest.Builder localVarRequestBuilder = testInlineAdditionalPropertiesRequestBuilder(param);<NEW_LINE>try {<NEW_LINE>HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(lo...
.body().close();
1,317,747
public TaskSucceededEventDetails unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TaskSucceededEventDetails taskSucceededEventDetails = new TaskSucceededEventDetails();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()...
class).unmarshall(context));
1,146,482
/*<NEW_LINE>@OnClassFileEvent(classNameRegexp = ".*", events = { FileEvent.CREATE })<NEW_LINE>public void newClass(ClassLoader classLoader, CtClass clazz) throws Exception {<NEW_LINE>if (AnnotationHelper.hasAnnotation(clazz, PATH_ANNOTATION)) {<NEW_LINE>if(LOGGER.isLevelEnabled(Level.TRACE)) {<NEW_LINE>LOGGER.trace("Lo...
scheduler.scheduleCommand(cmd, timeout);
1,529,723
public static void processViewResultCodegen(ResultSetProcessorRowPerGroupForge forge, CodegenClassScope classScope, CodegenMethod method, CodegenInstanceAux instance) {<NEW_LINE>CodegenMethod generateGroupKeysKeepEvent = <MASK><NEW_LINE>CodegenMethod generateOutputEventsView = generateOutputEventsViewCodegen(forge, cla...
generateGroupKeysKeepEventCodegen(forge, classScope, instance);
1,380,162
final AssociateResolverEndpointIpAddressResult executeAssociateResolverEndpointIpAddress(AssociateResolverEndpointIpAddressRequest associateResolverEndpointIpAddressRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateResolverEndpointIpAddressRequest);<NEW_LINE><MASK><NEW_LINE>awsRequ...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,328,538
public static String parseProperty(String name, TestPropertyHolder holder, PropertyExpansionContext context, boolean globalOverride) {<NEW_LINE>int sepIx = name.indexOf(PropertyExpansion.PROPERTY_SEPARATOR);<NEW_LINE>if (sepIx != -1) {<NEW_LINE>String xpath = name.substring(sepIx + 1);<NEW_LINE>name = name.substring(0,...
value = PropertyExpansionUtils.getGlobalProperty(name);
530,535
public Setting unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Setting setting = new Setting();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE><MASK><NEW_LINE...
JsonToken token = context.getCurrentToken();
1,587,021
public void prepareDbInitialValue() {<NEW_LINE>SimpleQuery<NetworkServiceProviderVO> query = dbf.createQuery(NetworkServiceProviderVO.class);<NEW_LINE>query.add(NetworkServiceProviderVO_.type, SimpleQuery.Op.EQ, FlatNetworkServiceConstant.FLAT_NETWORK_SERVICE_TYPE_STRING);<NEW_LINE><MASK><NEW_LINE>if (rpvo != null) {<N...
NetworkServiceProviderVO rpvo = query.find();
1,489,070
byte[] processReceiving(List<AxolotlKey> possibleKeys) throws CryptoFailedException {<NEW_LINE>byte[] plaintext = null;<NEW_LINE>FingerprintStatus status = getTrust();<NEW_LINE>if (!status.isCompromised()) {<NEW_LINE>Iterator<AxolotlKey> iterator = possibleKeys.iterator();<NEW_LINE>while (iterator.hasNext()) {<NEW_LINE...
plaintext = cipher.decrypt(preKeySignalMessage);
128,448
// GEN-LAST:event_deleteButtonActionPerformed<NEW_LINE>private void useClientCertificateCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_useClientCertificateCheckBoxActionPerformed<NEW_LINE>// The enable unsafe SSL renegotiation checkbox is independent of using a client certificate<...
setEnabled(useClientCertificateCheckBox.isSelected());
1,745,345
protected void load(String fileName, boolean tryMemoryMapping) throws IOException, BufferUnderflowException, MaryConfigurationException, NullPointerException {<NEW_LINE>requireNonNull(fileName, "filename is null");<NEW_LINE>RandomAccessFile file <MASK><NEW_LINE>FileChannel fc = file.getChannel();<NEW_LINE>// Expect hea...
= new RandomAccessFile(fileName, "r");
1,387,667
public Builder mergeFrom(emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify other) {<NEW_LINE>if (other == emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (chapterListBuilder_ == null) {<NEW_LINE>if (!other.chapterList_.isEmpty()) ...
chapterList_.addAll(other.chapterList_);
1,604,301
private void initNavigation() {<NEW_LINE>// Navigation item<NEW_LINE>navigation.hasDrawer = true;<NEW_LINE>setupMiddleNavigation();<NEW_LINE>// Toolbar menu<NEW_LINE>navigation.hasBack = false;<NEW_LINE>NavigationItem.MenuOverflowBuilder overflowBuilder = navigation.buildMenu().withItem(R.drawable.ic_search_white_24dp,...
string.action_switch_board, this::viewModeClicked);
1,612,169
private Weighted<TransformedBlockModelResource> loadModel(ConfigurationNode node, Map<String, String> overrideTextures) throws ParseResourceException {<NEW_LINE>String namespacedModelPath = node.node("model").getString();<NEW_LINE>if (namespacedModelPath == null)<NEW_LINE>throw new ParseResourceException("No model defi...
namespacedToAbsoluteResourcePath(namespacedModelPath, "models") + ".json";
991,482
public void IALOAD(Object conc_array, int conc_index, String className, String methodName) {<NEW_LINE>// pop symbolic arguments<NEW_LINE>IntegerValue symb_index = env.topFrame().operandStack.popBv32();<NEW_LINE>ReferenceExpression array_ref = env.topFrame().operandStack.popRef();<NEW_LINE>if (nullReferenceViolation(arr...
symb_index, new IntegerConstant(bv32));
1,757,552
private void patchIpConfig(String hostname, Map<String, Inspector> ipConfigFields) {<NEW_LINE>// Nothing to patch<NEW_LINE>if (ipConfigFields.isEmpty())<NEW_LINE>return;<NEW_LINE>try (var allocationLock = nodeRepository.nodes().lockUnallocated()) {<NEW_LINE>LockedNodeList nodes = nodeRepository.nodes().list(allocationL...
Inspector value = kv.getValue();
1,378,584
public CompletableFuture<JobDiscoveryInfo> jobDiscoveryInfo(final String jobClusterName) {<NEW_LINE>return CompletableFuture.supplyAsync(() -> {<NEW_LINE>String uri = String.format(JOB_DISCOVERY_URL_FORMAT, mrePublishConfiguration.discoveryApiHostname(), mrePublishConfiguration.discoveryApiPort(), jobClusterName);<NEW_...
withReadTimeout(READ_TIMEOUT_MS).send();
1,183,575
public void push(CollectorRegistry registry) throws IOException {<NEW_LINE>Socket s = new Socket(host, port);<NEW_LINE>BufferedWriter writer = new BufferedWriter(new PrintWriter(new OutputStreamWriter(s.getOutputStream(), Charset.forName("UTF-8"))));<NEW_LINE>Matcher m = INVALID_GRAPHITE_CHARS.matcher("");<NEW_LINE>lon...
(m.replaceAll("_"));
1,263,090
private void innerMerge(Map<String, Map<String, FieldCapabilities.Builder>> responseMapBuilder, FieldCapabilitiesRequest request, FieldCapabilitiesIndexResponse response) {<NEW_LINE>Map<String, IndexFieldCapabilities> fields = ResponseRewriter.rewriteOldResponses(response.getOriginVersion(), response.get(), request.fil...
-> new HashMap<>());
303,766
public static DescribeEnsRegionIdResourceResponse unmarshall(DescribeEnsRegionIdResourceResponse describeEnsRegionIdResourceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeEnsRegionIdResourceResponse.setRequestId(_ctx.stringValue("DescribeEnsRegionIdResourceResponse.RequestId"));<NEW_LINE>describeEnsRegionIdReso...
(_ctx.integerValue("DescribeEnsRegionIdResourceResponse.PageSize"));
1,495,689
public static DescribeEventTypesResponse unmarshall(DescribeEventTypesResponse describeEventTypesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeEventTypesResponse.setRequestId<MASK><NEW_LINE>List<EventType> eventTypeList = new ArrayList<EventType>();<NEW_LINE>for (int i = 0; i < _ctx.lengthValue("DescribeEventT...
(_ctx.stringValue("DescribeEventTypesResponse.RequestId"));
1,497,048
public SignedCertificateTimestamp parse() {<NEW_LINE>try {<NEW_LINE>// Create SCT object & save encoded response in it<NEW_LINE>SignedCertificateTimestamp certificateTimestamp = new SignedCertificateTimestamp();<NEW_LINE>// Decode and parse SCT version<NEW_LINE>SignedCertificateTimestampVersion sctVersion = SignedCerti...
sctTimestamp, 0, sctTimestamp.length);
577,779
final UpdateProvisionedProductResult executeUpdateProvisionedProduct(UpdateProvisionedProductRequest updateProvisionedProductRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateProvisionedProductRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
843,723
public Action createContextAwareInstance(Lookup context) {<NEW_LINE>Project contextProject = context.lookup(Project.class);<NEW_LINE>BowerJson bowerJson = null;<NEW_LINE>if (contextProject != null) {<NEW_LINE>// project action<NEW_LINE>bowerJson = new BowerJson(contextProject.getProjectDirectory());<NEW_LINE>} else {<N...
BowerJson(file.getParent());
236,882
public static List<String> extractTerms(IndexReader reader, String docid, int k, Analyzer analyzer) throws IOException {<NEW_LINE>// Fetch the raw JSON representation of the document.<NEW_LINE>IndexableField rawField = reader.document(IndexReaderUtils.convertDocidToLuceneDocid(reader, docid)<MASK><NEW_LINE>if (rawField...
).getField(IndexArgs.RAW);
1,472,000
public // 0 bsi1:1:1.8:2:2.6 8f81878...<NEW_LINE>void map(final LongWritable key, final Text value, final OutputCollector<IntWritable, Text> output, final Reporter reporter) throws IOException {<NEW_LINE>final String[] line = value.toString().split("\t");<NEW_LINE>final String[] tokens = line[1].split(" ");<NEW_L...
(radius_info[i + 1]);
1,006,921
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Player opponent = game.getPlayer(source.getFirstTarget());<NEW_LINE>if (controller != null && opponent != null) {<NEW_LINE>List<Permanent> permanents = game.getBattlefield().getAllActivePerm...
opponent.getId(), game);
385,180
private Map<ObjectIdentity, Acl> lookupObjectIdentities(final Collection<ObjectIdentity> objectIdentities, List<Sid> sids) {<NEW_LINE>Assert.notEmpty(objectIdentities, "Must provide identities to lookup");<NEW_LINE>// contains Acls with StubAclParents<NEW_LINE>Map<Serializable, Acl> acls = new HashMap<>();<NEW_LINE>// ...
lookupObjectIdentitiesWhereClause, objectIdentities.size());
780,131
private static boolean edit(DataContext context, String search, Function<ColorAndFontOptions, SearchableConfigurable> function) {<NEW_LINE>ColorAndFontOptions options = new ColorAndFontOptions();<NEW_LINE>SearchableConfigurable page = function.apply(options);<NEW_LINE>Configurable[] configurables = options.getConfigura...
.PROJECT), page, runnable);
1,788,113
public static Pair<String[], Object[]> buildParameters(final String body, final String parameterTypes) {<NEW_LINE>List<String> paramNameList = new ArrayList<>();<NEW_LINE>List<String> paramTypeList = new ArrayList<>();<NEW_LINE>if (isNameMapping(parameterTypes)) {<NEW_LINE>Map<String, String> paramNameMap = GsonUtils.g...
addAll(paramMap.keySet());
1,721,567
public FilterRegistrationBean<MonitoringFilter> monitoringFilter(JavaMelodyConfigurationProperties properties, ServletContext servletContext) {<NEW_LINE>final FilterRegistrationBean<MonitoringFilter> registrationBean = new FilterRegistrationBean<>();<NEW_LINE>// Create the monitoring filter and set its configuration pa...
sendError(HttpServletResponse.SC_FORBIDDEN, "Forbidden access");
398,064
public void mouseMoved(MouseEvent e) {<NEW_LINE>if (!enableEditor) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>e.getComponent().requestFocus();<NEW_LINE>if (e.isAltDown() || e.isAltGraphDown()) {<NEW_LINE>// request focus for the key listener to work...<NEW_LINE>e<MASK><NEW_LINE>// add new element<NEW_LINE>if (movingElement...
.getComponent().requestFocus();
221,846
public void prepare(PropertyValueLookup inputIdLookup, Collector collector, ProgressListener progress) {<NEW_LINE>highestSetIndex = candidateHighestSetIndex.get();<NEW_LINE>updateRadix(dataCache, radix, highestSetIndex);<NEW_LINE>highestSetTrackerIndex <MASK><NEW_LINE>// Unfortunately the tracker cache needs to be as l...
= highestSetIndex - radix.getNullCount();
1,078,970
public GLKMatrix4 scale(float sx, float sy, float sz) {<NEW_LINE>float[] matrix_m = new float[16];<NEW_LINE>this.<MASK><NEW_LINE>float[] m = { matrix_m[0] * sx, matrix_m[1] * sx, matrix_m[2] * sx, matrix_m[3] * sx, matrix_m[4] * sy, matrix_m[5] * sy, matrix_m[6] * sy, matrix_m[7] * sy, matrix_m[8] * sz, matrix_m[9] * s...
getM().get(matrix_m);
1,610,595
public static void buildCheck(JSONObject build) {<NEW_LINE>Set<String> keySet = build.keySet();<NEW_LINE>if (keySet == null || keySet.size() == 0) {<NEW_LINE>throw new AppException(AppErrorCode.USER_CONFIG_ERROR, <MASK><NEW_LINE>}<NEW_LINE>for (String s : buildKeySet) {<NEW_LINE>if (!keySet.contains(s)) {<NEW_LINE>thro...
"action=buildCheck|| container build mast contain key: " + buildKeySet.toString());
886,289
public static ListOperatorByRoleResponse unmarshall(ListOperatorByRoleResponse listOperatorByRoleResponse, UnmarshallerContext _ctx) {<NEW_LINE>listOperatorByRoleResponse.setCode(_ctx.stringValue("ListOperatorByRoleResponse.Code"));<NEW_LINE>listOperatorByRoleResponse.setMessage(_ctx.stringValue("ListOperatorByRoleResp...
(_ctx.integerValue("ListOperatorByRoleResponse.PageInfo.PageSize"));
262,960
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is requir...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
1,333,983
private YamlTreeNode createYamlTree(String yaml) {<NEW_LINE>String[] lines = yaml.split("\n");<NEW_LINE>YamlTreeNode root = new YamlTreeNode("");<NEW_LINE>root.indentLevel = -2;<NEW_LINE>YamlTreeNode currentParent = root;<NEW_LINE>YamlTreeNode lastNode = root;<NEW_LINE>int currentIndentLevel = 0;<NEW_LINE>for (String l...
currentParent.indentLevel >= child.indentLevel);
1,015,181
final ListProjectAssetsResult executeListProjectAssets(ListProjectAssetsRequest listProjectAssetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listProjectAssetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix);
1,259,599
final ListBranchesResult executeListBranches(ListBranchesRequest listBranchesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listBranchesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListBranches");
1,328,548
public Widget onInitialize() {<NEW_LINE>// Create a CellTable.<NEW_LINE>// Set a key provider that provides a unique key for each contact. If key is<NEW_LINE>// used to identify contacts when fields (such as the name and address)<NEW_LINE>// change.<NEW_LINE>cellTable = new CellTable<ContactInfo>(ContactDatabase.Contac...
create(SimplePager.Resources.class);
1,784,008
public void handshake(@Valid final AgentClientMetadata agentClientMetadata) throws GenieAgentRejectedException {<NEW_LINE>final HashSet<Tag> tags = Sets.newHashSet(Tag.of(AGENT_VERSION_METRIC_TAG_NAME, agentClientMetadata.getVersion().orElse("null")));<NEW_LINE>final InspectionReport report;<NEW_LINE>try {<NEW_LINE>rep...
().name()));
1,450,209
public SaikuUser updateUser(SaikuUser user, boolean updatepassword) {<NEW_LINE>String sql;<NEW_LINE>if (updatepassword) {<NEW_LINE>sql = prop.getProperty("updateUserWithPassword");<NEW_LINE>} else {<NEW_LINE>sql = prop.getProperty("updateUser");<NEW_LINE>}<NEW_LINE>String newsql = prop.getProperty("maxUser");<NEW_LINE>...
updatesql = prop.getProperty("updateRole");
1,590,819
protected List<? extends SoapUIAction> loadActions(Reflections jarFileScanner) throws InstantiationException, IllegalAccessException {<NEW_LINE>List<SoapUIAction> actions <MASK><NEW_LINE>Set<Class<?>> actionClasses = jarFileScanner.getTypesAnnotatedWith(ActionConfiguration.class);<NEW_LINE>for (Class<?> actionClass : a...
= new ArrayList<SoapUIAction>();
1,806,988
public void testActivationSpecsBothUsingTopic2(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>FVTMessageDrivenBean.messages.clear();<NEW_LINE>FVTMessageDrivenBeanBinding.messages.clear();<NEW_LINE>ConnectionFactory cf = (ConnectionFactory) new InitialContext().lookup("java:comp/en...
"Got an extra message for jmsActivationSpec with no bindings: " + results.next());
526,667
/* (non-Javadoc)<NEW_LINE>* @see org.netbeans.modules.web.beans.analysis.analyzer.ClassModelAnalyzer.ClassAnalyzer#analyze(javax.lang.model.element.TypeElement, javax.lang.model.element.TypeElement, org.netbeans.modules.web.beans.api.model.WebBeansModel, java.util.List, org.netbeans.api.java.source.CompilationInfo, jav...
result.requireCdiEnabled(element, model);
49,575
public static void vertical(GrayF32 src, GrayI16 dst) {<NEW_LINE>if (src.height < dst.height)<NEW_LINE>throw new IllegalArgumentException("src height must be >= dst height");<NEW_LINE>if (src.width != dst.width)<NEW_LINE>throw new IllegalArgumentException("src width must equal dst width");<NEW_LINE>float scale = src.he...
int y = dst.height - 1;
670,970
private void calculateEMA() {<NEW_LINE>if (security == null)<NEW_LINE>return;<NEW_LINE>List<SecurityPrice> prices = security.getPricesIncludingLatest();<NEW_LINE>if (prices == null)<NEW_LINE>return;<NEW_LINE>int index = Collections.binarySearch(prices, new SecurityPrice(interval.getStart(), 0)<MASK><NEW_LINE>if (index ...
, new SecurityPrice.ByDate());
249,168
public List<DataSetTableDTO> search(DataSetTableRequest dataSetTableRequest) {<NEW_LINE>String userId = String.valueOf(AuthUtils.getUser().getUserId());<NEW_LINE>dataSetTableRequest.setUserId(userId);<NEW_LINE>dataSetTableRequest.setSort("name asc");<NEW_LINE>List<DataSetTableDTO> <MASK><NEW_LINE>if (CollectionUtils.is...
ds = extDataSetTableMapper.search(dataSetTableRequest);
1,827,005
public static void eventSubscriptionsCreateOrUpdateForCustomTopicWebhookDestination(com.azure.resourcemanager.eventgrid.EventGridManager manager) {<NEW_LINE>manager.eventSubscriptions().define("examplesubscription1").withExistingScope("subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/provider...
(false)).create();
239,824
private // There is no need to compute overnight periods, except for the cut-off period.<NEW_LINE>double rateForward(OvernightAveragedRateComputation computation, OvernightIndexRates rates) {<NEW_LINE>OvernightIndex index = computation.getIndex();<NEW_LINE>HolidayCalendar calendar = computation.getFixingCalendar();<NEW...
LocalDate endFixingDateP1 = computation.getEndDate();
341,588
private static Polygon createLakeSuperiorPolygon() {<NEW_LINE>PointCollection points = new PointCollection(SpatialReferences.getWebMercator());<NEW_LINE>points.add(new Point(-10254374.668616, 5908345.076380));<NEW_LINE>points.add(new Point(-10178382.525314, 5971402.386779));<NEW_LINE>points.add(new Point(-10118558.9231...
Point(-9605207.742329, 6206654.660191));
1,204,614
public void decode(ByteBuf buf, ProtocolUtils.Direction direction, ProtocolVersion version) {<NEW_LINE>this.locale = ProtocolUtils.readString(buf, 16);<NEW_LINE>this.viewDistance = buf.readByte();<NEW_LINE>this.chatVisibility = ProtocolUtils.readVarInt(buf);<NEW_LINE>this.chatColors = buf.readBoolean();<NEW_LINE>if (ve...
.skinParts = buf.readUnsignedByte();
1,549,505
public void limitServiceDays(ServiceDateInterval periodLimit, DataImportIssueStore issues) {<NEW_LINE>if (periodLimit.isUnbounded()) {<NEW_LINE>LOG.info("Limiting transit service is skipped, the period is unbounded.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LOG.warn("Limiting transit service days to time period: {}", per...
calendars.size(), "Outside time period.");
1,208,000
public static String toHex(final byte[] value, final int bytesPerLine) {<NEW_LINE>final int digits = (int) Math.round(Math.log(value.length) / Math.log(10) + 0.5);<NEW_LINE>final StringBuffer formatString = new StringBuffer();<NEW_LINE>for (int i = 0; i < digits; i++) formatString.append('0');<NEW_LINE>formatString.app...
(format.format(x));
953,636
public static DescribeRiskLevelsResponse unmarshall(DescribeRiskLevelsResponse describeRiskLevelsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRiskLevelsResponse.setRequestId(_ctx.stringValue("DescribeRiskLevelsResponse.RequestId"));<NEW_LINE>List<RiskLevel> riskLevelList = new ArrayList<RiskLevel>();<NEW_LINE...
("DescribeRiskLevelsResponse.RiskLevelList[" + i + "].ReferenceNum"));
1,728,647
final UpdateEmailIdentityPolicyResult executeUpdateEmailIdentityPolicy(UpdateEmailIdentityPolicyRequest updateEmailIdentityPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateEmailIdentityPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
266,431
private boolean canBeReferencedFromStaticContext(DetailAST ident) {<NEW_LINE>AbstractFrame variableDeclarationFrame = findFrame(ident, false);<NEW_LINE>boolean staticInitializationBlock = false;<NEW_LINE>while (variableDeclarationFrame.getType() == FrameType.BLOCK_FRAME || variableDeclarationFrame.getType() == FrameTyp...
final DetailAST codeBlockDefinition = getCodeBlockDefinitionToken(ident);
1,642,821
private Action createPreviousCellAction() {<NEW_LINE>return new AbstractAction() {<NEW_LINE><NEW_LINE>public void actionPerformed(ActionEvent e) {<NEW_LINE>ProfilerColumnModel cModel = table._getColumnModel();<NEW_LINE>if (table.getRowCount() == 0 || cModel.getVisibleColumnCount() == 0)<NEW_LINE>return;<NEW_LINE>int co...
previousColumn = cModel.getPreviousVisibleColumn(column);
896,472
private void insert(long value, double weight) {<NEW_LINE>long lastBranch = 0;<NEW_LINE>Node parent = null;<NEW_LINE>Node current = root;<NEW_LINE>while (true) {<NEW_LINE>if (current == null) {<NEW_LINE>setChild(parent, lastBranch<MASK><NEW_LINE>return;<NEW_LINE>} else if ((value >>> current.level) != (current.value >>...
, createLeaf(value, weight));
1,751,698
final CreateEventDestinationResult executeCreateEventDestination(CreateEventDestinationRequest createEventDestinationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createEventDestinationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,396,980
protected void unlinkRowsAnimatedAndUpdateCacheWhenFinished(final int firstIndex, final int rows) {<NEW_LINE>List<VScrollTableRow> rowsToDelete <MASK><NEW_LINE>for (int ix = firstIndex; ix < firstIndex + rows; ix++) {<NEW_LINE>VScrollTableRow row = getRowByRowIndex(ix);<NEW_LINE>if (row != null) {<NEW_LINE>rowsToDelete...
= new ArrayList<VScrollTableRow>();
253,869
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>selectWsdlLbl = new javax.swing.JLabel();<NEW_LINE>innerPanel = new javax.swing.JPanel();<NEW_LINE>// NOI18N<NEW_LINE>org.openide.awt.Mnemonics.setLocalizedText(selectWsdlLbl, org....
MAX_VALUE).addContainerGap()));
1,828,053
private static IPath[] decodePatterns(NamedNodeMap nodeMap, String tag) {<NEW_LINE>String sequence = removeAttribute(tag, nodeMap);<NEW_LINE>if (!sequence.equals("")) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>char[][] patterns = CharOperation.splitOn(<MASK><NEW_LINE>int patternCount;<NEW_LINE>if ((patternCount = patterns.leng...
'|', sequence.toCharArray());
361,871
static <A extends Annotation, E extends Member & AnnotatedElement, T extends Metric> RegistrationPrep create(A annotation, E annotatedElement, Class<?> clazz, MatchingType matchingType, Executable executable) {<NEW_LINE>MetricAnnotationInfo<?, ?> info = ANNOTATION_TYPE_TO_INFO.get(annotation.annotationType());<NEW_LINE...
withDisplayName(candidateDisplayName.trim());
1,671,392
private static void testArithmetic() {<NEW_LINE>int a = 6;<NEW_LINE>int b = 3;<NEW_LINE>int c = -1;<NEW_LINE>assertTrue(a * b == 18);<NEW_LINE>assertTrue(a / b == 2);<NEW_LINE>assertTrue(a % b == 0);<NEW_LINE>assertTrue(a + b == 9);<NEW_LINE>assertTrue(a - b == 3);<NEW_LINE>assertTrue(a << 1 == 12);<NEW_LINE>assertTrue...
(a & b) == 2);
770,376
private static List<LogicalChannelProducingPortDeclared> determineGraphDeclaredOutputPorts(int producingOpNum, DataFlowOperatorForge operatorForge, GraphOperatorSpec operatorSpec, OperatorMetadataDescriptor metadata, Map<String, EventType> types, StatementCompileTimeServices services) throws ExprValidationException {<N...
, portNumber, typeDesc, isDeclaredPunctuated));
358,800
public VerifySoftwareTokenResult verifySoftwareToken(VerifySoftwareTokenRequest verifySoftwareTokenRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(verifySoftwareTokenRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionCont...
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
185,295
public void configure(Binder binder) {<NEW_LINE>Jerseys.addResource(binder, ChatHandlerResource.class);<NEW_LINE>LifecycleModule.register(binder, ChatHandlerResource.class);<NEW_LINE>if (properties.containsKey(MAX_CHAT_REQUESTS_PROPERTY)) {<NEW_LINE>final int maxRequests = Integer.parseInt(properties.getProperty(MAX_CH...
.class, Self.class));
1,709,978
private static MondrianDef.RelationOrJoin lookupRelationSubset(MondrianDef.RelationOrJoin relation, RolapStar.Table targetTable) {<NEW_LINE>if (relation instanceof MondrianDef.Table) {<NEW_LINE>MondrianDef.Table <MASK><NEW_LINE>if (table.name.equals(targetTable.getTableName())) {<NEW_LINE>return relation;<NEW_LINE>} el...
table = (MondrianDef.Table) relation;
743,120
private VpcOffering locateVpcOffering() {<NEW_LINE>VpcOffering vpcOffer = _vpcOffDao.findByUniqueName(juniperVPCOfferingName);<NEW_LINE>if (vpcOffer != null) {<NEW_LINE>if (((VpcOfferingVO) vpcOffer).getState() == VpcOffering.State.Enabled) {<NEW_LINE>return vpcOffer;<NEW_LINE>}<NEW_LINE>((VpcOfferingVO) vpcOffer).setS...
Service.Lb.getName());
694,426
private void writeViewStateField(FacesContext facesContext, ResponseWriter responseWriter, Object savedState) throws IOException {<NEW_LINE>String serializedState = _stateTokenProcessor.encode(facesContext, savedState);<NEW_LINE>ExternalContext extContext = facesContext.getExternalContext();<NEW_LINE>MyfacesConfig myfa...
HTML.NAME_ATTR, STANDARD_STATE_SAVING_PARAM, null);
1,070,789
public void render(PoseStack ms, VertexConsumer buffer, int light, int overlay, float r, float g, float b, float alpha, float fract) {<NEW_LINE>base.render(ms, buffer, light, overlay, r, g, b, alpha);<NEW_LINE>pipe.render(ms, buffer, light, overlay, <MASK><NEW_LINE>float mov = (1F - fract) * 0.5F;<NEW_LINE>ms.translate...
r, g, b, alpha);
1,171,462
public RelNode convert(ResolvedNodes.ResolvedArrayScan zetaNode, List<RelNode> inputs) {<NEW_LINE>assert inputs.size() == 1;<NEW_LINE>RelNode input = inputs.get(0);<NEW_LINE>RexInputRef columnRef = (RexInputRef) getExpressionConverter().convertRexNodeFromResolvedExpr(getColumnRef(zetaNode.getArrayExpr()), zetaNode.getI...
()), JoinRelType.INNER);