idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
988,452
private List<NameValueCountPair> listStartTimeMonthPair(Business business, EffectivePerson effectivePerson) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer(<MASK><NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<String> cq = cb.createQuery(String.class);<NEW_L...
).get(Task.class);
1,269,787
public void marshall(AwsElasticsearchDomainElasticsearchClusterConfigDetails awsElasticsearchDomainElasticsearchClusterConfigDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (awsElasticsearchDomainElasticsearchClusterConfigDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to...
awsElasticsearchDomainElasticsearchClusterConfigDetails.getDedicatedMasterType(), DEDICATEDMASTERTYPE_BINDING);
1,457,155
public PageDTO updatePageDTOWithDefaultResources(PageDTO page) {<NEW_LINE>DefaultResources defaultResourceIds = page.getDefaultResources();<NEW_LINE>if (defaultResourceIds == null || StringUtils.isEmpty(defaultResourceIds.getApplicationId()) || StringUtils.isEmpty(defaultResourceIds.getPageId())) {<NEW_LINE>if (default...
-> this.updateLayoutWithDefaultResources(layout));
598,321
public void configure(ConfigurableProvider provider) {<NEW_LINE>provider.addAlgorithm("KeyFactory.SPHINCSPLUS", PREFIX + "SPHINCSPlusKeyFactorySpi");<NEW_LINE>provider.addAlgorithm("KeyPairGenerator.SPHINCSPLUS", PREFIX + "SPHINCSPlusKeyPairGeneratorSpi");<NEW_LINE>provider.addAlgorithm("Alg.Alias.KeyFactory.SPHINCS+",...
sphincsPlus_sha_256.getId(), "SPHINCSPLUS");
1,775,406
public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasLengthAndAllElementsNotNull(sources, 1);<NEW_LINE>if (sources[0] instanceof String) {<NEW_LINE>try {<NEW_LINE>final DocumentBuilder builder = getDocumentBuilder();<...
InputSource src = new InputSource(reader);
1,311,936
public FilteredLogEvent unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>FilteredLogEvent filteredLogEvent = new FilteredLogEvent();<NEW_LINE>re...
().unmarshall(context));
1,404,430
public boolean readIfNull() {<NEW_LINE>if (ch == 'n' && bytes[offset] == 'u' && bytes[offset + 1] == 'l' && bytes[offset + 2] == 'l') {<NEW_LINE>if (offset + 3 == end) {<NEW_LINE>ch = EOI;<NEW_LINE>} else {<NEW_LINE>ch = (char) bytes[offset + 3];<NEW_LINE>}<NEW_LINE>offset += 4;<NEW_LINE>} else {<NEW_LINE>return false;...
(char) bytes[offset++];
1,449,720
public DescribeStreamResult describeStream(DescribeStreamRequest describeStreamRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeStreamRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(...
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
591,101
/*debug<NEW_LINE>@Override<NEW_LINE>public void paint( Graphics g ) {<NEW_LINE>super.paint( g );<NEW_LINE><NEW_LINE>if( debugTitleBarHeight > 0 ) {<NEW_LINE>g.setColor( Color.green );<NEW_LINE>g.drawLine( 0, debugTitleBarHeight, getWidth(), debugTitleBarHeight );<NEW_LINE>}<NEW_LINE>if( debugHitTestSpots != null ) {<NE...
g, Color.blue, debugAppIconBounds );
236,764
private static ResultCursor handleExplainWithStage(ExecutionContext executionContext, ExecutionPlan executionPlan) {<NEW_LINE>final Function<RexNode, Object> evalFunc = RexUtils.getEvalFunc(executionContext);<NEW_LINE>CalcitePlanOptimizerTrace.getOptimizerTracer().get().addSnapshot("End", executionPlan.getPlan(), Plann...
addColumn("Logical ExecutionPlan", DataTypes.StringType);
206,107
synchronized protected void initialize(ChannelFramework framework) {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled())<NEW_LINE>c_logger.traceEntry(this, "SipResolverUdpTransport: initialize() _channelInitialized:" + _channelInitialized);<NEW_LINE>if (_channelInitialized == false) {<NEW_LINE>try {<NEW_LINE>if (c_logger....
(OutboundVirtualConnection) vcf.createConnection();
1,179,108
private void extractFromStream(ZipInputStream zipStream, boolean overwrite, File outputDirectory) throws IOException {<NEW_LINE>ZipEntry entry = zipStream.getNextEntry();<NEW_LINE>String canonicalOutputPath = outputDirectory.getCanonicalPath() + File.separator;<NEW_LINE>while (entry != null) {<NEW_LINE>File file = new ...
), new FileOutputStream(file));
487,873
public static SocketAddress sockaddrFromBytes(Ruby runtime, byte[] val) throws IOException {<NEW_LINE>AddressFamily afamily = AddressFamily.valueOf(uint16(val[0<MASK><NEW_LINE>if (afamily == null || afamily == AddressFamily.__UNKNOWN_CONSTANT__) {<NEW_LINE>throw runtime.newArgumentError("can't resolve socket address of...
], val[1]));
302,830
public CdmObject copy(ResolveOptions resOpt, CdmObject host) {<NEW_LINE>if (resOpt == null) {<NEW_LINE>resOpt = new ResolveOptions(this, this.getCtx().<MASK><NEW_LINE>}<NEW_LINE>final CdmObjectReferenceBase copy;<NEW_LINE>if (!StringUtils.isNullOrEmpty(this.getNamedReference())) {<NEW_LINE>copy = this.copyRefObject(res...
getCorpus().getDefaultResolutionDirectives());
1,030,228
public static void main(String[] args) throws Exception {<NEW_LINE>final int port = args.length > 0 ? Integer.parseInt(args[0]) : 8080;<NEW_LINE>final HttpServer httpServer = new HttpServer();<NEW_LINE>final NetworkListener networkListener = new NetworkListener("http-listener", "0.0.0.0", port);<NEW_LINE>final TCPNIOTr...
.registerAddOn(new SimplifyAddOn());
159,787
private void validate(APIAttachL2NetworkToClusterMsg msg) {<NEW_LINE>L2NetworkVO l2NetworkVO = Q.New(L2NetworkVO.class).eq(L2NetworkVO_.uuid, msg.<MASK><NEW_LINE>if (!l2NetworkVO.getType().equals(VxlanNetworkPoolConstant.VXLAN_NETWORK_POOL_TYPE)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String pattern = ".*cidr::\\{.*\\}...
getL2NetworkUuid()).find();
204,293
private void writeAreaPlot(JRAreaPlot plot, String chartName) {<NEW_LINE>if (plot != null) {<NEW_LINE>String plotName = chartName + "AreaPlot";<NEW_LINE>write("JRDesignAreaPlot " + plotName + " = (JRDesignAreaPlot)" + chartName + ".getPlot();\n");<NEW_LINE>writePlot(plot, plotName);<NEW_LINE>writeExpression(plot.getCat...
getValueAxisLabelExpression(), plotName, "ValueAxisLabelExpression");
703,300
protected boolean allChecks(LogFile.LogEntry entry, Date fromDate, Date toDate, String queryLevel, boolean onlyLevel, List listOfModules, Properties nameValueMap, String anySearch) {<NEW_LINE>if (DEBUG) {<NEW_LINE>StringBuilder buf = new StringBuilder();<NEW_LINE>buf.append(dateTimeCheck(entry.getLoggedDateTime(), from...
(), queryLevel, onlyLevel));
911,396
public void doFilter(final ServletRequest request, final ServletResponse response, final FilterChain chain) throws IOException, ServletException {<NEW_LINE>// Lookup tenant information in the headers<NEW_LINE>String apiKey = null;<NEW_LINE>String apiSecret = null;<NEW_LINE>if (request instanceof HttpServletRequest) {<N...
errorMessage, chain, request, response);
632,665
private void updateDependencyVersions() {<NEW_LINE>// Remove all dangling nodes in the graph builder.<NEW_LINE>graphBuilder.removeDanglingNodes();<NEW_LINE>// Get unresolved nodes. This list is based on the sticky option.<NEW_LINE>Collection<DependencyNode> unresolvedNodes = getUnresolvedNode();<NEW_LINE>List<Dependenc...
unresolvedRequests = new ArrayList<>();
919,436
private List<OExecutionStepInternal> handleClassAsTargetWithIndexRecursive(String targetClass, Set<String> filterClusters, QueryPlanningInfo info, OCommandContext ctx, boolean profilingEnabled) {<NEW_LINE>List<OExecutionStepInternal> result = handleClassAsTargetWithIndex(targetClass, filterClusters, info, ctx, profilin...
result = new ArrayList<>();
1,350,243
public boolean openWindow(final WindowManager windowManager, final int AD_Workbench_ID, final AdWindowId adWindowId) {<NEW_LINE>//<NEW_LINE>// Show hidden window if any<NEW_LINE>AWindow frame = (AWindow) Env.showWindow(adWindowId);<NEW_LINE>if (frame != null) {<NEW_LINE>addFrame(windowManager, frame);<NEW_LINE>return t...
OK = frame.initWorkbench(AD_Workbench_ID);
722,285
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "create window MyWindowOne#firstunique(theString)#firstlength(3) retain-union as SupportBean;\n" + "insert into MyWindowOne select * from SupportBean;\n" + "on SupportBean_S0 delete from MyWindowOne where theString = p00;\n" + "@name('s0') select irstre...
[] { "E1", 3 });
792,350
public void addCompletions(@NotNull CompletionParameters parameters, @NotNull ProcessingContext context, @NotNull CompletionResultSet resultSet) {<NEW_LINE>PsiElement psiElement = parameters<MASK><NEW_LINE>if (psiElement instanceof LombokConfigProperty) {<NEW_LINE>final String configPropertyKey = StringUtil.notNullize(...
.getPosition().getParent();
57,446
final BatchUpdateScheduleResult executeBatchUpdateSchedule(BatchUpdateScheduleRequest batchUpdateScheduleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchUpdateScheduleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
(super.beforeMarshalling(batchUpdateScheduleRequest));
1,314,333
final DeletePortalResult executeDeletePortal(DeletePortalRequest deletePortalRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deletePortalRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
835,766
public void onEvent(Event event) {<NEW_LINE>if (Events.ON_CHANGE.equalsIgnoreCase(event.getName()) || Events.ON_OK.equalsIgnoreCase(event.getName())) {<NEW_LINE>Object newValue = getComponent().getValue();<NEW_LINE>if (oldValue == null && newValue == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (displayType == Displ...
getColumnName(), oldValue, newValue);
1,269,644
private void rate(Rating rating) {<NEW_LINE>Bundle args = requireArguments();<NEW_LINE>String itemType = args.getString(InitBundle.ITEM_TYPE);<NEW_LINE>if (itemType == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long itemId = args.getLong(InitBundle.ITEM_ID);<NEW_LINE>BaseRateItemTask task = null;<NEW_LINE>switch(item...
getContext(), rating, itemId);
129,079
final DeleteParallelDataResult executeDeleteParallelData(DeleteParallelDataRequest deleteParallelDataRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteParallelDataRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
invoke(request, responseHandler, executionContext);
118,685
// ### Private methods<NEW_LINE>private void initialize() throws Exception {<NEW_LINE>if (ejbStatsProvider == null) {<NEW_LINE>synchronized (EjbSecurityStatsProvider.class) {<NEW_LINE>if (ejbStatsProvider == null) {<NEW_LINE>ejbStatsProvider = new EjbSecurityStatsProvider();<NEW_LINE>StatsProviderManager.register("secu...
.getApplication().getRealm();
1,538,569
public void deleteRepositoryAttributes(Long repositoryId, List<String> attributesKeys, boolean deleteAll, boolean canNotOperateOnProtected, RepositoryEnums.RepositoryTypeEnum repositoryType) throws ModelDBException {<NEW_LINE>try (var session = modelDBHibernateUtil.getSessionFactory().openSession()) {<NEW_LINE>session....
), true, canNotOperateOnProtected, repositoryType);
1,023,805
static MessageData constructGetHeadersResponse(final Blockchain blockchain, final MessageData message, final int requestLimit) {<NEW_LINE>final GetBlockHeadersMessage getHeaders = GetBlockHeadersMessage.readFrom(message);<NEW_LINE>final Optional<Hash> hash = getHeaders.hash();<NEW_LINE>final int skip = getHeaders.skip(...
requestLimit, getHeaders.maxHeaders());
1,207,130
public void onValueChange(@NonNull Slider slider, float val, boolean fromUser) {<NEW_LINE>int progress = (int) val;<NEW_LINE>int value = progress + min;<NEW_LINE>switch(type) {<NEW_LINE>case DEFAULT_SPEED:<NEW_LINE>case DEFAULT_SPEED_ONLY:<NEW_LINE>if (value > maxValue[0]) {<NEW_LINE>value = maxValue[0];<NEW_LINE>slide...
(value - min, 0));
859,703
public static VelocityContext prepareContext(long userId, Event event, Position position) {<NEW_LINE>User user = Context.getPermissionsManager().getUser(userId);<NEW_LINE>Device device = Context.getIdentityManager().getById(event.getDeviceId());<NEW_LINE>VelocityContext <MASK><NEW_LINE>velocityContext.put("device", dev...
velocityContext = TextTemplateFormatter.prepareContext(user);
1,183,400
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>View root = inflater.inflate(R.<MASK><NEW_LINE>((TextView) root.findViewById(R.id.version)).setText(BuildConfig.VERSION_NAME);<NEW_LINE>((TextView) root.findViewById(R.id.data_version)).setTe...
layout.about, container, false);
1,357,463
public static DescribeSqlServerRestoresResponse unmarshall(DescribeSqlServerRestoresResponse describeSqlServerRestoresResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSqlServerRestoresResponse.setRequestId(_ctx.stringValue("DescribeSqlServerRestoresResponse.RequestId"));<NEW_LINE>describeSqlServerRestoresResponse...
("DescribeSqlServerRestoresResponse.SqlServerRestores[" + i + "].BytesTotal"));
427,327
private static void saveColorAndOrder(List allNodeFigures, XMLBuilder xml, NodePart nodePart) throws IOException {<NEW_LINE>if (nodePart != null) {<NEW_LINE>xml.addAttribute(ATTR_ORDER, allNodeFigures.indexOf(nodePart.getFigure()));<NEW_LINE>if (nodePart.getCustomTransparency()) {<NEW_LINE>xml.addAttribute(ATTR_TRANSPA...
(fgColor.getRGB()));
331,563
public void marshall(UpdatePipelineRequest updatePipelineRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updatePipelineRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(updatePipelineRequest...
updatePipelineRequest.getName(), NAME_BINDING);
1,355,490
final CreateTypedLinkFacetResult executeCreateTypedLinkFacet(CreateTypedLinkFacetRequest createTypedLinkFacetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createTypedLinkFacetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
(super.beforeMarshalling(createTypedLinkFacetRequest));
1,265,900
// F49213<NEW_LINE>@Override<NEW_LINE>public void formatTo(IncidentStream is) {<NEW_LINE>// -----------------------------------------------------------------------<NEW_LINE>// Indicate the start of the dump, and include the identity<NEW_LINE>// of InjectionBinding, so this can easily be matched to a trace.<NEW_LINE>// ...
"Injection Targets : " + ivInjectionTargets.size());
1,160,082
private void initialize(Snapshot snapshot) {<NEW_LINE>// TODO: if some property cannot be loaded for current snapshot version, FAIL initializing the snapshot!<NEW_LINE>Storage storage = snapshot.getStorage();<NEW_LINE>String version = getProperty(storage, SNAPSHOT_VERSION);<NEW_LINE>chartCache = Integer.parseInt(getPro...
(getProperty(storage, PROP_NUMBER_OF_PROCESSORS));
1,053,472
public Boolean delete(Integer id, String operator) {<NEW_LINE>DataNodeEntity entity = dataNodeMapper.selectById(id);<NEW_LINE>if (entity == null || entity.getIsDeleted() > InlongConstants.UN_DELETED) {<NEW_LINE>LOGGER.error("data node not found or was already deleted for id={}", id);<NEW_LINE>return false;<NEW_LINE>}<N...
), entity.getVersion());
476,543
ActionResult<Wo> execute(EffectivePerson effectivePerson) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> <MASK><NEW_LINE>Business business = new Business(emc);<NEW_LINE>Wo wo = new Wo();<NEW_LINE>wo.setValue(true);<NEW_LINE>re...
result = new ActionResult<>();
1,756,385
private Jwt createJwt(String token, JWT parsedJwt) {<NEW_LINE>try {<NEW_LINE>// Verify the signature<NEW_LINE>JWTClaimsSet jwtClaimsSet = this.jwtProcessor.process(parsedJwt, null);<NEW_LINE>Map<String, Object> headers = new LinkedHashMap<>(parsedJwt.getHeader().toJSONObject());<NEW_LINE>Map<String, Object> claims = th...
convert(jwtClaimsSet.getClaims());
1,605,108
private String[] deduplicate(String[] names, String[] paths) {<NEW_LINE>Map<String, Integer> counts = new HashMap<>();<NEW_LINE>// initialize map with zeroes<NEW_LINE>int n = names.length;<NEW_LINE>for (int i = 0; i < n; i++) counts.put(names[i], 0);<NEW_LINE>// generate counts<NEW_LINE>for (int i = 0; i < n; i++) coun...
= new String[names.length];
1,587,344
public static void drawChessboard(Graphics2D g2, WorldToCameraToPixel fiducialToPixel, int numRows, int numCols, double squareWidth) {<NEW_LINE>Point3D_F64 fidPt = new Point3D_F64();<NEW_LINE>Point2D_F64 pixel0 = new Point2D_F64();<NEW_LINE>Point2D_F64 pixel1 = new Point2D_F64();<NEW_LINE>Point2D_F64 pixel2 = new Point...
0, 0, 0, alpha);
771,397
public static void horizontal9(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 i...
* output.stride + offsetX / skip;
491,858
public boolean promoteApiLifecycle(String apiName, String lifeCycleName) throws InterruptedException {<NEW_LINE>log.info(apiName);<NEW_LINE>Thread.sleep(5000);<NEW_LINE>String firstElementXpath = "/html/body/table/tbody/tr[2]/td[3]/table/tbody/tr[2]/td/div/div/" + "form[4]/table/tbody/tr/td/a";<NEW_LINE>String apiNameO...
log.info("Correct is -------> " + apiName);
439,663
public void sign(PrivateKey key, String algorithm, String provider) throws CRLException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException {<NEW_LINE>try {<NEW_LINE>if (readOnly)<NEW_LINE>throw new CRLException("cannot over-write existing CRL");<NEW_LINE>Signature sigEngine = nu...
sigEngine = Signature.getInstance(algorithm);
971,991
private void logDocOutbound(final I_C_Print_Job_Line line, @NonNull final UserId userToPrintId) {<NEW_LINE>final Set<String> printerNames = new HashSet<>();<NEW_LINE>for (final I_C_Print_Job_Detail detail : Services.get(IPrintingDAO.class).retrievePrintJobDetails(line)) {<NEW_LINE>final I_AD_PrinterRouting routing = lo...
I_AD_Archive archive = queueItem.getAD_Archive();
1,708,199
private MForecastLine importForecast(X_I_Forecast ifl) {<NEW_LINE>MForecastLine fl = new MForecastLine(getCtx(), ifl.getM_ForecastLine_ID(), get_TrxName());<NEW_LINE>MForecast f = <MASK><NEW_LINE>if (fl == null || fl.get_ID() <= 0) {<NEW_LINE>fl = new MForecastLine(Env.getCtx(), 0, get_TrxName());<NEW_LINE>fl.setAD_Org...
(MForecast) ifl.getM_Forecast();
457,852
public void onActivityCreated(Bundle savedInstanceState) {<NEW_LINE>super.onActivityCreated(savedInstanceState);<NEW_LINE>shareButton.setOnClickListener(new View.OnClickListener() {<NEW_LINE><NEW_LINE>public void onClick(View v) {<NEW_LINE>openInvite();<NEW_LINE>}<NEW_LINE>});<NEW_LINE>setListAdapter(mAdapter);<NEW_LIN...
.setOnScrollListener(new EndlessScrollListener());
13,255
// Returns tne maximum flow from s to t in the given graph<NEW_LINE>int fordFulkerson(int[][] graph, int s, int t) {<NEW_LINE>int u, v;<NEW_LINE>// Create a residual graph and fill the residual graph<NEW_LINE>// with given capacities in the original graph as<NEW_LINE>// residual capacities in residual graph<NEW_LINE>//...
[u][v] -= path_flow;
346,043
public Set<Class<? extends Operation>> deserialise(final String jsonString) throws SerialisationException {<NEW_LINE>final byte[] bytes = encodeString(jsonString);<NEW_LINE>final Set<?> operationClassNamesSet = JSONSerialiser.deserialise(bytes, new TypeReference<Set>() {<NEW_LINE>});<NEW_LINE>final Set<Class<? extends ...
operationClasses = new HashSet<>();
944,963
private void updateShipmentOrderRequestPO(@NonNull final DeliveryOrder deliveryOrder) {<NEW_LINE>for (// only a single delivery position should exist<NEW_LINE>// only a single delivery position should exist<NEW_LINE>final DeliveryPosition deliveryPosition : deliveryOrder.getDeliveryPositions()) {<NEW_LINE>final Immutab...
String awb = deliveryDetail.getAwb();
976,923
public void onEnable() {<NEW_LINE>WURST.getHax().autoMineHack.setEnabled(false);<NEW_LINE>WURST.getHax().excavatorHack.setEnabled(false);<NEW_LINE>WURST.getHax().fightBotHack.setEnabled(false);<NEW_LINE>WURST.getHax().followHack.setEnabled(false);<NEW_LINE>WURST.getHax().instantBunkerHack.setEnabled(false);<NEW_LINE>WU...
).nukerLegitHack.setEnabled(false);
225,927
protected Pair<IUnaryExpression, String> transformToSingleQueryFilter(Map<PartialPath, TSDataType> pathTSDataTypeHashMap) throws LogicalOperatorException, MetadataException {<NEW_LINE>TSDataType type = pathTSDataTypeHashMap.get(singlePath);<NEW_LINE>if (type == null) {<NEW_LINE>throw new MetadataException("given series...
throw new LogicalOperatorException(value, "Please use single quotation marks");
1,723,090
public void putItemPair(long id1, Long2DoubleSortedMap itemVec1, long id2, Long2DoubleSortedMap itemVec2) {<NEW_LINE>if (workMatrix == null) {<NEW_LINE>throw new IllegalStateException("Model is already built");<NEW_LINE>}<NEW_LINE>// to profit from matrix symmetry, always store by the lesser id<NEW_LINE>if (id1 < id2) ...
row = workMatrix.get(id1);
570,922
public DataPoint next() {<NEW_LINE>scratch.zeroOut();<NEW_LINE>int i = pos.getAndIncrement();<NEW_LINE>// for (int j = 0; j < cur_col_vals.length; j++)//slow option, not needed b/c we maintain sparse set mapping<NEW_LINE>for (int j : nonZeroTable.getOrDefault(i, empty_set)) if (cur_col_vals[j] != null && cur_col_vals[j...
get(j).next();
1,215,415
private void createThemeClass(File dir, String themeName, String baseTheme) throws IOException {<NEW_LINE>// search for "resources" parent directory that has "java" directory at same level<NEW_LINE>File classDir = dir;<NEW_LINE>String subPath = null;<NEW_LINE>String pkg = null;<NEW_LINE>for (File d = dir; d != null; d ...
).replace("${themeBaseClass}", themeBaseClass);
856,691
public void marshall(Budget budget, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (budget == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(budget.getBudgetName(), BUDGETNAME_BINDING);<NEW_LINE>protocolMars...
budget.getBudgetType(), BUDGETTYPE_BINDING);
1,026,967
private int leaderReplay(final long nowNs) {<NEW_LINE>int workCount = 0;<NEW_LINE>if (null == logReplay) {<NEW_LINE>if (logPosition < appendPosition) {<NEW_LINE>logReplay = consensusModuleAgent.newLogReplay(logPosition, appendPosition);<NEW_LINE>} else {<NEW_LINE>state(LEADER_INIT, nowNs);<NEW_LINE>}<NEW_LINE>workCount...
ClusterMember.resetLogPositions(clusterMembers, NULL_POSITION);
1,723,901
private void clearAllSegmentsForRegionsMeasures(List<RolapStar> starList, List<SegmentHeader> headers) {<NEW_LINE>for (final SegmentHeader header : headers) {<NEW_LINE>for (RolapStar star : starList) {<NEW_LINE>cacheMgr.indexRegistry.getIndex(star).remove(header);<NEW_LINE>}<NEW_LINE>// Remove the segment from external...
"discard segment - it cannot be constrained and maintain consistency:\n" + header.getDescription());
895,230
final CreateCustomVerificationEmailTemplateResult executeCreateCustomVerificationEmailTemplate(CreateCustomVerificationEmailTemplateRequest createCustomVerificationEmailTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createCustomVerificationEmailTemplateRequest);<NEW_LINE>AWSReque...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
15,144
public Command<MetaServerConsoleService.PreviousPrimaryDcMessage> buildRollBackCommand(final String cluster, final String shard, final String prevPrimaryDc) {<NEW_LINE>return new AbstractCommand<MetaServerConsoleService.PreviousPrimaryDcMessage>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String getName() {<NEW_LI...
future().setFailure(e);
60,054
public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException, ServletException {<NEW_LINE>log.debug("login success");<NEW_LINE>Map<String, Object> rsp = new HashMap<>();<NEW_LINE>User principal = (User) authentication.getPrincipal();<NEW...
getId().toString());
563,034
public static void main(String[] args) {<NEW_LINE>Options options = PipelineOptionsFactory.fromArgs(args).withValidation().as(Options.class);<NEW_LINE>// Split the Cassandra Hosts value provider into a list value provider.<NEW_LINE>ValueProvider.NestedValueProvider<List<String>, String> hosts = ValueProvider.NestedValu...
), options.getCassandraKeyspace());
289,835
public void removeS3Tag(Long id, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'id' is set<NEW_LINE>if (id == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'id' when calling removeS3Tag");<NEW_LINE>}<NEW_LINE...
, apiClient.parameterToString(xSdsAuthToken));
409,539
private void addVarargsAdd(SourceBuilder code) {<NEW_LINE>code.addLine("").addLine("/**").addLine(" * Adds each element of {@code elements} to the list to be returned from").addLine(" * %s.", datatype.getType().javadocNoArgMethodLink(property.getGetterName())).addLine(" *").addLine(" * @return this {@code %s} object", ...
), arrayUtils.get());
1,082,084
final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
(super.beforeMarshalling(tagResourceRequest));
221,892
final GetInstancePortStatesResult executeGetInstancePortStates(GetInstancePortStatesRequest getInstancePortStatesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getInstancePortStatesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,225,406
public Object visit(Path.As path, Object parent) {<NEW_LINE>if (parent instanceof Path.Field) {<NEW_LINE>return path.toBuilder().setField((Path.Field) parent).build();<NEW_LINE>} else if (parent instanceof Path.ArrayIndex) {<NEW_LINE>return path.toBuilder().setArrayIndex((Path.ArrayIndex) parent).build();<NEW_LINE>} el...
MapIndex) parent).build();
1,086,172
final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,407,213
public io.kubernetes.client.proto.V1Certificates.CertificateSigningRequestCondition buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1Certificates.CertificateSigningRequestCondition result = new io.kubernetes.client.<MASK><NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((fr...
proto.V1Certificates.CertificateSigningRequestCondition(this);
276,222
public Builder mergeCapabilityExchange(com.google.gwt.dev.shell.remoteui.RemoteMessageProto.Message.Response.DevModeResponse.CapabilityExchange value) {<NEW_LINE>if (capabilityExchangeBuilder_ == null) {<NEW_LINE>if (((bitField0_ & 0x00000002) == 0x00000002) && capabilityExchange_ != com.google.gwt.dev.shell.remoteui.R...
mergeFrom(value).buildPartial();
1,452,672
public List<DeptEmployee> searchByDepartmentQuery(String searchKey) {<NEW_LINE>CriteriaQuery<DeptEmployee> criteriaQuery = createCriteriaQuery(DeptEmployee.class);<NEW_LINE>Root<DeptEmployee> emp = criteriaQuery.from(DeptEmployee.class);<NEW_LINE>Subquery<Department> subquery = criteriaQuery.subquery(Department.class);...
"%").toString()));
302,385
public void afterBizStartup(Biz biz) {<NEW_LINE>if (!SofaRuntimeProperties.isDynamicJvmServiceCacheEnable()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Currently, there is no way to get SOFA Runtime Manager from biz<NEW_LINE>// The overhead is acceptable as this only happens after biz's successful installation<NEW_LINE>...
biz.getBizVersion(), serviceComponent);
1,060,829
public void marshall(QueryExecutionStatistics queryExecutionStatistics, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (queryExecutionStatistics == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(queryExecuti...
e.getMessage(), e);
867,278
public IRubyObject run(ThreadContext context, ChannelFD channelFD) throws InterruptedException {<NEW_LINE>Ruby runtime = context.runtime;<NEW_LINE>ByteBuffer wrap = ByteBuffer.wrap(strByteList.unsafeBytes(), <MASK><NEW_LINE>int read = 0;<NEW_LINE>try {<NEW_LINE>if (fd.chFile != null) {<NEW_LINE>read = fd.chFile.read(wr...
strByteList.begin(), count);
401,203
private MethodInvocation injectLogSite(MethodInvocation node) {<NEW_LINE>// Inject withInjectedLogSite(class, method, line, file) into method expression.<NEW_LINE>ExecutableElement injectedMethod = ElementUtil.findMethod(loggingApiClass, WITH_INJECTED_LOG_SITE_METHOD, "java.lang.String", "java.lang.String", "int", "jav...
addArgument(arg.copy());
713,700
protected List<TestSuite> createDerivedSuites(FeatureSpecificTestSuiteBuilder<?, ? extends OneSizeTestContainerGenerator<Collection<E>, E>> parentBuilder) {<NEW_LINE>List<TestSuite> derivedSuites = new ArrayList<><MASK><NEW_LINE>if (!parentBuilder.getFeatures().contains(SUBSET_VIEW)) {<NEW_LINE>// Other combinations ar...
(super.createDerivedSuites(parentBuilder));
601,952
public boolean prepFail(TStore<T> zs, ZooReaderWriter zk, ServiceLockPath zLockManagerPath, String txidStr) {<NEW_LINE>if (!checkGlobalLock(zk, zLockManagerPath)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>long txid;<NEW_LINE>try {<NEW_LINE>txid = Long.parseLong(txidStr, 16);<NEW_LINE>} catch (NumberFormatException n...
printf("Transaction already completed: %016x (%s)%n", txid, ts);
1,529,303
final DeleteAppsListResult executeDeleteAppsList(DeleteAppsListRequest deleteAppsListRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAppsListRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteAppsList");
84,984
static String printTemplate(Template template) {<NEW_LINE>int[] columnWidths = new int[] { TABLE_WIDTH };<NEW_LINE>List<String> templateProperty = new ArrayList<String>();<NEW_LINE>templateProperty.add(template.getUID());<NEW_LINE>String titleRow = Utils.getRow(columnWidths, templateProperty);<NEW_LINE>List<String> tem...
template).getConditions()));
1,303,577
private JPanel createGraphTitlePane() {<NEW_LINE>JPanel titleNamePane = new JPanel(new BorderLayout());<NEW_LINE>JFactory.small(syncWithName);<NEW_LINE>titleNamePane.add(graphTitle, BorderLayout.CENTER);<NEW_LINE>titleNamePane.add(syncWithName, BorderLayout.EAST);<NEW_LINE>JPanel titleStylePane = new JPanel();<NEW_LINE...
JMeterUtils.getResString("aggregate_graph_title_group")));
868,128
private List<Path> listCachedFiles() throws IOException {<NEW_LINE>List<Path> auxItems = new ArrayList<>();<NEW_LINE>// cached files for a given datafiles are stored on the filesystem<NEW_LINE>// as <filesystemname>.*; for example, <filename>.thumb64 or<NEW_LINE>// <filename>.RData.<NEW_LINE>String baseName;<NEW_LINE>P...
.startsWith(baseName + "."));
36,957
private static boolean isOverridden(Method method, Map<String, Set<Method>> methodsByName) {<NEW_LINE>Set<Method> collectedMethods = methodsByName.get(method.getName());<NEW_LINE>if (collectedMethods == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Class<?> methodClass = method.getDeclaringClass();<NEW_LINE>Class<...
] methodParams = method.getParameterTypes();
1,071,710
public void testUnexplode() throws IOException {<NEW_LINE>File file = File.createTempFile("tempFile", null);<NEW_LINE>File tmpDir = file.getParentFile();<NEW_LINE>unexplodeWithException(file, "shouldn't be able to unexplode file that is not a directory");<NEW_LINE>assertTrue("Should be able to delete tmp file", file.de...
, !dir.isDirectory());
344,204
public DetectPiiEntitiesResult detectPiiEntities(DetectPiiEntitiesRequest detectPiiEntitiesRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(detectPiiEntitiesRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,633,693
private Mono<Response<Flux<ByteBuffer>>> resyncKeysWithResponseAsync(String resourceGroupName, String workspaceName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
476,602
private void applyTermOptions() {<NEW_LINE>inApplyingModel = true;<NEW_LINE>try {<NEW_LINE>fontSizeSpinner.setValue(termOptions.getFontSize());<NEW_LINE>fontText.setText(// NOI18N<NEW_LINE>termOptions.getFont().getFamily() + " " + termOptions.getFont().getSize());<NEW_LINE>foregroundComboBox.setSelectedColor(termOption...
setSelectedColor(termOptions.getSelectionBackground());
1,486,296
public static void addFacet(FaceletContext ctx, UIComponent parent, UIComponent c, String facetName) {<NEW_LINE>// facets now can have multiple children and the direct<NEW_LINE>// child of a facet is always an UIPanel (since 2.0)<NEW_LINE>UIComponent facet = parent.<MASK><NEW_LINE>if (facet == null) {<NEW_LINE>// Just ...
getFacets().get(facetName);
854,163
public void marshall(CreateDistributionRequest createDistributionRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createDistributionRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createDis...
createDistributionRequest.getCacheBehaviorSettings(), CACHEBEHAVIORSETTINGS_BINDING);
1,709,679
public void start(Stage stage) {<NEW_LINE>stage.setTitle("ColorPicker");<NEW_LINE>EventHandler<ActionEvent> actionEventHandler = t -> {<NEW_LINE>ColorPicker cp = (ColorPicker) t.getTarget();<NEW_LINE>Color c = cp.getValue();<NEW_LINE>System.out.println("New Color's RGB = " + c.getRed() + " " + c.getGreen() + " " + c.ge...
final ColorPicker noLabelColorPicker = new ColorPicker();
114,085
public DataTypeComponent insertAtOffset(int offset, DataType dataType, int length, String name, String comment) throws IllegalArgumentException {<NEW_LINE>if (offset < 0) {<NEW_LINE>throw new IllegalArgumentException("Offset cannot be negative.");<NEW_LINE>}<NEW_LINE>if (dataType instanceof BitFieldDataType) {<NEW_LINE...
1 + additionalShift, 1 + additionalShift);
719,427
public EC2TagSet unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>EC2TagSet eC2TagSet = new EC2TagSet();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NE...
int originalDepth = context.getCurrentDepth();
1,167,582
public PyObject __call__(PyObject[] args, String[] kwds) {<NEW_LINE>if (args.length == 0) {<NEW_LINE>throw Py.TypeError("sorted() takes at least 1 argument (0 given)");<NEW_LINE>} else if (args.length > 4) {<NEW_LINE>throw Py.TypeError(String.format("sorted() takes at most 4 arguments (%s given)", args.length));<NEW_LI...
getPyObject(1, Py.None);
83,546
public void run() {<NEW_LINE>fInvocationOffset = fContentAssistSubjectControlAdapter.getSelectedRange().x;<NEW_LINE>fFilterOffset = fInvocationOffset;<NEW_LINE>fFilteredProposals = computeProposals(fInvocationOffset, false);<NEW_LINE>int count = (fFilteredProposals == null ? 0 : fFilteredProposals.length);<NEW_LINE>if ...
char) 0, 0, fInvocationOffset);
1,395,016
public void marshall(VolumeConfiguration volumeConfiguration, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (volumeConfiguration == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(volumeConfiguration.getVolu...
e.getMessage(), e);
700,282
protected Collection<IProblem> processCommentNode(String filePath, String source, int initialOffset, IParseNode commentNode, String commentEnding) {<NEW_LINE>if (commentNode == null) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>if (StringUtil.isEmpty(text)) {<NEW_LINE>text = getText(so...
String text = commentNode.getText();