idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,404,382
public SourceReader<T, MySqlSplit> createReader(SourceReaderContext readerContext) throws Exception {<NEW_LINE>final Method metricGroupMethod = readerContext.getClass().getMethod("metricGroup");<NEW_LINE>metricGroupMethod.setAccessible(true);<NEW_LINE>final MetricGroup metricGroup = (MetricGroup) metricGroupMethod.invo...
groupId, streamId, nodeId, "numRecordsInPerSecond");
1,057,126
private void buildUI() {<NEW_LINE>JPanel panel = new JPanel(new BorderLayout());<NEW_LINE>panel.add(buildToolbar(), BorderLayout.PAGE_START);<NEW_LINE>panel.add(buildRunnerBar(), BorderLayout.CENTER);<NEW_LINE>add(panel, BorderLayout.NORTH);<NEW_LINE>JComponent securityLog = buildSecurityLog();<NEW_LINE>inspectorPanel ...
JInspectorPanelFactory.build(buildContent());
1,041,944
public void create(Properties ctx, TransformerHandler document) throws SAXException {<NEW_LINE>int workflowId = Env.getContextAsInt(ctx, X_AD_Package_Exp_Detail.COLUMNNAME_AD_Workflow_ID);<NEW_LINE>PackOut packOut = (PackOut) ctx.get("PackOutProcess");<NEW_LINE>if (packOut == null) {<NEW_LINE>packOut = new PackOut();<N...
, Env.getAD_Client_ID(ctx));
472,874
private void drawIcon(Graphics graphics) {<NEW_LINE>if (!isIconVisible()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>graphics.pushState();<NEW_LINE>graphics.setLineWidth(1);<NEW_LINE>graphics.setForegroundColor(isEnabled() ? ColorConstants.black : ColorConstants.gray);<NEW_LINE>graphics.setBackgroundColor(isEnabled() ? Col...
12.5f, pt.y + 0.5f);
998,998
public final VariableDeclaratorContext variableDeclarator() throws RecognitionException {<NEW_LINE>VariableDeclaratorContext _localctx = new VariableDeclaratorContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 60, RULE_variableDeclarator);<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>s...
_errHandler.recover(this, re);
1,221,034
public static void transform1(WaveletDescription<WlCoef_I32> desc, GrayS32 input, GrayS32 output, GrayS32 storage) {<NEW_LINE>UtilWavelet.checkShape(input, output);<NEW_LINE>WlCoef_I32 coef = desc.getForward();<NEW_LINE>if (output.width < coef.scaling.length || output.width < coef.wavelet.length)<NEW_LINE>throw new Ill...
), coef, input, storage);
1,682,304
public <PSI> Iterator<Match> findAll(PSI target) throws FindFailed {<NEW_LINE>lastMatches = null;<NEW_LINE>RepeatableFindAll rf = new RepeatableFindAll(target, null);<NEW_LINE>Image img = rf._image;<NEW_LINE>String targetStr = img.getName();<NEW_LINE>Boolean response = true;<NEW_LINE>if (!img.isValid() && img.hasIOExce...
"ImageMissing: " + target.toString());
58,193
public static void main(String[] args) {<NEW_LINE>Map<Integer, Instance> instanceMap = new HashMap<>();<NEW_LINE>var messageManager = new BullyMessageManager(instanceMap);<NEW_LINE>var instance1 = new BullyInstance(messageManager, 1, 1);<NEW_LINE>var instance2 = new BullyInstance(messageManager, 2, 1);<NEW_LINE>var ins...
instanceMap.put(5, instance5);
949,145
private ClientMessage invokeGetInternal(List<Member> excludedAddresses, HazelcastException lastException, Member target) {<NEW_LINE>if (target == null) {<NEW_LINE>throw lastException != null ? lastException : new NoDataMemberInClusterException("Cannot invoke operations on a CRDT because the cluster does not contain any...
request, target.getUuid());
1,425,004
final GetTagsResult executeGetTags(GetTagsRequest getTagsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getTagsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Reques...
endClientExecution(awsRequestMetrics, request, response);
1,412,775
public void paintButtonContent(Graphics2D gIn) {<NEW_LINE>Graphics2D g = (Graphics2D) gIn.create();<NEW_LINE>int size = getBounds().height;<NEW_LINE>int thickness = (Math.round(size <MASK><NEW_LINE>int x = getBounds().x;<NEW_LINE>int y = getBounds().y;<NEW_LINE>g.rotate(Math.PI / 4, x + size / 2, y + size / 2);<NEW_LIN...
/ 8.0f) / 2) * 2;
1,640,431
public ApiResponse<String> downloadDownloadMedia_0WithHttpInfo(String mediaid, Boolean stream) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'mediaid' is set<NEW_LINE>if (mediaid == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'm...
HashMap<String, Object>();
328,474
private static void flattenJoinNode(OptExpression node, LinkedHashSet<OptExpression> atoms, List<ScalarOperator> predicates, Map<ColumnRefOperator, ScalarOperator> expressionMap) {<NEW_LINE>Operator operator = node.getOp();<NEW_LINE>if (!(operator instanceof LogicalJoinOperator)) {<NEW_LINE>atoms.add(node);<NEW_LINE>re...
), atoms, predicates, expressionMap);
1,040,920
static Map<String, List<ContextMapping.InternalQueryContext>> parseContextBytes(BytesReference contextBytes, XContentParserConfiguration parserConfig, ContextMappings contextMappings) throws IOException {<NEW_LINE>try (XContentParser contextParser = XContentHelper.createParser(parserConfig, contextBytes, CONTEXT_BYTES_...
, mapping.parseQueryContext(contextParser));
1,514,276
final ListComponentsResult executeListComponents(ListComponentsRequest listComponentsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listComponentsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListComponents");
1,024,139
public void refresh(TableCell cell, long timestamp) {<NEW_LINE>DownloadManager dm = (DownloadManager) cell.getDataSource();<NEW_LINE>long value = dm == null ? -1 : dm.getStats().getAvailWentBadTime();<NEW_LINE>int seeds = 0;<NEW_LINE>if (value == 0) {<NEW_LINE>// zero means no recorded last bad availability time (bad=t...
PEPeerManager pm = dm.getPeerManager();
1,405,919
final DetectProtectiveEquipmentResult executeDetectProtectiveEquipment(DetectProtectiveEquipmentRequest detectProtectiveEquipmentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(detectProtectiveEquipmentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
643,387
private void blockWork(Block block) {<NEW_LINE>if (block.getNumber() >= blockchain.getBestBlock().getNumber() || blockchain.getBlockByHash(block.getHash()) == null) {<NEW_LINE>if (block.getNumber() > 0 && !isValid(block.getHeader())) {<NEW_LINE>throw new RuntimeException();<NEW_LINE>}<NEW_LINE>long start = System.curre...
System.currentTimeMillis() - start);
3,775
public static BigDecimal discount(BigDecimal p_Amount, int p_C_Currency_ID, int p_C_PaymentTerm_ID, Timestamp p_DocDate, Timestamp p_PayDate) throws SQLException {<NEW_LINE>// No Data - No Discount<NEW_LINE>if (p_Amount == null || p_C_PaymentTerm_ID == 0 || p_DocDate == null)<NEW_LINE>return null;<NEW_LINE>if (p_Amount...
addDays(p_DocDate, DiscountDays2 + GraceDays);
1,854,031
private void recreateState(Long lastData, TimePeriod.Duration recreateForDuration, Table recreateFromTable, boolean isBeforeRoot) {<NEW_LINE>if (lastData != null) {<NEW_LINE>endOFLatestEventTimestamp = IncrementalTimeConverterUtil.getNextEmitTime(lastData, recreateForDuration, timeZone);<NEW_LINE>}<NEW_LINE>OnDemandQue...
complexEventChunk = new ComplexEventChunk<>();
1,748,787
public boolean pay(Ability ability, Game game, Ability source, UUID controllerId, boolean noMana, Cost costToPay) {<NEW_LINE>Player player = game.getPlayer(controllerId);<NEW_LINE>if (player == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>paid = false;<NEW_LINE>if (player.getHand().count(filter, game) > 0 && play...
new CardsImpl(card), game);
1,396,715
public final FieldlistContext fieldlist() throws RecognitionException {<NEW_LINE>FieldlistContext _localctx = new FieldlistContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 62, RULE_fieldlist);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>int _alt;<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(...
_errHandler.recover(this, re);
691,058
public Program createProgramFromSourceFilesWithInclude(AssetManager assetManager, String include, List<String> resources) {<NEW_LINE>StringBuilder str = new StringBuilder();<NEW_LINE>str.append(include);<NEW_LINE>for (String res : resources) {<NEW_LINE>AssetInfo info = assetManager.locateAsset(new AssetKey<String>(res)...
(line).append('\n');
1,395,647
public static void toVersion(Class<?> outerClass, int versionNumber, Class<?>... extraClasses) {<NEW_LINE>assert versionNumber >= 0;<NEW_LINE>if (versionNumber == getCurrentVersion(outerClass)) {<NEW_LINE>// Nothing to do!<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<String, File> files = findClassesWithVersion(outerClass,...
]> map = buildRedefinitionMap(files);
1,089,426
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select symbol, sum(price) from " + "SupportMarketDataBean#length(10) as one, " + "SupportBeanString#length(100) as two " + "where one.symbol = two.theString " + "output every 6 events " + "order by symbol, sum(price)";<NEW_LINE>env.compileD...
sendEventBean(new SupportBeanString("CMU"));
562,766
public void start(ManufOrder manufOrder) throws AxelorException {<NEW_LINE>if (manufOrder.getBillOfMaterial().getStatusSelect() != BillOfMaterialRepository.STATUS_APPLICABLE || manufOrder.getProdProcess().getStatusSelect() != ProdProcessRepository.STATUS_APPLICABLE) {<NEW_LINE>throw new AxelorException(manufOrder, Trac...
updateStatus(manufOrder.getProductionOrderSet());
52,772
protected void learnParameters() {<NEW_LINE>final List<EStep> potentialArtifacts = eSteps.stream().filter(eStep -> eStep.getArtifactProbability() > 0.1).collect(Collectors.toList());<NEW_LINE>final double totalArtifacts = potentialArtifacts.stream().mapToDouble(EStep::getArtifactProbability).sum();<NEW_LINE>final doubl...
e.reverseCount).sum();
1,148,659
private void onUpdateAvailable(final Update update, final boolean mandatory) {<NEW_LINE>getActivity().runOnUiThread(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>new ConfirmDialog(getString(R.string.update_available), update.prompt, getActivity(), new ConfirmDialogListener() {<NEW_...
getActivity(), UpdateService.class);
1,624,332
private void openListContextMenu(MouseEvent e) {<NEW_LINE>if (e.isPopupTrigger()) {<NEW_LINE>selectClicked(e, false);<NEW_LINE>List<StreamTag<MASK><NEW_LINE>JPopupMenu menu = new JPopupMenu();<NEW_LINE>menu.add(new AbstractAction(Language.getString("admin.tags.cm.replaceAll")) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>pu...
> listSelected = list.getSelectedValuesList();
164,281
private void fillVerticesGPU(int[] particlesOffset) {<NEW_LINE>int tp = 0;<NEW_LINE>for (BillboardControllerRenderData data : renderData) {<NEW_LINE>FloatChannel scaleChannel = data.scaleChannel;<NEW_LINE>FloatChannel regionChannel = data.regionChannel;<NEW_LINE>FloatChannel positionChannel = data.positionChannel;<NEW_...
regionOffset + ParticleChannels.HalfHeightOffset] * scale;
1,394,952
public ExecutableElement concreteConstructorFor(TypeElement classElement, AnnotationUtils annotationUtils) {<NEW_LINE>if (JavaModelUtils.isRecord(classElement)) {<NEW_LINE>final List<ExecutableElement> constructors = ElementFilter.<MASK><NEW_LINE>Optional<ExecutableElement> element = findAnnotatedConstructor(annotation...
constructorsIn(classElement.getEnclosedElements());
940,392
public void parameterChanged(String name) {<NEW_LINE>boolean enabled = COConfigurationManager.getBooleanParameter("UDP.Listen.Port.Enable");<NEW_LINE>if (enabled) {<NEW_LINE>int port = COConfigurationManager.getIntParameter("UDP.Listen.Port");<NEW_LINE>if (handler == null || port != handler.getPort()) {<NEW_LINE>if (ha...
+ handler.getPort()));
42,302
public String call() throws DemoTaskException, HeuristicMixedException, HeuristicRollbackException, IllegalStateException, NamingException, NotSupportedException, RollbackException, SecurityException, SQLException, SystemException {<NEW_LINE>numExecutions++;<NEW_LINE>long taskId = TaskIdAccessor.get();<NEW_LINE>System....
failureMessage = results.getString(1);
1,167,391
public CodegenExpression makeNoCopy(CodegenMethodScope scope, CodegenClassScope classScope) {<NEW_LINE>CodegenMethod method = scope.makeChild(EventBeanUpdateHelperNoCopy.EPTYPE, this.getClass(), classScope);<NEW_LINE>CodegenMethod updateInternal = makeUpdateInternal(method, classScope);<NEW_LINE>CodegenExpressionNewAno...
this.getClass(), classScope);
618,278
public void putIntoDefaultLocations(@Nonnull final List<? extends PackagingSourceItem> items) {<NEW_LINE>final List<PackagingElement<?>> toSelect = new ArrayList<PackagingElement<?>>();<NEW_LINE>editLayout(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>final CompositePackagingElemen...
elements = item.createElements(myContext);
493,880
RemoteFile prepareRemoteFile(String tag, String section, String path, FileReference reference, boolean template, String localDir) {<NEW_LINE>String id = randomTag(s -> !ids.add(s));<NEW_LINE>String prefix = tag + "/" + section + "/" + path + "/" + id;<NEW_LINE>if (localDir == null) {<NEW_LINE>localDir = LOCAL_STAGING_D...
RemoteFile remoteFile = builder.build();
1,662,244
public List<InvoiceLine> populate(Invoice invoice, InvoicingProject folder) throws AxelorException {<NEW_LINE>List<SaleOrderLine> saleOrderLineList = new ArrayList<SaleOrderLine>(folder.getSaleOrderLineSet());<NEW_LINE>List<PurchaseOrderLine> purchaseOrderLineList = new ArrayList<PurchaseOrderLine>(folder.getPurchaseOr...
, folder.getProjectTaskSetPrioritySelect()));
577,009
public static void convert(File infile, File xslfile, File outfile) {<NEW_LINE>try {<NEW_LINE>// Create transformer factory<NEW_LINE>TransformerFactory factory = TransformerFactory.newInstance();<NEW_LINE>factory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);<NEW_LINE>// Use the factory to create a template ...
StreamResult(new FileOutputStream(outfile));
1,749,408
private static <T> T resolveElementValue(@NotNull PsiElement psiElement, @NotNull Class<T> asClass) {<NEW_LINE>T value = null;<NEW_LINE>if (psiElement instanceof PsiReferenceExpression) {<NEW_LINE>final PsiElement resolved = ((PsiReferenceExpression) psiElement).resolve();<NEW_LINE>if (resolved instanceof PsiEnumConsta...
final PsiVariable psiVariable = (PsiVariable) resolved;
267,875
public static DescribeVodDomainTrafficDataResponse unmarshall(DescribeVodDomainTrafficDataResponse describeVodDomainTrafficDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeVodDomainTrafficDataResponse.setRequestId(_ctx.stringValue("DescribeVodDomainTrafficDataResponse.RequestId"));<NEW_LINE>describeVodDomainT...
= new ArrayList<DataModule>();
669,282
private void sendSupportEmail(ErrorInfo jXErrorPaneInfo) {<NEW_LINE>Configuration configuration = AppBeans.get(Configuration.NAME);<NEW_LINE>ExceptionReportService reportService = AppBeans.get(ExceptionReportService.NAME);<NEW_LINE>ClientConfig clientConfig = configuration.getConfig(ClientConfig.class);<NEW_LINE>TopLev...
, ImmutableMap.copyOf(binding));
709,135
public void createMenuItems(Bundle savedInstanceState) {<NEW_LINE>Context ctx = getContext();<NEW_LINE>Bundle args = getArguments();<NEW_LINE>if (ctx == null || args == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int expandType = args.getInt(EXPAND_TYPE_KEY, -1);<NEW_LINE>final View titleView = UiUtilities.getInflater...
setText(R.string.show_along_the_route);
717,517
protected void saveMeasures(Map<String, CoverageMeasures> coverageMeasures) {<NEW_LINE>for (var entry : coverageMeasures.entrySet()) {<NEW_LINE>final String filePath = PathUtils.sanitize(entry.getKey());<NEW_LINE>if (filePath != null) {<NEW_LINE>var cxxFile = getInputFileIfInProject(filePath);<NEW_LINE>if (cxxFile != n...
LOG.warn("Cannot find the file '{}', ignoring coverage measures", filePath);
273,892
private ArgumentBuilder buildArgs(WsdlInterface modelItem) throws IOException {<NEW_LINE>XFormDialog dialog = getDialog();<NEW_LINE>if (dialog == null) {<NEW_LINE>ArgumentBuilder builder = new ArgumentBuilder(new StringToStringMap());<NEW_LINE>builder.startScript("tcpmon", ".bat", ".sh");<NEW_LINE>return builder;<NEW_L...
URL url = new URL(endpoint);
259,038
public void sendBsq(SendBsqRequest req, StreamObserver<SendBsqReply> responseObserver) {<NEW_LINE>try {<NEW_LINE>coreApi.sendBsq(req.getAddress(), req.getAmount(), req.getTxFeeRate(), new TxBroadcaster.Callback() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onSuccess(Transaction tx) {<NEW_LINE>log.info("Successf...
), tx.getMessageSize());
219,501
public ListMembersResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListMembersResult listMembersResult = new ListMembersResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurr...
String currentParentElement = context.getCurrentParentElement();
348,626
private Mono<Response<ListWorkspaceKeysResultInner>> listKeysWithResponseAsync(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>}<N...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
920,232
public void refresh() {<NEW_LINE>if (manualRefresh) {<NEW_LINE>manualRefresh = false;<NEW_LINE>getPrevTotalPerf();<NEW_LINE>}<NEW_LINE>MapPack map = new MapPack();<NEW_LINE>map.put("objType", objType);<NEW_LINE><MASK><NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>final DoubleValue value = new DoubleV...
map.put("counter", counter);
72,699
private FwdPassReturn activateHelper(final boolean training, final INDArray prevOutputActivations, final INDArray prevMemCellState, boolean forBackprop, LayerWorkspaceMgr workspaceMgr) {<NEW_LINE>assertInputSet(false);<NEW_LINE>Preconditions.checkState(input.rank() == 3, "3D input expected to RNN layer expected, got " ...
LSTMParamInitializer.RECURRENT_WEIGHT_KEY, training, workspaceMgr);
641,329
public static ClientMessage encodeRequest(java.lang.String name, java.util.Collection<com.hazelcast.internal.serialization.Data> keys, boolean replaceExistingValues) {<NEW_LINE>ClientMessage clientMessage = ClientMessage.createForEncode();<NEW_LINE>clientMessage.setRetryable(false);<NEW_LINE>clientMessage.setOperationN...
StringCodec.encode(clientMessage, name);
766,171
public boolean remove_if_cycle(Trace p_trace) {<NEW_LINE>if (!p_trace.is_on_the_board()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (!p_trace.is_cycle()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// Remove tails at the endpoints after removing the cycle,<NEW_LINE>// if there was no tail before.<NEW_LINE>boolean...
int curr_layer = p_trace.get_layer();
1,135,867
public void handleDelivery(String consumerTag, Envelope envelope, BasicProperties properties, byte[] body) throws IOException {<NEW_LINE>String decodedBody;<NEW_LINE>try {<NEW_LINE>decodedBody = new String(body, "UTF-8");<NEW_LINE>} catch (UnsupportedEncodingException e) {<NEW_LINE>// can't happen<NEW_LINE>throw new Ru...
candidates.runCandidateChain(curi, null);
250,581
final ListJobExecutionsForJobResult executeListJobExecutionsForJob(ListJobExecutionsForJobRequest listJobExecutionsForJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listJobExecutionsForJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,013,197
private Collection<? extends IPath> globalFolders() {<NEW_LINE>List<IPath> dirs = new ArrayList<IPath>();<NEW_LINE>// FIXME Handle properly on Windows...<NEW_LINE>Map<String, String> env = ShellExecutable.getEnvironment(location);<NEW_LINE>// $NON-NLS-1$<NEW_LINE>String nodePath = env.get("NODE_PATH");<NEW_LINE>if (nod...
pathENV.split(File.pathSeparator);
1,370,496
public static PendingMessages parse(List<?> xpendingOutput) {<NEW_LINE>LettuceAssert.notNull(xpendingOutput, "XPENDING output must not be null");<NEW_LINE>LettuceAssert.isTrue(xpendingOutput.<MASK><NEW_LINE>Long count = (Long) xpendingOutput.get(0);<NEW_LINE>String from = (String) xpendingOutput.get(1);<NEW_LINE>String...
size() == 4, "XPENDING output must have exactly four output elements");
528,041
public void marshall(AdminCreateUserRequest adminCreateUserRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (adminCreateUserRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(adminCreateUserReq...
adminCreateUserRequest.getClientMetadata(), CLIENTMETADATA_BINDING);
1,518,217
public void publish(final String topic) throws TubeClientException {<NEW_LINE>checkServiceStatus();<NEW_LINE>StringBuilder sBuilder = new StringBuilder(512);<NEW_LINE>try {<NEW_LINE>logger.info(sBuilder.append("[Publish begin 1] publish topic ").append(topic).append(", address = ").append(this.toString()).toString());<...
(" Ms").toString());
873,999
private void init(AttributeSet attrs, int defStyle, int defStyleRes) {<NEW_LINE>if (attrs != null) {<NEW_LINE>Drawable left = getGifOrDefaultDrawable(attrs.getAttributeResourceValue(GifViewUtils.ANDROID_NS, "drawableLeft", 0));<NEW_LINE>Drawable top = getGifOrDefaultDrawable(attrs.getAttributeResourceValue(GifViewUtils...
.ANDROID_NS, "drawableBottom", 0));
955,637
public static Boolean isFullyPlayed(final Connection connection, final String fullPathToFile) {<NEW_LINE>boolean trace = LOGGER.isTraceEnabled();<NEW_LINE>Boolean result = null;<NEW_LINE>try {<NEW_LINE>String query = "SELECT ISFULLYPLAYED FROM " + TABLE_NAME + " WHERE FILENAME = " + sqlQuote(fullPathToFile) + " LIMIT 1...
fullPathToFile, e.getMessage());
1,571,447
public Single<ContentValues> value(TaskAdapter taskAdapter) {<NEW_LINE>Optional<DateTime> start = new NullSafe<>(taskAdapter.valueOf(TaskAdapter.DTSTART));<NEW_LINE>// effective due is either the actual due, start + duration or absent<NEW_LINE>Optional<DateTime> effectiveDue = new FirstPresent<>(new NullSafe<>(taskAdap...
VanillaInstanceData())))));
1,370,718
public ResourceId resolve(String other, ResolveOptions resolveOptions) {<NEW_LINE>checkState(isDirectory(<MASK><NEW_LINE>if (resolveOptions == ResolveOptions.StandardResolveOptions.RESOLVE_DIRECTORY) {<NEW_LINE>if ("..".equals(other)) {<NEW_LINE>if ("/".equals(key)) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>int paren...
), "Expected this resource to be a directory, but was [%s]", toString());
904,408
private int updateIndent(boolean increase, int targetLevel, boolean preserveAfter) {<NEW_LINE>if (preserveAfter) {<NEW_LINE>return indentLevel;<NEW_LINE>}<NEW_LINE>int save = this.indentLevel;<NEW_LINE>if (tokenInSelectionRange) {<NEW_LINE>if (targetLevel != -1) {<NEW_LINE>indentLevel = save = targetLevel;<NEW_LINE>}<N...
(-spacesPerTab, indentLevel - spacesPerTab);
1,399,400
static HashMap<Object, Object> readFontProperties(String name) {<NEW_LINE>try {<NEW_LINE>name += ".properties";<NEW_LINE>InputStream is = getResourceStream(RESOURCE_PATH + name);<NEW_LINE>Properties p = new Properties();<NEW_LINE>p.load(is);<NEW_LINE>is.close();<NEW_LINE>IntHashtable W = createMetric(p.getProperty("W")...
(p.getProperty("W2"));
1,185,933
private ListenableFuture<Data> computeSlices(DataRequest req) {<NEW_LINE>return transformAsync(qe.query(slicesSql(req)), res -> transform(qe.getAllArgs(res.stream().mapToLong(r -> r.getLong(8))), args -> {<NEW_LINE>int rows = res.getNumRows();<NEW_LINE>Data data = new Data(req, new long[rows], new long[rows], new long[...
], new ArgSet[rows]);
1,807,688
public static JobStatistics insertIntoTable(String projectId, String datasetName, String tableName, Schema schema, Collection<Object> rows) throws IOException, InterruptedException, EmptyRowCollection {<NEW_LINE>if (rows.isEmpty()) {<NEW_LINE>throw new EmptyRowCollection("The input data was empty.");<NEW_LINE>}<NEW_LIN...
(gson.toJson(row));
703,634
public void visitDataMatrix(DataMatrixComponent dataMatrix) {<NEW_LINE>DataMatrixBean dataMatrixBean = new DataMatrixBean();<NEW_LINE>barcodeBean = dataMatrixBean;<NEW_LINE>evaluateDataMatrix(dataMatrix);<NEW_LINE>setBaseAttributes(dataMatrix);<NEW_LINE>if (dataMatrix.getShape() != null) {<NEW_LINE>dataMatrixBean.setSh...
), dataMatrix.getMinSymbolHeight());
1,656,968
protected Object readMember(String member, @CachedLibrary("this") PythonNativeWrapperLibrary lib, @Cached LookupAttributeInMRONode.Dynamic lookup, @Cached ToSulongNode toSulongNode, @Cached BranchProfile errorProfile, @Cached TransformExceptionToNativeNode transformExceptionToNativeNode, @Exclusive @Cached GilNode gil)...
getPythonClass(lib), __ADD__));
538,762
public void validate() throws WizardValidationException {<NEW_LINE>File dirF = new File(panel.projectLocationTextField.getText());<NEW_LINE>if (new File(dirF, getBuildFile()).exists()) {<NEW_LINE>File bf = new File(dirF, getBuildFile());<NEW_LINE>if (bf.exists() && allowAlternativeBuildXml) {<NEW_LINE>JButton ok = // N...
panel.projectLocationTextField, "", "");
715,508
// todo just calculate log likelihood in the last inter.<NEW_LINE>@Override<NEW_LINE>public void calc(ComContext context) {<NEW_LINE>int stepNo = context.getStepNo();<NEW_LINE>if (!addedIndex && seed != null) {<NEW_LINE>random.reSeed(seed);<NEW_LINE>addedIndex = true;<NEW_LINE>}<NEW_LINE>if (stepNo == 1) {<NEW_LINE>dou...
] logLikelihoodHook = new double[1];
782,087
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static float floatValue(com.sun.jdi.PrimitiveValue a) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper {<NEW_LINE>if (org.netbeans.modules.debugger.jpda.JDIExc...
jpda.jdi.VMDisconnectedExceptionWrapper(ex);
1,846,940
private void updateSchema() {<NEW_LINE>Session session = sessionFactory.openSession();<NEW_LINE>session.doWork(connection -> {<NEW_LINE>try {<NEW_LINE>JdbcConnection jdbcConnection = new JdbcConnection(connection);<NEW_LINE>Database database = DatabaseFactory.<MASK><NEW_LINE>if (database instanceof PostgresDatabase) {<...
getInstance().findCorrectDatabaseImplementation(jdbcConnection);
906,525
final DescribeEndpointsResult executeDescribeEndpoints(DescribeEndpointsRequest describeEndpointsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeEndpointsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
addHandlerContext(HandlerContextKey.SERVICE_ID, "DynamoDB");
822,637
protected synchronized void bindDataSource() throws SQLException {<NEW_LINE>// we'll check in the synchronized section again (to prevent unnecessary reinitialization)<NEW_LINE>if (null != realDataSource) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final P6SpyLoadableOptions options = P6SpyOptions.getActiveInstance();<NEW_LI...
String custom = options.getJNDIContextCustom();
1,260,802
public void processOpts() {<NEW_LINE>super.processOpts();<NEW_LINE>if (additionalProperties.containsKey(CodegenConstants.PACKAGE_NAME)) {<NEW_LINE>setPackageName((String) additionalProperties.get(CodegenConstants.PACKAGE_NAME));<NEW_LINE>} else {<NEW_LINE>setPackageName("openapi");<NEW_LINE>additionalProperties.put(Cod...
String) additionalProperties.get("apiPath");
709,856
public IRubyObject searchConst(ThreadContext context, StaticScope staticScope) {<NEW_LINE>// Lexical lookup<NEW_LINE><MASK><NEW_LINE>RubyModule object = runtime.getObject();<NEW_LINE>IRubyObject constant = (staticScope == null) ? object.getConstant(name) : staticScope.getConstantInner(name);<NEW_LINE>// Inheritance loo...
Ruby runtime = context.getRuntime();
493,911
private void printDefinitions(StringBuilder buffer, List<String> list, boolean firstword) {<NEW_LINE>Iterator<String> e = list.iterator();<NEW_LINE>while (e.hasNext()) {<NEW_LINE>String s = e.next();<NEW_LINE>// $NON-NLS-1$<NEW_LINE>buffer.append("<li>");<NEW_LINE>if (!firstword) {<NEW_LINE>buffer.append(s);<NEW_LINE>}...
(s.substring(i));
824,841
private boolean testSocket(SocketChannel sc) {<NEW_LINE>// PK61206 - HP JDK will not change their runtime error from getLocal*<NEW_LINE>// in the situations where the client closes the socket quickly, so<NEW_LINE>// we must protect WAS from that error here<NEW_LINE>try {<NEW_LINE>sc.socket().getLocalPort();<NEW_LINE>if...
this, tc, "Error caught while closing connection " + t2);
927,053
public ListDevicesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListDevicesResult listDevicesResult = new ListDevicesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurr...
String currentParentElement = context.getCurrentParentElement();
897,102
public ModuleHandler internalCreate(Module module, String ruleUID) {<NEW_LINE>ModuleHandler handler = null;<NEW_LINE>String moduleType = module.getTypeUID();<NEW_LINE>ModuleType mt = mtRegistry.get(moduleType);<NEW_LINE>if (mt instanceof CompositeTriggerType) {<NEW_LINE>List<Trigger> childModules = ((CompositeTriggerTy...
"(" + moduleType + ")", ruleUID);
1,149,693
private boolean isWithinImageSections(Iterator heapImageSections, Object memType, boolean isMethodCompiled, long address) {<NEW_LINE>while (heapImageSections.hasNext()) {<NEW_LINE>ImageSection imageSection = (ImageSection) heapImageSections.next();<NEW_LINE>long baseAddress = imageSection.getBaseAddress().getAddress();...
.getDeclaringClass().getName();
1,093,782
public Network design(NetworkOffering offering, DeploymentPlan plan, Network userSpecified, Account owner) {<NEW_LINE>DataCenter dc = _entityMgr.findById(DataCenter.class, plan.getDataCenterId());<NEW_LINE>if (!canHandle(offering, dc)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>BroadcastDomainType broadcastType;<NEW_L...
setBroadcastUri(userSpecified.getBroadcastUri());
524,920
/*<NEW_LINE>* Reads given session with primitives, but does not read attribute data<NEW_LINE>*/<NEW_LINE>DatabaseSession readPrimitives(String id, String appName, Connection con) throws SQLException {<NEW_LINE>PreparedStatement ps = null;<NEW_LINE>ResultSet rs = null;<NEW_LINE>DatabaseSession sess = null;<NEW_LINE>try ...
ps.setString(3, appName);
1,192,006
private void checkInitializerMethod(ExecutableElement element, TypeElement parent, CdiAnalysisResult result) {<NEW_LINE>Set<Modifier> modifiers = element.getModifiers();<NEW_LINE>boolean isAbstract = <MASK><NEW_LINE>boolean isStatic = modifiers.contains(Modifier.STATIC);<NEW_LINE>if (isAbstract || isStatic) {<NEW_LINE>...
modifiers.contains(Modifier.ABSTRACT);
686,820
void perform(CompilationAnalysisContext compilationAnalysisContext) {<NEW_LINE>try {<NEW_LINE>analysisTask.perform(compilationAnalysisContext);<NEW_LINE>} catch (Throwable e) {<NEW_LINE>// Used Throwable here catch any sort of error produced by the third-party compiler plugin code<NEW_LINE>String message;<NEW_LINE>if (...
e.getMessage(), e);
1,515,317
final DeleteAppResult executeDeleteApp(DeleteAppRequest deleteAppRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAppRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,528,194
static Schema generateSchemaMessages(final Schema originalSchema, final FlightDescriptor descriptor, final DictionaryProvider provider, final IpcOption option, final Consumer<ArrowMessage> messageCallback) throws Exception {<NEW_LINE>final Set<Long> dictionaryIds = new HashSet<>();<NEW_LINE>final Schema schema = genera...
id, unloader.getRecordBatch());
410,431
public StateRepository stateRepository() throws IOException {<NEW_LINE>StateRepository stateRepository;<NEW_LINE>String featuresFile = properties.getFeaturesFile();<NEW_LINE>if (featuresFile != null) {<NEW_LINE>Resource resource = this.resourceLoader.getResource(featuresFile);<NEW_LINE><MASK><NEW_LINE>File resourceFile...
Integer minCheckInterval = properties.getFeaturesFileMinCheckInterval();
1,060,599
public Object evaluate(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context) {<NEW_LINE>Number px = (Number) pxEval.evaluate(eventsPerStream, isNewData, context);<NEW_LINE>if (px == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Number py = (Number) pyEval.evaluate(eventsPerStream, isNewData,...
evaluate(eventsPerStream, isNewData, context);
956,491
final UpdateFieldLevelEncryptionConfigResult executeUpdateFieldLevelEncryptionConfig(UpdateFieldLevelEncryptionConfigRequest updateFieldLevelEncryptionConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateFieldLevelEncryptionConfigRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,420,335
private void sendErrorResponse(HttpServletRequest request, HttpServletResponse response, AuthenticationException exception) throws IOException {<NEW_LINE>OAuth2AuthorizationCodeRequestAuthenticationException authorizationCodeRequestAuthenticationException = (OAuth2AuthorizationCodeRequestAuthenticationException) except...
OAuth2Error error = authorizationCodeRequestAuthenticationException.getError();
1,822,178
private void updateUi() {<NEW_LINE>if (!isAdded()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Show button, that a PIN reset is in progress and allow to abort it<NEW_LINE>_root.findViewById(R.id.btPinResetNotice).setVisibility(_notice == Notice.RESET_PIN_AVAILABLE || _notice == Notice.RESET_PIN_IN_PROGRESS ? View.VISIBLE...
setText(R.string.single_address_backup_missing);
385,525
public static String formatModelIncludeName(String projectName, Shape shape) {<NEW_LINE>if (shape.isMap()) {<NEW_LINE>return "<aws/core/utils/memory/stl/AWSMap.h>";<NEW_LINE>} else if (shape.isList()) {<NEW_LINE>return "<aws/core/utils/memory/stl/AWSVector.h>";<NEW_LINE>} else if (shape.isDocument()) {<NEW_LINE>return ...
projectName, shape.getName());
1,083,649
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>App.getInstance().getDaggerComponent().inject(this);<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_help);<NEW_LINE>if (getSupportActionBar() != null) {<NEW_LINE>getSupportActionBar().setDisplayHomeAsUpEnabled(true);<N...
Looper looper = Looper.getMainLooper();
1,517,732
public Dimension minimumLayoutSize(Container parent) {<NEW_LINE>JComponent filter = filterPanel;<NEW_LINE>if (filter != null && !filter.isVisible())<NEW_LINE>filter = null;<NEW_LINE>JComponent search = searchPanel;<NEW_LINE>if (search != null && !search.isVisible())<NEW_LINE>search = null;<NEW_LINE>Dimension dim = new ...
.width + dim2.width + 1;
1,545,719
private List<ElementFilter> createTypeFilter(final EnclosingClass enclosingClass) {<NEW_LINE>List<ElementFilter> superTypeIndices = new ArrayList<>();<NEW_LINE>Expression superClass = enclosingClass.getSuperClass();<NEW_LINE>if (superClass != null) {<NEW_LINE>String superClsName = enclosingClass.extractUnqualifiedSuper...
(ElementFilter.forSuperInterfaceNames(superIfaceNames));
1,824,286
/* Add a new synthetic argument for <actualOuterLocalVariable>.<NEW_LINE>* Answer the new argument or the existing argument if one already existed.<NEW_LINE>*/<NEW_LINE>public SyntheticArgumentBinding addSyntheticArgument(LocalVariableBinding actualOuterLocalVariable) {<NEW_LINE>if (!isPrototype())<NEW_LINE>throw new I...
= synthLocal = new SyntheticArgumentBinding(actualOuterLocalVariable);
468,867
protected void restoreGL() {<NEW_LINE>// this should be set by reapplySettings...<NEW_LINE>blendMode(blendMode);<NEW_LINE>if (hints[DISABLE_DEPTH_TEST]) {<NEW_LINE>pgl.disable(PGL.DEPTH_TEST);<NEW_LINE>} else {<NEW_LINE>pgl.enable(PGL.DEPTH_TEST);<NEW_LINE>}<NEW_LINE>pgl.depthFunc(PGL.LEQUAL);<NEW_LINE>if (pgl.isES()) ...
2], clipRect[3]);
812,130
public boolean execute() {<NEW_LINE>debug("GenericPatchApplier execute started");<NEW_LINE>if (!myHunks.isEmpty()) {<NEW_LINE>mySuppressNewLineInEnd = myHunks.get(myHunks.size(<MASK><NEW_LINE>}<NEW_LINE>for (final PatchHunk hunk : myHunks) {<NEW_LINE>myNotExact.addAll(SplitHunk.read(hunk));<NEW_LINE>}<NEW_LINE>for (Ite...
) - 1).isNoNewLineAtEnd();
744,742
final UpdateDomainAssociationResult executeUpdateDomainAssociation(UpdateDomainAssociationRequest updateDomainAssociationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDomainAssociationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,413,995
public static DescribeRegionsResponse unmarshall(DescribeRegionsResponse describeRegionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRegionsResponse.setRequestId<MASK><NEW_LINE>Regions regions = new Regions();<NEW_LINE>List<RegionItem> region = new ArrayList<RegionItem>();<NEW_LINE>for (int i = 0; i < _ctx.le...
(_ctx.stringValue("DescribeRegionsResponse.RequestId"));