idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
160,133 | final AssociateExternalConnectionResult executeAssociateExternalConnection(AssociateExternalConnectionRequest associateExternalConnectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateExternalConnectionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
328,487 | private int computedJump(int from, int to) throws Exception {<NEW_LINE>int thisInstructionsSize = 2;<NEW_LINE>String fromString = "0x" + Integer.toHexString(from);<NEW_LINE>String toString = "0x" + Integer.toHexString(to);<NEW_LINE>String endString = "0x" + Integer.toHexString(from + thisInstructionsSize - 1);<NEW_LINE... | COMPUTED_JUMP, SourceType.ANALYSIS, 0); |
83,153 | JPanel createCheckPanel() {<NEW_LINE>JPanel panelChecks = new JPanel(<MASK><NEW_LINE>panelChecks.add(checkShowTargets);<NEW_LINE>panelChecks.add(checkShowNumbers);<NEW_LINE>panelChecks.add(checkShowClusters);<NEW_LINE>panelChecks.add(checkShowPerpendicular);<NEW_LINE>panelChecks.add(checkShowCorners);<NEW_LINE>panelChe... | new GridLayout(0, 2)); |
206,659 | public UntagResourceResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UntagResourceResult untagResourceResult = new UntagResourceResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonTok... | int originalDepth = context.getCurrentDepth(); |
427,714 | private void createButtonPanel(Composite parent) {<NEW_LINE>Composite client = new Composite(parent, SWT.NULL);<NEW_LINE>GridLayout layout = new GridLayout();<NEW_LINE>layout.marginHeight = 0;<NEW_LINE>layout.marginWidth = 0;<NEW_LINE>client.setLayout(layout);<NEW_LINE>GridData gd = new GridData(GridData.VERTICAL_ALIGN... | = new GridData(GridData.FILL_HORIZONTAL); |
693,072 | public void apply(Request request, Response response) {<NEW_LINE>response<MASK><NEW_LINE>String format = request.format;<NEW_LINE>if (request.isAjax() && "html".equals(format)) {<NEW_LINE>format = "txt";<NEW_LINE>}<NEW_LINE>response.contentType = MimeTypes.getContentType("xx." + format);<NEW_LINE>Map<String, Object> bi... | .status = Http.StatusCode.NOT_FOUND; |
1,725,298 | public void userLogout() throws TimeoutException, ExecutionException, InterruptedException, ApiException {<NEW_LINE>Object postBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String path = "/user/logout";<NEW_LINE>// query params<NEW_LINE>List<Pair> queryParams = new ArrayList<Pair>();<NEW_LINE>// heade... | statusCode, volleyError.getMessage()); |
1,669,437 | public void onMoveItemEnded(int adapterIndex) {<NEW_LINE>// Fire a "move" event.<NEW_LINE>final TiListView listView = getListView();<NEW_LINE>if ((listView != null) && this.moveEventInfo.isMoving()) {<NEW_LINE>final ListItemProxy targetItemProxy = listView.getAdapterItem(adapterIndex);<NEW_LINE>if (targetItemProxy != n... | PROPERTY_TARGET_ITEM_INDEX, targetItemProxy.getIndexInSection()); |
420,796 | private void handleHttpRequest(final HttpServerRequest request, final Map<String, Object> data) {<NEW_LINE>if (debug) {<NEW_LINE>setupMetrics(request);<NEW_LINE>logger.debug("HttpServerVertx::handleHttpRequest::{}:{}", request.method(), request.uri());<NEW_LINE>}<NEW_LINE>switch(request.method().toString()) {<NEW_LINE>... | headers().get("Content-Type"); |
1,506,009 | public void hook(ExtensionHook extensionHook) {<NEW_LINE>super.hook(extensionHook);<NEW_LINE>extensionHook.addApiImplementor(new ParamsAPI(this));<NEW_LINE>extensionHook.addSessionListener(this);<NEW_LINE>extensionHook.addSiteMapListener(this);<NEW_LINE>if (getView() != null) {<NEW_LINE>@SuppressWarnings("unused")<NEW_... | ).addPopupMenuItem(getPopupMenuAddSession()); |
1,465,357 | public void write(JsonWriter out, BasquePig value) throws IOException {<NEW_LINE>JsonObject obj = thisAdapter.<MASK><NEW_LINE>obj.remove("additionalProperties");<NEW_LINE>// serialize additonal properties<NEW_LINE>if (value.getAdditionalProperties() != null) {<NEW_LINE>for (Map.Entry<String, Object> entry : value.getAd... | toJsonTree(value).getAsJsonObject(); |
1,359,508 | private void showSearchMessageOrSuggestions() {<NEW_LINE>boolean hasQuery = !isSearchViewEmpty();<NEW_LINE>boolean hasPerformedSearch = !TextUtils.isEmpty(mCurrentSearchQuery);<NEW_LINE>boolean isSearching = getPostListType() == ReaderPostListType.SEARCH_RESULTS;<NEW_LINE>// prevents suggestions from being shown after ... | && mSearchSuggestionRecyclerAdapter.getItemCount() > 0; |
1,657,405 | @Override<NEW_LINE>protected Task<Void> onStartPreview() {<NEW_LINE>LOG.i("onStartPreview:", "Dispatching onCameraPreviewStreamSizeChanged.");<NEW_LINE>getCallback().onCameraPreviewStreamSizeChanged();<NEW_LINE>Size previewSizeForView = getPreviewStreamSize(Reference.VIEW);<NEW_LINE>if (previewSizeForView == null) {<NE... | task = new TaskCompletionSource<>(); |
221,890 | public String[] authorize(URL home) {<NEW_LINE>FormLogin panel = new FormLogin();<NEW_LINE>String server = HudsonManager.simplifyServerLocation(home.toString(), true);<NEW_LINE>String username = loginPrefs().get(server, null);<NEW_LINE>if (username != null) {<NEW_LINE>panel.userField.setText(username);<NEW_LINE>char[] ... | String[] { username, password }; |
175,182 | private CompletableFuture<Void> seekAsyncInternal(long requestId, ByteBuf seek, MessageId seekId, String seekBy) {<NEW_LINE>final CompletableFuture<Void> <MASK><NEW_LINE>ClientCnx cnx = cnx();<NEW_LINE>BatchMessageIdImpl originSeekMessageId = seekMessageId;<NEW_LINE>seekMessageId = new BatchMessageIdImpl((MessageIdImpl... | seekFuture = new CompletableFuture<>(); |
1,689,676 | public Set<Link> links(final Project project) {<NEW_LINE>SourceSetContainer sourceSets = project.getExtensions().getByType(JavaPluginExtension.class).getSourceSets();<NEW_LINE>EclipseClasspath classpath = project.getExtensions().getByType(EclipseModel.class).getClasspath();<NEW_LINE>File defaultOutputDir = classpath ==... | DEFAULT_PROJECT_OUTPUT_PATH) : classpath.getDefaultOutputDir(); |
73,458 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE><MASK><NEW_LINE>Toolbar toolbar = (Toolbar) findViewById(R.id.my_toolbar);<NEW_LINE>setSupportActionBar(toolbar);<NEW_LINE>String jsonString = FileUtils.loadSettingsJsonFile(getApplicationContext());<NEW_LINE>if (... | setContentView(R.layout.channel_create_activty_layout); |
1,443,987 | static long secondsToNextMonthTick(String currentMonthValue, long offsetInSecond) {<NEW_LINE>// date time formatter only has year and month, so when incrementing the month by one, the day will<NEW_LINE>// still be 0, which would be the first day of next month.<NEW_LINE>// For example, if the currentMonth is "2020-11", ... | return secondsNextMonth - time.seconds(); |
1,314,572 | private AspectRatio parseAspectRatioName(String name) {<NEW_LINE>if ("square".equals(name)) {<NEW_LINE>return new AspectRatio(null, 1.0f, 1.0f);<NEW_LINE>} else if ("original".equals(name)) {<NEW_LINE>return new AspectRatio(activity.getString(R.string.ucrop_label_original).toUpperCase(), CropImageView.SOURCE_IMAGE_ASPE... | AspectRatio(null, 5.0f, 3.0f); |
391,802 | private void stepDisable(Map<String, Map<String, Object>> dirtyprops) throws IOException {<NEW_LINE>LOG.fine("ModuleList: stepDisable");<NEW_LINE>Set<Module> todisable = new HashSet<Module>();<NEW_LINE>for (Map.Entry<String, Map<String, Object>> entry : dirtyprops.entrySet()) {<NEW_LINE>String cnb = entry.getKey();<NEW... | IllegalStateException("Already disabled: " + status.module); |
127,612 | public Builder mergeFrom(com.didiglobal.booster.aapt2.Resources.Styleable other) {<NEW_LINE>if (other == com.didiglobal.booster.aapt2.Resources.Styleable.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (entryBuilder_ == null) {<NEW_LINE>if (!other.entry_.isEmpty()) {<NEW_LINE>if (entry_.isEmpty()) {<NEW_LINE>en... | this.mergeUnknownFields(other.unknownFields); |
504,599 | public String sqlAD_getUnsequencedDocuments(String vendorName, String catalogName, String schemaName) {<NEW_LINE>// table name<NEW_LINE>String tableName = "AD_Table";<NEW_LINE>// column names<NEW_LINE>ArrayList<String> columnNames = new ArrayList<String>();<NEW_LINE>columnNames.add("TableName");<NEW_LINE>// aliases<NEW... | = new ArrayList<String>(); |
66,351 | final DeleteChannelMessageResult executeDeleteChannelMessage(DeleteChannelMessageRequest deleteChannelMessageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteChannelMessageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Messaging"); |
1,475,413 | protected void trainModel() throws LibrecException {<NEW_LINE>for (int iter = 1; iter <= numIterations; iter++) {<NEW_LINE>loss = 0.0d;<NEW_LINE>for (MatrixEntry me : trainMatrix) {<NEW_LINE>// user<NEW_LINE>int userId = me.row();<NEW_LINE>// item<NEW_LINE>int itemId = me.column();<NEW_LINE><MASK><NEW_LINE>double predi... | double realRating = me.get(); |
510,853 | private void copyGL(MAcctSchema targetAS) throws Exception {<NEW_LINE>MAcctSchemaGL source = MAcctSchemaGL.get(getCtx(), p_SourceAcctSchema_ID);<NEW_LINE>MAcctSchemaGL target = new MAcctSchemaGL(getCtx(), 0, get_TrxName());<NEW_LINE>target.setC_AcctSchema_ID(p_TargetAcctSchema_ID);<NEW_LINE>ArrayList<KeyNamePair> list ... | (targetAccount.getC_ValidCombination_ID())); |
1,378,831 | private static <K, V> CacheConfigurationBuilder<K, V> addDefaultCopiers(CacheConfigurationBuilder<K, V> builder, Class<K> keyType, Class<V> valueType) {<NEW_LINE>Set<Class<?>> immutableTypes = new HashSet<>();<NEW_LINE><MASK><NEW_LINE>immutableTypes.add(Long.class);<NEW_LINE>immutableTypes.add(Float.class);<NEW_LINE>im... | immutableTypes.add(String.class); |
100,430 | final ListFleetsResult executeListFleets(ListFleetsRequest listFleetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listFleetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,727,104 | public Dataset deleteDatasetAttributes(String datasetId, List<String> attributeKeyList, Boolean deleteAll) {<NEW_LINE>try (var session = modelDBHibernateUtil.getSessionFactory().openSession()) {<NEW_LINE>var transaction = session.beginTransaction();<NEW_LINE>var stringQueryBuilder = new StringBuilder("delete from Attri... | .setLockMode(LockMode.PESSIMISTIC_WRITE)); |
736,162 | final DeleteMemberResult executeDeleteMember(DeleteMemberRequest deleteMemberRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteMemberRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | invoke(request, responseHandler, executionContext); |
516,437 | private static void mget(CoapClient client, int port, String resourcePath, MulticastMode mode, long leisureMillis) throws ConnectorException, IOException {<NEW_LINE>String uri;<NEW_LINE>switch(mode) {<NEW_LINE>default:<NEW_LINE>case IPv4:<NEW_LINE>if (NetworkInterfacesUtil.isAnyIpv4()) {<NEW_LINE>uri = "coap://" + CoAP... | ()) + "GET " + uri); |
1,313,310 | protected boolean doEncode(DocumentMessage obj, DocumentSerializer buf) {<NEW_LINE>VisitorInfoMessage msg = (VisitorInfoMessage) obj;<NEW_LINE>buf.putInt(null, msg.getFinishedBuckets().size());<NEW_LINE>for (BucketId id : msg.getFinishedBuckets()) {<NEW_LINE>long rawid = id.getRawId();<NEW_LINE>long reversed = ((rawid ... | (rawid << 56) & 0xFF00000000000000l); |
870,835 | private Void paintComponentPrivileged(final Graphics g) {<NEW_LINE>if (componentHasNoArea() || disabledDueToJavaBug) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (isPrinting()) {<NEW_LINE>paintOriginalImage(g);<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final Graphics2D g2 = (Graphics2D) g;<NEW_LINE>final AffineTransf... | (int) (targetWidth * scaleX); |
102,224 | private X509CertRecord itemToX509CertRecord(Item item) {<NEW_LINE>boolean clientCert;<NEW_LINE>try {<NEW_LINE>clientCert = item.getBoolean(KEY_CLIENT_CERT);<NEW_LINE>} catch (Exception ex) {<NEW_LINE>LOGGER.warn("clientCert for item doesn't exist. Will set it to false. Item: {}", item.toString());<NEW_LINE>clientCert =... | (item.getString(KEY_PROVIDER)); |
1,739,425 | private int bsearch_index_internal(ThreadContext context, Block block) {<NEW_LINE>Ruby runtime = context.runtime;<NEW_LINE>int low = 0, high = realLength, mid;<NEW_LINE>boolean smaller = false, satisfied = false;<NEW_LINE>IRubyObject v;<NEW_LINE>CallSite op_cmp = null;<NEW_LINE>while (low < high) {<NEW_LINE>mid = low +... | op_cmp = sites(context).op_cmp_bsearch; |
1,010,707 | protected void doService(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>logRequest(request);<NEW_LINE>// Keep a snapshot of the request attributes in case of an include,<NEW_LINE>// to be able to restore the original attributes after the include.<NEW_LINE>Map<String, Object> attri... | (String) attrNames.nextElement(); |
318,272 | public void testPersistentMessageReceiveTopic(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>boolean testFailed = false;<NEW_LINE>JMSContext jmsContext = jmsTCFBindings.createContext();<NEW_LINE>JMSConsumer jmsConsumer1 = jmsContext.createDurableConsumer(jmsTopic, "durPersMsg1");<... | TextMessage) jmsConsumer2.receive(30000); |
1,541,432 | private void enforceChildDistribution(DistributionSpec distributionSpec, GroupExpression child, PhysicalPropertySet childOutputProperty) {<NEW_LINE>double childCosts = child.getCost(childOutputProperty);<NEW_LINE>Group childGroup = child.getGroup();<NEW_LINE>if (child.getOp() instanceof PhysicalDistributionOperator) {<... | .newArrayList(PhysicalPropertySet.EMPTY)); |
998,755 | private String executeArgs(ProfilerAction action) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>// start - start profiling<NEW_LINE>// resume - start or resume profiling without resetting collected data<NEW_LINE>// stop - stop profiling<NEW_LINE>sb.append(action).append(',');<NEW_LINE>if (this.event != nu... | .interval).append(','); |
1,180,712 | private void update() {<NEW_LINE>List<NavigationHistory.Waypoint> waypoints = NavigationHistory.getNavigations().getNextWaypoints();<NEW_LINE>// Update popup menu<NEW_LINE>if (popupMenu != null) {<NEW_LINE>updatePopupMenu = true;<NEW_LINE>}<NEW_LINE>// Set the short description<NEW_LINE>if (!waypoints.isEmpty()) {<NEW_... | wpt = waypoints.get(0); |
1,084,610 | public void removeWebsearchSettings(int order) {<NEW_LINE>if (prefs.getString("websearch_baseurl_" + order, null) == null)<NEW_LINE>// The settings that were requested to be removed do not exist<NEW_LINE>return;<NEW_LINE>// Copy all settings higher than the supplied order number to the previous spot<NEW_LINE>Editor edi... | edit.remove("websearch_name_" + max); |
39,438 | public Object convert(Class type, Object value) {<NEW_LINE>if (value == null) {<NEW_LINE>if (useDefault) {<NEW_LINE>return (defaultValue);<NEW_LINE>} else {<NEW_LINE>throw new ConversionException("No value specified");<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (value instanceof java.sql.Date && java.sql.Date.class.equals(type)... | (value.toString())); |
464,589 | protected void deleteRows() {<NEW_LINE>// If a table cell is being edited, we must cancel the editing<NEW_LINE>// before deleting the row.<NEW_LINE>GuiUtils.cancelEditing(headerTable);<NEW_LINE>int[] rowsSelected = headerTable.getSelectedRows();<NEW_LINE>int anchorSelection = headerTable.getSelectionModel().getAnchorSe... | headerTable.setRowSelectionInterval(anchorSelection, anchorSelection); |
1,707,910 | private STNode validateCallExpression(STNode callExpr) {<NEW_LINE>STCheckExpressionNode checkExpr = (STCheckExpressionNode) callExpr;<NEW_LINE>STNode expr = checkExpr.expression;<NEW_LINE>if (expr.kind == SyntaxKind.FUNCTION_CALL || expr.kind == SyntaxKind.METHOD_CALL) {<NEW_LINE>return callExpr;<NEW_LINE>}<NEW_LINE>ST... | checkKeyword, expr, DiagnosticErrorCode.ERROR_INVALID_EXPRESSION_EXPECTED_CALL_EXPRESSION); |
349,598 | public ICapabilityProvider initCapabilities(ItemStack stack, CompoundTag nbt) {<NEW_LINE>if (!stack.isEmpty())<NEW_LINE>return new IEItemStackHandler(stack) {<NEW_LINE><NEW_LINE>final LazyOptional<EnergyHelper.ItemEnergyStorage> energyStorage = CapabilityUtils.constantOptional(new EnergyHelper.ItemEnergyStorage(stack))... | super.getCapability(capability, facing); |
1,335,987 | public CurrencyAmount presentValue(ResolvedSwaption swaption, RatesProvider ratesProvider, SwaptionVolatilities swaptionVolatilities) {<NEW_LINE>validate(swaption, ratesProvider, swaptionVolatilities);<NEW_LINE>double expiry = swaptionVolatilities.relativeTime(swaption.getExpiry());<NEW_LINE>ResolvedSwap underlying = s... | getPayReceive().isReceive()); |
422,166 | public static ModifyDesktopsPolicyGroupResponse unmarshall(ModifyDesktopsPolicyGroupResponse modifyDesktopsPolicyGroupResponse, UnmarshallerContext _ctx) {<NEW_LINE>modifyDesktopsPolicyGroupResponse.setRequestId(_ctx.stringValue("ModifyDesktopsPolicyGroupResponse.RequestId"));<NEW_LINE>List<ModifyResult> modifyResults ... | ("ModifyDesktopsPolicyGroupResponse.ModifyResults[" + i + "].Message")); |
618,541 | public void handle(net.md_5.bungee.protocol.packet.Team team) throws Exception {<NEW_LINE>Scoreboard serverScoreboard = con.getServerSentScoreboard();<NEW_LINE>// Remove team and move on<NEW_LINE>if (team.getMode() == 1) {<NEW_LINE>serverScoreboard.removeTeam(team.getName());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Cre... | setColor(team.getColor()); |
615,707 | public Payload apply(ByteBuf byteBuf) {<NEW_LINE>ByteBuf m;<NEW_LINE>ByteBuf d;<NEW_LINE>FrameType type = FrameHeaderCodec.frameType(byteBuf);<NEW_LINE>switch(type) {<NEW_LINE>case REQUEST_FNF:<NEW_LINE>d = RequestFireAndForgetFrameCodec.data(byteBuf);<NEW_LINE>m = RequestFireAndForgetFrameCodec.metadata(byteBuf);<NEW_... | allocate(d.readableBytes()); |
1,011,829 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see org.eclipse.ui.dialogs.WizardNewProjectCreationPage#createControl(org.eclipse.swt.widgets.Composite)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void createControl(Composite parent) {<NEW_LINE>Composite pageComposite = new Composite(parent, SWT.NONE);<NEW_LINE>GridLayout p... | , 0).create()); |
1,495,128 | void checkRoleQuota(ObjectStoreConnection con, String domainName, Role role, String caller) {<NEW_LINE>// if quota check is disabled we have nothing to do<NEW_LINE>if (!quotaCheckEnabled) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// if our role is null then there is no quota check<NEW_LINE>if (role == null) {<NEW_LINE>ret... | getListSize(role.getRoleMembers()); |
973,693 | private void initNamespace(Properties properties) {<NEW_LINE>String namespaceTmp = null;<NEW_LINE>String isUseCloudNamespaceParsing = properties.getProperty(PropertyKeyConst.IS_USE_CLOUD_NAMESPACE_PARSING, System.getProperty(SystemPropertyKeyConst.IS_USE_CLOUD_NAMESPACE_PARSING, String.valueOf(Constants.DEFAULT_USE_CLO... | isNotBlank(namespace) ? namespace : EMPTY; |
793,998 | final DeleteTargetGroupResult executeDeleteTargetGroup(DeleteTargetGroupRequest deleteTargetGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteTargetGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | DeleteTargetGroupResult>(new DeleteTargetGroupResultStaxUnmarshaller()); |
1,065,460 | protected CompoundTag translateExplosionToBedrock(CompoundTag explosion, String newName) {<NEW_LINE>CompoundTag newExplosionData = new CompoundTag(newName);<NEW_LINE>if (explosion.get("Type") != null) {<NEW_LINE>newExplosionData.put(new ByteTag("FireworkType", MathUtils.getNbtByte(explosion.get("Type").getValue())));<N... | get("Colors").getValue(); |
1,747,434 | private synchronized void recordRpcFinished(RpcType rpcType, Status status) {<NEW_LINE>String method = getRpcTypeString(rpcType);<NEW_LINE>if (status.isOk()) {<NEW_LINE>int count = rpcsSucceededByMethod.containsKey(method) ? rpcsSucceededByMethod.get(method) : 0;<NEW_LINE>rpcsSucceededByMethod.<MASK><NEW_LINE>} else {<... | put(method, count + 1); |
1,482,325 | public void filterPoorlyModeledEvidence(final ToDoubleFunction<EVIDENCE> log10MinTrueLikelihood) {<NEW_LINE>Utils.validateArg(alleles.numberOfAlleles() > 0, "unsupported for read-likelihood collections with no alleles");<NEW_LINE>final int numberOfSamples = samples.numberOfSamples();<NEW_LINE>for (int s = 0; s < number... | (sampleEvidence.get(idx)); |
837,830 | public boolean addMsg(String attr, ByteBuffer data) {<NEW_LINE>checkMode(true);<NEW_LINE>if ((version.intValue() == Version.v3.intValue()) && !checkData(data)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>DataBuffer <MASK><NEW_LINE>if (outputBuffer == null) {<NEW_LINE>outputBuffer = new DataBuffer();<NEW_LINE>attr2MsgB... | outputBuffer = attr2MsgBuffer.get(attr); |
1,466,512 | public void refresh() {<NEW_LINE>// Refresh is called as hints when gRPC detects network failures.<NEW_LINE>// We don't want to repeatedly attempt discovery; following logic will limit discovery on failures to<NEW_LINE>// once every FAILURE_RETRY_TIMEOUT_MS seconds. Also we want to trigger discovery sooner on failures.... | getControllers, scheduleDelay, TimeUnit.MILLISECONDS); |
830,791 | public PkiBlockCreationConfiguration load(final PkiKeyStoreConfiguration pkiKeyStoreConfiguration) {<NEW_LINE>KeyStoreWrapper keyStore;<NEW_LINE>try {<NEW_LINE>keyStore = keyStoreWrapperProvider.apply(pkiKeyStoreConfiguration.getKeyStoreType(), pkiKeyStoreConfiguration.getKeyStorePath(), <MASK><NEW_LINE>LOG.info("Loade... | pkiKeyStoreConfiguration.getKeyStorePassword(), null); |
1,064,806 | public AutogenConfigDiff generate(SourceOfRandomness r, GenerationStatus status) {<NEW_LINE>// if (r.nextBoolean())<NEW_LINE>// return null;<NEW_LINE>AutogenConfigDiff obj = new AutogenConfigDiff();<NEW_LINE>if (r.nextBoolean()) {<NEW_LINE>int size = r.nextInt(0, 10);<NEW_LINE>List<AutogenHyperparameterSetConfigDiff> r... | .generate(r, status)); |
786,055 | private Map<String, Object> toMap(JobDetail detail, List<? extends Trigger> triggers, ZoneId zoneId) throws SchedulerException {<NEW_LINE>Map<String, Object> json = new LinkedHashMap<>();<NEW_LINE>json.put("key", detail.getKey().toString());<NEW_LINE>Optional.ofNullable(detail.getDescription()).ifPresent(value -> json<... | .put("description", value)); |
952,198 | public Trigger parseTrigger(String jobName, XContentParser parser) throws IOException {<NEW_LINE>XContentParser.<MASK><NEW_LINE>assert token == XContentParser.Token.START_OBJECT;<NEW_LINE>token = parser.nextToken();<NEW_LINE>if (token != XContentParser.Token.FIELD_NAME) {<NEW_LINE>throw new ElasticsearchParseException(... | Token token = parser.currentToken(); |
458,826 | public void run() {<NEW_LINE>final IdleStrategy idleStrategy = SampleConfiguration.newIdleStrategy();<NEW_LINE>final AtomicBoolean running = this.running;<NEW_LINE>final Publication publication = this.publication;<NEW_LINE>final BufferClaim bufferClaim = new BufferClaim();<NEW_LINE>long backPressureCount = 0;<NEW_LINE>... | backPressureRatio = backPressureCount / (double) totalMessageCount; |
837,798 | public PushBuilder newPushBuilder() {<NEW_LINE>String methodName = "newPushBuilder";<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE)) {<NEW_LINE>// 306998.15<NEW_LINE>logger.entering(CLASS_NAME, methodName, "this -> " + this);<NEW_LINE>}<NEW_LINE>IRequest40 iRequest = (IRequest40) get... | FINE, CLASS_NAME, methodName, "push not supported"); |
545,049 | private static void solve(String solverType) {<NEW_LINE>System.out.println("---- CoinsGridMIP with " + solverType);<NEW_LINE>MPSolver solver = MPSolver.createSolver(solverType);<NEW_LINE>if (solver == null)<NEW_LINE>return;<NEW_LINE>int n = 31;<NEW_LINE>int c = 14;<NEW_LINE>MPVariable[][] x = new MPVariable[n][n];<NEW_... | ].solutionValue() + " "); |
1,562,647 | public void writeTo(DexFile file, AnnotatedOutput out) {<NEW_LINE>boolean annotates = out.annotates();<NEW_LINE>TypeIdsSection typeIds = file.getTypeIds();<NEW_LINE>int classIdx = typeIds.indexOf(thisClass);<NEW_LINE>int superIdx = (superclass == null) ? -1 : typeIds.indexOf(superclass);<NEW_LINE>int interOff = Offsett... | + Hex.u4(staticValuesOff)); |
1,824,381 | static void pollCheckAppContextLocal(final Locale destLocale, final int index, final Utils.Consumer<Boolean> consumer) {<NEW_LINE>Resources appResources = Utils.getApp().getResources();<NEW_LINE>Configuration appConfig = appResources.getConfiguration();<NEW_LINE>Locale appLocal = getLocal(appConfig);<NEW_LINE>setLocal(... | destLocale, index + 1, consumer); |
346,841 | public void emitComment(String commentID, String possibleComment, int linkType) {<NEW_LINE>if (noCommentsOnRemovals && linkType == 0) {<NEW_LINE>reportFile.println(" <TD> </TD>");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (noCommentsOnAdditions && linkType == 1) {<NEW_LINE>reportFile.println(" <TD> </TD>");<N... | RootDocToXML.endOfFirstSentence(possibleComment, false); |
417,496 | public DimensionKeyDetail unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DimensionKeyDetail dimensionKeyDetail = new DimensionKeyDetail();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.get... | String currentParentElement = context.getCurrentParentElement(); |
633,598 | private void saveFile(File file) {<NEW_LINE>try {<NEW_LINE>BufferedWriter writer = new BufferedWriter(new FileWriter(file));<NEW_LINE>try {<NEW_LINE>writer.write("global DR_GROUP_ID\n");<NEW_LINE>writer.write("global drg\n");<NEW_LINE>writer.write("try:\n");<NEW_LINE>writer.write(" if DR_GROUP_ID >= 0:\n");<NEW_LINE... | write("drg[DR_GROUP_ID].set_freq(trick." + frequency + ")\n"); |
999,062 | final DeleteUserResult executeDeleteUser(DeleteUserRequest deleteUserRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteUserRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
878,699 | public void handleSetStoreInfoRequest(final SetStoreInfoRequest request, final RequestProcessClosure<BaseRequest, BaseResponse> closure) {<NEW_LINE>final long clusterId = request.getClusterId();<NEW_LINE>final SetStoreInfoResponse response = new SetStoreInfoResponse();<NEW_LINE>response.setClusterId(clusterId);<NEW_LIN... | LOG.info("Handling {}.", request); |
322,063 | public GetRelationalDatabaseBundlesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetRelationalDatabaseBundlesResult getRelationalDatabaseBundlesResult = new GetRelationalDatabaseBundlesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement... | )).unmarshall(context)); |
938,097 | private boolean reuseCachedHandle(boolean hasNewTypeDefinitions, boolean discardCurrentCacheItem) {<NEW_LINE>// No re-use of caching for cursorable statements (statements that WILL use sp_cursor*)<NEW_LINE>if (isCursorable(executeMethod))<NEW_LINE>return false;<NEW_LINE>// If current cache items needs to be discarded o... | setPreparedStatementHandle(cachedHandle.getHandle()); |
1,044,312 | public DescribeMitigationActionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeMitigationActionResult describeMitigationActionResult = new DescribeMitigationActionResult();<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>reader.beginObject();<NEW_LINE>while (reader.h... | ().unmarshall(context)); |
658,418 | public void grant(Cube cube, Access access) {<NEW_LINE>Util.assertPrecondition(cube != null, "cube != null");<NEW_LINE>assert access == Access.ALL || access == Access.NONE || access == Access.CUSTOM;<NEW_LINE>Util.assertPrecondition(isMutable(), "isMutable()");<NEW_LINE>LOGGER.trace("Grant " + access + " on cube " + cu... | , access.name() }); |
72,198 | public void write(LogoutRequestType logOutRequest) throws ProcessingException {<NEW_LINE>StaxUtil.writeStartElement(writer, PROTOCOL_PREFIX, JBossSAMLConstants.LOGOUT_REQUEST.get(), PROTOCOL_NSURI.get());<NEW_LINE>StaxUtil.writeNameSpace(writer, PROTOCOL_PREFIX, PROTOCOL_NSURI.get());<NEW_LINE>StaxUtil.writeNameSpace(w... | ), destination.toASCIIString()); |
928,102 | public Request<ListJobExecutionsForThingRequest> marshall(ListJobExecutionsForThingRequest listJobExecutionsForThingRequest) {<NEW_LINE>if (listJobExecutionsForThingRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListJobExecutionsForThingRequest)");<NEW_LINE>}<NEW_LINE>R... | request.addHeader("Content-Type", "application/x-amz-json-1.0"); |
1,603,085 | public static double[] normalize(double[] x, int samplingRate, double windowSizeInSeconds, double skipSizeInSeconds, int windowType, double targetEnergy) {<NEW_LINE>double[] y = new double[x.length];<NEW_LINE>double[] w = new double[x.length];<NEW_LINE>Arrays.fill(y, 0.0);<NEW_LINE><MASK><NEW_LINE>int ws = (int) Math.f... | Arrays.fill(w, 0.0); |
122,113 | // ///////////////////////////////// Registration Methods ///////////////////////////////////<NEW_LINE>public void register(BundleContext bndCtx) {<NEW_LINE>final String methodName = "register()";<NEW_LINE>final boolean trace = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (trace && tc.isEntryEnabled())<NEW_LINE>Tr... | Hashtable<String, String>(); |
739,498 | static void clientSetup(final FMLClientSetupEvent event) {<NEW_LINE>// render layers<NEW_LINE>RenderType cutout = RenderType.cutout();<NEW_LINE>// seared<NEW_LINE>// casting<NEW_LINE>ItemBlockRenderTypes.setRenderLayer(TinkerSmeltery.searedFaucet.get(), cutout);<NEW_LINE>ItemBlockRenderTypes.setRenderLayer(TinkerSmelte... | scorchedTable.get(), cutout); |
35,001 | public void deleteChildRecursive(ViewGroup viewParent, View child, int childIndex) {<NEW_LINE>if (viewParent == null || child == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>HippyViewController hippyChildViewController = null;<NEW_LINE>String childTagString = HippyTag.getClassName(child);<NEW_LINE>if (!TextUtils.isEmpt... | deleteChild(viewParent, child, childIndex); |
992,066 | private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {<NEW_LINE>in.defaultReadObject();<NEW_LINE>// Add mapping field to 4.0, 4.1 models and rearrange the dimensions.<NEW_LINE>if (mapping == null) {<NEW_LINE>this.mapping = ((ImmutableRegressionInfo) outputIDInfo).getIDtoNatur... | double[newModels.size()]; |
561,674 | private Mono<PagedResponse<ExpressRouteServiceProviderInner>> listSinglePageAsync() {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getSubscri... | error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); |
1,381,970 | protected void writeVerboseExecutorState(StringBuilder sb) {<NEW_LINE>if (_executorState != null) {<NEW_LINE>// There is no execution task summary if no execution is in progress.<NEW_LINE>if (!IN_PROGRESS_STATES.contains(_executorState.state())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<TaskType, Map<ExecutionTaskStat... | .format("%s%n", task)); |
130,521 | final DisassociateElasticIpResult executeDisassociateElasticIp(DisassociateElasticIpRequest disassociateElasticIpRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateElasticIpRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,805,819 | public void write(DataOutput out) throws IOException {<NEW_LINE>// ATTN: must write type first<NEW_LINE>Text.writeString(<MASK><NEW_LINE>out.writeLong(id);<NEW_LINE>Text.writeString(out, name);<NEW_LINE>Text.writeString(out, clusterName);<NEW_LINE>out.writeLong(dbId);<NEW_LINE>out.writeLong(tableId);<NEW_LINE>out.write... | out, dataSourceType.name()); |
353,009 | public void onSensorChanged(SensorEvent event) {<NEW_LINE>if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {<NEW_LINE>if (nativeOrientation == Orientation.Portrait) {<NEW_LINE>System.arraycopy(event.values, 0, accelerometerValues, 0, accelerometerValues.length);<NEW_LINE>} else {<NEW_LINE>accelerometerValues[0]... | ] = event.values[2]; |
96,051 | private boolean isCharSetMatch(PDCIDSystemInfo cidSystemInfo, FontInfo info) {<NEW_LINE>if (info.getCIDSystemInfo() != null) {<NEW_LINE>return info.getCIDSystemInfo().getRegistry().equals(cidSystemInfo.getRegistry()) && info.getCIDSystemInfo().getOrdering().<MASK><NEW_LINE>} else {<NEW_LINE>long codePageRange = info.ge... | equals(cidSystemInfo.getOrdering()); |
1,643,289 | public void receiveEmptyMessage(final EmptyMessage message, final EndpointReceiver receiver) {<NEW_LINE>// an empty ACK or RST always is received as a reply to a message<NEW_LINE>// exchange originating locally, i.e. the message will echo an MID<NEW_LINE>// that has been created here<NEW_LINE>EndpointContext context = ... | receiver.receiveEmptyMessage(exchange, message); |
1,792,009 | private boolean skipSendingToTarget(PartitionReplica target) {<NEW_LINE>ClusterServiceImpl clusterService = nodeEngine<MASK><NEW_LINE>assert !target.isIdentical(nodeEngine.getLocalMember()) : "Could not send anti-entropy operation, because " + target + " is local member itself! Local-member: " + clusterService.getLocal... | .getNode().getClusterService(); |
439,901 | final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
547,430 | public static SearchObjectResponse unmarshall(SearchObjectResponse searchObjectResponse, UnmarshallerContext _ctx) {<NEW_LINE>searchObjectResponse.setRequestId(_ctx.stringValue("SearchObjectResponse.RequestId"));<NEW_LINE>searchObjectResponse.setMessage(_ctx.stringValue("SearchObjectResponse.Message"));<NEW_LINE>search... | ("SearchObjectResponse.Data.Records[" + i + "].DeviceID")); |
1,252,925 | public void visit(BLangBreak breakStmt) {<NEW_LINE>BIRLockDetailsHolder toUnlock = this.env.unlockVars.peek();<NEW_LINE>if (!toUnlock.isEmpty()) {<NEW_LINE>BIRBasicBlock goToBB = new BIRBasicBlock(this.env.nextBBId(names));<NEW_LINE>this.<MASK><NEW_LINE>this.env.enclBB.terminator = new BIRTerminator.GOTO(breakStmt.pos,... | env.enclBasicBlocks.add(goToBB); |
312,486 | public void merge(EvaluationBinary other) {<NEW_LINE>if (other.countTruePositive == null) {<NEW_LINE>// Other is empty - no op<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (countTruePositive == null) {<NEW_LINE>// This evaluation is empty -> take results from other<NEW_LINE>this.countTruePositive = other.countTruePositive;<... | rocBinary.merge(other.rocBinary); |
513,006 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>tabbedPane = new javax.swing.JTabbedPane();<NEW_LINE>tab1ScrollPane = new javax.swing.JScrollPane();<NEW_LINE>issuesOutline = new org.netbeans.swing.outline.Outline();<NEW_LINE>tab... | .class, "ProcessorIssuesReportPanel.tab1ScrollPane.TabConstraints.tabTitle"), tab1ScrollPane); |
1,158,583 | public void run() {<NEW_LINE>ApplicationManager.getApplication().runWriteAction(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>final PsiModificationTracker tracker = PsiManager.getInstance(myView.<MASK><NEW_LINE>final long startCount = tracker.getModificationCount();<NEW_LINE>Comman... | getProject()).getModificationTracker(); |
1,423,636 | public byte[] serialize() {<NEW_LINE>int length = 2 + this.chassisId.getLength() + 2 + this.portId.getLength() + 2 + this.ttl.getLength() + 2;<NEW_LINE>for (LLDPTLV tlv : this.optionalTLVList) {<NEW_LINE>if (tlv != null)<NEW_LINE>length += 2 + tlv.getLength();<NEW_LINE>}<NEW_LINE>byte[] data = new byte[length];<NEW_LIN... | this.portId.serialize()); |
1,402,558 | public static void main(String[] args) {<NEW_LINE>final int numElements = 8;<NEW_LINE>final int numKernels = 8;<NEW_LINE>int[] a = new int[numElements];<NEW_LINE>Arrays.fill(a, 0);<NEW_LINE>// @formatter:off<NEW_LINE>TaskSchedule s0 = new TaskSchedule("s0");<NEW_LINE>for (int i = 0; i < numKernels; i++) {<NEW_LINE>s0.t... | System.out.println("migrating devices..."); |
295,675 | private void startAdditionalServices() {<NEW_LINE>Script command = new Script("/bin/systemctl", LOGGER);<NEW_LINE>command.add("stop");<NEW_LINE>command.add("apache2");<NEW_LINE>String result = command.execute();<NEW_LINE>if (result != null) {<NEW_LINE>LOGGER.warn("Error in stopping httpd service err=" + result);<NEW_LI... | = new Script("/bin/bash", LOGGER); |
481,934 | public void onStyleLoaded(@NonNull Style style) {<NEW_LINE>initCoordinates();<NEW_LINE>// Create the LineString from the list of coordinates and then make a GeoJSON<NEW_LINE>// FeatureCollection so we can add the line to our map as a layer.<NEW_LINE>LineString lineString = LineString.fromLngLats(routeCoordinates);<NEW_... | (Feature.fromGeometry(lineString)); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.