idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
884,071
public GetTagsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetTagsResult getTagsResult = new GetTagsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_...
String currentParentElement = context.getCurrentParentElement();
1,069,549
public void write(org.apache.thrift.protocol.TProtocol prot, partition_configuration struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet optionals = new java.util.BitSet();<NEW_LINE>if (struc...
oprot.writeI64(struct.ballot);
316,788
// PK83345 Start<NEW_LINE>protected void commonInitializationFinally(List extensionFactories) {<NEW_LINE>// PM62909 , Specification Topic :: Web Application Deployment, Initialize Filters before Startup Servlets<NEW_LINE>if (com.ibm.ws.webcontainer.osgi.WebContainer.isServerStopping())<NEW_LINE>return;<NEW_LINE>if (ini...
CLASS_NAME, "commonInitializationFinally", "error.initializing.filters", th);
35,668
public MergeStatus merge(TicketModel ticket) {<NEW_LINE>PersonIdent committer = new PersonIdent(user.getDisplayName(), StringUtils.isEmpty(user.emailAddress) ? (user.username + "@gitblit") : user.emailAddress);<NEW_LINE>Patchset patchset = ticket.getCurrentPatchset();<NEW_LINE>String message = MessageFormat.format("Mer...
.status.name() });
1,844,053
final ListArtifactsResult executeListArtifacts(ListArtifactsRequest listArtifactsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listArtifactsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
(super.beforeMarshalling(listArtifactsRequest));
1,168,315
private void childLock(final MenuItem item) {<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(this, R.style.CustomAlertDialogTheme);<NEW_LINE>builder.setTitle(R.string.action_mode_child_lock);<NEW_LINE>builder.setMessage(R.string.action_mode_dialog_message_lock);<NEW_LINE>builder.setIcon(R.drawable.ic_lo...
TopFragment.debug = !TopFragment.debug;
677,723
protected void afterObjectNew(String desc) {<NEW_LINE>if (loc.getWhere() == Where.AFTER) {<NEW_LINE>String extName = desc.replace('/', '.');<NEW_LINE>if (matches(loc.getClazz(), extName)) {<NEW_LINE>Type instType = Type.getObjectType(desc);<NEW_LINE>addExtraTypeInfo(om.getSelfParameter(), Type.getObjectType(className))...
[] { Constants.STRING_TYPE });
555,569
private SourcePath requireSharedLibrary(BuildTarget target, ActionGraphBuilder graphBuilder, CellPathResolver cellRoots, ProjectFilesystem filesystem, CxxPlatform cxxPlatform, Optional<ImmutableMap<BuildTarget, Version>> selectedVersions, PrebuiltCxxLibraryDescriptionArg args) {<NEW_LINE>// If the shared library is pre...
paths = getPaths(target, args);
1,439,476
protected EntityTypesMap retrieveEntityTypesMap() {<NEW_LINE>final List<EntityTypeEntry> entries = new ArrayList<>(50);<NEW_LINE>PreparedStatement pstmt = null;<NEW_LINE>ResultSet rs = null;<NEW_LINE>final String sql = "SELECT * FROM AD_EntityType WHERE IsActive=? ORDER BY AD_EntityType_ID";<NEW_LINE>final Object[] sql...
= new Object[] { true };
188,846
private static boolean decodePointVar(byte[] p, int pOff, boolean negate, PointExt r) {<NEW_LINE>byte[] py = copy(p, pOff, POINT_BYTES);<NEW_LINE>if (!checkPointVar(py)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int x_0 = (py[POINT_BYTES - 1] & 0x80) >>> 7;<NEW_LINE>py[POINT_BYTES - 1] &= 0x7F;<NEW_LINE>F.decode(py,...
r.x, r.x);
797,651
protected Pair<JavaRDD<String>, JavaRDD<String>> splitNewDataToTrainTest(JavaRDD<String> newData) {<NEW_LINE>// Rough approximation; assumes timestamps are fairly evenly distributed<NEW_LINE>StatCounter maxMin = newData.mapToDouble(line -> MLFunctions.TO_TIMESTAMP_FN.call(line).doubleValue()).stats();<NEW_LINE>long min...
.call(line) >= approxTestTrainBoundary);
1,276,125
public void writeTo(Object t, Class type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap httpHeaders, OutputStream entityStream) throws IOException, WebApplicationException {<NEW_LINE>MessageBodyWriter jaxbWriter = this.providers.getMessageBodyWriter(type, genericType, annotations, Medi...
toByteArray()), entityStream });
1,688,038
static void data(EntityManager em) {<NEW_LINE>// Set up database<NEW_LINE>// ---------------<NEW_LINE>Language english = new Language("English");<NEW_LINE><MASK><NEW_LINE>Actor umaThurman = new Actor("Uma", "Thurman");<NEW_LINE>Actor davidCarradine = new Actor("David", "Carradine");<NEW_LINE>Actor darylHannah = new Act...
Language german = new Language("German");
1,450,788
private static EventType resolveOrCreateType(EPTypeClass clazz, StatementCompileTimeServices services) {<NEW_LINE>services.getEventTypeCompileTimeResolver();<NEW_LINE>// find module-own type<NEW_LINE>Collection<EventType> moduleTypes = services.getEventTypeCompileTimeRegistry().getNewTypesAdded();<NEW_LINE>for (EventTy...
found = new ArrayList<>();
815,925
private <T> Page<T> sortAndPage(Integer pageNum, Integer pageSize, String sortField, Sort.Direction sortType, List<T> defectBaseVoList) {<NEW_LINE>if (StringUtils.isEmpty(sortField)) {<NEW_LINE>sortField = "createTime";<NEW_LINE>}<NEW_LINE>if (null == sortType) {<NEW_LINE>sortType = Sort.Direction.ASC;<NEW_LINE>}<NEW_L...
1, pageSizeNum, totalPageNum, defectBaseVoList);
1,302,162
public Request<PutAccessPointPolicyForObjectLambdaRequest> marshall(PutAccessPointPolicyForObjectLambdaRequest putAccessPointPolicyForObjectLambdaRequest) {<NEW_LINE>if (putAccessPointPolicyForObjectLambdaRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NE...
(putAccessPointPolicyForObjectLambdaRequest.getAccountId()));
1,774,926
public Attachment addAttachment(final String assetId, final AttachmentSummary attSummary) throws IOException, BadVersionException, RequestFailureException {<NEW_LINE>final Attachment attach = attSummary.getAttachment();<NEW_LINE>final String name = attSummary.getName();<NEW_LINE>// Info about the attachment goes into t...
= "/assets/" + assetId + "/attachments?name=" + name;
1,155,969
private SmsMessage updateMessageStatus(Context context, Uri messageUri, byte[] pdu, String format) {<NEW_LINE>SmsMessage message = SmsMessage.createFromPdu(pdu);<NEW_LINE>if (message == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// Create a "status/#" URL and use it to update the<NEW_LINE>// message's status in ...
put(Sms.STATUS, status);
685,456
public Expression implement(RexToLixTranslator translator, RexCall call, List<Expression> translatedOperands) {<NEW_LINE>switch(call.getOperands().size()) {<NEW_LINE>case 1:<NEW_LINE>switch(call.getType().getSqlTypeName()) {<NEW_LINE>case BIGINT:<NEW_LINE>case INTEGER:<NEW_LINE>case SMALLINT:<NEW_LINE>case TINYINT:<NEW...
operand, type, timeUnitRange.startUnit);
1,605,480
protected List<PortForwardingStruct> makePortForwardingStruct(List<VmNicInventory> nics, boolean releaseVmNicInfo, L3NetworkInventory l3) {<NEW_LINE>VmNicInventory nic = null;<NEW_LINE>for (VmNicInventory inv : nics) {<NEW_LINE>if (VmNicHelper.getL3Uuids(inv).contains(l3.getUuid())) {<NEW_LINE>nic = inv;<NEW_LINE>break...
getL3NetworkUuid(), L3NetworkVO.class);
903,486
public void renameCodeSnippets() {<NEW_LINE>// BEGIN: com.azure.storage.file.datalake.DataLakeFileAsyncClient.rename#String-String<NEW_LINE>DataLakeFileAsyncClient renamedClient = client.rename(<MASK><NEW_LINE>System.out.println("Directory Client has been renamed");<NEW_LINE>// END: com.azure.storage.file.datalake.Data...
fileSystemName, destinationPath).block();
471,998
public DataRecord deserialize(final DataInput source, @NonNegative final long recordID, final SirixDeweyID deweyID, final PageReadOnlyTrx pageReadTrx) throws IOException {<NEW_LINE>final byte[] nspBytes = new byte[source.readInt()];<NEW_LINE>source.readFully(nspBytes);<NEW_LINE>final byte[] prefixBytes = new byte[sourc...
add(source.readLong());
1,082,338
public synchronized LinearRegressionModelState modelState() {<NEW_LINE>Map<Integer, Double> detailCompleteness = new HashMap<>();<NEW_LINE>for (Map.Entry<Integer, AtomicInteger> entry : INDICES.entrySet()) {<NEW_LINE>detailCompleteness.put(entry.getKey(), Math.min((double) entry.getValue().get() / numObservationsPerUti...
usedLeaderBytesInToBytesOutRatio.getOrDefault(leaderBytesInToBytesOutRatio, 0);
472,561
public MOrder createPOForVendor(int bPartnerId, MOrder salesOrder) {<NEW_LINE>MOrder purchaseOrder = new MOrder(getCtx(), 0, get_TrxName());<NEW_LINE>purchaseOrder.setClientOrg(salesOrder.getAD_Client_ID(), salesOrder.getAD_Org_ID());<NEW_LINE>purchaseOrder.setIsSOTrx(false);<NEW_LINE>purchaseOrder.setC_DocTypeTarget_I...
setDropShip_BPartner_ID(salesOrder.getDropShip_BPartner_ID());
729,356
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {<NEW_LINE>HttpServletRequest httpRequest = (HttpServletRequest) request;<NEW_LINE>HttpServletResponse httpResponse = (HttpServletResponse) response;<NEW_LINE>if (super.shouldFilter(httpRequest...
header.getName(), headerValue);
361,547
private void writeArray(ArrayIndex lhs, ReferenceExpressionPair readResult, Scope scope) {<NEW_LINE><MASK><NEW_LINE>IntegerValue symb_index = new IntegerConstant(lhs.getArrayIndex());<NEW_LINE>Object conc_array;<NEW_LINE>try {<NEW_LINE>conc_array = arrayReference.getObject(scope);<NEW_LINE>} catch (CodeUnderTestExcepti...
ArrayReference arrayReference = lhs.getArray();
1,700,018
public final List<? extends FileBasedSource<T>> split(long desiredBundleSizeBytes, PipelineOptions options) throws Exception {<NEW_LINE>// This implementation of method split is provided to simplify subclasses. Here we<NEW_LINE>// split a FileBasedSource based on a file pattern to FileBasedSources based on full single<...
), splitResults.size());
991,858
// The tested deployment exceptions cause FFDC so we have to allow for this.<NEW_LINE>@AllowedFFDC()<NEW_LINE>public void launchHealth40Tck() throws Exception {<NEW_LINE>String protocol = "http";<NEW_LINE>String host = server.getHostname();<NEW_LINE>String port = Integer.toString(server.getPort(PortType.WC_defaulthost)...
"://" + host + ":" + port);
1,072,605
public static FFICIF apiCreateCIFVar(int abi, int nfixedargs, FFIType rtype, FFIType... atypes) {<NEW_LINE>// These CIFs will never be deallocated, use the allocator directly to ignore them when detecting memory leaks.<NEW_LINE>MemoryAllocator allocator = MemoryUtil.getAllocator();<NEW_LINE>PointerBuffer pArgTypes = Po...
* POINTER_SIZE), atypes.length);
602,297
private byte[] genMetabitsData() throws IOException {<NEW_LINE>// the metabits is now prefixed by a long specifying the lastTxReleaseTime<NEW_LINE>// used to free the deferedFree allocations. This is used to determine<NEW_LINE>// which commitRecord to access to process the nextbatch of deferred<NEW_LINE>// frees.<NEW_...
.writeInt(m_metaBits[i]);
179,608
public static ConfigItem parseFromMap(Map<String, Object> map) {<NEW_LINE>ConfigItem configItem = new ConfigItem();<NEW_LINE>configItem.setType((String) map.get(CONFIG_ITEM_TYPE));<NEW_LINE>Object enabled = map.get(ENABLED_KEY);<NEW_LINE>if (enabled != null) {<NEW_LINE>configItem.setEnabled(Boolean.parseBoolean(enabled...
(Collectors.toList()));
1,681,568
ActionResult<WrapOutId> execute(String appDictFlag, String appInfoFlag, String path0, String path1, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<WrapOutId> result = new ActionResult<>();<NEW_LINE><MASK><...
Business business = new Business(emc);
723,060
public DescribeIdentityResult describeIdentity(DescribeIdentityRequest describeIdentityRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeIdentityRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsReque...
DescribeIdentityRequestMarshaller().marshall(describeIdentityRequest);
1,701,098
final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
invoke(request, responseHandler, executionContext);
965,663
public ApiResponse<Void> createUserWithHttpInfo(User body) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'body' when calling createUser");<NEW_LINE>}...
HashMap<String, String>();
991,035
public ArrayList<Byte> retreiveBuffer() throws IOException {<NEW_LINE>int totalIntSamples = totalBytes / 2;<NEW_LINE>Log.v(TAG, "Fetching samples : " + totalIntSamples + ", split : " + commandsProto.DATA_SPLITTING);<NEW_LINE>ArrayList<Byte> listData = new ArrayList<>();<NEW_LINE>for (int i = 0; i < (totalIntSamples / c...
sendInt(i * commandsProto.DATA_SPLITTING);
814,786
private void renderCrossbar(BannerBlockEntity bannerBlockEntity, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int i, int j) {<NEW_LINE>matrixStack.push();<NEW_LINE>BlockState blockState = bannerBlockEntity.getCachedState();<NEW_LINE>matrixStack.translate(0.5D, -0.1666666716337204D, 0.5D);<NEW...
getVertexConsumer(vertexConsumerProvider, RenderLayer::getEntitySolid);
1,798,017
private void handle(APICreateL3NetworkMsg msg) {<NEW_LINE>SimpleQuery<L2NetworkVO> query = dbf.createQuery(L2NetworkVO.class);<NEW_LINE>query.select(L2NetworkVO_.zoneUuid);<NEW_LINE>query.add(L2NetworkVO_.uuid, Op.EQ, msg.getL2NetworkUuid());<NEW_LINE>String zoneUuid = query.findValue();<NEW_LINE>assert zoneUuid != nul...
factory.createL3Network(vo, msg);
379,817
public JsonNode digest(final JsonNode schema) {<NEW_LINE>final ObjectNode ret = FACTORY.objectNode();<NEW_LINE>final ArrayNode properties = FACTORY.arrayNode();<NEW_LINE>final ArrayNode patternProperties = FACTORY.arrayNode();<NEW_LINE>ret.put(keyword, true);<NEW_LINE>ret.set("properties", properties);<NEW_LINE>ret.set...
list) properties.add(s);
1,363,670
final DeleteEventSubscriptionResult executeDeleteEventSubscription(DeleteEventSubscriptionRequest deleteEventSubscriptionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteEventSubscriptionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,839,842
private static void changeLanguageWithUndo(@Nonnull Project project, @Nonnull Language t, @Nonnull VirtualFile[] sortedFiles, @Nonnull PerFileMappings<Language> mappings) throws UnexpectedUndoException {<NEW_LINE>ReadonlyStatusHandler.OperationStatus status = ReadonlyStatusHandler.getInstance(project).ensureFilesWritab...
, mappings.getMapping(file));
359,422
// remoteFilePath must be a file(not dir) and does not contain checksum<NEW_LINE>public Status download(String remoteFilePath, String localFilePath) {<NEW_LINE>// 0. list to get to full name(with checksum)<NEW_LINE>List<RemoteFile> remoteFiles = Lists.newArrayList();<NEW_LINE>Status status = storage.list(remoteFilePath...
ErrCode.COMMON_ERROR, "failed to get md5sum of file: " + localFilePath);
1,769,769
private void copyToDestDir(List<ProjectIconInfo> prjInfoList) {<NEW_LINE>FileSet fs = null;<NEW_LINE>for (Iterator<ProjectIconInfo> iter = prjInfoList.iterator(); iter.hasNext(); ) {<NEW_LINE>fs = new FileSet();<NEW_LINE>log("Setting basedir for fileset: " + baseDir, Project.MSG_VERBOSE);<NEW_LINE>ProjectIconInfo prjIc...
setIncludes(info.getPath());
1,157,985
protected void initChannel(SocketChannel ch) throws Exception {<NEW_LINE>// If channel handler implementations are not annotated with @Sharable, Netty creates a new instance of every class<NEW_LINE>// in the pipeline for every connection.<NEW_LINE>// i.e. if there are a 1000 active connections there will be a 1000 Nett...
(new ChannelHandler[0]));
1,438,344
public static Collection<RegressionExecution> executions() {<NEW_LINE>ArrayList<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new ContextKeySegmentedPatternFilter());<NEW_LINE>execs.add(new ContextKeySegmentedJoinRemoveStream());<NEW_LINE>execs.add(new ContextKeySegmentedSelector());<NEW_LINE>execs...
.add(new ContextKeySegmentedSubselectPrevPrior());
849,014
public static void main(String[] argv) throws Exception {<NEW_LINE>if (argv.length < 2) {<NEW_LINE>System.err.println("Usage: " + CheckMessages.class.getName() + " <plugin descriptor xml> <bug description xml> [<bug description xml>...]");<NEW_LINE>System.exit(1);<NEW_LINE>}<NEW_LINE>String pluginDescriptor = argv[0];<...
out.println("Checking messages file " + messagesFile);
1,748,131
private void prepareStyles() {<NEW_LINE>StyledDocument doc = textPane.getStyledDocument();<NEW_LINE>Map<String, Color> keyWordColorMap = owlEditorKit.getWorkspace().getKeyWordColorMap();<NEW_LINE>for (String keyWord : keyWordColorMap.keySet()) {<NEW_LINE>Style s = doc.addStyle(keyWord, null);<NEW_LINE>Color color = key...
doc.addStyle("COMMENTED_OUT_STYLE", null);
477,204
public CompletableFuture<Void> clearBacklog() {<NEW_LINE>CompletableFuture<Void> future = new CompletableFuture<>();<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("[{}][{} -> {}] Backlog size before clearing: {}", topicName, localCluster, remoteCluster, cursor.getNumberOfEntriesInBacklog(false));<NEW_LINE>}<N...
, cursor.getNumberOfEntriesInBacklog(false));
1,475,072
// test attempts to propagate active transaction to 2 threads at once<NEW_LINE>@AllowedFFDC("java.lang.IllegalStateException")<NEW_LINE>@Test<NEW_LINE>public void testTransactionContextPropagation() throws Exception {<NEW_LINE>// propagates ThreadContext.TRANSACTION<NEW_LINE>ManagedExecutor executor = appTxExecutor;<NE...
get(TIMEOUT_MIN, TimeUnit.MINUTES);
568,360
private void compressSize() {<NEW_LINE>compressSize = true;<NEW_LINE>LayoutInflater inflater = getLayoutInflater();<NEW_LINE>View dialogLayout = inflater.inflate(R.layout.dialog_compresssize, null);<NEW_LINE>TextView title = dialogLayout.findViewById(R.id.compress_title);<NEW_LINE>title.setBackgroundColor(getPrimaryCol...
AlertDialog dialog = alert.create();
1,794,117
public void multiRemove(final ReadableArray keys, final Callback callback) {<NEW_LINE>if (keys.size() == 0) {<NEW_LINE>callback.invoke();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>new GuardedAsyncTask<Void, Void>(getReactApplicationContext()) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected void doInBackgroundGuarded(Void....
e.getMessage(), e);
314,449
private CompositeData readCompositeData(Object value, CompositeType ct) throws ConversionException {<NEW_LINE>Set<String> keys = ct.keySet();<NEW_LINE>if (!(value instanceof JSONObject)) {<NEW_LINE>throwConversionException("readCompositeData() expects a JSONObject.", value);<NEW_LINE>}<NEW_LINE>JSONObject json = (JSONO...
, ct.getType(key));
1,094,636
// -------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public Function<Double, Double> differentiate(Function<Double, Double> function, Function<Double, Boolean> domain) {<NEW_LINE><MASK><NEW_LINE>ArgChecker.notNull(domain, "domain");<NEW_LINE>return new Function<Double...
ArgChecker.notNull(function, "function");
1,849,606
final UpdateOrganizationConfigurationResult executeUpdateOrganizationConfiguration(UpdateOrganizationConfigurationRequest updateOrganizationConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateOrganizationConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,510,552
public static UpdatePrometheusAlertRuleResponse unmarshall(UpdatePrometheusAlertRuleResponse updatePrometheusAlertRuleResponse, UnmarshallerContext _ctx) {<NEW_LINE>updatePrometheusAlertRuleResponse.setRequestId(_ctx.stringValue("UpdatePrometheusAlertRuleResponse.RequestId"));<NEW_LINE>PrometheusAlertRule prometheusAle...
(_ctx.stringValue("UpdatePrometheusAlertRuleResponse.PrometheusAlertRule.Duration"));
1,500,235
public void callAsync(KrollObject krollObject, HashMap args) {<NEW_LINE>// Validate.<NEW_LINE>if (args == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Fetch selected date "value". Property won't be defined if user canceled out.<NEW_LINE>Object objectValue = args.get(TiC.PROPERTY_VALUE);<NEW_LINE>if (!(objectValue in...
put(TiC.PROPERTY_VALUE, dateValue);
995,286
public void scan(int index, GradPair left, GradPair right) {<NEW_LINE>if (numClass == 2 || multiClassMultiTree) {<NEW_LINE>((BinaryGradPair) left).plusBy(gradients[index], hessians[index]);<NEW_LINE>((BinaryGradPair) right).subtractBy(gradients[index], hessians[index]);<NEW_LINE>} else if (!fullHessian) {<NEW_LINE>Mult...
] -= gradients[offset + i];
604,490
private static String[] substituteEnv(Format format, String[] envp) {<NEW_LINE>if (envp == null || envp.length == 0 || format == null) {<NEW_LINE>return envp;<NEW_LINE>}<NEW_LINE>String[] ret = new String[envp.length];<NEW_LINE>StringBuffer adder = new StringBuffer();<NEW_LINE>for (int i = 0; i < envp.length; i++) {<NE...
].substring(idx + 1);
883,629
public UseCase unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UseCase useCase = new UseCase();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token...
class).unmarshall(context));
116,343
private static void initializeInterface(Configuration c, String ifaceName, @Nullable String vrfName, SnapshotRuntimeData snapshotRuntimeData, Warnings w) {<NEW_LINE>// Either use the provided runtime data to get the interface speed, or else default to guessing<NEW_LINE>// based on name.<NEW_LINE>Optional<InterfaceRunti...
InterfaceType.UNKNOWN).build();
1,581,879
public boolean handleResponseError(BackOffer backOffer, RespT resp) {<NEW_LINE>if (resp == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>PDError error = getError.apply(resp);<NEW_LINE>if (error != null) {<NEW_LINE>switch(error.getErrorType()) {<NEW_LINE>case PD_ERROR:<NEW_LINE>backOffer.doBackOff(BackOffFunction.B...
debug(error.getMessage());
1,145,654
protected Entry<String, List<Double>> createOutputDoubleValues(Collection<Map<String, Object>> ruleResults) {<NEW_LINE>Map<String, List<Double>> <MASK><NEW_LINE>for (Map<String, Object> ruleResult : ruleResults) {<NEW_LINE>for (Entry<String, Object> entry : ruleResult.entrySet()) {<NEW_LINE>if (distinctOutputDoubleValu...
distinctOutputDoubleValues = new HashMap<>();
1,575,116
public static GetSettingsResponse fromXContent(XContentParser parser) throws IOException {<NEW_LINE>HashMap<String, Settings> indexToSettings = new HashMap<>();<NEW_LINE>HashMap<String, Settings> <MASK><NEW_LINE>if (parser.currentToken() == null) {<NEW_LINE>parser.nextToken();<NEW_LINE>}<NEW_LINE>XContentParserUtils.en...
indexToDefaultSettings = new HashMap<>();
78,074
public RepositoryNameIdPair unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RepositoryNameIdPair repositoryNameIdPair = new RepositoryNameIdPair();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe...
JsonToken token = context.getCurrentToken();
863,304
protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {<NEW_LINE>final int count = Common.normalise(req.getParameter("queries"));<NEW_LINE>final World[] worlds = new World[count];<NEW_LINE>// Fetch some rows from the database.<NEW_LINE>try (Connection conn = dataSour...
statement.setInt(1, id);
1,755,253
void submitFeedback() {<NEW_LINE>if (dialogFeedbackBinding.feedbackItemEditText.getText().toString().equals("")) {<NEW_LINE>dialogFeedbackBinding.feedbackItemEditText.setError(getContext().getString(R.string.enter_description));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String appVersion = <MASK><NEW_LINE>String androidVers...
ConfigUtils.getVersionNameWithSha(getContext());
193,832
private void readerLookup(MediaType mediaType, RuntimeType runtimeType, List<MediaType> mt, List<MessageBodyReader<?>> ret, List<ResourceReader> goodTypeReaders) {<NEW_LINE>if (goodTypeReaders != null && !goodTypeReaders.isEmpty()) {<NEW_LINE>List<ResourceReader> mediaTypeMatchingReaders = new ArrayList<>(goodTypeReade...
add(mediaTypeMatchingReader.instance());
1,287,263
public Predicate generate(Predicate originalPredicate) {<NEW_LINE>if (generated) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>generated = true;<NEW_LINE>if (!intersected) {<NEW_LINE>return originalPredicate;<NEW_LINE>}<NEW_LINE>if (isNullnessCheck()) {<NEW_LINE>return new EqualPredicate(attribute, NULL);<NEW_LINE>}<NEW_...
attribute, to, toInclusive, true);
1,602,926
/*<NEW_LINE>* Provided that m is of a type that implements interface java.util.Map:<NEW_LINE>* <ul><NEW_LINE>* <li>Given a call m.containsKey(k), ensures that k is @KeyFor("m") in the thenStore of the transfer result.<NEW_LINE>* <li>Given a call m.put(k, ...), ensures that k is @KeyFor("m") in the thenStore and elseSto...
(KeyForAnnotatedTypeFactory) analysis.getTypeFactory();
83,408
final DescribeIdentityResult executeDescribeIdentity(DescribeIdentityRequest describeIdentityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeIdentityRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Cognito Identity");
1,640,031
public int execute(final String fullCommand, final CommandLine cl, final Shell shellState) throws Exception {<NEW_LINE>String filterText = null;<NEW_LINE>final InstanceOperations instanceOps = shellState.getAccumuloClient().instanceOperations();<NEW_LINE>final boolean paginate = !cl.<MASK><NEW_LINE>Stream<String> activ...
hasOption(disablePaginationOpt.getOpt());
516,325
public StartTaskContactResult startTaskContact(StartTaskContactRequest startTaskContactRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startTaskContactRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsReque...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,107,027
private byte[][] computeRecipientsField(byte[] seed) throws GeneralSecurityException, IOException {<NEW_LINE>byte[][] recipientsField = new byte[policy.getNumberOfRecipients()][];<NEW_LINE>Iterator<PublicKeyRecipient> it = policy.getRecipientsIterator();<NEW_LINE>int i = 0;<NEW_LINE>while (it.hasNext()) {<NEW_LINE>Publ...
obj = createDERForRecipient(pkcs7input, certificate);
187,256
protected static int unsignedOneSidedGallopingIntersect2by2(final CharBuffer smallSet, final int smallLength, final CharBuffer largeSet, final int largeLength, final char[] buffer) {<NEW_LINE>if (0 == smallLength) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>int k1 = 0;<NEW_LINE>int k2 = 0;<NEW_LINE>int pos = 0;<NEW_LINE>c...
s1 = largeSet.get(k1);
1,238,235
public com.squareup.okhttp.Call orderClosePositionCall(String symbol, Double price, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map vari...
localVarHeaderParams.put("Accept", localVarAccept);
795,790
// ---------------//<NEW_LINE>// mouseReleased //<NEW_LINE>// ---------------//<NEW_LINE>@Override<NEW_LINE>public void mouseReleased(MouseEvent e) {<NEW_LINE>if (mouseMonitor == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (isRezoomWanted(e)) {<NEW_LINE>updateSize(e);<NEW_LINE>mouseMonitor.rectangleZ...
setCursor(Cursor.getDefaultCursor());
117,301
public void handleNotification(Notification notification) {<NEW_LINE>super.handleNotification(notification);<NEW_LINE><MASK><NEW_LINE>UIStage uiStage = sandbox.getUIStage();<NEW_LINE>switch(notification.getName()) {<NEW_LINE>case UIBasicItemProperties.TAGS_BUTTON_CLICKED:<NEW_LINE>viewComponent.show(uiStage);<NEW_LINE>...
Sandbox sandbox = Sandbox.getInstance();
361,001
public void processElement(@Element Row in, OutputReceiver<KV<ByteString, Iterable<Mutation>>> out, ProcessContext c) {<NEW_LINE>DataTokenizationOptions options = c.getPipelineOptions().as(DataTokenizationOptions.class);<NEW_LINE>// Mapping every field in provided Row to Mutation.SetCell, which will create/update<NEW_L...
.of(key, mutations));
648,209
public InstrumentedMethod createInstrumentedMethod(MethodModel benchmarkMethod) throws InvalidBenchmarkException {<NEW_LINE>if (!benchmarkMethod.parameterTypes().isEmpty()) {<NEW_LINE>throw new InvalidBenchmarkException(<MASK><NEW_LINE>}<NEW_LINE>if (!benchmarkMethod.returnType().isPresent() || !benchmarkMethod.returnT...
"Arbitrary measurement methods should take no parameters: " + benchmarkMethod.name());
56,572
protected void visitClass(int version, int access, String name, String signature, String superName, String[] interfaceNames) {<NEW_LINE>String methodName = "visitClass";<NEW_LINE>String useExternalName = getExternalName();<NEW_LINE>if (this.logParms != null) {<NEW_LINE>this.logParms[1] = name;<NEW_LINE>logger.logp(Leve...
= this.classInfo.getHashText();
295,576
private void submit(final List<BatchItem> batch, final EventType eventType, final boolean delete) throws EventPublishingException, InternalNakadiException {<NEW_LINE>final Timeline activeTimeline = timelineService.getActiveTimeline(eventType);<NEW_LINE>final String topic = activeTimeline.getTopic();<NEW_LINE>final Span...
throw new InternalNakadiException("Error closing active span scope", ioe);
499,989
private void sendRequest(Request request, RequestContext requestContext, Map<String, String> wireAttrs, TransportCallback<StreamResponse> callback) {<NEW_LINE>final TransportCallback<StreamResponse> decoratedCallback = decorateUserCallback(request, callback);<NEW_LINE>final NettyClientState state = _state.get();<NEW_LI...
resolvedRequestTimeout = resolveRequestTimeout(requestContext, _requestTimeout);
105,410
private void printPostInstallStepsDebian(File serviceFile) {<NEW_LINE>System.out.println(INTENSITY_BOLD + "Ubuntu/Debian Linux system detected (SystemV):" + INTENSITY_NORMAL);<NEW_LINE>System.out.println(" To install the service:");<NEW_LINE>System.out.println(" $ ln -s " + serviceFile.getPath() + " /etc/init.d/");...
System.out.println(" To disable starting the service when the machine is rebooted:");
585,133
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void initializeDefaultPreferences() {<NEW_LINE>IPreferenceStore store = GroovyPlugin.getDefault().getPreferenceStore();<...
PreferenceConstants.GROOVY_FORMATTER_BRACES_END, PreferenceConstants.NEXT);
1,476,062
private void updateGradleVersionsFile() {<NEW_LINE>File file = getVersionCacheFile();<NEW_LINE>if (file.isFile()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>file<MASK><NEW_LINE>Bundle bundle = Platform.getBundle(IConstants.PLUGIN_ID);<NEW_LINE>URL url = FileLocator.find(bundle, new org.eclipse.core.runtime.Path(GRADLE_VERS...
.getParentFile().mkdirs();
1,258,702
public static void addEncodingToMediaType(MediaType mediaType, io.swagger.v3.oas.annotations.media.Encoding encoding, JsonView jsonViewAnnotation) {<NEW_LINE>if (encoding == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (StringUtils.isNotBlank(encoding.name())) {<NEW_LINE>Encoding encodingObject = new Encoding();<NEW...
(encoding.style()));
1,332,147
protected Change save() throws Expression.ExpressionException, ArithmeticException, NumberFormatException {<NEW_LINE>double x = xField.setPrecision(14).getDouble();<NEW_LINE>double y = yField.setPrecision(14).getDouble();<NEW_LINE>double z = zField.setPrecision(14).getDouble();<NEW_LINE>float yaw = yawField.setPrecisio...
setPrecision(11).getFloat();
1,153,154
private void drawImageOverlay(Graphics g) {<NEW_LINE>int width, height;<NEW_LINE>g.setColor(IMAGE_OVERLAY_COLOR);<NEW_LINE>// left vertical non cropped part<NEW_LINE>width = this.cropZoneRect.x - this.imageRect.x;<NEW_LINE>if (width > 0) {<NEW_LINE>g.fillRect(this.imageRect.x, this.imageRect.y, width, this.imageRect.he...
width, this.imageRect.height);
1,602,832
public static long LLVMDIBuilderCreateModule(@NativeType("LLVMDIBuilderRef") long Builder, @NativeType("LLVMMetadataRef") long ParentScope, @NativeType("char const *") CharSequence Name, @NativeType("char const *") CharSequence ConfigMacros, @NativeType("char const *") CharSequence IncludePath, @NativeType("char const ...
IncludePathEncoded, IncludePathEncodedLength, APINotesFileEncoded, APINotesFileEncodedLength);
122,254
public void show(Activity activity) {<NEW_LINE>int hourToShow = settings.getStreamSleepTimerHour();<NEW_LINE>int minuteToShow = settings.getStreamSleepTimerMinute();<NEW_LINE>if (isRunning && sleepTimerProgressMinutes > 0) {<NEW_LINE>hourToShow = sleepTimerProgressMinutes / 60;<NEW_LINE>minuteToShow = sleepTimerProgres...
, minute = minPicker.getValue();
1,185,509
public void run() {<NEW_LINE>Runtime.getRuntime().addShutdownHook(new Thread(() -> {<NEW_LINE>// Use stderr here since the LOG may has been reset by its JVM shutdown hook.<NEW_LINE>if (NodeServer.this.runner != null) {<NEW_LINE>LOG.warn("*** shutting down gRPC server since JVM is shutting down");<NEW_LINE>NodeServer.th...
") server started, listening on " + server.getPort());
805,634
protected Object objectClone(Object object) {<NEW_LINE>// Fastpath for our commonly used classes<NEW_LINE>if (object instanceof FreezableClass)<NEW_LINE>return ((<MASK><NEW_LINE>else if (object instanceof PublicCloneable)<NEW_LINE>return ((PublicCloneable<?>) object).clone();<NEW_LINE>else if (object instanceof LinkedL...
FreezableClass) object).clone();
973,733
static void printUsage() {<NEW_LINE>ContextConfigurator defaults = ContextConfigurator.systemDefaults();<NEW_LINE>System.err.println("Usage: java -jar fitnesse.jar [-vpdrlfeoaicblh]");<NEW_LINE>System.err.<MASK><NEW_LINE>System.err.println("\t-d <working directory> {" + defaults.get(ROOT_PATH) + "}");<NEW_LINE>System.e...
println("\t-p <port number> {" + DEFAULT_PORT + "}");
643,511
public static Object adaptType(Object value) {<NEW_LINE>// we must convert types (to comply to JDBC)<NEW_LINE>if (value instanceof LocalTime) {<NEW_LINE>// -> java.sql.Time<NEW_LINE>LocalTime time = (LocalTime) value;<NEW_LINE>return Time.valueOf(time);<NEW_LINE>} else if (value instanceof LocalDate) {<NEW_LINE>// -> j...
ByteString) value).getBytes();
672,891
public void addFriendsToFriendGroup(MethodCall methodCall, final MethodChannel.Result result) {<NEW_LINE>String groupName = CommonUtil.getParam(methodCall, result, "groupName");<NEW_LINE>List<String> userIDList = CommonUtil.getParam(methodCall, result, "userIDList");<NEW_LINE>V2TIMManager.getFriendshipManager().addFrie...
v2TIMFriendOperationResults.get(i)));
1,422,652
public final MapEntryContext namedArg() throws RecognitionException {<NEW_LINE>MapEntryContext _localctx = new MapEntryContext(_ctx, getState());<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>setState(1618);<NEW_LINE>_errHandler.sync(this);<NEW_LINE>switch(_input.LA(1)) {<NEW_LINE>case StringLiteral:<NEW_LINE>case GStringBeg...
enterRule(_localctx, 270, RULE_namedArg);
1,655,936
public boolean relocateLeadership(TopicPartition tp, int sourceBrokerId, int destinationBrokerId) {<NEW_LINE>// Sanity check to see if the source replica is the leader.<NEW_LINE>Replica sourceReplica = _partitionsByTopicPartition.get(tp).replica(sourceBrokerId);<NEW_LINE>if (!sourceReplica.isLeader()) {<NEW_LINE>return...
broker(sourceBrokerId).rack();
1,404,555
S3ClientSettings refine(RepositoryMetaData metadata) {<NEW_LINE>final Settings repoSettings = metadata.settings();<NEW_LINE>// Normalize settings to placeholder client settings prefix so that we can use the affix settings directly<NEW_LINE>final Settings normalizedSettings = Settings.builder().put(repoSettings).normali...
getRepoSettingOrDefault(PROTOCOL_SETTING, normalizedSettings, protocol);
1,074,179
public void unremoveSystem(SystemInfo system, PageRef pageRef) {<NEW_LINE>// Re-insert system in sheet<NEW_LINE>// Where to re-insert removed system<NEW_LINE>final int index = system.getId() - 1;<NEW_LINE>systems.add(index, system);<NEW_LINE>// Re-insert page?<NEW_LINE>final Page page = system.getPage();<NEW_LINE>if (p...
SheetStub stub = sheet.getStub();
389,390
final ResetDistributionCacheResult executeResetDistributionCache(ResetDistributionCacheRequest resetDistributionCacheRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(resetDistributionCacheRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);