idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,619,505
public void filter(ContainerRequestContext reqCtx, ContainerResponseContext resCtx) throws IOException {<NEW_LINE>if (!Constants.MEDIA_TYPE_JSON.equals(reqCtx.getHeaderString("Accept"))) {<NEW_LINE>// Don't wrap if using legacy mode<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int status = resCtx.getStatus();<NEW_LINE>if ((sta...
getEntityAnnotations(), Constants.MEDIA_TYPE_JSON_TYPE);
1,355,296
static <// / @Generated("This method was generated using jOOQ-tools")<NEW_LINE>T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Seq<Tuple10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>> outerApply(Seq<? extends T1> seq, Function<? super T1, ? extends Seq<? extends T2>> function2, Function<? super T2, ? extends Seq<? extends T3>> f...
).onClose(seq::close);
884,125
protected String findPropertyName(ExecutableElement m) {<NEW_LINE>String name = m.getSimpleName().toString();<NEW_LINE>if (!builder) {<NEW_LINE>if (!name.startsWith(SET_NAME_PREFIX) || name.length() == SET_NAME_PREFIX_LEN || !Character.isUpperCase(name.charAt(SET_NAME_PREFIX_LEN))) {<NEW_LINE>return null;<NEW_LINE>}<NE...
name.charAt(0)));
1,608,792
public static MethodInfo fromRef(RootNode root, IMethodRef methodRef) {<NEW_LINE>InfoStorage infoStorage = root.getInfoStorage();<NEW_LINE>int uniqId = methodRef.getUniqId();<NEW_LINE>if (uniqId != 0) {<NEW_LINE>MethodInfo <MASK><NEW_LINE>if (prevMth != null) {<NEW_LINE>return prevMth;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>me...
prevMth = infoStorage.getByUniqId(uniqId);
1,210,184
public INDArray[] executeGraph(SameDiff sd, ExecutorConfiguration configuration) {<NEW_LINE>ByteBuffer buffer = convertToFlatBuffers(sd, configuration);<NEW_LINE>BytePointer bPtr = new BytePointer(buffer);<NEW_LINE>log.info(<MASK><NEW_LINE>NativeOps nativeOps = NativeOpsHolder.getInstance().getDeviceNativeOps();<NEW_LI...
"Buffer length: {}", buffer.limit());
752,579
private void registerGsakExtensionsTb(final String nsGC, final Element gcCache) {<NEW_LINE>// waypoint.cache.travelbugs<NEW_LINE>final Element gcTBs = gcCache.getChild(nsGC, "travelbugs");<NEW_LINE>// waypoint.cache.travelbug<NEW_LINE>final Element gcTB = gcTBs.getChild(nsGC, "travelbug");<NEW_LINE>// waypoint.cache.tr...
setName(validate(tbName)));
579,043
public Logging unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Logging logging = new Logging();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token...
().unmarshall(context));
1,478,964
public void initialize(ConfigurableListableBeanFactory configurableListableBeanFactory) throws BeansException {<NEW_LINE>Assert.isInstanceOf(BeanDefinitionRegistry.class, configurableListableBeanFactory, "To use Spring Integration Java DSL the 'beanFactory' has to be an instance of " + "'BeanDefinitionRegistry'. Consid...
, IntegrationFlowDefinition.ReplyProducerCleaner::new));
251,917
public boolean triggerAbility(TriggeredAbility source, Game game) {<NEW_LINE>Ability ability = source.copy();<NEW_LINE>List<Ability> options = getPlayableOptions(ability, game);<NEW_LINE>if (options.isEmpty()) {<NEW_LINE>if (logger.isDebugEnabled())<NEW_LINE>logger.debug("simulating -- triggered ability:" + ability);<N...
.getPlayers().resetPassed();
1,674,758
final AbortMultipartUploadResult executeAbortMultipartUpload(AbortMultipartUploadRequest abortMultipartUploadRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(abortMultipartUploadRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
endClientExecution(awsRequestMetrics, request, response);
1,289,257
private void drawArrows(Point[] point, Canvas canvas, Paint paint) {<NEW_LINE>float[] points = new float[8];<NEW_LINE>points[0] = point[0].x;<NEW_LINE>points[1] = point[0].y;<NEW_LINE>points[2] = point[1].x;<NEW_LINE>points[3] = point[1].y;<NEW_LINE>points[4] = point[2].x;<NEW_LINE>points[5] = point[2].y;<NEW_LINE>poin...
] = point[0].y;
136,090
private void forIterator(Env env, Scope scope, Writer writer) {<NEW_LINE>Ctrl ctrl = scope.getCtrl();<NEW_LINE>Object outer = scope.get("for");<NEW_LINE>ctrl.setLocalAssignment();<NEW_LINE>ForIteratorStatus forIteratorStatus = new ForIteratorStatus(outer, forCtrl.getExpr().eval(scope), location);<NEW_LINE>ctrl.setWisdo...
scope.setLocal("for", forIteratorStatus);
81,914
public void update(Context context, Bundle bundle) throws SQLException, AuthorizeException {<NEW_LINE>// Check authorisation<NEW_LINE>// AuthorizeManager.authorizeAction(ourContext, this, Constants.WRITE);<NEW_LINE>log.info(LogHelper.getHeader(context, "update_bundle", "bundle_id=" + bundle.getID()));<NEW_LINE>super.up...
getIdentifiers(context, bundle)));
1,078,394
private static RandomAccessFile openLocalFile(Uri uri) throws FileDataSourceException {<NEW_LINE>try {<NEW_LINE>return new RandomAccessFile(Assertions.checkNotNull(uri.getPath()), "r");<NEW_LINE>} catch (FileNotFoundException e) {<NEW_LINE>if (!TextUtils.isEmpty(uri.getQuery()) || !TextUtils.isEmpty(uri.getFragment()))...
FileDataSourceException(e, PlaybackException.ERROR_CODE_IO_NO_PERMISSION);
811,668
private void encipher(int[] lr, int off) {<NEW_LINE>int i;<NEW_LINE>int n;<NEW_LINE>int l = lr[off];<NEW_LINE>int r = lr[off + 1];<NEW_LINE>l ^= this.pbox[0];<NEW_LINE>for (i = 0; i <= BLOWFISH_NUM_ROUNDS - 2; ) {<NEW_LINE>// Feistel substitution on left word<NEW_LINE>n = this.sbox[(l >> 24) & 0xff];<NEW_LINE>n += this...
>> 8) & 0xff)];
281,939
protected void discover(final Class clazz, final Object arg) {<NEW_LINE>Object[] params;<NEW_LINE>// If you passed in null as property, we don't use the value<NEW_LINE>// for parameter lookup. Instead we just look for put(Object) without<NEW_LINE>// any parameters.<NEW_LINE>//<NEW_LINE>// In any other case, the followi...
"Exception while looking for put('" + params[0] + "') method";
836,490
final ListClustersV2Result executeListClustersV2(ListClustersV2Request listClustersV2Request) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listClustersV2Request);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
endClientExecution(awsRequestMetrics, request, response);
1,122,245
private void selectMap(final int tabIndexChange) {<NEW_LINE>final Controller controller = Controller.getCurrentController();<NEW_LINE>MapView mapView = (MapView) controller.getMapViewManager().getMapViewComponent();<NEW_LINE>if (mapView != null) {<NEW_LINE>AbstractTabWindow tabWindow = (AbstractTabWindow) SwingUtilitie...
View) tabWindow.getChildWindow(nextWindowIndex);
825,665
private static List<PainlessContextClassInfo> sortClassInfos(Set<PainlessContextClassInfo> classExcludes, List<PainlessContextClassInfo> classInfos) {<NEW_LINE>classInfos <MASK><NEW_LINE>classInfos.removeIf(v -> "void".equals(v.getName()) || "boolean".equals(v.getName()) || "byte".equals(v.getName()) || "short".equals(...
= new ArrayList<>(classInfos);
593,757
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>if (!hasValidCSRFToken(request)) {<NEW_LINE>respondCSRFError(response);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Project project = getProject(request);<NEW_LINE>String jsonString = request.getParamet...
a = ParsingUtilities.evaluateJsonStringToArrayNode(jsonString);
760,908
JPanel createSourceCodePanel() {<NEW_LINE>Font sourceFont = new Font("Monospaced", Font.PLAIN, (int) Driver.getFontSize());<NEW_LINE>mainFrame.getSourceCodeTextPane().setFont(sourceFont);<NEW_LINE>mainFrame.getSourceCodeTextPane().setEditable(false);<NEW_LINE>mainFrame.getSourceCodeTextPane().getCaret().setSelectionVis...
).setDocument(SourceCodeDisplay.SOURCE_NOT_RELEVANT);
1,224,188
public static QueryTimeTemplateResponse unmarshall(QueryTimeTemplateResponse queryTimeTemplateResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryTimeTemplateResponse.setRequestId(_ctx.stringValue("QueryTimeTemplateResponse.RequestId"));<NEW_LINE>queryTimeTemplateResponse.setSuccess(_ctx.booleanValue("QueryTimeTemplate...
+ "].TimeSectionList[" + j + "].DayOfWeek"));
219,050
public static List<AsyncFileListener.ChangeApplier> runAsyncListeners(@Nonnull List<? extends VFileEvent> events) {<NEW_LINE>if (events.isEmpty())<NEW_LINE>return Collections.emptyList();<NEW_LINE>if (LOG.isDebugEnabled()) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>List<AsyncFileListener.ChangeApplier> appliers = new ArrayL...
LOG.debug("Processing " + events);
480,571
final DescribeEventsResult executeDescribeEvents(DescribeEventsRequest describeEventsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeEventsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,036,717
public static DescribeKeyPairsResponse unmarshall(DescribeKeyPairsResponse describeKeyPairsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeKeyPairsResponse.setRequestId<MASK><NEW_LINE>describeKeyPairsResponse.setPageNumber(_ctx.integerValue("DescribeKeyPairsResponse.PageNumber"));<NEW_LINE>describeKeyPairsRespon...
(_ctx.stringValue("DescribeKeyPairsResponse.RequestId"));
1,718,261
final DeleteProtocolsListResult executeDeleteProtocolsList(DeleteProtocolsListRequest deleteProtocolsListRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteProtocolsListRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
endClientExecution(awsRequestMetrics, request, response);
392,042
void decode(Decoder decoder, Instruction instruction) {<NEW_LINE>instruction.setCode(code);<NEW_LINE>instruction.setOp0Register(decoder.state_reg + decoder.state_zs_extraRegisterBase + <MASK><NEW_LINE>instruction.setOp1Register(decoder.state_vvvv + Register.ZMM0);<NEW_LINE>if (MvexInfo.getRequireOpMaskRegister(code) &&...
decoder.state_extraRegisterBaseEVEX + Register.ZMM0);
672,477
void loadConnector(BlockPos p, IImmersiveConnectable iic, boolean adding, GlobalWireNetwork globalNet) {<NEW_LINE>++version;<NEW_LINE>IImmersiveConnectable existingIIC = connectors.get(p);<NEW_LINE>if (adding)<NEW_LINE>Preconditions.checkState(existingIIC == null, "Adding connector %s at %s in net %s, but IIC %s alread...
iic, p, this, existingIIC);
572,494
public StringBuilder adminDelGroupConsumeCtrlInfo(HttpServletRequest req, StringBuilder sBuffer, ProcessResult result) {<NEW_LINE>// check and get operation info<NEW_LINE>if (!WebParameterUtils.getAUDBaseInfo(req, false, null, sBuffer, result)) {<NEW_LINE>WebParameterUtils.buildFailResult(sBuffer, result.getErrMsg());<...
groupName, topicName, sBuffer, result);
397,974
public static void main(String[] args) {<NEW_LINE>Logo.print(true);<NEW_LINE>System.out.println(<MASK><NEW_LINE>Logger.println("A01", "Scouter Batch Agent Version " + Version.getServerFullVersion());<NEW_LINE>try {<NEW_LINE>ReqestHandlingProxy.load(ReqestHandlingProxy.class);<NEW_LINE>UdpLocalServer.getInstance();<NEW_...
"Scouter Batch Agent Version " + Version.getServerFullVersion());
1,094,355
public DatasetGraph createDataset(Assembler a, Resource root) {<NEW_LINE>// Old name : bypass.<NEW_LINE>if (!root.hasProperty(RDF.type, DatasetAssemblerVocab.tDatasetTxnMem))<NEW_LINE>checkType(root, DatasetAssemblerVocab.tMemoryDataset);<NEW_LINE>final DatasetGraph dataset = DatasetGraphFactory.createTxnMem();<NEW_LIN...
.getGraph(gn), namedGraphData);
808,512
public double estimateBias(double rawEstimate) {<NEW_LINE>int index = Arrays.binarySearch(rawEstimateData, rawEstimate);<NEW_LINE>// Check if the value is in rawEstimate or not.<NEW_LINE>if (index >= 0) {<NEW_LINE>return biasData[index];<NEW_LINE>} else {<NEW_LINE>int insertionIndex = -index - 1;<NEW_LINE>if (insertion...
x1, f0, f1, rawEstimate);
502,379
public static void mergeNodeLists(Node targetNode, org.w3c.dom.NodeList list1, org.w3c.dom.NodeList list2, String attributeName) {<NEW_LINE><MASK><NEW_LINE>TreeSet<Node> resultSet = new TreeSet<Node>(comparator);<NEW_LINE>if (list1 != null) {<NEW_LINE>for (int i = 0; i < list1.getLength(); i++) {<NEW_LINE>if (!TEXT_ELE...
NodeComparatorBySingleAttribute comparator = new NodeComparatorBySingleAttribute(attributeName);
501,417
private void resizeTooltipIfNeeded(Component container, int ruleLength, int rules) {<NEW_LINE>if (container == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean makeBig = (rules > 5 || ruleLength > 350);<NEW_LINE>if (setSize) {<NEW_LINE>if (makeBig) {<NEW_LINE>type = 0;<NEW_LINE>} else {<NEW_LINE>type = 1;<NEW_LINE>...
addWidth + TOOLTIP_WIDTH_MIN, addHeight + TOOLTIP_HEIGHT_MAX);
922,813
public JsonResponseBPartnerCompositeUpsertItem persist(@Nullable final String orgCode, @NonNull final JsonRequestBPartnerUpsertItem requestItem, @NonNull final SyncAdvise parentSyncAdvise) {<NEW_LINE>// TODO: add support to retrieve without changelog; we don't need changelog here;<NEW_LINE>// but! make sure we don't sc...
bpartnerIdentifier = IdentifierString.of(rawBpartnerIdentifier);
665,345
public void loadUserDict(String userDictPath, Charset charset) {<NEW_LINE>InputStream is = this.getClass().getResourceAsStream(userDictPath);<NEW_LINE>try {<NEW_LINE>BufferedReader br = new BufferedReader(new InputStreamReader(is, charset));<NEW_LINE>long s = System.currentTimeMillis();<NEW_LINE>int count = 0;<NEW_LINE...
(), "%s: load user dict failure!", userDictPath));
1,345,311
public void loadConfig(StringBuilder strBuff) throws LoadMetaException {<NEW_LINE>long totalCnt = 0L;<NEW_LINE>logger.info("[ZK Impl] load topic deploy configure start...");<NEW_LINE>// clear cache data<NEW_LINE>clearCachedData();<NEW_LINE>// query data set<NEW_LINE>List<String> childNodes = ZKUtil.getChildren(zkWatche...
(itemKey).toString());
1,250,409
public int execute(final String fullCommand, final CommandLine cl, final Shell shellState) throws Exception {<NEW_LINE>Shell.log.warn("Deprecated, use {}", new DeleteShellIterCommand().getName());<NEW_LINE>final String tableName = OptUtil.getTableOpt(cl, shellState);<NEW_LINE>if (cl.hasOption(allOpt.getOpt())) {<NEW_LI...
shellState.scanIteratorOptions.remove(tableName);
1,393,446
private void initialiseIPSets(Map<String, PeerSet> sets) {<NEW_LINE>String config_max_key = "speed.limit.handler.ipset_n.max";<NEW_LINE>Set<Integer> id_allocated = new HashSet<>();<NEW_LINE>Map<PeerSet, Integer> id_map = new HashMap<>();<NEW_LINE>int id_max = COConfigurationManager<MASK><NEW_LINE>int original_id_max = ...
.getIntParameter(config_max_key, -1);
281,317
private boolean checkMatchIndex(int index) throws LeaderUnknownException, TException, InterruptedException {<NEW_LINE>Log log = logs.get(index);<NEW_LINE>synchronized (raftMember.getTerm()) {<NEW_LINE>// make sure this node is still a leader<NEW_LINE>if (raftMember.getCharacter() != NodeCharacter.LEADER) {<NEW_LINE>thr...
= log.getCurrLogIndex() - 1;
1,248,813
public void beforeChange_updateLocations(final I_C_OLCand olCand, final ModelChangeType timing) {<NEW_LINE>try (final MDC.MDCCloseable ignore = TableRecordMDC.putTableRecordReference(olCand)) {<NEW_LINE>// if only an override-bpartner was changed, but not the respective override-location,<NEW_LINE>// then make sure to ...
isValueChanged(olCand, I_C_OLCand.COLUMNNAME_DropShip_Location_Override_ID);
1,160,724
private JPanel controller() {<NEW_LINE>JPanel panel = new JPanel(new GridLayout(3, 1));<NEW_LINE>panel.setOpaque(false);<NEW_LINE>JPanel idxPath = new JPanel(new FlowLayout(FlowLayout.LEADING));<NEW_LINE>idxPath.setOpaque(false);<NEW_LINE>idxPath.add(new JLabel(MessageUtils.getLocalizedMessage("checkidx.label.index_pat...
, 5, 0, 0));
1,669,656
private static ResponseHeaders convertResponse(Response coyoteRes) {<NEW_LINE>final ResponseHeadersBuilder headers = ResponseHeaders.builder();<NEW_LINE>headers.status(coyoteRes.getStatus());<NEW_LINE>final String contentType = coyoteRes.getContentType();<NEW_LINE>if (contentType != null && !contentType.isEmpty()) {<NE...
set(HttpHeaderNames.CONTENT_TYPE, contentType);
1,755,846
public static GetCommitResponse unmarshall(GetCommitResponse getCommitResponse, UnmarshallerContext _ctx) {<NEW_LINE>getCommitResponse.setRequestId(_ctx.stringValue("GetCommitResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>data.setAppId(_ctx.stringValue("GetCommitResponse.Data.AppId"));<NEW_LINE>data.s...
(_ctx.stringValue("GetCommitResponse.Data.RollbackToCommitId"));
1,310,583
private Map<Integer, Integer> calculateMaxSpace(UniversalGraph<N, E> graph, Map<Integer, Integer> map, int lvl) {<NEW_LINE>Widget widget = graph.getScene().findWidget(node);<NEW_LINE>widget.getLayout().layout(widget);<NEW_LINE>relativeBounds = widget.getPreferredBounds();<NEW_LINE>if (vertical) {<NEW_LINE>space = relat...
map.put(lvl, space);
540,048
private void initOptions(DefaultCodeFormatterOptions defaultCodeFormatterOptions, Map<String, String> options) {<NEW_LINE>if (options != null) {<NEW_LINE>this.originalOptions = new DefaultCodeFormatterOptions(options);<NEW_LINE>this.workingOptions = new DefaultCodeFormatterOptions(options);<NEW_LINE><MASK><NEW_LINE>Str...
this.oldCommentFormatOption = getOldCommentFormatOption(options);
1,771,802
final GetResourcePolicyResult executeGetResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getResourcePolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,467,194
private soot.SootMethod makeLiFieldAccessMethod(soot.SootClass classToInvoke, polyglot.types.LocalInstance li) {<NEW_LINE>String name = "access$" + soot.javaToJimple.InitialResolver.v<MASK><NEW_LINE>ArrayList paramTypes = new ArrayList();<NEW_LINE>paramTypes.add(classToInvoke.getType());<NEW_LINE>soot.SootMethod meth =...
().getNextPrivateAccessCounter() + "00";
1,571,700
public IdentityProviderSummary unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>IdentityProviderSummary identityProviderSummary = new IdentityProviderSummary();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI...
class).unmarshall(context));
779,146
public void startGeneration(int section, JavaCodeWriter writer) throws JspCoreException {<NEW_LINE>if (section == CodeGenerationPhase.CLASS_SECTION) {<NEW_LINE>for (int i = 0; i < element.getChildNodes().getLength(); i++) {<NEW_LINE>Node n = element.getChildNodes().item(i);<NEW_LINE>if (n.getNodeType() == Node.CDATA_SE...
String data = cdata.getData();
216,469
public static ListMetaTableColumnResponse unmarshall(ListMetaTableColumnResponse listMetaTableColumnResponse, UnmarshallerContext _ctx) {<NEW_LINE>listMetaTableColumnResponse.setRequestId(_ctx.stringValue("ListMetaTableColumnResponse.RequestId"));<NEW_LINE>listMetaTableColumnResponse.setErrCode(_ctx.longValue("ListMeta...
("ListMetaTableColumnResponse.ColumnList[" + i + "].TableGuid"));
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...
add(condition.getValue());
736,351
private static KNXNetworkLink connectBySerial(String serialPort) throws KNXException {<NEW_LINE>try {<NEW_LINE>RXTXVersion.getVersion();<NEW_LINE>return new KNXNetworkLinkFT12(serialPort, new TPSettings(true));<NEW_LINE>} catch (NoClassDefFoundError e) {<NEW_LINE>throw new KNXException("The serial FT1.2 KNX connection ...
id.getName() + "\n");
669,519
protected void select_instances() {<NEW_LINE>List<Object> selected_violations = list.getSelectedValuesList();<NEW_LINE>if (selected_violations.size() <= 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>java.util.Set<app.freerouting.board.Item> selected_items = new java.util.TreeSet<app.<MASK><NEW_LINE>for (int i = 0; i < sele...
freerouting.board.Item>();
1,788,660
public void moveViewportAndContent(final double yDelta) {<NEW_LINE>if (yDelta == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>double newTop = tBodyScrollTop + yDelta;<NEW_LINE>verticalScrollbar.setScrollPos(newTop);<NEW_LINE>final double defaultRowHeight = getDefaultRowHeight();<NEW_LINE>double rowPxDelta <MASK><NEW_LINE>...
= yDelta - (yDelta % defaultRowHeight);
1,387,299
private static GraphTypeDesc determineTypeOutputPort(GraphOperatorOutputItemType outType, Map<String, EventType> types, StatementCompileTimeServices services) throws ExprValidationException {<NEW_LINE>EventType eventType = null;<NEW_LINE>boolean isWildcard = false;<NEW_LINE>boolean isUnderlying = true;<NEW_LINE>String ...
resolveType(typeOrClassname, types, services);
1,073,207
private Mono<Void> handleException(ChannelHandlerContext context, Throwable throwable, RequestRpcMetadata metadata, ThriftFrame frame, Map<String, String> responseHeaders) {<NEW_LINE><MASK><NEW_LINE>if (throwable instanceof RejectedExecutionException) {<NEW_LINE>ThriftFrame exceptionFrame = encodeApplicationException(c...
log.error("ThriftServerHandler received uncaught exception", throwable);
1,795,546
public void filter(FacesContext context, TreeTable tt, TreeNode root) {<NEW_LINE>Map<String, FilterMeta> filterBy = tt.getFilterByAsMap();<NEW_LINE>if (filterBy.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Locale filterLocale = LocaleUtils.getCurrentLocale(context);<NEW_LINE>// collect filtered / valid node rowKey...
tt, root, filteredValue, filteredRowKeys);
1,367,627
private static MessageActivity createMessageActivity(DataObject jsonObject) {<NEW_LINE>DataObject activityData = jsonObject.getObject("activity");<NEW_LINE>final MessageActivity.ActivityType activityType = MessageActivity.ActivityType.fromId(activityData.getInt("type"));<NEW_LINE>final String partyId = activityData.get...
applicationData.getString("icon", null);
1,378,794
private void handleConnectException(Throwable e) {<NEW_LINE>++connectionFailureCount;<NEW_LINE>SocketAddress <MASK><NEW_LINE>while (e.getCause() != null) {<NEW_LINE>e = e.getCause();<NEW_LINE>}<NEW_LINE>final String nextRetryMsg = " (Next retry in " + computeNextRetryConnectDelay() + " milliseconds)";<NEW_LINE>if (e in...
socketAddress = socketAddresses[getCurrentSocketAddressIndex()];
1,773,245
public void enterCisco_nxos_configuration(Cisco_nxos_configurationContext ctx) {<NEW_LINE>_currentValidVlanRange = VLAN_RANGE.difference(_c.getReservedVlanRange());<NEW_LINE>_currentVrf = _c.getDefaultVrf();<NEW_LINE>// define built-ins at line 0 (before first line of file).<NEW_LINE>// vrfs<NEW_LINE>_c.defineSingleLin...
defineSingleLineStructure(POLICY_MAP_QUEUING, DEFAULT_POLICY_MAP_IN, 0);
385,848
public void migrateWithStorage(final String vmUuid, final long srcHostId, final long destHostId, final Map<Long, Long> volumeToPool) throws ResourceUnavailableException, ConcurrentOperationException {<NEW_LINE>final <MASK><NEW_LINE>if (jobContext.isJobDispatchedBy(VmWorkConstants.VM_WORK_JOB_DISPATCHER)) {<NEW_LINE>fin...
AsyncJobExecutionContext jobContext = AsyncJobExecutionContext.getCurrentExecutionContext();
414,961
public void actionPerformed(ActionEvent e) {<NEW_LINE>final CleanPoi selected = vertices.get(oldSelected);<NEW_LINE>final CleanPoi[] allVertices = ControlPanel.INSTANCE.building.getVertices();<NEW_LINE>List<String> mypairs = new ArrayList<>();<NEW_LINE>String midFormat = String.format("%3d", selected.getId());<NEW_LINE...
.getPair("WEIGHT", weight));
808,123
public static DragstrParams of(final int maxPeriod, final int maxRepeats, final double[][] gop, final double[][] gcp, final double[][] api, final String name) {<NEW_LINE>ParamUtils.isPositive(maxPeriod, "max period must be a positive");<NEW_LINE>ParamUtils.isPositive(maxRepeats, "max repeats must be a positive");<NEW_L...
api.length == maxPeriod, "input api length must match maxPeriod");
1,375,121
private boolean save(Path targetPath, SaveDatabaseMode mode) {<NEW_LINE>if (mode == SaveDatabaseMode.NORMAL) {<NEW_LINE>dialogService.notify(String.format("%s...", <MASK><NEW_LINE>}<NEW_LINE>libraryTab.setSaving(true);<NEW_LINE>try {<NEW_LINE>Charset encoding = libraryTab.getBibDatabaseContext().getMetaData().getEncodi...
Localization.lang("Saving library")));
1,478,928
/* (non-Javadoc)<NEW_LINE>* @see org.eclipse.ui.dialogs.FilteredItemsSelectionDialog#fillContentProvider(org.eclipse.ui.dialogs.FilteredItemsSelectionDialog.AbstractContentProvider, org.eclipse.ui.dialogs.FilteredItemsSelectionDialog.ItemsFilter, org.eclipse.core.runtime.IProgressMonitor)<NEW_LINE>*/<NEW_LINE>protected...
> modules = spec.getModules();
1,280,003
public static DescribeOssObjectDetailResponse unmarshall(DescribeOssObjectDetailResponse describeOssObjectDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeOssObjectDetailResponse.setRequestId(_ctx.stringValue("DescribeOssObjectDetailResponse.RequestId"));<NEW_LINE>OssObjectDetail ossObjectDetail = new OssOb...
(_ctx.stringValue("DescribeOssObjectDetailResponse.OssObjectDetail.CategoryName"));
652,230
public CreateResponse create(ComplexKeyGroupMembership groupMembership) {<NEW_LINE>// For create construct a key based on the memberID and groupID in the membership<NEW_LINE>// object<NEW_LINE>if (!groupMembership.getId().hasMemberID() || !groupMembership.getId().hasGroupID()) {<NEW_LINE>throw new RestLiServiceExceptio...
getId().getGroupID());
1,633,710
public static Charset detectCharset(Path file, int confidenceThreshold) throws IOException {<NEW_LINE>if (file == null || !Files.exists(file)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>CharsetDetector detector = new CharsetDetector();<NEW_LINE>CharsetMatch[] matches;<NEW_LINE>try (BufferedInputStream bis = new Buffer...
1 ? "have" : "has", confidenceThreshold);
1,270,662
private TargetGraphCreationResult enhanceTargetGraphIfNeeded(DepsAwareExecutor<? super ComputeResult, ?> depsAwareExecutor, TargetGraphCreationResult targetGraphCreationResult) throws IOException, InterruptedException, BuildFileParseException, VersionException {<NEW_LINE>TargetGraph projectGraph = targetGraphCreationRe...
targetGraphCreationResult, targetConfiguration, buckEventBus, cells);
742,506
public boolean checkAndStoreTimestamp(FileObject f, String relativePath) {<NEW_LINE>if (rootFoCache == null) {<NEW_LINE>rootFoCache = URLMapper.findFileObject(root);<NEW_LINE>}<NEW_LINE>final String fileId = relativePath != null ? relativePath : URLMapper.findURL(f, URLMapper.EXTERNAL).toExternalForm();<NEW_LINE>if (fi...
.getPath(), fts });
1,271,145
private void correctMiscount(StatisticsKey.Miscountable miscount, CoreTransaction.Data txn) {<NEW_LINE>if (miscount.isAttrOvertcount()) {<NEW_LINE>VertexIID.Type type = miscount<MASK><NEW_LINE>txn.dataStorage.mergeUntracked(StatisticsKey.vertexCount(type), encodeLong(-1));<NEW_LINE>} else if (miscount.isAttrUndercount(...
.getMiscountableAttribute().type();
589,141
public static DescribeSlowLogRecordsResponse unmarshall(DescribeSlowLogRecordsResponse describeSlowLogRecordsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSlowLogRecordsResponse.setRequestId(_ctx.stringValue("DescribeSlowLogRecordsResponse.RequestId"));<NEW_LINE>describeSlowLogRecordsResponse.setTotalRecordCou...
(_ctx.integerValue("DescribeSlowLogRecordsResponse.TotalRecordCount"));
405,783
private Object decodeEvent(Channel channel, SocketAddress remoteAddress, String sentence) {<NEW_LINE>DeviceSession deviceSession = null;<NEW_LINE>String event = null;<NEW_LINE>String time = null;<NEW_LINE>for (String pair : sentence.split(",")) {<NEW_LINE>String[] data = pair.split("=");<NEW_LINE>String key = data[0];<...
format("1#EV=%s,RX=1,TS=%s", event, time);
1,702,697
public SentimentResponse unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SentimentResponse sentimentResponse = new SentimentResponse();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token...
int originalDepth = context.getCurrentDepth();
1,639,983
public void init(boolean encrypting, CipherParameters params) throws IllegalArgumentException {<NEW_LINE>this.encrypting = encrypting;<NEW_LINE>if (params instanceof ParametersWithIV) {<NEW_LINE>ParametersWithIV ivParam = (ParametersWithIV) params;<NEW_LINE>byte[] iv = ivParam.getIV();<NEW_LINE>if (iv.length < IV.lengt...
true, ivParam.getParameters());
750,444
public void readSettings(WizardDescriptor settings) {<NEW_LINE>this.wizard = settings;<NEW_LINE>TemplateChooserPanelGUI panel = (TemplateChooserPanelGUI) this.getComponent();<NEW_LINE>final FileObject currentTemplate = Templates.getTemplate(settings);<NEW_LINE>// NOI18N<NEW_LINE>FileObject <MASK><NEW_LINE>String curren...
templates = FileUtil.getConfigFile("Templates");
1,076,433
public static void vertical(Kernel1D_F32 kernel, ImageBorder_F32 input, GrayF32 output, int divisor) {<NEW_LINE>final float[] dataDst = output.data;<NEW_LINE>final float[] dataKer = kernel.data;<NEW_LINE>final int offset = kernel.getOffset();<NEW_LINE>final int kernelWidth = kernel.getWidth();<NEW_LINE>final int width ...
- offset) * dataKer[k];
991,002
public void generatePostIncrement(BlockScope currentScope, CodeStream codeStream, CompoundAssignment postIncrement, boolean valueRequired) {<NEW_LINE>FieldBinding <MASK><NEW_LINE>// check if this post increment is the only usage of a private field<NEW_LINE>reportOnlyUselesslyReadPrivateField(currentScope, lastFieldBind...
lastFieldBinding = generateReadSequence(currentScope, codeStream);
1,572,372
private XML buildJREOptions(final boolean embedJava, final boolean setMemory, final Arch arch) {<NEW_LINE>log("Building JRE options.");<NEW_LINE>final XML jre = new XML("jre");<NEW_LINE>if (embedJava) {<NEW_LINE>// note that "Path" is relative to the output executable at runtime<NEW_LINE>// "java" folder is next to the...
("path").setContent("\"%EXEDIR%\\java\"");
1,367,003
final BatchCreateAttendeeResult executeBatchCreateAttendee(BatchCreateAttendeeRequest batchCreateAttendeeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchCreateAttendeeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
false), new BatchCreateAttendeeResultJsonUnmarshaller());
1,543,289
private void generateNewInstance(GeneratorContext context, SourceWriter writer) throws IOException {<NEW_LINE>String cls = context.getParameterName(1);<NEW_LINE>writer.append("if").ws().append("($rt_resuming())").ws().append("{").indent().softNewLine();<NEW_LINE>writer.append("var $r = $rt_nativeThread().pop();").softN...
append("}").softNewLine();
274,836
public MLTrain create(final MLMethod method, final MLDataSet training, final String argsStr) {<NEW_LINE>PrgPopulation pop = (PrgPopulation) method;<NEW_LINE>final CalculateScore score = new TrainingSetScore(training);<NEW_LINE>TrainEA train = new TrainEA(pop, score);<NEW_LINE>pop.getRules().addRewriteRule(new RewriteCo...
.setSpeciation(new PrgSpeciation());
910,351
public CssSimpleSelectorSequence createSimpleSelectorSequence(final CssToken start, final CssTokenIterator iter, final CssErrorHandler err) throws CssException {<NEW_LINE>CssSimpleSelectorSequence seq = new CssSimpleSelectorSequence(start.location);<NEW_LINE>CssConstruct seqItem = createSimpleSelector(start, iter, err)...
seq.components.add(seqItem);
227,839
public static List<Style> parseListImageStyle(InputStream responseBody) throws ResponseParseException {<NEW_LINE>try {<NEW_LINE>Element root = getXmlRootElement(responseBody);<NEW_LINE>List<Style> styleList <MASK><NEW_LINE>List<Element> styleElems = root.getChildren("Style");<NEW_LINE>for (Element e : styleElems) {<NEW...
= new ArrayList<Style>();
266,508
public void read(org.apache.thrift.protocol.TProtocol iprot, setSystemProperty_result struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.ty...
skip(iprot, schemeField.type);
1,604,794
public static DescribeCacheAnalysisJobsResponse unmarshall(DescribeCacheAnalysisJobsResponse describeCacheAnalysisJobsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeCacheAnalysisJobsResponse.setRequestId(_ctx.stringValue("DescribeCacheAnalysisJobsResponse.RequestId"));<NEW_LINE>describeCacheAnalysisJobsResponse...
(_ctx.stringValue("DescribeCacheAnalysisJobsResponse.Message"));
630,794
private List<TypedQuery<Long>> createQuery(SortSpec sort, Integer theOffset, Integer theMaximumResults, boolean theCount, RequestDetails theRequest, SearchRuntimeDetails theSearchRuntimeDetails) {<NEW_LINE>List<ResourcePersistentId> pids = new ArrayList<>();<NEW_LINE>if (myParams.containsKey(Constants.PARAM_CONTENT) ||...
setFoundIndexMatchesCount(pids.size());
1,788,195
public WebResourceResponse shouldInterceptRequest(WebView webView, WebResourceRequest request) {<NEW_LINE>Uri uri = request.getUrl();<NEW_LINE>if (!CID_SCHEME.equals(uri.getScheme())) {<NEW_LINE>return RESULT_DO_NOT_INTERCEPT;<NEW_LINE>}<NEW_LINE>if (attachmentResolver == null) {<NEW_LINE>return RESULT_DUMMY_RESPONSE;<...
Context context = webView.getContext();
330,784
public static WorkspaceEdit handleWillRenameFiles(RenameFilesParams params, IProgressMonitor monitor) {<NEW_LINE>List<FileRename> files = params.getFiles();<NEW_LINE>if (files == null || files.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>FileRename[] renameFiles = new FileRename[0];<NEW_LINE>FileRename[] rena...
SourcePath[] sourcePaths = getSourcePaths();
1,565,374
public void before(Object target, Object[] args) {<NEW_LINE>if (isDebug) {<NEW_LINE>logger.beforeInterceptor(target, args);<NEW_LINE>}<NEW_LINE>// Ignore monitor service<NEW_LINE>if (isMonitorService(target)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Trace trace = traceContext.currentRawTraceObject();<NEW_LINE>if (t...
META_PARENT_APPLICATION_NAME, traceContext.getApplicationName());
1,678,001
// Override RoutedTask abstract methods<NEW_LINE>public void doTask() {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled()) {<NEW_LINE>c_logger.traceEntry(this, "doTask", new Object[] {});<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>SipApplicationSession appsession = getSipApplicationSession();<NEW_LINE>ContextEstablisher contextE...
getSipApp(appsession.getApplicationName());
574,349
public List<Snapshot> describeSnapshots(String... snapshotIds) {<NEW_LINE>if (snapshotIds == null || snapshotIds.length == 0) {<NEW_LINE>LOGGER.info(String<MASK><NEW_LINE>} else {<NEW_LINE>LOGGER.info(String.format("Getting EBS snapshotIds for %d ids in region %s.", snapshotIds.length, region));<NEW_LINE>}<NEW_LINE>Ama...
.format("Getting all EBS snapshots in region %s.", region));
1,435,146
public void testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'requiredStringGroup' is set<NEW_LINE>i...
localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
1,389,266
private synchronized void writeMessage(byte[] message, OutputStream os) throws IOException {<NEW_LINE>// prepare data for encryption<NEW_LINE>int bytesCount = 6 + message.length;<NEW_LINE>if (bytesCount < 16) {<NEW_LINE>bytesCount = 16;<NEW_LINE>}<NEW_LINE>byte[] data = new byte[bytesCount];<NEW_LINE>int randomValue = ...
) this.rand.nextInt();
1,269,565
private void deleteNode(final Entity entity, final String c, final boolean closeChangeSet) {<NEW_LINE>final boolean isLocalEdit = openstreetmapUtil instanceof OpenstreetmapLocalUtil;<NEW_LINE>commitEntity(Action.DELETE, entity, openstreetmapUtil.getEntityInfo(entity.getId()), c, closeChangeSet, result -> {<NEW_LINE>if ...
.getDBPOI().getOpenstreetmapPoints();
657,303
static String endpointsToBootstrapServers(List<String> endpoints, String securityProtocol) {<NEW_LINE>final Set<String> supportedSecurityProtocols = new HashSet<<MASK><NEW_LINE>if (!supportedSecurityProtocols.contains(securityProtocol.toUpperCase(Locale.ROOT))) {<NEW_LINE>throw new ConfigException("Only PLAINTEXT, SSL,...
>(SecurityProtocol.names());
31,652
public <T> Registry registerPojo(Class<T> clazz, int id) {<NEW_LINE>if (clazz.isInterface() || Modifier.isAbstract(clazz.getModifiers()))<NEW_LINE>throw new IllegalArgumentException("Not a concrete class: " + clazz);<NEW_LINE>if (id < 1)<NEW_LINE>throw new IllegalArgumentException("pojo ids start at 1.");<NEW_LINE>if (...
clazz.getName() + ")");
1,365,625
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = new String[] { "intPrimitive", "val1", "val2" };<NEW_LINE>String statementText = "@name('s0') select distinct *, intBoxed%5 as val1, intBoxed as val2 from SupportBean_N#keepall";<NEW_LINE>env.compileDeploy<MASK><NEW_LINE>env.sendEventBean(new Suppo...
(statementText).addListener("s0");
951,781
public Dispatchable removeDispatchableForLocalTransaction(int clientId) {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "removeDispatchableForLocalTransaction", "" + clientId);<NEW_LINE>AbstractFirstLevelMapEntry firstLevelEntry = null;<NEW_LINE>if (idToFirstLevelEntryMap.containsKey(clientId)) {<NEW...
LocalFirstLevelMapEntry) firstLevelEntry).getDispatchable();