idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
670,354
public static ListFlowTemplatesResponse unmarshall(ListFlowTemplatesResponse listFlowTemplatesResponse, UnmarshallerContext context) {<NEW_LINE>listFlowTemplatesResponse.setRequestId(context.stringValue("ListFlowTemplatesResponse.RequestId"));<NEW_LINE>listFlowTemplatesResponse.setSuccess<MASK><NEW_LINE>listFlowTemplat...
(context.booleanValue("ListFlowTemplatesResponse.Success"));
473,100
public Value decode(@NonNull ByteBuffer bytes, @NonNull Column.ColumnType type) {<NEW_LINE>UdtValue.Builder builder = UdtValue.newBuilder();<NEW_LINE>assert type.isUserDefined();<NEW_LINE>try {<NEW_LINE>ByteBuffer input = bytes.duplicate();<NEW_LINE>List<Column> udtFields = ((UserDefinedType) type).columns();<NEW_LINE>...
int fieldCount = udtFields.size();
680,272
public static QueryGuideItemGroupResponse unmarshall(QueryGuideItemGroupResponse queryGuideItemGroupResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryGuideItemGroupResponse.setRequestId(_ctx.stringValue("QueryGuideItemGroupResponse.RequestId"));<NEW_LINE>queryGuideItemGroupResponse.setCode(_ctx.stringValue("QueryGuid...
("QueryGuideItemGroupResponse.GuideItemGroup[" + i + "].ItemId"));
18,963
private DataSet generateDataSet(int batchSize) {<NEW_LINE><MASK><NEW_LINE>int h = originalImage.getHeight();<NEW_LINE>float[][] in = new float[batchSize][2];<NEW_LINE>float[][] out = new float[batchSize][3];<NEW_LINE>final int[] i = { 0 };<NEW_LINE>Streams.forEachPair(random.ints(batchSize, 0, w).boxed(), random.ints(b...
int w = originalImage.getWidth();
1,711,907
// ------------//<NEW_LINE>// buildImage //<NEW_LINE>// ------------//<NEW_LINE>@Override<NEW_LINE>public SymbolImage buildImage(MusicFont font, Stroke curveStroke) {<NEW_LINE>// Params<NEW_LINE>Params p = getParams(font);<NEW_LINE>// Allocate image of proper size<NEW_LINE>Rectangle intRect = p.rect.getBounds();<NEW_LI...
g, p, center, AREA_CENTER);
51,006
private void onRuleSelected(DialogInterface dialogInterface, int which) {<NEW_LINE>if (rrule.getFrequency() == WEEKLY) {<NEW_LINE>List<WeekDay> checked = new ArrayList<>();<NEW_LINE>for (ToggleButton weekButton : weekButtons) {<NEW_LINE>if (weekButton.isChecked()) {<NEW_LINE>checked.add((WeekDay) weekButton.getTag());<...
EXTRA_RRULE, rrule.toString());
520,499
static SqlEntity normalizeEppResource(SqlEntity eppResource) {<NEW_LINE>try {<NEW_LINE>Field authField = eppResource instanceof DomainContent ? DomainContent.class.getDeclaredField("authInfo") : eppResource instanceof ContactBase ? ContactBase.class.getDeclaredField("authInfo") : null;<NEW_LINE>if (authField != null) {...
field.set(eppResource, null);
277,408
public SchemaVersionSummary unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SchemaVersionSummary schemaVersionSummary = new SchemaVersionSummary();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe...
class).unmarshall(context));
765,449
public SuffixAdjustResult adjustBySuffix(final String suffix, int hour, final int min, final boolean hasMin, boolean hasAm, boolean hasPm) {<NEW_LINE>int deltaHour = 0;<NEW_LINE>final ConditionalMatch match = RegexExtension.matchExact(<MASK><NEW_LINE>if (match.getSuccess()) {<NEW_LINE>final String oclockStr = match.get...
FrenchTimeExtractorConfiguration.TimeSuffix, suffix, true);
1,347,842
public void init() {<NEW_LINE>try {<NEW_LINE>byte[] buf = new byte[] { -84, -19, 0, 5, 117, 114, 0, 19, 91, 76, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 79, 98, 106, 101, 99, 116, 59, -112, -50, 88, -97, 16, 115, 41, 108, 2, 0, 0, 120, 112, 0, 0, 0, 2, 117, 114, 0, 13, 91, 76, 109, 115, 102, 46, 120, 46, 72, 101, 1...
Help[]) aobj[0];
985,430
// ------------------------------------------------------------------------------<NEW_LINE>// Method: SQLMultiScopeRecoveryLog.recoverableUnits<NEW_LINE>// ------------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public synchronized LogCursor recoverableUnits(FailureSco...
exit(tc, "recoverableUnits", cursor);
1,682,711
public void put(Key key, Value val) {<NEW_LINE>checkByteArrKey(key);<NEW_LINE>if (val == null) {<NEW_LINE>delete(key);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try (ALock l = writeLock.lock()) {<NEW_LINE>CacheEntry<Value> <MASK><NEW_LINE>if (curVal == null) {<NEW_LINE>curVal = createCacheEntry(val);<NEW_LINE>CacheEntry<Val...
curVal = cache.get(key);
473,432
public EventStructure parse(InputStream in) throws IOException, IllegalStorageDataException {<NEW_LINE>try {<NEW_LINE>JSONObject jsonObject = new JSONObject(IOUtils.inputStreamToString(in));<NEW_LINE>int version = jsonObject.optInt(C.VERSION, C.VERSION_USE_SCENARIO);<NEW_LINE>final String name = jsonObject.getString(C....
EventStructure(version, name, eventData);
99,481
public void removed(Provider<E> provider, E element) {<NEW_LINE>final E existingElement;<NEW_LINE>elementWriteLock.lock();<NEW_LINE>try {<NEW_LINE>// The given "element" might not be the live instance but loaded from storage.<NEW_LINE>// Use the identifier to operate on the "real" element.<NEW_LINE>final <MASK><NEW_LIN...
K uid = element.getUID();
326,422
public static ListFlowClusterAllResponse unmarshall(ListFlowClusterAllResponse listFlowClusterAllResponse, UnmarshallerContext _ctx) {<NEW_LINE>listFlowClusterAllResponse.setRequestId(_ctx.stringValue("ListFlowClusterAllResponse.RequestId"));<NEW_LINE>listFlowClusterAllResponse.setTotalCount(_ctx.integerValue("ListFlow...
("ListFlowClusterAllResponse.Clusters[" + i + "].OrderTaskInfo.CurrentCount"));
338,587
private boolean hasProperties(Resource r) {<NEW_LINE>ExtendedIterator<Statement> ss = listProperties(r);<NEW_LINE>if (// ( r instanceof Statement ) &&<NEW_LINE>avoidExplicitReification && (!r.isAnon()) && isLocalReference(r) && res2statement.containsKey(r)) {<NEW_LINE>ss = new MapFilterIterator<>(new MapFilter<Statemen...
p))) ? o : null;
1,706,421
public FeedbackSessionAttributes updateFeedbackSession(FeedbackSessionAttributes.UpdateOptions updateOptions) throws InvalidParametersException, EntityDoesNotExistException {<NEW_LINE>FeedbackSessionAttributes oldSession = fsDb.getFeedbackSession(updateOptions.getCourseId(), updateOptions.getFeedbackSessionName());<NEW...
newUpdateOptions = FeedbackSessionAttributes.updateOptionsBuilder(updateOptions);
115,478
public static BigInteger roundTemporalInstant(BigDecimal ns, double increment, Unit unit, RoundingMode roundingMode) {<NEW_LINE>BigDecimal <MASK><NEW_LINE>if (Unit.HOUR == unit) {<NEW_LINE>incrementNs = incrementNs.multiply(BigDecimal.valueOf(3_600_000_000_000L));<NEW_LINE>} else if (Unit.MINUTE == unit) {<NEW_LINE>inc...
incrementNs = BigDecimal.valueOf(increment);
498,200
private List<NestedConnectionInfo> createValidRelations(IDiagramModelArchimateObject sourceObject, IDiagramModelArchimateObject targetObject) {<NEW_LINE>List<NestedConnectionInfo> list = new ArrayList<NestedConnectionInfo>();<NEW_LINE>// Entry for "none"<NEW_LINE>list.add(new NestedConnectionInfo(sourceObject<MASK><NEW...
, targetObject, false, null));
987,333
public static void vertical(WlCoef_F32 coefficients, GrayF32 input, GrayF32 output) {<NEW_LINE>final int offsetA = coefficients.offsetScaling * input.stride;<NEW_LINE>final int offsetB = coefficients.offsetWavelet * input.stride;<NEW_LINE>final float[] alpha = coefficients.scaling;<NEW_LINE>final float[] beta = coeffic...
startY = UtilWavelet.borderForwardLower(coefficients);
148,071
public Request<DeleteResourcePolicyRequest> marshall(DeleteResourcePolicyRequest deleteResourcePolicyRequest) {<NEW_LINE>if (deleteResourcePolicyRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DeleteResourcePolicyRequest)");<NEW_LINE>}<NEW_LINE>Request<DeleteResourcePoli...
String policyName = deleteResourcePolicyRequest.getPolicyName();
1,496,729
private void sendHeader() {<NEW_LINE>if (closed) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (headerSent) {<NEW_LINE>throw new IllegalStateException("Header has already sent");<NEW_LINE>}<NEW_LINE>headerSent = true;<NEW_LINE>DefaultHttp2Headers headers = new DefaultHttp2Headers();<NEW_LINE>headers.status(HttpResponseStat...
HttpHeaderNames.CONTENT_TYPE, TripleConstant.CONTENT_PROTO);
1,560,619
public void marshall(AwsEc2SubnetDetails awsEc2SubnetDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (awsEc2SubnetDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(awsEc2SubnetDetails.getAssi...
awsEc2SubnetDetails.getSubnetArn(), SUBNETARN_BINDING);
766,723
private void updateHighlightLine() {<NEW_LINE>String where;<NEW_LINE>if (combo.getSelectedItem() != null) {<NEW_LINE>selReg = entry.get(combo.getSelectedItem().toString());<NEW_LINE>final var val = curCircuitState.getInstanceState(selReg).getPortValue(Register.OUT);<NEW_LINE>if (val.isFullyDefined()) {<NEW_LINE>where =...
Pattern.MULTILINE + Pattern.CASE_INSENSITIVE);
856,691
public void marshall(Budget budget, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (budget == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(budget.getBudgetName(), BUDGETNAME_BINDING);<NEW_LINE>protocolMars...
budget.getBudgetLimit(), BUDGETLIMIT_BINDING);
1,745,737
public void adjust(ByteBuf dataBuf, int numInputs, int numOutputs) {<NEW_LINE>// used to accumulate the updates for input vectors<NEW_LINE>float[] neu1e = new float[dim];<NEW_LINE>float[] inputUpdates <MASK><NEW_LINE>Int2IntOpenHashMap inputIndex = new Int2IntOpenHashMap();<NEW_LINE>Int2IntOpenHashMap inputUpdateCounte...
= new float[numInputs * dim];
621,608
ExitCode run(CloseableHttpClient httpClient, ObjectMapper om) throws IOException {<NEW_LINE>// fragment-start{build-request}<NEW_LINE>LingoClusteringAlgorithm algorithm = new LingoClusteringAlgorithm();<NEW_LINE>algorithm.preprocessing.phraseDfThreshold.set(1);<NEW_LINE>algorithm.preprocessing.wordDfThreshold.set(1);<N...
doc.setField("field", value);
516,707
private ReferenceBinding[] processClassNames(LookupEnvironment environment) {<NEW_LINE>// check for .class file presence in case of apt processing<NEW_LINE>int length = this.classNames.length;<NEW_LINE>ReferenceBinding[] referenceBindings = new ReferenceBinding[length];<NEW_LINE>ModuleBinding[] modules = new ModuleBind...
] typeName = cls.toCharArray();
830,199
public void createFolder(@NotNull String title) {<NEW_LINE>logDebug("createFolder");<NEW_LINE>if (!isOnline(this)) {<NEW_LINE>showSnackbar(SNACKBAR_TYPE, getString(R.string.error_server_connection_problem), -1);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (isFinishing()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>MegaNode pare...
createFolder(title, parentNode, this);
854,094
private void updateProjectMetadata() {<NEW_LINE>Document doc = createNewDocument();<NEW_LINE>Element root = doc.createElementNS(AntBuildExtenderAccessor.AUX_NAMESPACE, AntBuildExtenderAccessor.ELEMENT_ROOT);<NEW_LINE>if (extensions != null) {<NEW_LINE>FileObject nbproj = implementation.getOwningProject().getProjectDire...
AntProjectHelper.PROJECT_XML_PATH).getParent();
738,254
public Optional<ConstraintViolationException> validateUpdate(Flow updated) {<NEW_LINE>Set<ConstraintViolation<?>> violations = new HashSet<>();<NEW_LINE>// validate flow<NEW_LINE>updated.validate().ifPresent(e -> violations.addAll<MASK><NEW_LINE>// change flow id<NEW_LINE>if (!updated.getId().equals(this.getId())) {<NE...
(e.getConstraintViolations()));
781,622
private static RecordWriter<AirbyteRecordMessage> recordWriterFunction(final Map<String, Index> indexNameToWriteConfig) {<NEW_LINE>return (namePair, records) -> {<NEW_LINE>final String resolvedIndexName = getIndexName(namePair.getName());<NEW_LINE>if (!indexNameToWriteConfig.containsKey(resolvedIndexName)) {<NEW_LINE>t...
"waiting for update to be applied completed {}", Instant.now());
324,870
private void updateAndPublish() {<NEW_LINE>StationConfiguration config = getConfigAs(StationConfiguration.class);<NEW_LINE>try {<NEW_LINE>OpenDatasoftResponse measures = apiHandler.getMeasures(config.id);<NEW_LINE>measures.getFirstRecord().ifPresent(field -> {<NEW_LINE>double height = field.getHeight();<NEW_LINE>if (he...
-> updateDate(OBSERVATION_TIME, date));
52,085
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>ManaCosts<ManaCost> cost = new ManaCostsImpl<>("{X}");<NEW_LINE>if (player == null || !player.chooseUse(Outcome.BoostCreature, "Pay " + cost.getText() + "?", source, game)) {<NEW_LINE>return fal...
= (Permanent) getValue("permanentEnteringBattlefield");
385,948
private void processChildren(OneToManyAssociation association) {<NEW_LINE>if (delegate.isEmpty()) {<NEW_LINE>// no need to process children if no models selected.<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final MetaModel childMetaModel = metaModelOf(association.getTargetClass());<NEW_LINE>final String fkName = association.g...
childMetaModel.getModelClass(), children);
295,394
public void advance() {<NEW_LINE>if (myState == IN_LAYER_LEXER_FINISHED_STATE) {<NEW_LINE>myState = super.getState();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (isLayerActive()) {<NEW_LINE>final Lexer activeLayerLexer = myCurrentLayerLexer;<NEW_LINE>IElementType layerTokenType = activeLayerLexer.getTokenType();<NEW_LINE>...
int tokenEnd = myCurrentLayerLexer.getTokenEnd();
500,008
public boolean updateZoneInfo() {<NEW_LINE>if (stateMap != null && isConfigured()) {<NEW_LINE>Service service = device.findService(new UDAServiceId("DeviceProperties"));<NEW_LINE>Action action = service.getAction("GetZoneInfo");<NEW_LINE>ActionInvocation invocation = new ActionInvocation(action);<NEW_LINE>executeAction...
anotheraction = service.getAction("GetZoneAttributes");
597,676
private void buildQuery(SearchRequestBuilder searchReq, ParseResult info) {<NEW_LINE>String[] types = new String[info.getSources().size()];<NEW_LINE>for (int i = 0; i < info.getSources().size(); i++) types[i] = info.getSources().get(i).getSource();<NEW_LINE>SearchRequestBuilder req = searchReq.setTypes(types);<NEW_LINE...
props, Utils.PROP_FETCH_SIZE, 10000);
617,717
private void loadNode189() {<NEW_LINE>TransitionTypeNode node = new TransitionTypeNode(this.context, Identifiers.ProgramStateMachineType_RunningToSuspended, new QualifiedName(0, "RunningToSuspended"), new LocalizedText("en", "RunningToSuspended"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), UByt...
.expanded(), true));
1,045,255
public void backup(final File parent_folder, final BackupListener _listener) {<NEW_LINE>dispatcher.dispatch(new AERunnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void runSupport() {<NEW_LINE>BackupListener listener = new BackupListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean reportProgress(St...
(_listener.reportProgress(str));
137,286
public Dialog create() {<NEW_LINE>// Get resources<NEW_LINE>final WebView webView = createWebView(mContext, mEnableDarkMode);<NEW_LINE>webView.loadDataWithBaseURL(null, mLicensesText, "text/html", "utf-8", null);<NEW_LINE>final AlertDialog.Builder builder;<NEW_LINE>if (mThemeResourceId != 0) {<NEW_LINE>builder = new Al...
new ContextThemeWrapper(mContext, mThemeResourceId));
1,132,157
public BaseRow fillData(BaseRow input, Object line) {<NEW_LINE>GenericRow genericRow = (GenericRow) input;<NEW_LINE>Map<String, Object> cacheInfo = (Map<String, Object>) line;<NEW_LINE>GenericRow row = new GenericRow(sideInfo.<MASK><NEW_LINE>row.setHeader(input.getHeader());<NEW_LINE>String[] fields = sideInfo.getSideT...
getOutFieldInfoList().size());
1,826,526
public void deleteFileIfExistsCodeSnippets() {<NEW_LINE>ShareAsyncClient shareAsyncClient = createAsyncClientWithSASToken();<NEW_LINE>// BEGIN: com.azure.storage.file.share.ShareAsyncClient.deleteFileIfExists#string<NEW_LINE>shareAsyncClient.deleteFileIfExists("myfile").subscribe(deleted -> {<NEW_LINE>if (deleted) {<NE...
System.out.println("Successfully deleted.");
367,653
public CodegenClass forge(boolean includeDebugSymbols, boolean fireAndForget) {<NEW_LINE>if (!dataflowOperatorFields && !packageScope.hasAnyFields()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>List<MemberFieldPair> memberFields = getMembers();<NEW_LINE>int maxMembersPerClass = Math.max(1, packageScope.getConfig().getI...
, classScope).setStatic(true);
1,709,263
public QueryLineageResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>QueryLineageResult queryLineageResult = new QueryLineageResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
JsonToken token = context.getCurrentToken();
738,723
private static void addValue(StringBuilder buf, Object value, boolean addLinks) throws URISyntaxException {<NEW_LINE>// Note: To be bug-compatible with Javadoc from Java 5/6/7, we currently don't escape HTML tags in String-valued annotations.<NEW_LINE>if (value instanceof ITypeBinding) {<NEW_LINE>ITypeBinding typeBindi...
value).charValue()));
61,899
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>app = requireMyApplication();<NEW_LINE>boolean nightMode = !app.getSettings().isLightActionBar();<NEW_LINE>LayoutInflater themedInflater = UiUtilities.getInflater(requireContext(), n...
WEBSITE.getValue(), webSiteEditText);
904,274
public int copyTasksFrom(MProjectTypePhase fromProjectPhase) {<NEW_LINE>if (fromProjectPhase == null)<NEW_LINE>return 0;<NEW_LINE>AtomicInteger count = new AtomicInteger(0);<NEW_LINE>// Copy Type Tasks<NEW_LINE>List<MProjectTypeTask> fromProjectTasks = fromProjectPhase.getTasks();<NEW_LINE>fromProjectTasks.stream().for...
" <> Saved=" + count.get());
1,266,643
private Mono<Response<Flux<ByteBuffer>>> startWithResponseAsync(String resourceGroupName, String cacheName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (resourc...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
607,419
private SyntaxHighlighter valueHighlighter(String style) {<NEW_LINE>SyntaxHighlighter out;<NEW_LINE>if (style == null || style.isEmpty()) {<NEW_LINE>out = null;<NEW_LINE>} else if (highlighters.containsKey(style)) {<NEW_LINE>out = highlighters.get(style);<NEW_LINE>} else if (style.matches("[a-z]+:.*")) {<NEW_LINE>out =...
) engine.get(VAR_NANORC));
1,422,347
public void marshall(SavingsPlanOffering savingsPlanOffering, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (savingsPlanOffering == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(savingsPlanOffering.getOffe...
savingsPlanOffering.getPlanType(), PLANTYPE_BINDING);
157,566
public static void down(GrayS16 input, GrayI16 output) {<NEW_LINE>int maxY = input.height - input.height % 2;<NEW_LINE>int maxX = input.width - input.width % 2;<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, maxY, 2, y -> {<NEW_LINE>for (int y = 0; y < maxY; y += 2) {<NEW_LINE>int indexOut = output.startIndex ...
+= input.data[indexIn0++];
1,449,414
void receive(FileReference reference, String filename, byte[] content) {<NEW_LINE>log.log(Level.INFO, "Preparing receive call for " + reference.value() + " and file " + filename);<NEW_LINE>XXHash64 hasher = XXHashFactory.fastestInstance().hash64();<NEW_LINE>Request fileBlob = new Request("filedistribution.receiveFile")...
add(new Int32Value(0));
1,104,026
public static void transitionTopologyState(String topologyName, TManagerCommand topologyStateControlCommand, SchedulerStateManagerAdaptor statemgr, TopologyAPI.TopologyState startState, TopologyAPI.TopologyState expectedState, NetworkUtils.TunnelConfig tunnelConfig) throws TManagerException {<NEW_LINE>TopologyAPI.Topol...
.name().toLowerCase();
702,355
protected PriorityQueue<LuceneIndexInputSplit> findSplits(Configuration conf) throws IOException {<NEW_LINE>PriorityQueue<LuceneIndexInputSplit> splits <MASK><NEW_LINE>List<Path> indexDirs = Lists.newLinkedList();<NEW_LINE>// find all indexes nested under all the input paths<NEW_LINE>// (which happen to be directories ...
= new PriorityQueue<LuceneIndexInputSplit>();
1,617,265
public void write(JsonWriter out, PetWithRequiredTags value) throws IOException {<NEW_LINE>JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();<NEW_LINE>obj.remove("additionalProperties");<NEW_LINE>// serialize additonal properties<NEW_LINE>if (value.getAdditionalProperties() != null) {<NEW_LINE>for (Map.E...
Boolean) entry.getValue());
933,645
protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>String sentence = (String) msg;<NEW_LINE>if (sentence.equals("AA55,HB")) {<NEW_LINE>if (channel != null) {<NEW_LINE>channel.writeAndFlush(new NetworkMessage("55AA,HB,OK\r\n", remoteAddress));<NEW_LINE>}<NEW_LIN...
setDeviceId(deviceSession.getDeviceId());
475,303
protected Status scanFromStorage(String bucket, String startkey, int recordcount, Vector<HashMap<String, ByteIterator>> result, SSECustomerKey ssecLocal) {<NEW_LINE>int counter = 0;<NEW_LINE>ObjectListing listing = s3Client.listObjects(bucket);<NEW_LINE>List<S3ObjectSummary> summaries = listing.getObjectSummaries();<NE...
HashMap<String, ByteIterator>();
1,345,586
private MultiContainsResult processMultiContainsHttpResponse(HttpResponse httpResponse, List<RuleKey> ruleKeys) throws IOException {<NEW_LINE>ImmutableMultiContainsResult.<MASK><NEW_LINE>if (httpResponse.statusCode() != 200) {<NEW_LINE>LOG.warn(String.format("Failed to multi-contains request for [%d] cache artifacts " ...
Builder resultBuilder = ImmutableMultiContainsResult.builder();
971,157
protected void handle(final RevertVolumeFromSnapshotOnPrimaryStorageMsg msg) {<NEW_LINE>final RevertVolumeFromSnapshotOnPrimaryStorageReply reply = new RevertVolumeFromSnapshotOnPrimaryStorageReply();<NEW_LINE>HostInventory destHost;<NEW_LINE>try {<NEW_LINE>destHost = factory.getConnectedHostForOperation(PrimaryStorage...
setSize(returnValue.getSize());
903,885
final CreateRepositoryResult executeCreateRepository(CreateRepositoryRequest createRepositoryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createRepositoryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,529,634
protected void visitAnnotations(AnnotatedNode node, int target) {<NEW_LINE>if (node.getAnnotations().isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>if (!isAnnotationCompatible()) {<NEW_LINE>addError("Annotations are not supported in the current runtime. " + JVM_ERROR_MESSAGE, node);<NEW_LINE>return;<...
this.currentClass.setAnnotated(true);
543,625
private String buildEndDateChangeTable() {<NEW_LINE>List<String> tableRows = Lists.newArrayList();<NEW_LINE>for (Entry<Task, Pair<Date, Date>> entry : myModifiedTasks.entrySet()) {<NEW_LINE><MASK><NEW_LINE>Pair<Date, Date> changes = entry.getValue();<NEW_LINE>if (changes.first() == null) {<NEW_LINE>String row = String....
Task t = entry.getKey();
344,449
public synchronized void unfollow(final String followerId, final String followingId, final int followingType) throws RepositoryException {<NEW_LINE>followRepository.removeByFollowerIdAndFollowingId(followerId, followingId, followingType);<NEW_LINE>if (Follow.FOLLOWING_TYPE_C_TAG == followingType) {<NEW_LINE>final JSONO...
put(Article.ARTICLE_COLLECT_CNT, 0);
50,991
protected CaseElement convertJsonToElement(JsonNode elementNode, JsonNode modelNode, ActivityProcessor processor, BaseElement parentElement, Map<String, JsonNode> shapeMap, CmmnModel cmmnModel, CmmnJsonConverterContext converterContext, CmmnModelIdHelper cmmnModelIdHelper) {<NEW_LINE>Stage stage = new Stage();<NEW_LINE...
childShapesArray = elementNode.get(EDITOR_CHILD_SHAPES);
1,147,197
public static DescribeBackupSourceGroupsResponse unmarshall(DescribeBackupSourceGroupsResponse describeBackupSourceGroupsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeBackupSourceGroupsResponse.setRequestId(_ctx.stringValue("DescribeBackupSourceGroupsResponse.RequestId"));<NEW_LINE>describeBackupSourceGroupsRe...
("DescribeBackupSourceGroupsResponse.BackupSourceGroups[" + i + "].UpdatedTime"));
1,305,022
private void processData(ImageAddressSpace space) {<NEW_LINE>// JavaRuntime metaRuntime = null;<NEW_LINE>// if (metaImageProcess != null) {<NEW_LINE>// Iterator i2 = metaImageProcess.getRuntimes();<NEW_LINE>// if (i2.hasNext()) {<NEW_LINE>// Object o2 = i2.next();<NEW_LINE>// if (!(o2 instanceof CorruptData) && o2 inst...
space, (CorruptData) next));
994,971
public void computeFromTris(int[] indices, Mesh mesh, int start, int end) {<NEW_LINE>if (end - start <= 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>TempVars vars = TempVars.get();<NEW_LINE>Vector3f vect1 = vars.vect1;<NEW_LINE>Vector3f vect2 = vars.vect2;<NEW_LINE>Triangle triangle = vars.triangle;<NEW_LINE>Vector3f min ...
Float.NEGATIVE_INFINITY, Float.NEGATIVE_INFINITY);
1,495,054
private void resolveNodesInUnknownState(Set<Node> nodesInUnknownState) {<NEW_LINE>Deque<Node> queue = new ArrayDeque<>(nodesInUnknownState);<NEW_LINE>Set<Node> <MASK><NEW_LINE>while (!queue.isEmpty()) {<NEW_LINE>Node node = queue.peekFirst();<NEW_LINE>if (node.isInKnownState()) {<NEW_LINE>queue.removeFirst();<NEW_LINE>...
visiting = new HashSet<>();
1,215,952
final ResetAddressAttributeResult executeResetAddressAttribute(ResetAddressAttributeRequest resetAddressAttributeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(resetAddressAttributeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,600,719
public static String parsePath(String uri, Map<String, String> patterns) {<NEW_LINE>if (uri == null) {<NEW_LINE>return null;<NEW_LINE>} else if (StringUtils.isBlank(uri)) {<NEW_LINE>return String.valueOf(SLASH);<NEW_LINE>}<NEW_LINE>CharacterIterator ci = new StringCharacterIterator(uri);<NEW_LINE>StringBuilder pathBuff...
regexBuffer = cutParameter(ci, patterns);
1,197,833
public void run(final CssParserResult result, SchedulerEvent event) {<NEW_LINE>final FileObject file = result.getSnapshot().getSource().getFileObject();<NEW_LINE>if (file == null) {<NEW_LINE>// NOI18N<NEW_LINE>LOG.log(Level.FINE, "run() - file is null.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final String mimeType = fi...
CursorMovedSchedulerEvent) event).getCaretOffset();
1,788,086
public void broadcastMessageToMinecraftServer(String channel, Component message, User author) {<NEW_LINE>ChatHook chatHook = pluginHooks.stream().filter(hook -> hook instanceof ChatHook).map(hook -> (ChatHook) hook).findAny().orElse(null);<NEW_LINE>if (chatHook == null || channel == null) {<NEW_LINE>// don't send messa...
, MessageUtil.toLegacy(message));
997,814
public List<Map<String, Object>> executeFix() throws DotDataException {<NEW_LINE>Logger.info(FixTask00095DeleteOrphanRelationships.class, "Beginning DeleteOrphanRelationships");<NEW_LINE>final List<Map<String, Object>> returnValue = new ArrayList<>();<NEW_LINE>if (!FixAssetsProcessStatus.getRunning()) {<NEW_LINE>int to...
FixTask00095DeleteOrphanRelationships.class, "There was an unexpected problem during execution of DeleteOrphanRelationships task", e2);
1,582,788
private void rewriteGaugeNameTablePart1() throws Exception {<NEW_LINE>logger.info("rewriting gauge_name table (part 1) - this could take several minutes on large" + " data sets...");<NEW_LINE>dropTableIfExists("gauge_name_temp");<NEW_LINE>session.updateSchemaWithRetry("create table if not exists gauge_name_temp (agent_...
session.prepare("insert into gauge_name_temp" + " (agent_rollup_id, capture_time, gauge_name) values (?, ?, ?)");
654,171
public static DmnExtensionElement parseExtensionElement(XMLStreamReader xtr) throws Exception {<NEW_LINE>DmnExtensionElement extensionElement = new DmnExtensionElement();<NEW_LINE>extensionElement.setName(xtr.getLocalName());<NEW_LINE>if (StringUtils.isNotEmpty(xtr.getNamespaceURI())) {<NEW_LINE>extensionElement.<MASK>...
setNamespace(xtr.getNamespaceURI());
1,329,971
public void runAssertion(RegressionEnvironment env, String createSchemaEPL, Consumer<String> sender) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy(createSchemaEPL, path);<NEW_LINE>env.compileDeploy("@name('s0') select * from LocalEvent", path).addListener("s0");<NEW_LINE>if (sender =...
EventType eventType = statement.getEventType();
51,244
/*<NEW_LINE>* Unfortunately annotation scanner ( getHelper().getAnnotationScanner() )<NEW_LINE>* cannot be used for finding annotated method parameters. It doesn't<NEW_LINE>* work for them. So this method performs find usages of @Observes annotation<NEW_LINE>* and chooses appropriate elements.<NEW_LINE>*/<NEW_LINE>priv...
methods = ElementFilter.methodsIn(enclosedElements);
982,428
public Optional<ResponseSet> readResponseSet(final SessionLabel sessionLabel, final ChaiUser theUser, final UserIdentity userIdentity, final String userGuid) throws PwmUnrecoverableException {<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>if (theUser.getChaiProvider().getDirectoryVendor() != DirectoryVendor.EDIRECTORY) {<NEW...
IntruderServiceClient.checkUserIdentity(pwmDomain, userIdentity);
541,553
public void addConstraint(String widget, String constraint) {<NEW_LINE>CLKey key = null;<NEW_LINE>try {<NEW_LINE>key = CLScan.findCLKeyInRoot(CLParser.parse(mMainText.getText()), widget);<NEW_LINE>} catch (CLParsingException e) {<NEW_LINE>e.printStackTrace();<NEW_LINE>}<NEW_LINE>if (key == null) {<NEW_LINE>int pos = mM...
String str = ",\n " + constraint + ", \n";
652,650
private void tryAutoInitParaApp() {<NEW_LINE>String rootSecret = null;<NEW_LINE>String confFile = System.getProperty("config.file", "application.conf");<NEW_LINE>if (!CONF.autoInitWithRootAppSecretKey().isBlank()) {<NEW_LINE>rootSecret = CONF.autoInitWithRootAppSecretKey().trim();<NEW_LINE>} else if (!CONF.autoInitWith...
(Config.PARA), rootSecret);
1,553,732
public void load() {<NEW_LINE>jTFLogFileName.setText(ConfigOptions.sLogFileName);<NEW_LINE>jTFPath.setText(ConfigOptions.sPaths);<NEW_LINE>try {<NEW_LINE>List<String> mainPaths = ConfigFile.getConfigFile().getRecentMainPaths(ConfigFile.APP_DM);<NEW_LINE>String[] paths = null;<NEW_LINE>if (mainPaths != null && !mainPath...
String[mainPaths.size()];
1,681,623
public void removeNotify() {<NEW_LINE>super.removeNotify();<NEW_LINE>ToolbarPool pool = ToolbarPool.getDefault();<NEW_LINE>final ToolbarConfiguration tc = ToolbarConfiguration.findConfiguration(pool.getConfiguration());<NEW_LINE>if (null != tc) {<NEW_LINE>tc.setToolbarButtonDragAndDropAllowed(false);<NEW_LINE>}<NEW_LIN...
DataFolder folder = pool.getFolder();
1,302,791
private Value mapObjectToValue(Object value) {<NEW_LINE>if (value == null) {<NEW_LINE>return Value<MASK><NEW_LINE>}<NEW_LINE>if (Boolean.class.equals(value.getClass())) {<NEW_LINE>return makeValue((Boolean) value).build();<NEW_LINE>} else if (Byte.class.equals(value.getClass())) {<NEW_LINE>return makeValue((Byte) value...
.newBuilder().build();
367,435
Disposable subscribeToPersonsAndCars() {<NEW_LINE>Set<String> tables = <MASK><NEW_LINE>tables.add(PersonTable.NAME);<NEW_LINE>tables.add(CarTable.NAME);<NEW_LINE>tables.add(PersonCarRelationTable.TABLE);<NEW_LINE>return Flowable.merge(storIOSQLite.observeChangesInTables(tables, LATEST), Flowable.just(Changes.newInstanc...
new HashSet<String>(3);
1,606,725
private static Vector apply(BlasFloatMatrix mat, boolean trans, IntDummyVector v) {<NEW_LINE>int m = mat.getNumRows(), n = mat.getNumCols();<NEW_LINE>float[] resArr;<NEW_LINE>if (trans) {<NEW_LINE>assert m == v.getDim();<NEW_LINE>resArr = new float[n];<NEW_LINE>} else {<NEW_LINE>assert n == v.getDim();<NEW_LINE>resArr ...
IntFloatDenseVectorStorage storage = new IntFloatDenseVectorStorage(resArr);
1,248,553
public AppSettingsDialog build() {<NEW_LINE>mRationale = TextUtils.isEmpty(mRationale) ? mContext.getString(R.string.rationale_ask_again) : mRationale;<NEW_LINE>mTitle = TextUtils.isEmpty(mTitle) ? mContext.getString(<MASK><NEW_LINE>mPositiveButtonText = TextUtils.isEmpty(mPositiveButtonText) ? mContext.getString(andro...
R.string.title_settings_dialog) : mTitle;
1,004,378
public static void processBorderVertical(GrayS16 orig, GrayS16 deriv, Kernel1D_S32 kernel, ImageBorder_S32 borderType) {<NEW_LINE>borderType.setImage(orig);<NEW_LINE>ConvolveJustBorder_General_SB.vertical(kernel, borderType, deriv);<NEW_LINE>GrayS16 origSub;<NEW_LINE>GrayS16 derivSub;<NEW_LINE>origSub = orig.subimage(0...
vertical(kernel, origSub, derivSub);
276,835
public void fullHistoryReceivedOnLoad() {<NEW_LINE>logDebug("Messages size: " + messages.size());<NEW_LINE>if (bufferMessages.size() != 0) {<NEW_LINE>logDebug("Buffer size: " + bufferMessages.size());<NEW_LINE>emptyLayout.setVisibility(View.GONE);<NEW_LINE>listView.setVisibility(View.VISIBLE);<NEW_LINE>ListIterator<Meg...
int currentIndex = itr.nextIndex();
795,544
public void handleCommand(ChannelUID channelUID, Command command) {<NEW_LINE><MASK><NEW_LINE>Objects.requireNonNull(command, "command cannot be null");<NEW_LINE>final NeeoDeviceProtocol protocol = deviceProtocol.get();<NEW_LINE>if (protocol == null) {<NEW_LINE>logger.debug("Protocol is null - ignoring update: {}", chan...
Objects.requireNonNull(channelUID, "channelUID cannot be null");
769,192
private void parserSingleInsert(SchemaInfo schemaInfo, RouteResultset rrs, String partitionColumn, SQLReplaceStatement replaceStatement, String clientCharset) throws SQLNonTransientException {<NEW_LINE>int shardingColIndex = tryGetShardingColIndex(schemaInfo, replaceStatement, partitionColumn);<NEW_LINE>SQLExpr valueEx...
), schemaInfo.getTable());
25,516
private boolean matchesPresenceOfEntities(ConditionContext context, AnnotationValue<Requires> annotationValue) {<NEW_LINE>if (annotationValue.contains(MEMBER_ENTITIES)) {<NEW_LINE>Optional<AnnotationClassValue[]> classNames = annotationValue.get(MEMBER_ENTITIES, AnnotationClassValue[].class);<NEW_LINE>if (classNames.is...
Class annotationType = entityType.get();
1,560,678
protected List<MatchResult> match(List<String> specs) throws IOException {<NEW_LINE>List<S3ResourceId> paths = specs.stream().map(S3ResourceId::fromUri).collect(Collectors.toList());<NEW_LINE>List<S3ResourceId> globs = new ArrayList<>();<NEW_LINE>List<S3ResourceId> nonGlobs = new ArrayList<>();<NEW_LINE>List<Boolean> i...
globMatches.hasNext(), "Internal error encountered in S3Filesystem: expected no more elements in globMatches.");
1,762,938
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {<NEW_LINE>if ("equals".equals(method.getName()) && method.getParameterCount() == 1) {<NEW_LINE>try {<NEW_LINE>final Object otherHandler = args.length > 0 && args[0] != null ? Proxy.getInvocationHandler(args[0]) : null;<NEW_LINE>return eq...
Throwable cause = e.getCause();
860,450
protected void _fillDirectByteBuffer(ByteBuffer bb) {<NEW_LINE>// Taken from MacPixels<NEW_LINE>if (this.bytes != null) {<NEW_LINE>this.bytes.rewind();<NEW_LINE>if (this.bytes.isDirect()) {<NEW_LINE>_copyPixels(bb, this.bytes, <MASK><NEW_LINE>} else {<NEW_LINE>bb.put(this.bytes);<NEW_LINE>}<NEW_LINE>this.bytes.rewind()...
getWidth() * getHeight());
835,614
public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {<NEW_LINE>final LayoutInflater inflater = LayoutInflater.from(parent.getContext());<NEW_LINE>if (gridView) {<NEW_LINE>switch(viewType) {<NEW_LINE>case TYPE_SECTION:<NEW_LINE>{<NEW_LINE>return new SectionViewHolder(ItemNotesListS...
throw new IllegalArgumentException("Not supported viewType: " + viewType);
15,803
private void recurse(final Element element, final Map<String, Object> values, final int depth) {<NEW_LINE>final Tag tag = element.tag();<NEW_LINE>final Set<String> classes = element.classNames();<NEW_LINE>final String <MASK><NEW_LINE>final Object content = extractChildContent(element);<NEW_LINE>if (!classes.isEmpty()) ...
link = element.attr("href");
160,860
public // TODO: #8511 - Recursive call hangs waiting for lock instead of throwing BeanNotReentrant exception<NEW_LINE>void test1XSFInterfaceMethod_NonReentrantRecursive() throws Exception {<NEW_LINE>SFRTestReentrance ejb1 = null;<NEW_LINE>try {<NEW_LINE>SFRTestReentranceHome home1 = FATHelper.<MASK><NEW_LINE>ejb1 = hom...
lookupRemoteHomeBinding("com/ibm/ejb1x/base/spec/sfr/ejb/SFRNonReentranceHome", SFRTestReentranceHome.class);
694,685
private void preAssignCatchHandlers() {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>ArrayList<TryCatchBlockNode> tcbs <MASK><NEW_LINE>// / aargh. I'd love to create an array of Handler objects, but generics<NEW_LINE>// doesn't care for it.<NEW_LINE>if (tcbs.size() == 0)<NEW_LINE>return;<NEW_LINE>ArrayList<Handler>...
= (ArrayList<TryCatchBlockNode>) tryCatchBlocks;
69,874
private // Also write out what sort of message we think we have (first).<NEW_LINE>void dumpJmfMessage(IncidentStream is, JMFMessage jmfMsg, Object msg) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "dumpJmfMessage");<NEW_LINE>if (msg != null) {<NEW_LINE>is.writeLin...
debug(tc, "dumpJmfMessage failed: " + e);