idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
650,726
public T visitExtBlock(ExtBlockContext ctx) {<NEW_LINE>TerminalNode fragmentNameToke = ctx.IDENTIFIER();<NEW_LINE>String fragmentName = fixIdentifier(fragmentNameToke);<NEW_LINE>StringBuilder fragmentString = new StringBuilder();<NEW_LINE>List<TerminalNode<MASK><NEW_LINE>chars.forEach(terminalNode -> {<NEW_LINE>fragmen...
> chars = ctx.CHAR();
888,602
public void refreshSource() {<NEW_LINE>if (!addonHandlers.stream().allMatch(MarketplaceAddonHandler::isReady)) {<NEW_LINE>logger.debug("Add-on service '{}' tried to refresh source before add-on handlers ready. Exiting.", getClass());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<Addon> addons = new ArrayList<>();<NEW_LINE>...
), List.of());
1,707,791
public Notebook apply(EntityResponse response) {<NEW_LINE>final Notebook convertedNotebook = new Notebook();<NEW_LINE>convertedNotebook.setUrn(response.getUrn().toString());<NEW_LINE>convertedNotebook.setType(EntityType.NOTEBOOK);<NEW_LINE>EnvelopedAspectMap aspectMap = response.getAspects();<NEW_LINE>MappingHelper<Not...
new Ownership(dataMap))));
1,749,973
private void togglePredefinedLocation(@SuppressWarnings("unused") ObservableValue<? extends Toggle> observable, @SuppressWarnings("unused") Toggle oldValue, Toggle newValue) {<NEW_LINE>if (iclouddriveRadioButton.equals(newValue)) {<NEW_LINE>vaultPath.set(locationPresets.getIclouddriveLocation().resolve<MASK><NEW_LINE>}...
(vaultName.get()));
1,009,288
public CompactSketch<S> compact() {<NEW_LINE>if (getRetainedEntries() == 0) {<NEW_LINE>if (empty_) {<NEW_LINE>return new CompactSketch<>(null, null, Long.MAX_VALUE, true);<NEW_LINE>}<NEW_LINE>return new CompactSketch<>(<MASK><NEW_LINE>}<NEW_LINE>final long[] hashArr = new long[getRetainedEntries()];<NEW_LINE>final S[] ...
null, null, thetaLong_, false);
133,269
private static void moveToTrash(ProjectFilesystem filesystem, Console console, BuildId buildId, Path... pathsToMove) throws IOException {<NEW_LINE>Path trashPath = filesystem.getBuckPaths().getTrashDir().<MASK><NEW_LINE>filesystem.mkdirs(trashPath);<NEW_LINE>for (Path pathToMove : pathsToMove) {<NEW_LINE>try {<NEW_LINE...
resolve(buildId.toString());
28,306
public void unlock(CharSequence name) {<NEW_LINE>Entry e = entries.get(name);<NEW_LINE>long thread = Thread.currentThread().getId();<NEW_LINE>if (e == null) {<NEW_LINE>LOG.info().$("not found, cannot unlock [table=`").$(name).$("`]").$();<NEW_LINE>notifyListener(thread, name, PoolListener.<MASK><NEW_LINE>return;<NEW_LI...
EV_NOT_LOCKED, -1, -1);
210,440
static <M extends Metadata> MetadataHandler<M> compile(String className, String classBody, MetadataDef<M> def, List<Object> argList) throws CompileException, IOException {<NEW_LINE>final ICompilerFactory compilerFactory;<NEW_LINE>try {<NEW_LINE>compilerFactory = CompilerFactoryFactory.getDefaultCompilerFactory();<NEW_L...
System.out.println(s);
1,382,015
final DeleteGameSessionQueueResult executeDeleteGameSessionQueue(DeleteGameSessionQueueRequest deleteGameSessionQueueRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteGameSessionQueueRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Req...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,650,437
public MinimalRebuildCache call() {<NEW_LINE>// Find the cache file unique to this module, binding properties and working directory.<NEW_LINE>File <MASK><NEW_LINE>// If the file exists.<NEW_LINE>if (minimalRebuildCacheFile.exists()) {<NEW_LINE>ObjectInputStream objectInputStream = null;<NEW_LINE>// Try to read it.<NEW_...
minimalRebuildCacheFile = computeMinimalRebuildCacheFile(moduleName, permutationDescription);
1,280,553
final EnableFastLaunchResult executeEnableFastLaunch(EnableFastLaunchRequest enableFastLaunchRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(enableFastLaunchRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,224,134
public List<SearchResult> search(final String baseDN, final String filter, Collection<String> returningAttributes, int searchScope) throws NamingException {<NEW_LINE>final List<SearchResult> result = new ArrayList<SearchResult>();<NEW_LINE>final SearchControls cons = getSearchControls(returningAttributes, searchScope);...
add(search.nextElement());
1,796,624
public Void execute(CommandContext commandContext) {<NEW_LINE>ExecutionEntityManager executionEntityManager = CommandContextUtil.getExecutionEntityManager();<NEW_LINE>ExecutionEntity execution = executionEntityManager.findById(executionId);<NEW_LINE>BpmnModel bpmnModel = ProcessDefinitionUtil.getBpmnModel(execution.get...
throw new FlowableException("No multi instance execution found for execution id " + executionId);
446,582
@Override<NEW_LINE>public JPanel createComponentImpl(Disposable parentUIDisposable) {<NEW_LINE>final Module module = getModule();<NEW_LINE>final Project project = module.getProject();<NEW_LINE>myContentEntryEditorListener = new MyContentEntryEditorListener();<NEW_LINE>final JPanel mainPanel = new JPanel(new BorderLayou...
VK_C, InputEvent.ALT_DOWN_MASK, mainPanel);
108,817
private NotebookEntity buildEntityFromNotebook(Notebook notebook) {<NEW_LINE>NotebookEntity entity = new NotebookEntity();<NEW_LINE>try {<NEW_LINE>entity.setId(notebook.getNotebookId().toString());<NEW_LINE>entity.setNotebookSpec(new GsonBuilder().disableHtmlEscaping().create().toJson(notebook.getSpec()));<NEW_LINE>ent...
setNotebookUrl(notebook.getUrl());
900,345
final GetRelationalDatabaseLogEventsResult executeGetRelationalDatabaseLogEvents(GetRelationalDatabaseLogEventsRequest getRelationalDatabaseLogEventsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getRelationalDatabaseLogEventsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
(super.beforeMarshalling(getRelationalDatabaseLogEventsRequest));
119,998
protected RelDataType deriveRowType() {<NEW_LINE>final RelDataTypeFactory typeFactory = getCluster().getTypeFactory();<NEW_LINE>List<RelDataTypeFieldImpl> columns = new LinkedList<>();<NEW_LINE>columns.add(new RelDataTypeFieldImpl("BASELINE_ID", 0, typeFactory.createSqlType(SqlTypeName.BIGINT)));<NEW_LINE>columns.add(n...
createSqlType(SqlTypeName.BIGINT)));
543,337
final AssociateWebsiteAuthorizationProviderResult executeAssociateWebsiteAuthorizationProvider(AssociateWebsiteAuthorizationProviderRequest associateWebsiteAuthorizationProviderRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateWebsiteAuthorizationProviderRequest);<NEW_LINE>AWSReque...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "AssociateWebsiteAuthorizationProvider");
442,567
private void readOpMem16(Instruction instruction, int tupleType) {<NEW_LINE>assert state_addressSize == OpSize.SIZE16 : state_addressSize;<NEW_LINE>RegInfo2 info = memRegs16[state_rm];<NEW_LINE>int baseReg = info.baseReg;<NEW_LINE>int indexReg = info.indexReg;<NEW_LINE>switch(state_mod) {<NEW_LINE>case 0:<NEW_LINE>if (...
instruction.setMemoryDisplacement64(readUInt16());
375,199
void persistAccountMap(Collection<Account> accounts, int version, long modifiedTimeInSec) {<NEW_LINE>if (backupDirPath == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Objects.requireNonNull(accounts, "Invalid account collection");<NEW_LINE>if (backupFileInfos.containsKey(version)) {<NEW_LINE>logger.trace("Version {} al...
(version, fileName, modifiedTimeInSec));
1,683,774
public static Packet newPacket(byte[] rawData, int offset, int length) throws IllegalRawDataException {<NEW_LINE>ByteArrays.validateBounds(rawData, offset, length);<NEW_LINE>int ver = (rawData[offset] >> 5) & 0x07;<NEW_LINE>ProtocolType pt = ProtocolType.getInstance((rawData[offset] & 0x10) != 0);<NEW_LINE>switch(ver) ...
offset, length, NotApplicable.UNKNOWN);
1,720,035
protected Supplier<VersionsInfo> versionsInfoSupplier() {<NEW_LINE>return () -> {<NEW_LINE>try {<NEW_LINE>if (!configProvider.getBaseConfig().getMain().isUpdateCheckEnabled()) {<NEW_LINE>// Just for development<NEW_LINE>return new VersionsInfo();<NEW_LINE>}<NEW_LINE>final UpdateManager.UpdateInfo updateInfo = updateMan...
), updateInfo.getPackageInfo());
104,266
protected PanmirrorImageProps collectInput() {<NEW_LINE>// process change event for focused size controls (typically these changes<NEW_LINE>// only occur on the change event, which won't occur if the dialog is<NEW_LINE>// dismissed while they are focused<NEW_LINE>fireChangedIfFocused(width_);<NEW_LINE>fireChangedIfFocu...
.getValue().trim();
22,312
public ListenerResult listen(WorkflowContext context) throws WorkflowListenerException {<NEW_LINE>GroupResourceProcessForm form = <MASK><NEW_LINE>String groupId = form.getInlongGroupId();<NEW_LINE>String streamId = form.getInlongStreamId();<NEW_LINE>String applicant = context.getApplicant();<NEW_LINE>// update inlong g...
(GroupResourceProcessForm) context.getProcessForm();
175,004
private PropertyNode propertyAssignment() {<NEW_LINE>// Capture firstToken.<NEW_LINE>final long propertyToken = token;<NEW_LINE>final int functionLine = line;<NEW_LINE>PropertyKey propertyName;<NEW_LINE>if (type == IDENT) {<NEW_LINE>// Get IDENT.<NEW_LINE>final String ident = (String) expectValue(IDENT);<NEW_LINE>if (t...
(false), null, null);
1,084,450
public static DMatrixRMaj projectiveToFundamental(DMatrixRMaj P2, @Nullable DMatrixRMaj F21) {<NEW_LINE>if (F21 == null)<NEW_LINE>F21 <MASK><NEW_LINE>// P2 = [A|b]<NEW_LINE>// Since P1 = [I|0] F then becomes cross(b)*A<NEW_LINE>// Extract sub matrices from P2<NEW_LINE>// Do all the math by hand to avoid memory creation...
= new DMatrixRMaj(3, 3);
783,224
private void checkPrimaryStorageCapabilities(VmCapabilities capabilities, VmInstanceVO vm) {<NEW_LINE>VolumeVO rootVolume = vm.getRootVolume();<NEW_LINE>if (rootVolume == null) {<NEW_LINE>capabilities.setSupportLiveMigration(false);<NEW_LINE>capabilities.setSupportVolumeMigration(false);<NEW_LINE>} else {<NEW_LINE>Simp...
setSupportLiveMigration(psType.isSupportVmLiveMigration());
119,383
public static JPanel createTimestampPanel(SettingsDialog d, String setting) {<NEW_LINE>final Map<String, String> timestampOptions = new LinkedHashMap<>();<NEW_LINE>timestampOptions.put("off", "Off");<NEW_LINE>timestampOptions.put("", "Empty (Space)");<NEW_LINE>addTimestampFormat(timestampOptions, "[HH:mm:ss]");<NEW_LIN...
ComboStringSetting combo = new ComboStringSetting(timestampOptions);
631,077
private boolean checkFinished(Workout s) {<NEW_LINE>if (this.getAutolap() == 0 && durationType == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean newStep = false;<NEW_LINE>boolean newLap = false;<NEW_LINE>double time = <MASK><NEW_LINE>// Special handling for distance targets to end on (likely) closest<NEW_LI...
s.getTime(Scope.STEP);
642,729
public void receive(DatagramSocket localSocket, T packet) {<NEW_LINE>final InetSocketAddress remoteSocketAddress = <MASK><NEW_LINE>final InetAddress remoteAddress = remoteSocketAddress.getAddress();<NEW_LINE>if (isIgnoreAddress(remoteAddress)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final HeaderTBaseDeserializer deseria...
(InetSocketAddress) packet.getSocketAddress();
1,471,203
void storeArgs(InstanceScope scope, int nargs, ST st) {<NEW_LINE>if (nargs > 0 && !st.impl.hasFormalArgs && st.impl.formalArguments == null) {<NEW_LINE>// pretend we have "it" arg<NEW_LINE>st.<MASK><NEW_LINE>}<NEW_LINE>int nformalArgs = 0;<NEW_LINE>if (st.impl.formalArguments != null)<NEW_LINE>nformalArgs = st.impl.for...
add(ST.IMPLICIT_ARG_NAME, null);
1,477,378
public void addOrUpdatePassword(boolean update, String username, SecureString oldPassword, SecureString newPassword) {<NEW_LINE>NitriteMap<String, UserCredential> userMap = null;<NEW_LINE>if (update) {<NEW_LINE>userMap = store.openMap(USER_MAP, String.class, UserCredential.class);<NEW_LINE>UserCredential credential = u...
String.class, UserCredential.class);
510,585
public DatasetVersion deleteDatasetVersionTags(String datasetVersionId, List<String> datasetVersionTagList, Boolean deleteAll) {<NEW_LINE>try (var session = modelDBHibernateUtil.getSessionFactory().openSession()) {<NEW_LINE><MASK><NEW_LINE>if (deleteAll) {<NEW_LINE>var query = session.createQuery(DELETE_DATASET_VERSION...
var transaction = session.beginTransaction();
1,549,473
public static void migrateDisabledAudioFormats(final Switchboard sb) {<NEW_LINE>final Set<String> oldAudioExtensions = new HashSet<>();<NEW_LINE>Collections.addAll(oldAudioExtensions, new String[] { "mp3", "ogg", "oga", "m4a", "m4p", "flac", "wma" });<NEW_LINE>final Set<String> oldAudioMediaTypes = new HashSet<>();<NEW...
(SwitchboardConstants.PARSER_EXTENSIONS_DENY, ""));
741,373
public void save(DialogInterface dialog, int which) {<NEW_LINE>System.out.println(editingProfile);<NEW_LINE>MinecraftProfile profile;<NEW_LINE>boolean isNew;<NEW_LINE>if (LauncherProfiles.mainProfileJson.profiles.containsKey(editingProfile)) {<NEW_LINE>profile = LauncherProfiles.mainProfileJson.profiles.get(editingProf...
(Runtime) javaRuntimeSpinner.getSelectedItem();
1,591,512
public void processMedicAction(String action, int errorCode) {<NEW_LINE>if (powerCycleOnFailureEnabled) {<NEW_LINE>if (action.equalsIgnoreCase("onScanFailed")) {<NEW_LINE>if (errorCode == 2) {<NEW_LINE>LogManager.i(BluetoothMedic.TAG, "Detected a SCAN_FAILED_APPLICATION_REGISTRATION_FAILED. We need to cycle bluetooth ...
i(BluetoothMedic.TAG, "advertising failed: Expected failure. Power cycling.");
649,108
public static net.minecraft.nbt.Tag toNative(BinaryTag tag) {<NEW_LINE>if (tag instanceof IntArrayBinaryTag) {<NEW_LINE>return toNative((IntArrayBinaryTag) tag);<NEW_LINE>} else if (tag instanceof ListBinaryTag) {<NEW_LINE>return toNative((ListBinaryTag) tag);<NEW_LINE>} else if (tag instanceof LongBinaryTag) {<NEW_LIN...
return toNative((ByteBinaryTag) tag);
1,558
public BaseMethodBinding<?> determineResourceMethod(RequestDetails requestDetails, String requestPath) {<NEW_LINE>RequestTypeEnum requestType = requestDetails.getRequestType();<NEW_LINE>ResourceBinding resourceBinding = null;<NEW_LINE>BaseMethodBinding<?> resourceMethod = null;<NEW_LINE>String resourceName = requestDet...
resourceMethod = resourceBinding.getMethod(requestDetails);
35,097
public void marshall(AwsApiGatewayV2RouteSettings awsApiGatewayV2RouteSettings, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (awsApiGatewayV2RouteSettings == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(...
e.getMessage(), e);
581,962
public boolean nextConfig(long timeout) {<NEW_LINE>if (checkReloaded()) {<NEW_LINE>// Not supporting changing the payload for jar<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (zipEntry == null) {<NEW_LINE>// First time polled<NEW_LINE>JarFile jarFile;<NEW_LINE>try {<NEW_LINE>jarFile = new JarFile(jarName);<NEW_LINE>} c...
zipEntry = getEntry(jarFile, path);
1,535,198
private boolean switchCurrentEditor() {<NEW_LINE>final TopComponent tc = TopComponent<MASK><NEW_LINE>if (null == tc || !TopComponentTracker.getDefault().isEditorTopComponent(tc))<NEW_LINE>return false;<NEW_LINE>final WindowManagerImpl wmi = WindowManagerImpl.getInstance();<NEW_LINE>final JFrame mainWnd = (JFrame) wmi.g...
.getRegistry().getActivated();
141,884
private GenerateAotSources createGenerateAotSourcesTask(Project project, SourceSetContainer sourceSets) {<NEW_LINE>SourceSet mainSourceSet = sourceSets.findByName(SourceSet.MAIN_SOURCE_SET_NAME);<NEW_LINE>SourceSet aotSourceSet = sourceSets.findByName(AOT_MAIN_SOURCE_SET_NAME);<NEW_LINE>GenerateAotSources generate = pr...
setResourceInputDirectories(mainSourceSet.getResources());
1,213,555
private List<Map<String, List<File>>> classifyModules(@NonNull final Collection<? extends String> toClassify, @NonNull final Set<? super File> moduleInfosToListenOn, @NonNull final Collection<? super ClassPath> cpsToListenOn) {<NEW_LINE>final Map<String, List<File>> mods = new HashMap<>();<NEW_LINE>final Map<String, Li...
modName, Collections.emptyList());
601,682
public KsqlGenericRecord build(final List<ColumnName> columnNames, final List<Expression> expressions, final LogicalSchema schema, final DataSourceType dataSourceType) {<NEW_LINE>final List<ColumnName> columns = columnNames.isEmpty(<MASK><NEW_LINE>if (columns.size() != expressions.size()) {<NEW_LINE>throw new KsqlExcep...
) ? implicitColumns(schema) : columnNames;
507,099
public Object authenticate(final Context context, final Object payload) throws AuthException {<NEW_LINE>final Request request = context.request();<NEW_LINE>if (Logger.isDebugEnabled()) {<NEW_LINE>Logger.debug("Returned with URL: '" + request.uri() + "'");<NEW_LINE>}<NEW_LINE>final String error = request.getQueryString(...
request.getQueryString(Constants.CODE);
1,022,109
public ResponseEntity<Resource> exportDB(Principal p, ServletWebRequest swr) throws Exception {<NEW_LINE>Path exportFile = databaseService.exportDB();<NEW_LINE>if (exportFile == null) {<NEW_LINE>return ResponseEntity.internalServerError().build();<NEW_LINE>}<NEW_LINE>User user = securityService.getUserByName(p.getName(...
.UTF_8).build());
534,576
private void moveContentToInstallationDir(String installationDir) throws IOException {<NEW_LINE>Utils.copyFolderOrFile(new File("core"), new File(installationDir + "core"));<NEW_LINE>Utils.copyFolderOrFile(new File("plugin-interface"), <MASK><NEW_LINE>Utils.copyFolderOrFile(new File("plugin"), new File(installationDir ...
new File(installationDir + "plugin-interface"));
837,546
private static Optional<String> append(DescriptorProtos.DescriptorProto messageDescriptor, List<Integer> path, String fullName) {<NEW_LINE>switch(path.get(0)) {<NEW_LINE>case DescriptorProtos.DescriptorProto.NESTED_TYPE_FIELD_NUMBER:<NEW_LINE>DescriptorProtos.DescriptorProto nestedMessage = messageDescriptor.getNestedT...
(path.get(1));
814,769
protected void checkOutputFileName() throws IOException {<NEW_LINE>LogManager.log(ErrorLevel.DEBUG, "Checking output file name...");<NEW_LINE>if (outputFile == null) {<NEW_LINE>LogManager.log(ErrorLevel.DEBUG, "... output file name is not specified, getting name from the first bundled file");<NEW_LINE>String outputFile...
getName() + getExtension());
495,534
public void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {<NEW_LINE>switch(requestCode) {<NEW_LINE>case RequestCodes.CRED_HINT:<NEW_LINE>if (resultCode == Activity.RESULT_OK) {<NEW_LINE>handleCredential((Credential) data.getParcelableExtra(Credential.EXTRA_KEY));<NEW_LINE>} else {<NEW_LINE>s...
(Resource.forSuccess(response));
1,682,435
public boolean releaseLock(List<RowLock> rowLocks) {<NEW_LINE>if (CollectionUtils.isEmpty(rowLocks)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>String currentXid = rowLocks.get(0).getXid();<NEW_LINE>Long branchId = rowLocks.get(0).getBranchId();<NEW_LINE>List<LockDO> needReleaseLocks = convertToLockDO(rowLocks);<NEW_L...
), branchId.toString());
135,033
static void paintNot(Graphics g, int x, int y, int width, int height) {<NEW_LINE>paintNegatedOutput(g, x - 4, y);<NEW_LINE>if (AppPreferences.GATE_SHAPE.get().equals(AppPreferences.SHAPE_RECTANGULAR)) {<NEW_LINE>g.drawRect(x - width, y - (width - 4) / 2, width - 4, width - 4);<NEW_LINE>GraphicsUtil.drawCenteredText(g, ...
xp[2] = x - width;
1,768,217
protected void deleteSoftDeletedEntities() {<NEW_LINE>List<Role> deletedRoles = dataManager.load(Role.class).softDeletion(false).query("select p from sec$Role p where p.deleteTs is not null").list();<NEW_LINE>List<Permission> deletedPermissions = dataManager.load(Permission.class).softDeletion(false).query("select p fr...
entitiesToRemove = new ArrayList<>();
158,268
public static ArJavaI420Buffer createYUV(byte[] var0, int var1, int var2) {<NEW_LINE>if (var0 != null && var0.length != 0) {<NEW_LINE>ArJavaI420Buffer var3 = allocate(var1, var2);<NEW_LINE>ByteBuffer var4 = var3.getDataY();<NEW_LINE>ByteBuffer var5 = var3.getDataU();<NEW_LINE>ByteBuffer var6 = var3.getDataV();<NEW_LINE...
= var7 * var3.getStrideV();
529,104
public ExecutionResult<Void> finishBuild(@Nullable Throwable failure) {<NEW_LINE>return state.finish(State.Finished, stageFailures -> {<NEW_LINE>// Fire the build finished events even if nothing has happened to this build, because quite a lot of internal infrastructure<NEW_LINE>// adds listeners and expects to see a bu...
transform(stageFailures.getFailures());
1,662,540
public static void main(final String[] args) {<NEW_LINE>// Create a chart:<NEW_LINE>Chart2D chart = new Chart2D();<NEW_LINE>chart.getAxisX().setFormatter(new LabelFormatterDate((SimpleDateFormat) DateFormat.getDateTimeInstance()));<NEW_LINE>// Create an ITrace:<NEW_LINE>// Note that dynamic charts need limited amount o...
= new RandomDataCollectorTimeStamped(trace, 100);
1,602,734
public static QueryLocalFileUploadJobResponse unmarshall(QueryLocalFileUploadJobResponse queryLocalFileUploadJobResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryLocalFileUploadJobResponse.setRequestId(_ctx.stringValue("QueryLocalFileUploadJobResponse.RequestId"));<NEW_LINE>queryLocalFileUploadJobResponse.setSuccess(...
("QueryLocalFileUploadJobResponse.Data.ResultList[" + i + "].ProductKey"));
71,421
public ESeq match(EPattern matcher) {<NEW_LINE>EObject key = matcher.getKey(keypos1);<NEW_LINE>if (key == null) {<NEW_LINE>// oops, .. tablescan<NEW_LINE>ESeq res = ERT.NIL;<NEW_LINE>IPersistentMap map = deref();<NEW_LINE>for (ISeq entseq = map.seq(); entseq != null; entseq = entseq.next()) {<NEW_LINE>IMapEntry ent = (...
IPersistentCollection) map.valAt(key);
328,755
private void updateViews() {<NEW_LINE>AutoFrameRateManager autoFrameRateManager = mPlayerFragment.getAutoFrameRateManager();<NEW_LINE>if (autoFrameRateManager != null) {<NEW_LINE>mAutoframerateView.setChecked(autoFrameRateManager.isEnabled());<NEW_LINE>mAutoframerateDelayView.setChecked(autoFrameRateManager.isDelayEnab...
= mTrackViews[i][j];
1,070,508
public <C> /*>>> extends @NonNull Object*/<NEW_LINE>void inject(SpanContext spanContext, C carrier, Setter<C> setter) {<NEW_LINE>checkNotNull(spanContext, "spanContext");<NEW_LINE>checkNotNull(setter, "setter");<NEW_LINE>checkNotNull(carrier, "carrier");<NEW_LINE>char[] chars = new char[TRACEPARENT_HEADER_SIZE];<NEW_LI...
.getTracestate().getEntries();
1,491,817
private void writeMatchesCSV(String fileName) {<NEW_LINE>FileWriter writer = null;<NEW_LINE>File csvFile = new File(reportDir, fileName);<NEW_LINE>List<JPlagComparison> comparisons = result.getComparisons(options.getMaximumNumberOfComparisons());<NEW_LINE>try {<NEW_LINE>csvFile.createNewFile();<NEW_LINE>writer = new Fi...
writer.write(submissionNameB + ";");
678,527
private void annotateEntries(String prefix, PrintWriter printTo, AnnotatedOutput annotateTo) {<NEW_LINE>finishProcessingIfNecessary();<NEW_LINE>boolean consume = (annotateTo != null);<NEW_LINE>int amt1 = consume ? 6 : 0;<NEW_LINE>int amt2 = consume ? 2 : 0;<NEW_LINE>int size = table.size();<NEW_LINE>String subPrefix = ...
annotateTo.annotate(amt2, s2);
1,462,822
public void testJMS2Commit() throws JMSException, InterruptedException {<NEW_LINE>clearQueue(queueOne_);<NEW_LINE>completionListener_.reset();<NEW_LINE>try (JMSContext transactedContext = queueConnectionFactory_.createContext(Session.SESSION_TRANSACTED)) {<NEW_LINE>JMSProducer messageProducerTrans = transactedContext.c...
Message message = transactedContext.createMessage();
1,378,258
public void postCreate(ParseContext context) throws IOException {<NEW_LINE>// In the case of nested docs, let's fill nested docs with the original<NEW_LINE>// so that Lucene doesn't write a Bitset for documents that<NEW_LINE>// don't have the field. This is consistent with the default value<NEW_LINE>// for efficiency.<...
.docs().size();
242,489
public Pair<List<? extends Site2SiteCustomerGateway>, Integer> searchForCustomerGateways(ListVpnCustomerGatewaysCmd cmd) {<NEW_LINE>Long id = cmd.getId();<NEW_LINE>Long domainId = cmd.getDomainId();<NEW_LINE>boolean isRecursive = cmd.isRecursive();<NEW_LINE>String accountName = cmd.getAccountName();<NEW_LINE>boolean li...
"id", false, startIndex, pageSizeVal);
1,251,897
public static TaobaoFilmGetSeatsResponse unmarshall(TaobaoFilmGetSeatsResponse taobaoFilmGetSeatsResponse, UnmarshallerContext _ctx) {<NEW_LINE>taobaoFilmGetSeatsResponse.setRequestId(_ctx.stringValue("TaobaoFilmGetSeatsResponse.RequestId"));<NEW_LINE>taobaoFilmGetSeatsResponse.setErrorCode(_ctx.stringValue("TaobaoFilm...
("TaobaoFilmGetSeatsResponse.SeatMap.Seats[" + i + "].Area"));
671,826
public Query buildFilteredQuery(Query query) {<NEW_LINE>List<Query> filters = new ArrayList<>();<NEW_LINE><MASK><NEW_LINE>NestedHelper nestedHelper = new NestedHelper(nestedLookup, searchExecutionContext::isFieldMapped);<NEW_LINE>if (nestedLookup != NestedLookup.EMPTY && nestedHelper.mightMatchNestedDocs(query) && (ali...
NestedLookup nestedLookup = searchExecutionContext.nestedLookup();
1,048,107
static List<InstalledXcode> findXcodes() {<NEW_LINE>List<InstalledXcode> xcodes = new ArrayList<>();<NEW_LINE>// On macOS, we assume co-located Xcode is installed into /opt/xcode<NEW_LINE>File rootXcodeInstall = new File("/opt/xcode");<NEW_LINE>List<File> xcodeCandidates = Lists.newArrayList(Arrays.asList(GUtil.getOrDe...
matcher = versionRegex.matcher(output);
1,266,975
public void onActivityResult(int requestCode, int resultCode, Intent data) {<NEW_LINE>super.onActivityResult(requestCode, resultCode, data);<NEW_LINE>if (!bufferForLocationDialog.containsKey("bundle_" + requestCode)) {<NEW_LINE>Log.e(TAG, "no key");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Bundle query = bufferForLocationD...
TAG, "====> onActivityResult (" + resultCode + ")");
53,273
public KPIDataContext retainOnlyRequiredParameters(@NonNull final Set<CtxName> requiredParameters) {<NEW_LINE>UserId userId_new = null;<NEW_LINE>RoleId roleId_new = null;<NEW_LINE>ClientId clientId_new = null;<NEW_LINE>OrgId orgId_new = null;<NEW_LINE>for (final CtxName requiredParam : requiredParameters) {<NEW_LINE>fi...
String requiredParamName = requiredParam.getName();
565,226
public List<Object> find(MetamodelImpl metaModel, EntityMetadata metadata, Object rowId, List<String> relationNames) {<NEW_LINE>CQLTranslator translator = new CQLTranslator();<NEW_LINE>String tableName = metadata.getTableName();<NEW_LINE>String select_Query = translator.SELECTALL_QUERY;<NEW_LINE>select_Query = StringUt...
builder.append(CQLTranslator.ADD_WHERE_CLAUSE);
334,735
public String generateToolTip(XYDataset dataset, int series, int item) {<NEW_LINE>if (!(dataset instanceof OHLCDataset)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>OHLCDataset d = (OHLCDataset) dataset;<NEW_LINE>Number high = d.getHigh(series, item);<NEW_LINE>Number low...
(high.doubleValue()));
551,106
public void printBestPath() {<NEW_LINE>Node cNode = nodes[xlen <MASK><NEW_LINE>// int dist = 0;<NEW_LINE>// while(cNode != null){<NEW_LINE>// dist++;<NEW_LINE>// cNode = cNode.prevNode;<NEW_LINE>// }<NEW_LINE>// double[][] path = new double[dist][dist];<NEW_LINE>// cNode = nodes[xlen-1][ylen-1];<NEW_LINE>// for(int i=0...
- 1][ylen - 1];
234,278
final OptInPhoneNumberResult executeOptInPhoneNumber(OptInPhoneNumberRequest optInPhoneNumberRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(optInPhoneNumberRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,774,316
protected OChannelBinaryAsynchClient createNetworkConnection(String serverURL, final OContextConfiguration clientConfiguration) throws OIOException {<NEW_LINE>if (serverURL == null)<NEW_LINE>throw new IllegalArgumentException("server url is null");<NEW_LINE>// TRY WITH CURRENT URL IF ANY<NEW_LINE>try {<NEW_LINE>OLogMan...
remotePort, clientConfiguration, OChannelBinaryProtocol.CURRENT_PROTOCOL_VERSION);
797,529
private void processFailures(Map<KeyExtent, List<Range>> failures, ResultReceiver receiver, List<Column> columns) throws AccumuloException, AccumuloSecurityException, TableNotFoundException {<NEW_LINE>if (log.isTraceEnabled())<NEW_LINE>log.trace("Failed to execute multiscans against {} tablets, retrying...", failures.s...
binRanges(locator, allRanges, binnedRanges);
219,067
public void search(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>request = wrapRequest(request);<NEW_LINE>Player player = playerService.getPlayer(request, response);<NEW_LINE>String username = securityService.getCurrentUsername(request);<NEW_LINE>String any = request.getParameter...
musicFolders = mediaFolderService.getMusicFoldersForUser(username);
363,456
public void doCopy(final File from, final File to) throws IOException {<NEW_LINE>// NOI18N<NEW_LINE>LOG.log(Level.FINE, "doCopy {0}->{1}", new Object<MASK><NEW_LINE>if (from == null || to == null || to.exists())<NEW_LINE>return;<NEW_LINE>Git git = Git.getInstance();<NEW_LINE>File root = git.getRepositoryRoot(from);<NEW...
[] { from, to });
132,974
private boolean copyDir(DirContext srcDir, File destDir) {<NEW_LINE>try {<NEW_LINE>NamingEnumeration<NameClassPair> enumeration = srcDir.list("");<NEW_LINE>while (enumeration.hasMoreElements()) {<NEW_LINE>NameClassPair ncPair = enumeration.nextElement();<NEW_LINE>String name = ncPair.getName();<NEW_LINE>Object object =...
Resource) object).streamContent();
1,104,379
private ArrayList<Object> bindArguments(JsonReader reader, List<Type> paramTypes) throws IOException {<NEW_LINE>reader.beginArray();<NEW_LINE>int paramCount = paramTypes.size();<NEW_LINE>int argCount = 0;<NEW_LINE>ArrayList<Object> arguments = new ArrayList<>();<NEW_LINE>while (reader.peek() != JsonToken.END_ARRAY) {<N...
paramTypes.get(argCount)));
1,555,815
public void startUntrustedTransction(boolean newTransaction, long inputIndex, BTChipInput[] usedInputList, byte[] redeemScript) throws BTChipException {<NEW_LINE>// Start building a fake transaction with the passed inputs<NEW_LINE>ByteArrayOutputStream data = new ByteArrayOutputStream();<NEW_LINE>BufferUtils.writeBuffe...
BufferUtils.writeBuffer(data, script);
706,570
public static ListInboundOrderPreboxingsResponse unmarshall(ListInboundOrderPreboxingsResponse listInboundOrderPreboxingsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listInboundOrderPreboxingsResponse.setRequestId(_ctx.stringValue("ListInboundOrderPreboxingsResponse.RequestId"));<NEW_LINE>listInboundOrderPreboxingsRe...
("ListInboundOrderPreboxingsResponse.InboundOrderPreboxings[" + i + "].OrderId"));
886,642
private void writeStats(QueryStatistics stats) throws IOException {<NEW_LINE>jsonGenerator.writeObjectFieldStart("stats");<NEW_LINE>try {<NEW_LINE>jsonGenerator.writeBooleanField("contains_updates", stats.containsUpdates());<NEW_LINE>jsonGenerator.writeNumberField("nodes_created", stats.getNodesCreated());<NEW_LINE>jso...
"indexes_removed", stats.getIndexesRemoved());
149,503
protected TypeBinding[] superTypesWithCommonGenericType(TypeBinding s, TypeBinding t) {<NEW_LINE>if (s == null || s.id == TypeIds.T_JavaLangObject || t == null || t.id == TypeIds.T_JavaLangObject)<NEW_LINE>return null;<NEW_LINE>if (TypeBinding.equalsEquals(s.original(), t.original())) {<NEW_LINE>return new TypeBinding[...
s.superclass(), t);
1,386,381
private void updateStageExecutions(StreamingPlanSection section, Map<PlanFragment, PlanFragment> oldToNewFragment) {<NEW_LINE>StreamingPlanSection newSection = new StreamingPlanSection(rewriteStreamingSubPlan(section.getPlan(), oldToNewFragment), section.getChildren());<NEW_LINE>PlanFragment sectionRootFragment = newSe...
queryStateMachine, rootBufferId, tasks, noMoreExchangeLocations);
566,720
public Description matchMethodInvocation(MethodInvocationTree tree, VisitorState state) {<NEW_LINE>if (!METHOD_MATCHER.matches(tree, state)) {<NEW_LINE>return Description.NO_MATCH;<NEW_LINE>}<NEW_LINE>String value = ASTHelpers.constValue(tree.getArguments().get(0), String.class);<NEW_LINE>if (value == null) {<NEW_LINE>...
state.getConstantExpression(r)));
1,397,438
protected boolean put(K key, @Nullable V value) {<NEW_LINE>if (key == null)<NEW_LINE>return false;<NEW_LINE>int i = indexOfExistingKey(state(), key);<NEW_LINE>if (i == -1 && factory.maxDynamicEntries == 0) {<NEW_LINE>Platform.get().log("Ignoring request to add a dynamic key", null);<NEW_LINE>return false;<NEW_LINE>}<NE...
i = indexOfDynamicKey(prior, key);
1,208,901
public void onUpdate(float lerpTime) {<NEW_LINE>final float spedUpLerp = Math.min(1.0f, lerpTime * 2.0f);<NEW_LINE>outerCircleRadius = calculatedOuterCircleRadius * (1.0f + (spedUpLerp * 0.2f));<NEW_LINE>outerCircleAlpha = (int) ((1.0f - spedUpLerp) * target.outerCircleAlpha * 255.0f);<NEW_LINE>outerCirclePath.reset();...
= (1.0f - lerpTime) * TARGET_RADIUS;
264,634
private void writeEntry(DatenFilm datenFilm, JsonGenerator jg) throws IOException {<NEW_LINE>jg.writeArrayFieldStart(TAG_JSON_LIST);<NEW_LINE>writeSender(jg, datenFilm);<NEW_LINE>writeThema(jg, datenFilm);<NEW_LINE>writeTitel(jg, datenFilm);<NEW_LINE>jg.writeString(datenFilm.getSendeDatum());<NEW_LINE>writeZeit(jg, dat...
writeString(datenFilm.getUrl());
1,010,176
public UnconditionalFlowInfo unconditionalFieldLessCopy() {<NEW_LINE>// TODO (maxime) may consider leveraging null contribution verification as it is done in copy<NEW_LINE>UnconditionalFlowInfo copy = new UnconditionalFlowInfo();<NEW_LINE>copy.tagBits = this.tagBits;<NEW_LINE>copy.maxFieldCount = this.maxFieldCount;<NE...
.nullBit1 = this.nullBit1 & mask;
1,475,745
private ReportOptions parseReportOptions(final List<String> classPath) {<NEW_LINE>final ReportOptions data = new ReportOptions();<NEW_LINE>if (this.mojo.getProject().getBuild() != null) {<NEW_LINE>this.log.info("Mutating from " + this.mojo.getProject().getBuild().getOutputDirectory());<NEW_LINE>data.setCodePaths(Collec...
this.mojo.isTimestampedReports());
998,036
public Mono<Response<Void>> verifyDomainOwnershipWithResponseAsync(String resourceGroupName, String certificateOrderName) {<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_LI...
error(new IllegalArgumentException("Parameter certificateOrderName is required and cannot be null."));
1,377,765
public static Path link(Grob shape1, Grob shape2, String orientation) {<NEW_LINE>if (shape1 == null || shape2 == null)<NEW_LINE>return null;<NEW_LINE>Path p = new Path();<NEW_LINE>Rect a = shape1.getBounds();<NEW_LINE>Rect b = shape2.getBounds();<NEW_LINE>if (orientation.equals("horizontal")) {<NEW_LINE>double hw = (b....
+ a.height)) / 2;
859,799
public void reserve(NicProfile nic, Network config, VirtualMachineProfile vm, DeployDestination dest, ReservationContext context) throws InsufficientVirtualNetworkCapacityException, InsufficientAddressCapacityException {<NEW_LINE>assert (nic.getReservationStrategy(<MASK><NEW_LINE>DataCenter dc = _dcDao.findById(config....
) == ReservationStrategy.Start) : "What can I do for nics that are not allocated at start? ";
1,175,904
public boolean initLogin() {<NEW_LINE>m_cc = CConnection.get(Adempiere.getCodeBaseHost());<NEW_LINE>hostField.setValue(m_cc);<NEW_LINE>if (Ini.isPropertyBool(Ini.P_VALIDATE_CONNECTION_ON_STARTUP)) {<NEW_LINE>validateConnection();<NEW_LINE>}<NEW_LINE>// Application/PWD<NEW_LINE>userTextField.setText(Ini<MASK><NEW_LINE>i...
.getProperty(Ini.P_UID));
670,651
final DeleteTransitGatewayConnectResult executeDeleteTransitGatewayConnect(DeleteTransitGatewayConnectRequest deleteTransitGatewayConnectRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteTransitGatewayConnectRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
51,738
private static ServerConfiguration parseCommandLine(String[] args) throws IllegalArgumentException, UncheckedConfigurationException {<NEW_LINE>ServerConfiguration conf;<NEW_LINE>try {<NEW_LINE>conf = parseArgs(args);<NEW_LINE>} catch (IllegalArgumentException iae) {<NEW_LINE><MASK><NEW_LINE>System.err.println(iae.getMe...
log.error("Error parsing command line arguments : ", iae);
987,605
public void onSensorChanged(SensorEvent se) {<NEW_LINE>long curDate = java.lang.System.currentTimeMillis();<NEW_LINE>long uiDeltaMs = curDate - lastUIDateMs;<NEW_LINE>long sensorDeltaMs = curDate - lastSensorDateMs;<NEW_LINE>if (sensorDeltaMs > sensorIntervalMs) {<NEW_LINE>lastSensorDateMs = curDate;<NEW_LINE>if (se.se...
, se.values[1]);
1,846,419
public Request<DetachPrincipalPolicyRequest> marshall(DetachPrincipalPolicyRequest detachPrincipalPolicyRequest) {<NEW_LINE>if (detachPrincipalPolicyRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DetachPrincipalPolicyRequest)");<NEW_LINE>}<NEW_LINE>Request<DetachPrincip...
(detachPrincipalPolicyRequest.getPolicyName()));
158,992
final GetAccountBalanceResult executeGetAccountBalance(GetAccountBalanceRequest getAccountBalanceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAccountBalanceRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<GetAccountBalanceReq...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();