idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
539,470
public io.kubernetes.client.proto.V1Policy.PodDisruptionBudgetSpec buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1Policy.PodDisruptionBudgetSpec result = new io.kubernetes.client.proto.V1Policy.PodDisruptionBudgetSpec(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if ...
.selector_ = selectorBuilder_.build();
836,859
private void processFilesFromNormalEvent(Set<File> files, File parentDir, WatchEvent<?> event) {<NEW_LINE>Path item = (Path) event.context();<NEW_LINE>File file = new File(parentDir, item.toFile().getName());<NEW_LINE>logger.debug(() -> "Watch event [" + event.kind() + "] for file [" + file + "]");<NEW_LINE>if (Standar...
) -> "The file [" + file + "] has been removed from the queue because of DELETE event.");
1,594,251
public void accept(CSVRecord theRecord) {<NEW_LINE>String code = trim(theRecord.get(CODE));<NEW_LINE>String key = trim(theRecord.get(KEY));<NEW_LINE>if (isNotBlank(code) && isNotBlank(KEY)) {<NEW_LINE>String value = trim(theRecord.get(VALUE));<NEW_LINE>String type = trim(theRecord.get(TYPE));<NEW_LINE>List<TermConceptP...
myCode2Properties.put(code, conceptProperties);
551,362
public static boolean initListPreference(final ListPreference pref, final Map<?, ?> fields, boolean keepExisting) {<NEW_LINE>if (fields.size() > 0) {<NEW_LINE>final List<CharSequence> e = new ArrayList<CharSequence>();<NEW_LINE>final List<CharSequence> ev = new ArrayList<CharSequence>();<NEW_LINE>if (keepExisting) {<NE...
!= null && entries.length > 0;
254,879
private static void put(final RheaKVStore rheaKVStore) {<NEW_LINE>final CompletableFuture<Boolean> r1 = rheaKVStore.put("compareAndPut", writeUtf8("compareAndPutExpect"));<NEW_LINE>if (FutureHelper.get(r1)) {<NEW_LINE>LOG.info("Async put compareAndPut {} success.", readUtf8(rheaKVStore.bGet("compareAndPut")));<NEW_LINE...
rheaKVStore.bGet("compareAndPut")));
985,044
private void updateControlsByModel() {<NEW_LINE>updateFontField();<NEW_LINE>spnFontSize.setValue(outputOptions.getFont().getSize());<NEW_LINE>selectColor(cmbStandardColor, outputOptions.getColorStandard());<NEW_LINE>selectColor(cmbErrorColor, outputOptions.getColorError());<NEW_LINE>selectColor(cmbInputColor, outputOpt...
cmbSuccessColor, outputOptions.getColorSuccess());
168,056
public float evaluateMask(int tl_x, int tl_y) {<NEW_LINE>Objects.requireNonNull(o.mask);<NEW_LINE>float total = 0;<NEW_LINE>for (int y = 0; y < o.template.height; y++) {<NEW_LINE>int imageIndex = o.image.startIndex + (tl_y + y) * o.image.stride + tl_x;<NEW_LINE>int templateIndex = o.template.startIndex + y * o.template...
.data[maskIndex++] & 0xFF;
1,483,999
public okhttp3.Call testBodyWithQueryParamsCall(String query, User body, final ApiCallback _callback) throws ApiException {<NEW_LINE>String basePath = null;<NEW_LINE>// Operation Servers<NEW_LINE>String[] localBasePaths = new String[] {};<NEW_LINE>// Determine Base Path to Use<NEW_LINE>if (localCustomBaseUrl != null) {...
localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
1,793,178
public void calculateProbabilities(int o) {<NEW_LINE>Map<String, Double> frequencyMap = gramLogProbs[o].values;<NEW_LINE>if (o == 1) {<NEW_LINE>int total = gramCounts.totalCount(1);<NEW_LINE>for (String s : gramCounts.getKeyIterator(o)) {<NEW_LINE>double prob = Math.log((double) gramCounts.getCount(o, s) / (double) tot...
s) / (double) cnt);
381,298
private static LinearRing filterRing(LinearRing linearRing) {<NEW_LINE>// first we check if there is anything to filter<NEW_LINE>int numPoints = linearRing.length();<NEW_LINE>int count = 2;<NEW_LINE>for (int i = 1; i < numPoints - 1; i++) {<NEW_LINE>if (skipPoint(linearRing, i) == false) {<NEW_LINE>count++;<NEW_LINE>}<...
] = linearRing.getLat(0);
78,232
private Set<DependencyCandidate> determineIncludedComponents(ResolvedComponentResult root, Map<String, Exclusions> pomExclusionsById) {<NEW_LINE>LinkedList<Node> queue = new LinkedList<Node>();<NEW_LINE>queue.add(new Node(root, getId(root), new HashSet<Exclusion>()));<NEW_LINE>Set<ResolvedComponentResult> seen = new Ha...
().getName()));
1,638,725
public List<Process> listProcesses(String serviceId, String instanceId, String agentId) throws IOException {<NEW_LINE>StringBuilder sql = new StringBuilder();<NEW_LINE>List<Object> condition = new ArrayList<>(5);<NEW_LINE>sql.append("select * from ").append(ProcessTraffic.INDEX_NAME);<NEW_LINE>if (StringUtil.isNotEmpty...
(" limit ").append(metadataQueryMaxSize);
765,612
public KinesisFirehoseOutputDescription unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>KinesisFirehoseOutputDescription kinesisFirehoseOutputDescription = new KinesisFirehoseOutputDescription();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = conte...
class).unmarshall(context));
1,466,198
final DeleteWirelessDeviceResult executeDeleteWirelessDevice(DeleteWirelessDeviceRequest deleteWirelessDeviceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteWirelessDeviceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
(super.beforeMarshalling(deleteWirelessDeviceRequest));
1,288,030
public static GetDesktopGroupDetailResponse unmarshall(GetDesktopGroupDetailResponse getDesktopGroupDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>getDesktopGroupDetailResponse.setRequestId(_ctx.stringValue("GetDesktopGroupDetailResponse.RequestId"));<NEW_LINE>List<Desktop> desktops = new ArrayList<Desktop>();<NE...
("GetDesktopGroupDetailResponse.Desktops[" + i + "].SystemDiskCategory"));
1,004,422
private void sendEmail(DatabaseSession session, Project project, Revision revision) throws UserException {<NEW_LINE>Set<User> users = getUsers(session, project);<NEW_LINE>for (User user : users) {<NEW_LINE>String body = null;<NEW_LINE>try {<NEW_LINE>if (MailSystem.isValidEmailAddress(user.getUsername())) {<NEW_LINE>Ema...
"siteaddress", serverSettings.getSiteAddress());
37,115
// call in AWT to deserialize scene<NEW_LINE>public static void deserializeV1(PageFlowSceneData sceneData, FileObject file) {<NEW_LINE><MASK><NEW_LINE>Node sceneElement = getRootNode(file);<NEW_LINE>// scene.nodeIDcounter = Long.parseLong (getAttributeValue (sceneElement, SCENE_NODE_COUNTER_ATTR));<NEW_LINE>// scene.ed...
LOG.entering("SceneSerializer", "deserializeV1(PageFlowSceneData sceneData, File file)");
1,054,710
private void downloadRemainingRecordsAsCsv(final HttpServletResponse response) {<NEW_LINE>final String fileName = "failed_reindex_records" + new java.util.Date().getTime();<NEW_LINE>final String[] fileColumns = new String[] { "ID", "Identifier To Index", "Priority", "Cause" };<NEW_LINE>PrintWriter pr = null;<NEW_LINE>t...
Logger.warn(this, "Re-index table contained zero failed records. The CSV file will not be created.");
1,388,003
protected void processParameters(EComponentWithViewSupportHolder holder, JMethod listenerMethod, JInvocation call, List<? extends VariableElement> parameters) {<NEW_LINE>boolean hasItemParameter = parameters.size() == 1;<NEW_LINE>AbstractJClass narrowAdapterViewClass = getClasses().ADAPTER_VIEW.narrow(<MASK><NEW_LINE>J...
getCodeModel().wildcard());
1,339,024
/* This function handle all multimaps parameters */<NEW_LINE>private void handleMultimapParameter(String parameterName, String contentTypeRegex, Schema schema, Schema multipartObjectSchema) {<NEW_LINE>if (contentTypeRegex == null) {<NEW_LINE>if (OpenApi3Utils.isSchemaObjectOrAllOfType(schema) || (OpenApi3Utils.isSchema...
isRequiredParam(multipartObjectSchema, parameterName)));
1,020,434
public void verify() {<NEW_LINE>ScheduledExecutorService execService = Executors.newScheduledThreadPool(noOfThreadsToUse);<NEW_LINE>Collection<Future<Optional<String>>> futures = new ArrayList<>(noOfThreadsToUse);<NEW_LINE>registerSpecifiedNumberOfAgents(execService, futures);<NEW_LINE>IntStream.iterate(0, i -> i + 1)....
DisableAgentCommand disableAgentCmd = new DisableAgentCommand(agentService);
447,838
public ScriptHandler prepareDistribution(PerfTest perfTest) throws IOException {<NEW_LINE>File perfTestDistDirectory = getDistributionPath(perfTest);<NEW_LINE>User user = perfTest.getCreatedBy();<NEW_LINE>String scm = perfTest.getScm();<NEW_LINE>FileEntry scriptEntry;<NEW_LINE>if (isGitHubScript(scm)) {<NEW_LINE>String...
gitHubFileEntryService.getGitHubConfig(user, gitHubConfigName);
998,418
private Map<Path, FileStatus> listEligibleFiles(FileSystem fileSystem, Path path) throws IOException {<NEW_LINE>final FileStatus[] statuses;<NEW_LINE>try {<NEW_LINE>statuses = fileSystem.listStatus(path);<NEW_LINE>} catch (IOException e) {<NEW_LINE>// we may run into an IOException if files are moved while listing thei...
LOG.warn("Path does not exist: {}", path);
1,551,361
public void testCreateSharedDurableConsumerWithMsgSelector_2SubscribersDiffTopic_TCP(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>JMSContext jmsContext = jmsTCFTCP.createContext();<NEW_LINE>JMSConsumer jmsConsumer1 = jmsContext.createSharedDurableConsumer(jmsTopic1, "DURATEST3",...
JMSProducer jmsProducer = jmsContext.createProducer();
319,653
public static DescribeLiveStreamsOnlineListResponse unmarshall(DescribeLiveStreamsOnlineListResponse describeLiveStreamsOnlineListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeLiveStreamsOnlineListResponse.setRequestId(_ctx.stringValue("DescribeLiveStreamsOnlineListResponse.RequestId"));<NEW_LINE>describeLiveS...
("DescribeLiveStreamsOnlineListResponse.OnlineInfo[" + i + "].StreamName"));
1,192,261
protected V filterSingleObject(V featureVector) {<NEW_LINE>double[] raw = featureVector.toArray();<NEW_LINE>// Multivariate codepath:<NEW_LINE>if (multiplicity > 1) {<NEW_LINE>assert (raw.length % multiplicity == 0) : "Vector length is not divisible by multiplicity?";<NEW_LINE>double[] mi = new double[multiplicity], ma...
.POSITIVE_INFINITY, ma = Double.NEGATIVE_INFINITY;
58,510
private QueueStoreConfig createQueueStoreConfig(Node node) {<NEW_LINE>QueueStoreConfig queueStoreConfig = new QueueStoreConfig();<NEW_LINE>NamedNodeMap attributes = node.getAttributes();<NEW_LINE>for (int a = 0; a < attributes.getLength(); a++) {<NEW_LINE>Node att = attributes.item(a);<NEW_LINE>if (matches(att.getNodeN...
n, queueStoreConfig.getProperties());
335,967
public void testBodyWithFileSchema(FileSchemaTestClass 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 testBodyWithFileSchema...
"/fake/body-with-file-schema".replaceAll("\\{format\\}", "json");
1,176,233
public void handleFollowReturnsPastSeeds(Abstraction d1, Unit u, Abstraction d2) {<NEW_LINE>SootMethod sm = manager.getICFG().getMethodOf(u);<NEW_LINE>Set<AccessPathPropagator> propagators = getUserCodeTaints(d1, sm);<NEW_LINE>if (propagators != null) {<NEW_LINE>for (AccessPathPropagator propagator : propagators) {<NEW...
getParent().getD2());
1,204,375
public static List<Element> makeToElementList(String temp, String splitStr) {<NEW_LINE>String[] split = temp.split(splitStr);<NEW_LINE>List<Element> list = new ArrayList<Element>(temp.length());<NEW_LINE>for (String word : split) {<NEW_LINE>List<Element> wordAlert = wordAlert(word);<NEW_LINE>int len = wordAlert.size();...
).updateTag(Config.B);
666,036
public boolean hasIncomingChanges(TaskAttribute taskAttribute, boolean includeConflicts) {<NEW_LINE>TaskData repositoryData = workingCopy.getRepositoryData();<NEW_LINE>if (repositoryData == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>taskAttribute = repositoryData.getRoot().getMappedAttribute(taskAttribute.getPa...
TaskData lastReadData = workingCopy.getLastReadData();
486,222
private void populateStateEngineTypes() {<NEW_LINE>for (NFTypeSerializer<?> serializer : getOrderedSerializers()) {<NEW_LINE>if (serializer instanceof ListSerializer) {<NEW_LINE>ListSerializer<?> listSerializer = (ListSerializer<?>) serializer;<NEW_LINE>TypedFieldDefinition elementFieldDef = (TypedFieldDefinition) list...
getFastBlobSchema().getFieldDefinition(0);
560,803
public static Executable storeAllPingData(Map<UUID, List<Ping>> ofUsers) {<NEW_LINE>if (ofUsers == null || ofUsers.isEmpty())<NEW_LINE>return Executable.empty();<NEW_LINE>return new ExecBatchStatement(PingTable.INSERT_STATEMENT) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void prepare(PreparedStatement statement) th...
int minPing = ping.getMin();
1,533,831
private void internalPut(final byte[] key, final byte[] value, final CompletableFuture<Boolean> future, final int retriesLeft, final Errors lastCause) {<NEW_LINE>final Region region = this.pdClient.findRegionByKey(key, ErrorsHelper.isInvalidEpoch(lastCause));<NEW_LINE>final RegionEngine regionEngine = getRegionEngine(r...
final PutRequest request = new PutRequest();
1,641,608
private Mapping createFromPath(String path) {<NEW_LINE>FileInputStream is;<NEW_LINE>List<ClassMapping> classMappings = ListFactory.newList();<NEW_LINE>try {<NEW_LINE>is = new FileInputStream(path);<NEW_LINE>BufferedReader isr = new <MASK><NEW_LINE>ClassMapping currentClassMapping = null;<NEW_LINE>do {<NEW_LINE>String l...
BufferedReader(new InputStreamReader(is));
366,225
public void registerProblem(@Nonnull ProblemDescriptor problemDescriptor) {<NEW_LINE>super.registerProblem(problemDescriptor);<NEW_LINE>if (problemDescriptor instanceof ProblemDescriptorBase) {<NEW_LINE>final TextRange range = ((ProblemDescriptorBase) problemDescriptor).getTextRange();<NEW_LINE>if (range != null && ran...
QuickFixWrapper.wrap(problemDescriptor, k);
981,247
public void save(DeviceDescriptor[] descriptors) {<NEW_LINE>String theNames = "";<NEW_LINE>for (int i = 0; i < descriptors.length; i++) {<NEW_LINE>if (descriptors[i].getId() != null && descriptors[i].getId().length() > 0)<NEW_LINE>devices.remove(descriptors<MASK><NEW_LINE>else {<NEW_LINE>descriptors[i].setId(String.val...
[i].getId());
645,912
private static void decodeByteSegment(BitSource bits, StringBuilder result, int count, CharacterSetECI currentCharacterSetECI, Collection<byte[]> byteSegments, Map<DecodeHintType, ?> hints) throws FormatException {<NEW_LINE>// Don't crash trying to read more bits than we have available.<NEW_LINE>if (8 * count > bits.av...
] readBytes = new byte[count];
1,171,704
private Mono<Response<WorkspaceSettingInner>> createWithResponseAsync(String workspaceSettingName, WorkspaceSettingInner workspaceSetting, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and can...
error(new IllegalArgumentException("Parameter workspaceSetting is required and cannot be null."));
767,435
public Iterator<Map.Entry<byte[], Map<String, byte[]>>> iterator() {<NEW_LINE>final File location = this.table.location();<NEW_LINE>final int keylen = this.table.keylength();<NEW_LINE>try {<NEW_LINE>this.table.flushBuffer();<NEW_LINE>return new EntryIter(location, keylen);<NEW_LINE>} catch (final IOException e1) {<NEW_...
location, keylen, order, buffermax);
633,167
public OWLAnnotation parseXRef(String xref) {<NEW_LINE>Matcher matcher = XREF_PATTERN.matcher(xref);<NEW_LINE>if (matcher.matches()) {<NEW_LINE>OWLDataFactory df = getDataFactory();<NEW_LINE>String xrefQuotedString = matcher.group(XREF_QUOTED_STRING_GROUP);<NEW_LINE>// the quoted string is a description of the xref. I ...
, df.getOWLLiteral(xref));
890,894
public static Collection<RegressionExecution> executions() {<NEW_LINE>ArrayList<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new InfraMapTranspose());<NEW_LINE>execs.add(new InfraNoWildcardWithAs());<NEW_LINE>execs.add(new InfraNoWildcardNoAs());<NEW_LINE>execs<MASK><NEW_LINE>execs.add(new InfraCr...
.add(new InfraConstantsAs());
27,241
ActionResult<List<Wo>> execute(EffectivePerson effectivePerson) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<List<Wo>> result = new ActionResult<>();<NEW_LINE>Business business = new Business(emc);<NEW_LINE>List<Wo> wos = this.l...
id_FIELDNAME, View.query_FIELDNAME, "woViewList");
943,048
private CostDetailCreateResult createComponentIssue(@NonNull final CostDetailCreateRequest request, @NonNull final CurrentCost currentCosts, @NonNull final PPOrderCosts orderCosts) {<NEW_LINE>final CostDetailPreviousAmounts previousCosts = CostDetailPreviousAmounts.of(currentCosts);<NEW_LINE>final CostDetailCreateResul...
roundToPrecisionIfNeeded(currentCosts.getPrecision());
71,792
public static DataStream<Row> calcResultRows(BatchOperator<?> model, StreamOperator<?> input_data, StreamOperator<?> input_model_stream, ModelMapper mapper, Params params, Long mlEnvironmentId, TriFunction<TableSchema, TableSchema, Params, ModelMapper> mapperBuilder) {<NEW_LINE>DataBridge <MASK><NEW_LINE>final DataBrid...
modelDataBridge = DirectReader.collect(model);
1,123,842
public void onResponse(Void v) {<NEW_LINE>// Returns true if all connections have completed successfully<NEW_LINE>if (countDown.countDown()) {<NEW_LINE>final TcpChannel handshakeChannel = channels.get(0);<NEW_LINE>try {<NEW_LINE>executeHandshake(node, handshakeChannel, connectionProfile, ActionListener.wrap(version -> ...
long relativeMillisTime = threadPool.relativeTimeInMillis();
603,010
public static CodegenExpressionNewAnonymousClass codegenEvaluatorWCoerce(ExprForge forge, EPTypeClass optCoercionType, CodegenMethod method, Class generator, CodegenClassScope classScope) {<NEW_LINE>CodegenExpressionNewAnonymousClass evaluator = newAnonymousClass(method.getBlock(), ExprEvaluator.EPTYPE);<NEW_LINE>Codeg...
evaluator.addMethod("evaluate", evaluate);
737,202
public FusekiServer start() {<NEW_LINE>try {<NEW_LINE>FusekiModuleStep.serverBeforeStarting(this);<NEW_LINE>server.start();<NEW_LINE>FusekiModuleStep.serverAfterStarting(this);<NEW_LINE>} catch (IOException ex) {<NEW_LINE>if (ex.getCause() instanceof java.security.UnrecoverableKeyException)<NEW_LINE>// Unbundle for cle...
Fuseki.serverLog.info("Start Fuseki");
457,823
private static void create_via_rule(Collection<String> p_use_via, app.freerouting.rules.NetClass p_net_class, app.freerouting.board.BasicBoard p_board, boolean p_attach_allowed) {<NEW_LINE>app.freerouting.rules.ViaRule new_via_rule = new app.freerouting.rules.ViaRule(p_net_class.get_name());<NEW_LINE>int default_via_cl...
rules.via_rules.add(new_via_rule);
1,804,639
public void init(IStreamDataExporterSite site) throws DBException {<NEW_LINE>super.init(site);<NEW_LINE>Map<String, Object> properties = site.getProperties();<NEW_LINE>this.delimiter = StreamTransferUtils.getDelimiterString(properties, PROP_DELIMITER);<NEW_LINE>this.rowDelimiter = StreamTransferUtils.getDelimiterString...
properties.get(PROP_QUOTE_ALWAYS)));
806,631
public void run() {<NEW_LINE>final ProgressIndicator progressIndicator = ProgressManager.getInstance().getProgressIndicator();<NEW_LINE>final Map<Module, Boolean> inCycle = new HashMap<Module, Boolean>();<NEW_LINE>for (Module module : myModules) {<NEW_LINE>if (progressIndicator != null) {<NEW_LINE>if (progressIndicator...
inCycle.put(module, isInCycle);
808,756
public boolean visit(AnnotationTypeMemberDeclaration node) {<NEW_LINE>ASTNode javadoc = getChildNode(node, AnnotationTypeMemberDeclaration.JAVADOC_PROPERTY);<NEW_LINE>if (javadoc != null) {<NEW_LINE>javadoc.accept(this);<NEW_LINE>}<NEW_LINE>visitList(node, AnnotationTypeMemberDeclaration.MODIFIERS2_PROPERTY, String.val...
.NAME_PROPERTY).accept(this);
119,384
public Object visitMemberSelect(MemberSelectTree node, Object p) {<NEW_LINE>if (wc.getTrees().getElement(new TreePath(getCurrentPath(), node.getExpression())) != varElement) {<NEW_LINE>return super.visitMemberSelect(node, p);<NEW_LINE>}<NEW_LINE>Element target = wc.getTrees().getElement(getCurrentPath());<NEW_LINE>if (...
node.getExpression(), false);
883,871
public final void configure() {<NEW_LINE>final JacksonDataFormat requestJacksonDataFormat = setupMetasfreshJSONFormat(getContext(), JsonCreateRemittanceAdviceRequest.class);<NEW_LINE>final JacksonDataFormat responseJacksonDataFormat = setupMetasfreshJSONFormat(getContext(), JsonCreateRemittanceAdviceResponse.class);<NE...
getContext(), INPUT_REMADV_REMOTE, "");
185,000
public void init(MonthDescriptor month, List<List<MonthCellDescriptor>> cells, boolean displayOnly, Typeface titleTypeface, Typeface dateTypeface) {<NEW_LINE>Logr.d("Initializing MonthView (%d) for %s", System.identityHashCode(this), month);<NEW_LINE>long start = System.currentTimeMillis();<NEW_LINE>title.setText(month...
getDayOfMonthTextView().setText(cellDate);
1,154,253
private static String updateBindingSetOp(String rendered, Binding binding) {<NEW_LINE>if (binding.fromNames.length == 0) {<NEW_LINE>return rendered;<NEW_LINE>}<NEW_LINE>while (true) {<NEW_LINE>String marker = "_" + binding.name + "_";<NEW_LINE>int start = rendered.indexOf(marker);<NEW_LINE>if (start == -1) {<NEW_LINE>r...
, rendered.substring(end));
1,107,595
final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "UntagResource");
209,974
public MineBugHistory execute() {<NEW_LINE>long sequenceNumber = bugCollection.getSequenceNumber();<NEW_LINE>int maxSequence = (int) sequenceNumber;<NEW_LINE>versionList = new Version[maxSequence + 1];<NEW_LINE>for (int i = 0; i <= maxSequence; ++i) {<NEW_LINE>versionList[<MASK><NEW_LINE>}<NEW_LINE>for (Iterator<AppVer...
i] = new Version(i);
1,618,812
protected IStatus run(IProgressMonitor monitor) {<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>try {<NEW_LINE>monitor.beginTask("Delete Server Files.....", IProgressMonitor.UNKNOWN);<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>ListValue fileLv = param.newList("file");<NEW_LINE>for (int i = 0; i...
= (DirObject) elements[i];
207,172
private static LatLon parseCoordinates(@NonNull String url) {<NEW_LINE>if (url.contains(GEO_PARAMS)) {<NEW_LINE>String geoPart = url.substring<MASK><NEW_LINE>int firstValueStart = geoPart.indexOf("=");<NEW_LINE>int firstValueEnd = geoPart.indexOf("&");<NEW_LINE>int secondValueStart = geoPart.indexOf("=", firstValueEnd)...
(url.indexOf(GEO_PARAMS));
1,334,278
public void createMenuItems(Bundle savedInstanceState) {<NEW_LINE>Context ctx = getContext();<NEW_LINE>if (savedInstanceState != null) {<NEW_LINE>currentDirectory = savedInstanceState.getParcelable(CURRENT_DIRECTORY);<NEW_LINE>newDirectory = savedInstanceState.getParcelable(NEW_DIRECTORY);<NEW_LINE>}<NEW_LINE>if (ctx =...
= startIndexTo + to.length();
1,818,809
protected EntityImportView mergeViews(@Nullable EntityImportView view1, @Nullable EntityImportView view2) {<NEW_LINE>if (view1 == null)<NEW_LINE>return view2;<NEW_LINE>if (view2 == null)<NEW_LINE>return view1;<NEW_LINE>EntityImportView mergedView = new EntityImportView(view1.getEntityClass());<NEW_LINE>for (EntityImpor...
setView(p2.getView());
616,771
public static void horizontal11(Kernel1D_S32 kernel, GrayU16 image, GrayI16 dest) {<NEW_LINE>final short[] dataSrc = image.data;<NEW_LINE>final short[] dataDst = dest.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int k4 = ker...
k7 = kernel.data[6];
501,064
private FilterResult filterByDetails(@Nonnull DataPack dataPack, @Nonnull VcsLogFilterCollection filters, @Nonnull CommitCountStage commitCount, @Nonnull Collection<VirtualFile> visibleRoots, @Nullable Set<Integer> matchingHeads) {<NEW_LINE>List<VcsLogDetailsFilter<MASK><NEW_LINE>if (detailsFilters.isEmpty())<NEW_LINE>...
> detailsFilters = filters.getDetailsFilters();
1,763,294
public void analyze(Analyzer analyzer) throws UserException {<NEW_LINE>// first: we analyze queryStmt before create table.<NEW_LINE>// To avoid duplicate registrations of table/colRefs,<NEW_LINE>// create a new root analyzer and clone the query statement for this initial pass.<NEW_LINE>Analyzer dummyRootAnalyzer = new ...
QueryStmt tmpStmt = queryStmt.clone();
1,670,210
protected List<Retry> parseRetry(List<Object> retryList) {<NEW_LINE>if (retryList != null) {<NEW_LINE>List<Retry> retries = new ArrayList<>(retryList.size());<NEW_LINE>for (Object retryObj : retryList) {<NEW_LINE>Map<String, Object> retryMap = (Map<String, Object>) retryObj;<NEW_LINE>RetryImpl retry = new RetryImpl();<...
intervalSeconds = retryMap.get("IntervalSeconds");
1,564,891
public static GetTwoCorpsRelationshipResponse unmarshall(GetTwoCorpsRelationshipResponse getTwoCorpsRelationshipResponse, UnmarshallerContext _ctx) {<NEW_LINE>getTwoCorpsRelationshipResponse.setRequestId(_ctx.stringValue("GetTwoCorpsRelationshipResponse.RequestId"));<NEW_LINE>getTwoCorpsRelationshipResponse.setCode(_ct...
+ "].Relationships[" + j + "].StartNode"));
1,738,053
public static GetTaobaoOrderResponse unmarshall(GetTaobaoOrderResponse getTaobaoOrderResponse, UnmarshallerContext context) {<NEW_LINE>getTaobaoOrderResponse.setRequestId(context.stringValue("GetTaobaoOrderResponse.RequestId"));<NEW_LINE>getTaobaoOrderResponse.setSuccess(context.booleanValue("GetTaobaoOrderResponse.Suc...
(context.stringValue("GetTaobaoOrderResponse.Code"));
211,210
public String dayOfTheWeek(int day, int month, int year) {<NEW_LINE>String[] daysInTheWeek = new String[] { "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" };<NEW_LINE>int[] daysInTheMonth = new int[] { 31, 28, 31, 30, 31, 30, 31, 31, <MASK><NEW_LINE>int numberOfDays = 0;<NEW_LINE>for (int ...
30, 31, 30, 31 };
1,119,538
final DescribePackageImportJobResult executeDescribePackageImportJob(DescribePackageImportJobRequest describePackageImportJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describePackageImportJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
false), new DescribePackageImportJobResultJsonUnmarshaller());
1,072,776
public ComplexSamples generateComplexSamples(int sampleCount) {<NEW_LINE>if (sampleCount % VECTOR_SPECIES.length() != 0) {<NEW_LINE>throw new IllegalArgumentException("Requested sample count [" + sampleCount + "] must be a power of 2 and a multiple of the SIMD lane width [" + <MASK><NEW_LINE>}<NEW_LINE>float[] iSamples...
VECTOR_SPECIES.length() + "]");
1,594,123
private HttpResult handleClusterRequest(String clusterName, String fleetControllerPath) throws InterruptedException {<NEW_LINE>ContainerStatusPageServer statusServer = statusClusters.get(clusterName);<NEW_LINE>if (statusServer == null) {<NEW_LINE>return new HttpResult().setHttpCode(404, "No controller exists for cluste...
.toString(StandardCharsets.UTF_8));
1,627,621
private void platformPatch(boolean isKernel) {<NEW_LINE>final List<LIRInstruction> insns = getLIRGeneratorTool().getResult().getLIR().<MASK><NEW_LINE>final int index = insns.size() - 1;<NEW_LINE>final LIRInstruction op = insns.get(index);<NEW_LINE>if (!isKernel) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (op instanceof ...
getLIRforBlock(gen.getCurrentBlock());
1,408,340
private static DocumentContent createFromBytesImpl(@Nullable Project project, @Nonnull byte[] content, @Nonnull FileType fileType, @Nonnull String fileName, @javax.annotation.Nullable VirtualFile highlightFile, @Nonnull Charset charset) {<NEW_LINE>Charset bomCharset = CharsetToolkit.guessFromBOM(content);<NEW_LINE>bool...
, StandardColors.LIGHT_RED), documentContent);
325,037
private void classNameChanged() {<NEW_LINE>if (ignoreClsNameChanges) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String className;<NEW_LINE>if (!programmaticChange) {<NEW_LINE>className = tfClassToTest.getText().trim();<NEW_LINE>classNameLength = className.length();<NEW_LINE>} else {<NEW_LINE>className = tfClassToTest.getTe...
replace('.', '/') + ".java";
630,832
public static DescribeClusterNodesResponse unmarshall(DescribeClusterNodesResponse describeClusterNodesResponse, UnmarshallerContext _ctx) {<NEW_LINE>Page page = new Page();<NEW_LINE>page.setPage_number(_ctx.integerValue("DescribeClusterNodesResponse.page.page_number"));<NEW_LINE>page.setTotal_count(_ctx.integerValue("...
("DescribeClusterNodesResponse.nodes[" + i + "].state"));
567,614
public static GetServiceExtensionsResponse unmarshall(GetServiceExtensionsResponse getServiceExtensionsResponse, UnmarshallerContext context) {<NEW_LINE>getServiceExtensionsResponse.setRequestId(context.stringValue("GetServiceExtensionsResponse.RequestId"));<NEW_LINE>getServiceExtensionsResponse.setSuccess<MASK><NEW_LI...
(context.booleanValue("GetServiceExtensionsResponse.Success"));
1,770,913
public float extract(DocumentContext documentContext, QueryContext queryContext) {<NEW_LINE>DocumentFieldContext context = documentContext.fieldContexts.get(field);<NEW_LINE>QueryFieldContext queryFieldContext = queryContext.fieldContexts.get(qfield);<NEW_LINE>long docSize = context.docSize;<NEW_LINE>long totalTermFreq...
score = new ArrayList<>();
363,973
public boolean onOptionsItemSelected(MenuItem item) {<NEW_LINE>switch(item.getItemId()) {<NEW_LINE>case MENU_SEARCH:<NEW_LINE>mBottomBarControls.showSearch(true);<NEW_LINE>break;<NEW_LINE>case MENU_PLAYBACK:<NEW_LINE>openPlaybackActivity();<NEW_LINE>break;<NEW_LINE>case MENU_GO_HOME:<NEW_LINE>mPagerAdapter.setLimiter(F...
setChecked(adapter.isSortDescending());
708,099
private static void cacheJITMethodAddresses() {<NEW_LINE>jitMethodCache = new HashMap<J9MethodPointer, List<J9JITExceptionTablePointer>>();<NEW_LINE>try {<NEW_LINE>J9MemorySegmentListPointer dataCacheList = getVm().jitConfig().dataCacheList();<NEW_LINE><MASK><NEW_LINE>while (dataCache.notNull()) {<NEW_LINE>UDATA curren...
J9MemorySegmentPointer dataCache = dataCacheList.nextSegment();
600,492
protected void writeElementEvaluations(final JRVirtualizable<VirtualElementsData> object) {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug(id + " setting element evaluation for elements in " + object.getUID());<NEW_LINE>}<NEW_LINE>// ugly but needed for now<NEW_LINE>JRVirtualPrintPage page = ((VirtualizablePag...
> elementEvaluations = evalEntry.getValue();
445,097
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>if (savedInstanceState != null) {<NEW_LINE>int pos = savedInstanceState.getInt(SELECTED_POINT_KEY, -1);<NEW_LINE>if (pos != -1) {<NEW_LINE>selectedWpt = adapter.getItem(pos);<NEW_LINE>}<NEW_L...
icBack = getColoredIcon(resId, color);
794,658
public void printData() {<NEW_LINE>System.out.println("version:\t" + version);<NEW_LINE>System.out.println("presentation:\t" + presentation);<NEW_LINE>System.out.println("machine:\t" + machine);<NEW_LINE>System.out.println("port:\t\t" + port);<NEW_LINE>System.<MASK><NEW_LINE>System.out.println("tstop:\t\t" + tstop);<NE...
out.println("tstart:\t\t" + tstart);
1,807,161
public static byte[] convertDate4(Date v) {<NEW_LINE>ByteArrayOutputStream bb = new ByteArrayOutputStream(4 + 1);<NEW_LINE>LittleEndianDataOutputStream out = new LittleEndianDataOutputStream(bb);<NEW_LINE>try {<NEW_LINE>if (v instanceof OriginalDate) {<NEW_LINE>MysqlDateTime t = MySQLTimeTypeUtil.toMysqlDate(v);<NEW_LI...
return new byte[] { 0 };
1,094,089
public Graph build() {<NEW_LINE>if (builtGraph == null) {<NEW_LINE>IntSet[] incomingEdges = new IntSet[sz];<NEW_LINE>for (int i = 0; i < sz; ++i) {<NEW_LINE>incomingEdges[i] = new IntHashSet();<NEW_LINE>}<NEW_LINE>int[][] outgoingEdgeList = new int[sz][];<NEW_LINE>for (int i = 0; i < addedEdges.size(); ++i) {<NEW_LINE>...
= new GraphImpl(incomingEdgeList, outgoingEdgeList);
1,841,845
public void trace(int label, int initialX, int initialY, boolean external) {<NEW_LINE>int initialDir;<NEW_LINE>if (rule == ConnectRule.EIGHT)<NEW_LINE>initialDir = external ? 7 : 3;<NEW_LINE>else<NEW_LINE>initialDir = external ? 0 : 2;<NEW_LINE>this.label = label;<NEW_LINE>this.dir = initialDir;<NEW_LINE>x = initialX;<...
x - 1, y - 1);
1,208,906
private void receiveSessionAccept(final JinglePacket jinglePacket, final RtpContentMap contentMap) {<NEW_LINE>try {<NEW_LINE>contentMap.requireContentDescriptions();<NEW_LINE>contentMap.requireDTLSFingerprint();<NEW_LINE>} catch (final RuntimeException e) {<NEW_LINE>respondOk(jinglePacket);<NEW_LINE>Log.d(Config.LOGTAG...
asBareJid() + ": improperly formatted contents in session-accept", e);
957,005
final VerifyResult executeVerify(VerifyRequest verifyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(verifyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<Ver...
false), new VerifyResultJsonUnmarshaller());
450,558
Element writeView(IArchimateDiagramModel dm, Element viewsElement) {<NEW_LINE>Element viewElement = new Element(ELEMENT_VIEW, ARCHIMATE3_NAMESPACE);<NEW_LINE>viewsElement.addContent(viewElement);<NEW_LINE>// Identifier<NEW_LINE>viewElement.setAttribute(ATTRIBUTE_IDENTIFIER, checkID(dm));<NEW_LINE>// Type<NEW_LINE>viewE...
setAttribute(ATTRIBUTE_TYPE, ATTRIBUTE_DIAGRAM_TYPE, XSI_NAMESPACE);
43,883
public int executeUpdate(String sql, int[] columnIndexes) throws SQLException {<NEW_LINE>final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (isTraceOn && tc.isEntryEnabled())<NEW_LINE>Tr.entry(this, tc, "executeUpdate", sql, Arrays.toString(columnIndexes));<NEW_LINE>int numUpdates;<NEW_LINE>try...
WSJdbcUtil.mapException(this, ex);
582,964
public void onEnable() {<NEW_LINE>PlanVelocityComponent component = DaggerPlanVelocityComponent.builder().plan(this).abstractionLayer(abstractionLayer).build();<NEW_LINE>try {<NEW_LINE>system = component.system();<NEW_LINE>locale = system.getLocaleSystem().getLocale();<NEW_LINE>system.enable();<NEW_LINE>int pluginId = ...
.getString(PluginLang.ENABLED));
541,869
private void createDOSScript(File bin) throws IOException {<NEW_LINE>String relPath = baseDir.equals(cwd) ? ".." : "..\\..";<NEW_LINE>String script = "@ECHO OFF\n" + "\n" + "SETLOCAL\n" + "\n" + "SET \"JAVA_EXE=%JAVA_HOME%\\bin\\java.exe\"\n" + "IF NOT EXIST \"%JAVA_EXE%\" (\n" + " SET \"JAVA_EXE=java\"\n" + ")\n" + "...
= new File(bin, "es4x-launcher.cmd");
391,912
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.<MASK><NEW_LINE>if (controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>TargetPermanent target = new TargetControlledPermanent(0, Integer.MAX_VALUE, HarmonyOfNature.filter, true);<NEW_LINE>controller.choose(outcome, target,...
getPlayer(source.getControllerId());
307,470
private static // org.glowroot.common.repo.util.LazySecretKey.SymmetricEncryptionKeyMissingException<NEW_LINE>Session createMailSession(SmtpConfig smtpConfig, @Nullable String passwordOverride, LazySecretKey lazySecretKey) throws Exception {<NEW_LINE>Properties props = new Properties();<NEW_LINE>props.put(<MASK><NEW_LI...
"mail.smtp.host", smtpConfig.host());
1,434,678
private void addComplexPhraseClause(List<SpanQuery> spanClauses, BooleanQuery qc) {<NEW_LINE>ArrayList<SpanQuery> ors = new ArrayList<>();<NEW_LINE>ArrayList<SpanQuery> nots = new ArrayList<>();<NEW_LINE>// For all clauses e.g. one* two~<NEW_LINE>for (BooleanClause clause : qc) {<NEW_LINE><MASK><NEW_LINE>while (childQu...
Query childQuery = clause.getQuery();
1,507,982
public static LinkedBuffer writeTagAndByteArray(int tag, int tagSize, final byte[] value, int offset, int valueLen, final WriteSession session, LinkedBuffer lb) {<NEW_LINE>if (valueLen == 0) {<NEW_LINE>// write only the tag and delimiter<NEW_LINE>return writeTagAndRawVarInt32(tag, tagSize, valueLen, session, lb);<NEW_L...
.buffer.length - lb.offset;
868,438
public void customize(ServiceInstance serviceInstance, ApplicationModel applicationModel) {<NEW_LINE>MetadataInfo metadataInfo = serviceInstance.getServiceMetadata();<NEW_LINE>if (metadataInfo == null || CollectionUtils.isEmptyMap(metadataInfo.getExportedServiceURLs())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<String...
> exportedURLS = metadataInfo.getExportedServiceURLs();
624,003
private int crossCheckGrouped(final Map<FingerprintIdDetails, Fingerprint> lhsFingerprints, final Map<FingerprintIdDetails, Fingerprint> rhsFingerprints, final List<CrosscheckMetric> metrics, final Function<FingerprintIdDetails, String> by, final CrosscheckMetric.DataType type) {<NEW_LINE>final Map<FingerprintIdDetails...
.add(k.group));
1,397,708
private long[] _decode(String hash, String alphabet) {<NEW_LINE>final ArrayList<Long> ret = new ArrayList<>();<NEW_LINE>String shuffle = alphabet;<NEW_LINE>int i = 0;<NEW_LINE>final String regexp = "[" + this.guards + "]";<NEW_LINE>String hashBreakdown = hash.replaceAll(regexp, " ");<NEW_LINE>String[] hashArray = hashB...
] = ret.get(k);
214,497
private static void tryAssertionSortedMinMaxBy(RegressionEnvironment env, boolean soda, AtomicInteger milestone) {<NEW_LINE>String[] fields = "maxbyeveru,minbyeveru,sortedb".split(",");<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String eplDeclare = "@public create table varagg (" + "maxbyeveru maxbye...
String eplBoundIntoUnbound = "into table varagg select " + "maxbyever() as maxbyeveru, minbyever() as minbyeveru " + "from SupportBean#length(2)";