idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,778,863
public FormatWalkResult postFormat(String name, String type, String declaredType, int typeCode, long address, PrintStream out, Context context, IStructureFormatter structureFormatter) {<NEW_LINE>if (typeCode == StructureTypeManager.TYPE_POINTER) {<NEW_LINE>CTypeParser parser = new CTypeParser(declaredType);<NEW_LINE>St...
address).at(0));
1,647,000
public static final void YUV444toRGB888(final byte y, final byte u, final byte v, byte[] data, int off) {<NEW_LINE>final int c = y + 112;<NEW_LINE>final int d = u;<NEW_LINE>final int e = v;<NEW_LINE>final int r = (298 * c + 409 <MASK><NEW_LINE>final int g = (298 * c - 100 * d - 208 * e + 128) >> 8;<NEW_LINE>final int b...
* e + 128) >> 8;
513,210
protected void redirectToApp(HttpServletRequest request, HttpServletResponse response, String contextName, String[] uriParts, String action) throws IOException {<NEW_LINE>StringBuilder redirectAddress = new StringBuilder();<NEW_LINE>for (int i = 0; i < uriParts.length; i++) {<NEW_LINE>redirectAddress.append(uriParts[i]...
HttpSession httpSession = request.getSession();
272,974
private static int add(CommandContext<CommandSourceStack> context, int level) throws CommandSyntaxException {<NEW_LINE>Modifier modifier = ModifierArgument.getModifier(context, "modifier");<NEW_LINE>List<LivingEntity> successes = HeldModifiableItemIterator.apply(context, (living, stack) -> {<NEW_LINE>// add modifier<NE...
tool = ToolStack.from(stack);
1,551,706
private void fetchLocationsFromRegistry(final List<File> locations) {<NEW_LINE>for (Product jdk : Registry.getInstance().getProducts(JDK_PRODUCT_UID)) {<NEW_LINE>if (jdk.getStatus() == Status.INSTALLED) {<NEW_LINE>if (!locations.contains(jdk.getInstallationLocation())) {<NEW_LINE>locations.<MASK><NEW_LINE>}<NEW_LINE>}<...
add(jdk.getInstallationLocation());
1,107,467
private boolean uninstallNode(AdminCommandContext ctx, ParameterMap map, Node node) {<NEW_LINE>boolean res = false;<NEW_LINE>remotepassword = map.getOne(PARAM_SSHPASSWORD);<NEW_LINE>sshkeypassphrase = map.getOne(PARAM_SSHKEYPASSPHRASE);<NEW_LINE>ArrayList<String> command = new ArrayList<>();<NEW_LINE>command.add(getUni...
node.getName(), host);
1,512,991
void enableLionFS() {<NEW_LINE>try {<NEW_LINE>String version = System.getProperty("os.version");<NEW_LINE>int firstDot = version.indexOf('.');<NEW_LINE>int lastDot = version.lastIndexOf('.');<NEW_LINE>if (lastDot > firstDot && lastDot >= 0) {<NEW_LINE>version = version.substring(0, version.indexOf('.', firstDot + 1));<...
"Could not enable OS X 10.7+ full-screen mode: " + e.getMessage());
838,407
final ListPolicyVersionsResult executeListPolicyVersions(ListPolicyVersionsRequest listPolicyVersionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPolicyVersionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,318,416
private OsmEditOptionsFragmentListener createOsmEditOptionsFragmentListener() {<NEW_LINE>return new OsmEditOptionsFragmentListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onUploadClick(OsmPoint osmPoint) {<NEW_LINE>uploadItems(new OsmPoint[] { getPointAfterModify(osmPoint) });<NEW_LINE>}<NEW_LINE><NEW_LIN...
Entity entity = i.getEntity();
721,670
private T parseNextRawExpression() throws ParseException {<NEW_LINE>final String typeId = ignoreSpecialCharsInTypeIds ? TextUtils.toComparableStringIgnoreCaseAndSpecialChars(parseToNextDelim().trim()) : parseToNextDelim().trim().toLowerCase(Locale.getDefault());<NEW_LINE>final ExpressionConfig typeConfig = new Expressi...
, Collections.singletonList(typeId));
66,946
public void handleFocus(final Context context, final float x, final float y, final FocusCallback callback) {<NEW_LINE>if (mCamera == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Camera.Parameters params = mCamera.getParameters();<NEW_LINE>Rect focusRect = calculateTapArea(<MASK><NEW_LINE>mCamera.cancelAutoFocus()...
x, y, 1f, context);
145,663
public void actionPerformed(ActionEvent e) {<NEW_LINE>String cmd = e.getActionCommand();<NEW_LINE>String plaf_name = null;<NEW_LINE>if (cmd.equals("Metal")) {<NEW_LINE>plaf_name = "javax.swing.plaf.metal.MetalLookAndFeel";<NEW_LINE>} else if (cmd.equals("Windows")) {<NEW_LINE>plaf_name = "com.sun.java.swing.plaf.window...
setBreakOnReturn(breakOnReturn.isSelected());
1,259,804
final ListLogPatternSetsResult executeListLogPatternSets(ListLogPatternSetsRequest listLogPatternSetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listLogPatternSetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
632,657
public synchronized List<Amenity> searchAmenitiesByName(int x, int y, int l, int t, int r, int b, String query, ResultMatcher<Amenity> resulMatcher) {<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>List<Amenity<MASK><NEW_LINE>SearchRequest<Amenity> req = BinaryMapIndexReader.buildSearchPoiRequest(x, y, query,...
> amenities = Collections.emptyList();
407,842
public ListPortalsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListPortalsResult listPortalsResult = new ListPortalsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
)).unmarshall(context));
607,191
public Path discover(final String cgroup) {<NEW_LINE>Preconditions.checkNotNull(cgroup, "cgroup required");<NEW_LINE>final File procMounts = new File(procDir, "mounts");<NEW_LINE>final File pidCgroups <MASK><NEW_LINE>final PidCgroupEntry pidCgroupsEntry = getCgroupEntry(pidCgroups, cgroup);<NEW_LINE>final ProcMountsEnt...
= new File(procDir, "cgroup");
517,126
public void compact(CompactionServiceId service, CompactionJob job, RateLimiter readLimiter, RateLimiter writeLimiter, long queuedTime) {<NEW_LINE>Optional<CompactionInfo> ocInfo = reserveFilesForCompaction(service, job);<NEW_LINE>if (ocInfo.isEmpty())<NEW_LINE>return;<NEW_LINE>var cInfo = ocInfo.get();<NEW_LINE>Stored...
debug("Compaction canceled {} ", getExtent());
1,263,886
private static WatchingInsertionContext insertItemHonorBlockSelection(CompletionProcessEx indicator, LookupElement item, char completionChar, StatisticsUpdate update) {<NEW_LINE>final Editor editor = indicator.getEditor();<NEW_LINE>final int caretOffset = indicator.getCaret().getOffset();<NEW_LINE>final int idEndOffset...
idEnd, targetOffsets.getOffsets());
996,146
private static EngineInfo initEventRegistryEngineFromResource(URL resourceUrl) {<NEW_LINE>EngineInfo eventRegistryEngineInfo = eventRegistryEngineInfosByResourceUrl.get(resourceUrl.toString());<NEW_LINE>// if there is an existing event registry engine info<NEW_LINE>if (eventRegistryEngineInfo != null) {<NEW_LINE>// rem...
String resourceUrlString = resourceUrl.toString();
1,411,636
private void uiInit() throws Exception {<NEW_LINE>setSize(250, 250);<NEW_LINE>setLayout(new BoxLayout<MASK><NEW_LINE>setBackground(AppColors.BACKGROUND);<NEW_LINE>// setOpaque(true);<NEW_LINE>setAlignmentX(Component.LEFT_ALIGNMENT);<NEW_LINE>setBorder(BORDER_CONTROL);<NEW_LINE>checkbox = new JCheckBox();<NEW_LINE>add(c...
(this, BoxLayout.X_AXIS));
1,046,434
<E> E find(final Class<E> entityClass, final Object primaryKey) {<NEW_LINE>if (primaryKey == null) {<NEW_LINE>throw new IllegalArgumentException("PrimaryKey value must not be null for object you want to find.");<NEW_LINE>}<NEW_LINE>// Locking as it might read from persistence context.<NEW_LINE>EntityMetadata entityMeta...
.readLock().lock();
1,226,717
public void restoreWebView() {<NEW_LINE>if (mRhoCustomView != null) {<NEW_LINE>view.removeView(mRhoCustomView.getContainerView());<NEW_LINE>mRhoCustomView.destroyView();<NEW_LINE>mRhoCustomView = null;<NEW_LINE>if (navBar != null) {<NEW_LINE>view.removeView(navBar);<NEW_LINE>}<NEW_LINE>if (toolBar != null) {<NEW_LINE>v...
view.addView(toolBar, index);
809,067
private Map<String, String> accessAndParseConf(String configName, String path) {<NEW_LINE>if (path == null || path.isEmpty()) {<NEW_LINE>mMsg.append(String.format("%s is not configured in Alluxio property %s%n", configName, PropertyKey.UNDERFS_HDFS_CONFIGURATION));<NEW_LINE>mState = ValidationUtils.State.SKIPPED;<NEW_L...
, configName, PropertyKey.UNDERFS_HDFS_CONFIGURATION));
673,407
public <K, T, EF extends Enum<? extends EntityField<V>> & EntityField<V>> void mapPut(EF field, K key, T value) {<NEW_LINE>Objects.requireNonNull(key, "Key must not be null");<NEW_LINE>boolean needsSetEntity = false;<NEW_LINE>boolean needsSetLowerEntity = false;<NEW_LINE>switch(node.isCacheFor(field, key)) {<NEW_LINE>c...
getEntityFromDescendantNode(), key, value);
785,235
public CreateOptOutListResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateOptOutListResult createOptOutListResult = new CreateOptOutListResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i...
"unixTimestamp").unmarshall(context));
1,730,849
private void checkModelFiles(String prefix) throws IOException {<NEW_LINE>String libExt;<NEW_LINE>String os = System.getProperty("os.name").toLowerCase();<NEW_LINE>if (os.startsWith("mac")) {<NEW_LINE>libExt = ".dylib";<NEW_LINE>} else if (os.startsWith("linux")) {<NEW_LINE>libExt = ".so";<NEW_LINE>} else if (os.starts...
modelDir.resolve(prefix + ".json");
1,489,800
public AntennaDownlinkDemodDecodeConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AntennaDownlinkDemodDecodeConfig antennaDownlinkDemodDecodeConfig = new AntennaDownlinkDemodDecodeConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = o...
String currentParentElement = context.getCurrentParentElement();
1,070,408
public EventModel convertToEventModel(String modelJson) {<NEW_LINE>try {<NEW_LINE>JsonNode modelNode = objectMapper.readTree(modelJson);<NEW_LINE>EventModel eventModel = new EventModel();<NEW_LINE>eventModel.setKey(modelNode.path("key").asText(null));<NEW_LINE>eventModel.setName(modelNode.path("name").asText(null));<NE...
correlationParameters = modelNode.path("correlationParameters");
27,100
void populateJwtAccessTokenData(OAuth20Client client, AttributeList attributeList) {<NEW_LINE>if (tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, "populateJwtAccessTokenData client:" + client);<NEW_LINE>}<NEW_LINE>String clientSecret = client.getClientSecret();<NEW_LINE>attributeList.setAttribute(OAuth20Constants.CLIENT_S...
, "audience:" + audiences[iCnt]);
1,321,530
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.main_act);<NEW_LINE>MyMapView myMapView = (MyMapView) findViewById(R.id.myMapView);<NEW_LINE>mMapView = myMapView.getMapView();<NEW_LINE>mMainPresenter = new MainPresenter(this, (SearchView...
.topMargin = searchParams.topMargin + statusBarHeight;
83,661
public DoubleArray presentValueSensitivityModelParamsHullWhite(ResolvedSwaption swaption, RatesProvider ratesProvider, HullWhiteOneFactorPiecewiseConstantParametersProvider hwProvider) {<NEW_LINE>validate(swaption, ratesProvider, hwProvider);<NEW_LINE>ResolvedSwap swap = swaption.getUnderlying();<NEW_LINE>LocalDate exp...
] pvSensi = new double[nParams];
152,208
public Object executeFunction() {<NEW_LINE>// receiver<NEW_LINE>ReferenceConstant symb_receiver = this.getSymbReceiver();<NEW_LINE>String conc_receiver = (String) this.getConcReceiver();<NEW_LINE>// prefix argument<NEW_LINE>ReferenceExpression symb_prefix = this.getSymbArgument(0);<NEW_LINE>String conc_prefix = (String...
int conV = res ? 1 : 0;
377,956
public static boolean constantTimeAreEqual(int len, byte[] a, int aOff, byte[] b, int bOff) {<NEW_LINE>if (null == a) {<NEW_LINE>throw new NullPointerException("'a' cannot be null");<NEW_LINE>}<NEW_LINE>if (null == b) {<NEW_LINE>throw new NullPointerException("'b' cannot be null");<NEW_LINE>}<NEW_LINE>if (len < 0) {<NE...
^ b[bOff + i]);
273,988
private final void navigationCaseEdgeEventHandler(NavigationCaseEdge newCaseEdge, NavigationCaseEdge oldCaseEdge) {<NEW_LINE>PageFlowView view = pfc.getView();<NEW_LINE>if (newCaseEdge != null && newCaseEdge.getToViewId() != null && newCaseEdge.getFromViewId() != null) {<NEW_LINE>// NavigationCaseEdge newCaseEdge = new...
createPage(newCaseEdge.getFromViewId());
1,486,941
static long toLong(String v) {<NEW_LINE>String buildPart = "1";<NEW_LINE>long buildType = 700;<NEW_LINE>if (v.endsWith("-SNAPSHOT")) {<NEW_LINE>buildPart = "";<NEW_LINE>v = v.substring(0<MASK><NEW_LINE>buildType = 0;<NEW_LINE>} else if (v.contains("-alpha-")) {<NEW_LINE>buildPart = v.substring(v.lastIndexOf('-') + 1);<...
, v.indexOf("-SNAPSHOT"));
54,690
protected ApproximationLine progressiveKnnDistanceApproximation(int k_max) {<NEW_LINE>if (!isLeaf()) {<NEW_LINE>throw new UnsupportedOperationException("Progressive KNN-distance approximation " + "is only vailable in leaf nodes!");<NEW_LINE>}<NEW_LINE>// determine k_0, y_1, y_kmax<NEW_LINE>int k_0 = 0;<NEW_LINE>double ...
ApproximationLine approx = entry.getProgressiveKnnDistanceApproximation();
365,509
public static int indexOfIgnoreCase(@Nonnull CharSequence where, @Nonnull CharSequence what, int fromIndex) {<NEW_LINE>int targetCount = what.length();<NEW_LINE><MASK><NEW_LINE>if (fromIndex >= sourceCount) {<NEW_LINE>return targetCount == 0 ? sourceCount : -1;<NEW_LINE>}<NEW_LINE>if (fromIndex < 0) {<NEW_LINE>fromInde...
int sourceCount = where.length();
417,201
public final MatchQueryOptionsContext matchQueryOptions() throws RecognitionException {<NEW_LINE>MatchQueryOptionsContext _localctx = new MatchQueryOptionsContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 56, RULE_matchQueryOptions);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE...
_la = _input.LA(1);
521,645
public void onCreate(final Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setThemeAndContentView(R.layout.logtrackable_activity);<NEW_LINE>binding = LogtrackableActivityBinding.bind(findViewById(R.id.logtrackable_activity_viewroot));<NEW_LINE>date.init(findViewById(R.id.date), findVi...
getTrackableFromURL(uri.toString());
605,525
public String generateSessionTokenForUser(@Nonnull final String userId) {<NEW_LINE>Objects.requireNonNull(userId, "userId must not be null");<NEW_LINE>CloseableHttpClient httpClient = HttpClients.createDefault();<NEW_LINE>try {<NEW_LINE>final String protocol = this.metadataServiceUseSsl ? "https" : "http";<NEW_LINE>fin...
, this.metadataServicePort, GENERATE_SESSION_TOKEN_ENDPOINT));
489,574
public void fillBeats(double start) {<NEW_LINE>double prevBeat = 0, nextBeat, currentInterval, beats;<NEW_LINE>ListIterator<Event> list = events.listIterator();<NEW_LINE>if (list.hasNext()) {<NEW_LINE>prevBeat = list.next().keyDown;<NEW_LINE>// alt. to fill from 0:<NEW_LINE>// prevBeat = Math.mod(list.next().keyDown, b...
= (nextBeat - prevBeat) / beats;
407,304
protected <T extends JpaObject> String idleQueryAlias(Business business, String alias, String excludeId) throws Exception {<NEW_LINE>if (StringUtils.isEmpty(alias)) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>List<String> list = new ArrayList<>();<NEW_LINE>list.add(alias);<NEW_LINE>for (int i = 1; i < 99; i++) {<NEW_LINE...
ListUtils.subtract(list, os);
310,461
private Response captureAuthorizationInternal(final PaymentTransactionJson json, @Nullable final UUID paymentId, final List<String> paymentControlPluginNames, final List<String> pluginPropertiesString, final String createdBy, final String reason, final String comment, final UriInfo uriInfo, final HttpServletRequest req...
final PaymentOptions paymentOptions = createControlPluginApiPaymentOptions(paymentControlPluginNames);
1,492,749
public static User createFromStruct(Struct dataStruct) {<NEW_LINE>if (dataStruct == null) {<NEW_LINE>throw new IllegalArgumentException("struct cannot be null");<NEW_LINE>}<NEW_LINE>Member<? extends Value<?>, ?> userId = dataStruct.get("IDUser");<NEW_LINE>Member<? extends Value<?>, ?> nick = dataStruct.get("UserNickNam...
urlString.replaceFirst("https://", "http://");
1,347,311
private void displayNoOppositeLocationFound() {<NEW_LINE>String sourceClsName;<NEW_LINE><MASK><NEW_LINE>sourceClsName = srcClassPath.getResourceName(fileObj, '.', false);<NEW_LINE>// String msgKey = !fileObj.isFolder()<NEW_LINE>// ? "MSG_test_class_not_found" //NOI18N<NEW_LINE>// : (sourceClsName.length(...
FileObject fileObj = currLocation.getFileObject();
1,440,867
/* (non-Javadoc)<NEW_LINE>* @see org.netbeans.modules.web.beans.analysis.analyzer.AbstractTypedAnalyzer#checkSpecializes(javax.lang.model.element.Element, javax.lang.model.type.TypeMirror, java.util.List, java.util.concurrent.atomic.AtomicBoolean, org.netbeans.modules.web.beans.analysis.analyzer.ElementAnalyzer.Result)...
superElement, result.getInfo());
758,795
protected <T> void invokeMethod(RemoteServiceRequest request, RemoteServiceMethod method, CompletableFuture<RemoteServiceCancelRequest> cancelRequestFuture, CompletableFuture<RRemoteServiceResponse> responsePromise) {<NEW_LINE>startedListeners.forEach(l -> l.onStarted(request.getId()));<NEW_LINE>if (taskTimeout > 0) {<...
}, taskTimeout, TimeUnit.MILLISECONDS);
127,595
public List<PrepareLandmarks> prepare(List<LMConfig> lmConfigs, GraphHopperStorage ghStorage, LocationIndex locationIndex, final boolean closeEarly) {<NEW_LINE>List<PrepareLandmarks> preparations = createPreparations(lmConfigs, ghStorage.getBaseGraph(), ghStorage.getEncodingManager(), locationIndex);<NEW_LINE>List<Call...
prepareCallables = new ArrayList<>();
1,710,039
public List<Hypothesis> specialisations(List<LogicalExample> examplesSoFar) {<NEW_LINE>List<Hypothesis> result = new ArrayList<>();<NEW_LINE>LogicalExample lastExample = examplesSoFar.get(examplesSoFar.size() - 1);<NEW_LINE>for (String key : lastExample.getAttributes().keySet()) {<NEW_LINE>List<HashMap<String, String>>...
new HashMap<>(disjunct));
1,042,091
public void stopping(Container moduleContainer) {<NEW_LINE>if (c_logger.isTraceDebugEnabled()) {<NEW_LINE>c_logger.traceDebug(null, "stopping", moduleContainer.getName());<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>WebAppConfiguration webConfig = (WebAppConfiguration) moduleContainer.adapt(WebAppConfig.class);<NEW_LINE>String ...
PropertiesStore store = PropertiesStore.getInstance();
378,835
public static void rgbToHsv_F32(Planar<GrayF32> rgb, Planar<GrayF32> hsv) {<NEW_LINE>GrayF32 R = rgb.getBand(0);<NEW_LINE>GrayF32 G = rgb.getBand(1);<NEW_LINE>GrayF32 B = rgb.getBand(2);<NEW_LINE>GrayF32 H = hsv.getBand(0);<NEW_LINE>GrayF32 S = hsv.getBand(1);<NEW_LINE>GrayF32 V = hsv.getBand(2);<NEW_LINE>// CONCURRENT...
.startIndex + row * rgb.stride;
1,159,792
public void combineOne(SumByFloatProcedure<T, V> thingToCombine) {<NEW_LINE>if (this.result.isEmpty()) {<NEW_LINE>thingToCombine.getResult().forEachKeyValue(new Procedure2<V, DoubleDoublePair>() {<NEW_LINE><NEW_LINE>public void value(V each, DoubleDoublePair sumCompensation) {<NEW_LINE>SumByFloatCombiner.this.result.pu...
}) + sumCompensation.getTwo();
529,638
public void run() {<NEW_LINE>try {<NEW_LINE>File file = new File(query.getDescription());<NEW_LINE>if (file.isFile() && !file.canWrite()) {<NEW_LINE>ProfilerDialogs.displayError(Bundle.RQueries_InvalidScript());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Files.write(file.toPath(), query.<MASK><NEW_LINE>SwingUtilities.invokeL...
getScript().getBytes());
204,223
private static void showUsage() {<NEW_LINE>String usage = "Usage: java -jar ConnectionHelperClient.jar connectionInfo [svrPort]\n" + "connectionInfo = -conName=user[/[pw]]@host:port(:sid|/svc)[#role]" + "Where:\n" + "- connName is the name you would like for the connection\n" + "- user is the user name for the schema y...
+ "- /svc is the service name for the database *(One of :sid or /svc MUST be supplied)*\n" + "- #role is the role *(optional - one of SYSDBA, SYSOPER, SYSBACKUP, SYSDG, SYSKM, SYSASM if used)*\n" + "and\n" + "svrPort = the port the ConnectionHelperServer is listening on (optional default: 51521)\n";
843,618
public boolean updateDatabase() {<NEW_LINE>try {<NEW_LINE>if (!Files.exists(databasesDirectory)) {<NEW_LINE>Files.createDirectories(databasesDirectory);<NEW_LINE>}<NEW_LINE>} catch (IOException ex) {<NEW_LINE>LOGGER.error(databasesDirectory.toString() + " does not exist and cannot be created!");<NEW_LINE>return false;<...
resolve(databaseName).toFile();
634,231
protected org.apache.skywalking.oap.server.core.query.type.event.Event parseSeriesValues(final QueryResult.Series series, final List<Object> values) {<NEW_LINE>final org.apache.skywalking.oap.server.core.query.type.event.Event event = new org.apache.skywalking.oap.server.core.query.type.event.Event();<NEW_LINE>final Li...
.get(Event.PARAMETERS));
1,092,121
public void exportData(int exportedFileType, ExportDataDumper eDD, String viewName) {<NEW_LINE>percentFormat.setMaximumFractionDigits(2);<NEW_LINE>percentFormat.setMinimumFractionDigits(2);<NEW_LINE>PrestimeCPUCCTNodeBacked.setPercentFormat(percentFormat);<NEW_LINE>switch(exportedFileType) {<NEW_LINE>case // NOI18N<NEW...
eDD.dumpDataAndClose(getHTMLFooter());
1,497,292
protected void search(final int page) {<NEW_LINE>this.page = page;<NEW_LINE>final String repository = repositorySelector.getSelectedItem().toString();<NEW_LINE>final String branch = branchSelector.getSelectedIndex() > -1 ? branchSelector.getSelectedItem().toString() : null;<NEW_LINE>final Constants.SearchType searchTyp...
updateTable(true, fragment, results);
288,006
public void onSuccess(List<V2TIMGroupInfoResult> v2TIMGroupInfoResults) {<NEW_LINE>if (v2TIMGroupInfoResults != null && v2TIMGroupInfoResults.size() > 0) {<NEW_LINE>for (V2TIMGroupInfoResult v2TIMGroupInfoResult : v2TIMGroupInfoResults) {<NEW_LINE>TUISearchGroupResult searchGroupResult = searchGroupMemberResults.get(v2...
getGroupInfo().getGroupID());
166,080
public static void copyFile(InputStream is, OutputStream os, boolean closeInputStream, ProgressListener pl) throws IOException {<NEW_LINE>try {<NEW_LINE>if (!(is instanceof BufferedInputStream)) {<NEW_LINE>is = new BufferedInputStream(is, 128 * 1024);<NEW_LINE>}<NEW_LINE>byte[] buffer = new byte[128 * 1024];<NEW_LINE>w...
int state = pl.getState();
753,322
public String sqlADAction_insertTranslation(String vendorName, String catalogName, String schemaName, String tableName, ArrayList<String> columnNames) {<NEW_LINE>// ID-Column<NEW_LINE>String idColumn = new StringBuffer(tableName).append("_ID").toString();<NEW_LINE>// column list<NEW_LINE>ArrayList<String> completeColum...
joinTypes, joinTables, joinConditions, whereClause);
816,883
public void run(RegressionEnvironment env) {<NEW_LINE>env.compileDeploy("@name('s0') select p0.n0 as a, p1[0].n0 as b, p1[1].n0 as c, p0 as d, p1 as e from MyMapWithAMap");<NEW_LINE>env.addListener("s0");<NEW_LINE>Map<String, Object> n0Bean1 = EventMapCore.makeMap(new Object[][] { { "n0", 1 } });<NEW_LINE>Map<String, O...
, eventType.getPropertyType("a"));
756,115
private void checkSchemaFile(File file) {<NEW_LINE>try {<NEW_LINE>// this connection parses the catalog file which if invalid will<NEW_LINE>// throw exception<NEW_LINE>PropertyList list = new PropertyList();<NEW_LINE>list.put("Provider", "mondrian");<NEW_LINE><MASK><NEW_LINE>list.put("Catalog", file.toURI().toURL().toS...
list.put("Jdbc", jdbcConnectionUrl);
563,800
public void save(Snapshot snapshot) {<NEW_LINE>initialize();<NEW_LINE>Storage storage = snapshot.getStorage();<NEW_LINE>setProperty(storage, SNAPSHOT_VERSION, CURRENT_SNAPSHOT_VERSION);<NEW_LINE>setProperty(storage, PROP_BASIC_INFO_SUPPORTED, Boolean.toString(basicInfoSupported));<NEW_LINE>setProperty(storage, PROP_SYS...
setProperty(storage, PROP_PID, pid);
710,869
private void showDateTimeSelectors(Calendar reminder, String recurrenceRule) {<NEW_LINE>SublimePickerFragment pickerFrag = new SublimePickerFragment();<NEW_LINE>pickerFrag.setCallback(new SublimePickerFragment.Callback() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onCancelled() {<NEW_LINE>// Nothing to do<NEW_L...
.buildRecurrenceRuleByRecurrenceOptionAndRule(recurrenceOption, recurrenceRule));
1,746,923
private void genLockTerm(BIRTerminator.Lock lockIns, String funcName, int localVarOffset) {<NEW_LINE>Label gotoLabel = this.labelGen.getLabel(funcName + lockIns.lockedBB.id.value);<NEW_LINE>String lockStore = "L" + LOCK_STORE + ";";<NEW_LINE>String initClassName = jvmPackageGen.lookupGlobalVarClassName(this.currentPack...
mv.visitVarInsn(ALOAD, localVarOffset);
1,447,675
private void handleSuspiciousRefComparison(JavaClass jclass, Method method, MethodGen methodGen, List<WarningWithProperties> refComparisonList, Location location, String lhs, ReferenceType lhsType, ReferenceType rhsType) {<NEW_LINE>XField xf = null;<NEW_LINE>if (lhsType instanceof FinalConstant) {<NEW_LINE>xf = ((Final...
FinalConstant) rhsType).getXField();
71,736
public void finish() {<NEW_LINE>if (mIsCancelled) {<NEW_LINE>setResult(RESULT_CANCELED);<NEW_LINE>} else {<NEW_LINE>RadioGroup group = findViewById(R.id.radioProfiles);<NEW_LINE>int selectedId = group.getCheckedRadioButtonId();<NEW_LINE>RadioButton radioButton = findViewById(selectedId);<NEW_LINE>// int id = Integer.pa...
, idx + "::" + action));
1,559,394
final CreateLoadBalancerListenersResult executeCreateLoadBalancerListeners(CreateLoadBalancerListenersRequest createLoadBalancerListenersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createLoadBalancerListenersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateLoadBalancerListeners");
983,079
private BLangInvocation rewriteXMLAttributeOrElemNameAccess(BLangFieldBasedAccess fieldAccessExpr) {<NEW_LINE>ArrayList<BLangExpression> args = new ArrayList<>();<NEW_LINE>String fieldName = fieldAccessExpr.field.value;<NEW_LINE>if (fieldAccessExpr.fieldKind == FieldKind.WITH_NS) {<NEW_LINE>BLangFieldBasedAccess.BLangN...
.add(isOptionalAccessToLiteral(fieldAccessExpr));
830,699
public static PersistenceManagerBean createBean(PersistenceManagerFactoryResource pmfresource) {<NEW_LINE>PersistenceManagerBean bean = new PersistenceManagerBean();<NEW_LINE>// name attribute in bean is for studio display purpose.<NEW_LINE>// It is not part of the persistence-manager-factory-resource dtd.<NEW_LINE>bea...
setFactoryClass(pmfresource.getFactoryClass());
908,136
protected void introspectAll(FFDCLogger info) {<NEW_LINE>info.append(this.toString());<NEW_LINE>// Allow any wrapper specific info to be inserted first.<NEW_LINE>introspectWrapperSpecificInfo(info);<NEW_LINE>// Display generic information.<NEW_LINE>info.append("Wrapper State: ", state.name());<NEW_LINE>info.append("Par...
"# of Child Wrappers " + childWrappers.size());
1,843,037
private CompositeRelatedRecords retrieveRelatedRecords(@NonNull final Collection<BPartnerId> bPartnerIds) {<NEW_LINE>final List<TableRecordReference> <MASK><NEW_LINE>bPartnerIds.forEach(bPartnerId -> allTableRecordRefs.add(TableRecordReference.of(I_C_BPartner.Table_Name, bPartnerId.getRepoId())));<NEW_LINE>final Immuta...
allTableRecordRefs = new ArrayList<>();
823,280
public void run(CommandLine theCommandLine) throws ParseException {<NEW_LINE>parseFhirContext(theCommandLine);<NEW_LINE>FhirContext ctx = getFhirContext();<NEW_LINE>String targetServer = theCommandLine.getOptionValue("t");<NEW_LINE>if (isBlank(targetServer)) {<NEW_LINE>throw new ParseException(Msg.code(1609) + "No targ...
limitString = theCommandLine.getOptionValue('l');
369,883
public com.amazonaws.services.codecommit.model.InvalidBlobIdException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codecommit.model.InvalidBlobIdException invalidBlobIdException = new com.amazonaws.services.codecommit.model.InvalidBlobIdException(null);<NEW_L...
JsonToken token = context.getCurrentToken();
1,406,397
public PagePosition handleMouseClick(int x, int y, int width, int height, PagePosition current, int index, int mouseX, int mouseY) {<NEW_LINE>if (current.pixel + PIXEL_HEIGHT > height) {<NEW_LINE>current = current.newPage();<NEW_LINE>}<NEW_LINE>x += OFFSET.x;<NEW_LINE>y += OFFSET.y + current.pixel;<NEW_LINE>if (current...
current.nextLine(PIXEL_HEIGHT, height);
1,377,486
public static void main(String[] args) {<NEW_LINE>String calibDir = UtilIO.pathExample("calibration/stereo/Bumblebee2_Chess/");<NEW_LINE>String imageDir = UtilIO.pathExample("stereo/");<NEW_LINE>StereoParameters param = CalibrationIO.load(<MASK><NEW_LINE>// load and convert images into a BoofCV format<NEW_LINE>Buffered...
new File(calibDir, "stereo.yaml"));
1,153,966
private int findHeaderEndTag(int index) {<NEW_LINE>int currentIdx = index;<NEW_LINE>int depth = 0;<NEW_LINE>while (currentIdx < buffer.length()) {<NEW_LINE>byte currentByte = buffer.get(currentIdx);<NEW_LINE>if (currentByte == (byte) '<') {<NEW_LINE>boolean isEndTag = (currentIdx + 1) < buffer.length() && buffer.get(cu...
findFrom('>', currentIdx + 1);
1,410,501
private JSONObject makeUtorrentRequest(Log log, String addToUrl, int retried) throws DaemonException {<NEW_LINE>try {<NEW_LINE>// Initialise the HTTP client<NEW_LINE>initialise();<NEW_LINE>ensureToken(retried > 0);<NEW_LINE>// Make request<NEW_LINE>HttpGet httpget = new HttpGet(buildWebUIUrl() + "?token=" + authtoken +...
"Error: " + e.toString());
1,634,063
public DescribeClientAuthenticationSettingsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeClientAuthenticationSettingsResult describeClientAuthenticationSettingsResult = new DescribeClientAuthenticationSettingsResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = conte...
int originalDepth = context.getCurrentDepth();
1,667,079
private void acceptCommand(final TypedRecord<JobRecord> command, final CommandControl<JobRecord> commandControl, final Consumer<SideEffectProducer> sideEffect) {<NEW_LINE>final long key = command.getKey();<NEW_LINE>final JobRecord <MASK><NEW_LINE>final var retries = command.getValue().getRetries();<NEW_LINE>final var r...
failedJob = jobState.getJob(key);
1,069,380
private static ImageData parseBufferedImage(BufferedImage image, boolean cape) {<NEW_LINE>// Capes need to be 64x32 on bedrock, unlike java where they can be HD<NEW_LINE>if (cape) {<NEW_LINE>BufferedImage imgNew = new BufferedImage(64, 32, BufferedImage.TYPE_INT_RGB);<NEW_LINE>Graphics2D g = imgNew.createGraphics();<NE...
RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC);
482,687
private int processLambdaQuery(GenericLexer lexer, ExpressionParserListener listener, int argStackDepth) throws SqlException {<NEW_LINE>// It is highly likely this expression parser will be re-entered when<NEW_LINE>// parsing sub-query. To prevent sub-query consuming operation stack we must add a<NEW_LINE>// control no...
backupParamCountStack.copyTo(paramCountStack, paramCountStackSize);
221,163
public static DescribeDcdnTopDomainsByFlowResponse unmarshall(DescribeDcdnTopDomainsByFlowResponse describeDcdnTopDomainsByFlowResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDcdnTopDomainsByFlowResponse.setRequestId(_ctx.stringValue("DescribeDcdnTopDomainsByFlowResponse.RequestId"));<NEW_LINE>describeDcdnTopDom...
("DescribeDcdnTopDomainsByFlowResponse.TopDomains[" + i + "].MaxBpsTime"));
632,361
private static void addQuad(Matrix4f matrixPos, Matrix3f matrixNormal, IVertexBuilder renderBuffer, Vector3f blpos, Vector3f brpos, Vector3f trpos, Vector3f tlpos, Vector2f blUVpos, Vector2f brUVpos, Vector2f trUVpos, Vector2f tlUVpos, Vector3f normalVector, Color color, int lightmapValue) {<NEW_LINE>addQuadVertex(matr...
trUVpos, normalVector, color, lightmapValue);
1,834,045
public <T> List<Pair<String, T>> fetchTop(int size, Type type) throws FailStoreException {<NEW_LINE>Snapshot snapshot = db.getSnapshot();<NEW_LINE>DBIterator iterator = null;<NEW_LINE>try {<NEW_LINE>List<Pair<String, T>> list = new ArrayList<Pair<<MASK><NEW_LINE>ReadOptions options = new ReadOptions();<NEW_LINE>options...
String, T>>(size);
1,183,602
protected JTable initializeTable() {<NEW_LINE>// // Motor selection table.<NEW_LINE>configurationTableModel = new FlightConfigurableTableModel<MotorMount>(MotorMount.class, rocket) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected boolean includeComponent(MotorMount component) {<NEW_LINE>return component.isMotorMount()...
int selectedColumn = table.getSelectedColumn();
1,204,577
protected ObjectNode.Builder createNodeBuilder() {<NEW_LINE>ObjectNode.<MASK><NEW_LINE>if (!schemas.isEmpty()) {<NEW_LINE>builder.withMember("schemas", schemas.entrySet().stream().collect(ObjectNode.collectStringKeys(Map.Entry::getKey, Map.Entry::getValue)));<NEW_LINE>}<NEW_LINE>if (!responses.isEmpty()) {<NEW_LINE>bui...
Builder builder = Node.objectNodeBuilder();
614,435
private String formatNode(DependencyNode node) {<NEW_LINE>StringBuilder buffer = new StringBuilder(128);<NEW_LINE><MASK><NEW_LINE>Dependency d = node.getDependency();<NEW_LINE>buffer.append(a);<NEW_LINE>if (d != null && d.getScope().length() > 0) {<NEW_LINE>buffer.append(" [").append(d.getScope());<NEW_LINE>if (d.isOpt...
Artifact a = node.getArtifact();
624,289
protected void fixValue(DataElement element, Object fixed) {<NEW_LINE>assert (_options.getCoercionMode() != CoercionMode.OFF);<NEW_LINE>_hasFix = true;<NEW_LINE>DataElement parentElement = element.getParent();<NEW_LINE>if (parentElement == null) {<NEW_LINE>_fixed = fixed;<NEW_LINE>} else {<NEW_LINE><MASK><NEW_LINE>if (...
Object parent = parentElement.getValue();
987,534
protected synchronized void processEvent(GdbEvent<?> evt) {<NEW_LINE>if (evt instanceof AbstractGdbCompletedCommandEvent && interruptCount > 0) {<NEW_LINE>interruptCount--;<NEW_LINE>Msg.debug(this, "Ignoring " + evt + " from -exec-interrupt. new count = " + interruptCount);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean ...
newState, evt.getCause());
735,532
public static void partialReduceIntAddCarrierValue(int[] inputArray, int[] outputArray, int gidx, int value) {<NEW_LINE>int[] localArray = (int[]) NewArrayNode.newUninitializedArray(int.class, LOCAL_WORK_GROUP_SIZE);<NEW_LINE>int localIdx = OpenCLIntrinsics.get_local_id(0);<NEW_LINE>int localGroupSize = OpenCLIntrinsic...
groupID = OpenCLIntrinsics.get_group_id(0);
287,545
public void testSubList_lastIndexOf() {<NEW_LINE>List<E> list = getList();<NEW_LINE><MASK><NEW_LINE>List<E> copy = list.subList(0, size);<NEW_LINE>List<E> head = list.subList(0, size - 1);<NEW_LINE>List<E> tail = list.subList(1, size);<NEW_LINE>assertEquals(size - 1, copy.lastIndexOf(list.get(size - 1)));<NEW_LINE>asse...
int size = list.size();
1,777,558
public RFuture<Boolean> addAllAsync(int index, Collection<? extends V> coll) {<NEW_LINE>if (index < 0) {<NEW_LINE>throw new IndexOutOfBoundsException("index: " + index);<NEW_LINE>}<NEW_LINE>if (coll.isEmpty()) {<NEW_LINE>return RedissonPromise.newSucceededFuture(false);<NEW_LINE>}<NEW_LINE>if (index == 0) {<NEW_LINE>//...
add(0, getRawName());
1,701,844
private Mono<Response<CheckNameAvailabilityResponseInner>> checkNameAvailabilityLocalWithResponseAsync(String location, CheckNameAvailabilityRequest checkNameAvailability) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<N...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
1,492,472
public void execute() throws ZinggClientException {<NEW_LINE>try {<NEW_LINE>// read input, filter, remove self joins<NEW_LINE>Dataset<MASK><NEW_LINE>testData = testData.repartition(args.getNumPartitions(), testData.col(ColName.ID_COL));<NEW_LINE>// testData = dropDuplicates(testData);<NEW_LINE>long count = testData.cou...
<Row> testData = getTestData();
1,510,239
public void init(FilterConfig filterConfig) throws ServletException {<NEW_LINE>String authenticationProviderClassName = filterConfig.getInitParameter(AUTHENTICATION_PROVIDER_PARAM);<NEW_LINE>if (authenticationProviderClassName == null) {<NEW_LINE>throw new ServletException("Cannot instantiate authentication filter: no ...
class.getName(), e);
977,773
// Returns the sql for the specified query id.<NEW_LINE>@RequestMapping(path = "/sql/{query_id}", method = RequestMethod.GET)<NEW_LINE>public Object queryInfo(HttpServletRequest request, HttpServletResponse response, @PathVariable("query_id") String queryId, @RequestParam(value = IS_ALL_NODE_PARA, required = false, def...
collect(Collectors.toList());
709,515
private void fixActivityScreenOrientation(Object activityClientRecord, int screenOrientation) {<NEW_LINE>if (screenOrientation == ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED) {<NEW_LINE>screenOrientation = ActivityInfo.SCREEN_ORIENTATION_USER;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>final Field tokenField = ShareReflectUtil...
invoke(amn, token, screenOrientation);
609,769
public void marshall(SecurityGroupRuleDescription securityGroupRuleDescription, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (securityGroupRuleDescription == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(...
e.getMessage(), e);