idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,679,682 | private static boolean initInstrumentation() {<NEW_LINE>healthCheckRegistry.register("Agent attachment", ImmediateResult.of(HealthCheck.Result.unhealthy("Unknown error")));<NEW_LINE>try {<NEW_LINE>instrumentation = getInstrumentation();<NEW_LINE>healthCheckRegistry.register("Agent attachment", ImmediateResult.of(Health... | + "The version of the agent depends on the version of stagemonitor. " + "You can download the appropriate agent for the stagemonitor version you are using here: " + getByteBuddyAgentDownloadUrl(); |
616,485 | public static DescribeDomainUvDataResponse unmarshall(DescribeDomainUvDataResponse describeDomainUvDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDomainUvDataResponse.setRequestId(_ctx.stringValue("DescribeDomainUvDataResponse.RequestId"));<NEW_LINE>describeDomainUvDataResponse.setDomainName(_ctx.stringValu... | (_ctx.stringValue("DescribeDomainUvDataResponse.DataInterval")); |
1,623,777 | public void createMenuItems(Bundle savedInstanceState) {<NEW_LINE>app = requiredMyApplication();<NEW_LINE>if (savedInstanceState != null) {<NEW_LINE>folderName = savedInstanceState.getString(FOLDER_NAME_KEY);<NEW_LINE>}<NEW_LINE>items.add(new TitleItem(getString(R.string.add_new_folder)));<NEW_LINE>View view = UiUtilit... | R.layout.track_name_edit_text, null); |
1,710,026 | private void importItemFile(@NonNull RemoteFile remoteFile, @NonNull SettingsItem item, boolean forceReadData) {<NEW_LINE>OsmandApplication app = backupHelper.getApp();<NEW_LINE>File tempDir = FileUtils.getTempDir(app);<NEW_LINE>FileInputStream is = null;<NEW_LINE>try {<NEW_LINE>SettingsItemReader<? extends SettingsIte... | item.getName(), e); |
990,028 | private boolean implementResult(List<AggImpState> aggs, final BlockBuilder builder, final Function<BlockBuilder, WinAggFrameResultContext> frame, final Function<AggImpState, List<RexNode>> rexArguments, boolean cachedBlock) {<NEW_LINE>boolean nonEmpty = false;<NEW_LINE>for (final AggImpState agg : aggs) {<NEW_LINE>bool... | .result.getType())); |
1,235,505 | final DescribeSnapshotsResult executeDescribeSnapshots(DescribeSnapshotsRequest describeSnapshotsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeSnapshotsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
716,183 | public String bpartner(final ICalloutField calloutField) {<NEW_LINE>final I_M_InOut inout = calloutField.getModel(I_M_InOut.class);<NEW_LINE>final BPartnerId bpartnerId = BPartnerId.ofRepoIdOrNull(inout.getC_BPartner_ID());<NEW_LINE>if (bpartnerId == null) {<NEW_LINE>return NO_ERROR;<NEW_LINE>}<NEW_LINE>final IBPartner... | contact = bpartnerBL.retrieveUserForLoc(shipToLocation); |
1,619,806 | public static DescribeExposedInstanceDetailResponse unmarshall(DescribeExposedInstanceDetailResponse describeExposedInstanceDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeExposedInstanceDetailResponse.setRequestId(_ctx.stringValue("DescribeExposedInstanceDetailResponse.RequestId"));<NEW_LINE>List<ExposedC... | ("DescribeExposedInstanceDetailResponse.ExposedChains[" + i + "].GroupNo")); |
1,478,850 | public boolean expandGroup(int groupPos, boolean animate) {<NEW_LINE>ExpandableListPosition elGroupPos = ExpandableListPosition.obtain(ExpandableListPosition.GROUP, <MASK><NEW_LINE>PositionMetadata pm = mConnector.getFlattenedPos(elGroupPos);<NEW_LINE>elGroupPos.recycle();<NEW_LINE>boolean retValue = mConnector.expandG... | groupPos, -1, -1); |
794,227 | public List<PolicyDefinitionSummaryBean> listPolicyDefinitions() throws StorageException {<NEW_LINE>String[] fields = { "id", "policyImpl", "name", <MASK><NEW_LINE>QueryBuilder query = QueryBuilders.boolQuery().filter(QueryBuilders.termQuery("deleted", false));<NEW_LINE>SearchSourceBuilder builder = // $NON-NLS-1$<NEW_... | "description", "icon", "pluginId", "formType" }; |
1,373,381 | public void applyChanges() {<NEW_LINE>boolean fire;<NEW_LINE>synchronized (this) {<NEW_LINE>// NOI18N<NEW_LINE>LOG.fine("applyChanges");<NEW_LINE>pf.applyChanges();<NEW_LINE>// Make sure that completions settings that are only accessible for<NEW_LINE>// 'all languages' are not overriden by particular languages (mime ty... | prefs.remove(SimpleValueNames.COMPLETION_PAIR_CHARACTERS); |
1,433,934 | private I_MD_Stock retrieveOrCreateDataRecord(@NonNull final StockDataRecordIdentifier identifier) {<NEW_LINE>final IQuery<I_MD_Stock> query = createQueryForIdentifier(identifier);<NEW_LINE>final I_MD_Stock existingDataRecord = query.firstOnly(I_MD_Stock.class);<NEW_LINE>if (existingDataRecord != null) {<NEW_LINE>retur... | getOrgId().getRepoId()); |
1,788,982 | private BusGroup createBus(String busId) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "createBus", busId);<NEW_LINE>// Create a new group and add it to the list.<NEW_LINE>boolean <MASK><NEW_LINE>final BusGroup group = new BusGroup(busId, _proxyHandler, isLocalBus)... | isLocalBus = busId.equals(_localBusName); |
1,134,529 | public void addAnimation(Element... elements) {<NEW_LINE>if (elements == null || elements.length == 0) {<NEW_LINE>throw new IllegalArgumentException("One or more elements must be specified.");<NEW_LINE>}<NEW_LINE>Set<String> elementIdsInPreviousAnimationSteps = new HashSet<>();<NEW_LINE>for (Animation animationStep : a... | elementsInThisAnimationStep = new HashSet<>(); |
962,658 | private MethodRewriteRule convertToMethodRewriteRule(String s) {<NEW_LINE>// make sure that the string has three parts and the second part and third part are HTTP methods.<NEW_LINE>String[] parts = StringUtils.split(s, ' ');<NEW_LINE>if (parts.length != 3) {<NEW_LINE>String error = "The Method rewrite rule " + s + " mu... | [0], sourceMethod, targetMethod); |
768,696 | public static void jdbcToArrowVectors(ResultSet rs, VectorSchemaRoot root, JdbcToArrowConfig config) throws SQLException, IOException {<NEW_LINE>ResultSetMetaData rsmd = rs.getMetaData();<NEW_LINE>int columnCount = rsmd.getColumnCount();<NEW_LINE>JdbcConsumer[] consumers = new JdbcConsumer[columnCount];<NEW_LINE>for (i... | , i), vector, config); |
553,825 | private boolean checkParemeterizedType() {<NEW_LINE>if (this.identifierLengthPtr > -1 && this.genericsLengthPtr > -1 && this.genericsIdentifiersLengthPtr > -1) {<NEW_LINE>int length = <MASK><NEW_LINE>int numberOfIdentifiers = this.genericsIdentifiersLengthStack[this.genericsIdentifiersLengthPtr];<NEW_LINE>if (length !=... | this.identifierLengthStack[this.identifierLengthPtr]; |
976,957 | private Info info(Business business, OauthCode oauthCode, Oauth oauth) throws Exception {<NEW_LINE>Info info = new Info();<NEW_LINE>if (Config.token().isInitialManager(oauthCode.getPerson())) {<NEW_LINE>InitialManager initialManager = Config.token().initialManagerInstance();<NEW_LINE>ScriptContext scriptContext = Scrip... | getPerson(), Person.class); |
1,577,915 | public void initUiAndData() {<NEW_LINE>List<MXSession> sessions = Matrix.getInstance(getApplicationContext()).getSessions();<NEW_LINE>if (sessions == null) {<NEW_LINE>Log.e(LOG_TAG, "onCreate no Sessions");<NEW_LINE>finish();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Check if store is corrupted, due to change of type of ... | NEED_TO_CLEAR_CACHE_BEFORE_81200, false).apply(); |
1,352,741 | public INDArray computeGradient(INDArray labels, INDArray preOutput, IActivation activationFn, INDArray mask) {<NEW_LINE>if (!labels.equalShapes(preOutput)) {<NEW_LINE>Preconditions.throwEx("Labels and preOutput must have equal shapes: got shapes %s vs %s", labels.shape(), preOutput.shape());<NEW_LINE>}<NEW_LINE>// No-... | preOutput.dup(), true); |
1,695,133 | public net.minecraft.nbt.CompoundTag inspect(net.minecraft.nbt.CompoundTag cmp, int sourceVer, int targetVer) {<NEW_LINE>if (!cmp.contains("tag", 10)) {<NEW_LINE>return cmp;<NEW_LINE>} else {<NEW_LINE>net.minecraft.nbt.CompoundTag nbttagcompound1 = cmp.getCompound("tag");<NEW_LINE>if (nbttagcompound1.contains("BlockEnt... | s = cmp.getString("id"); |
1,541,812 | public byte[] serializeValue(@NotNull final RetainedMessage retainedMessage) {<NEW_LINE>final byte[] responseTopic = retainedMessage.getResponseTopic() == null ? null : retainedMessage.getResponseTopic().getBytes(UTF_8);<NEW_LINE>final byte[] contentType = retainedMessage.getContentType() == null ? null : retainedMessa... | copyIntToByteArray(contentTypeLength, bytes, cursor); |
133,064 | private static void encode_decode_eval(INDArray predictions, INDArray questions, INDArray answers) {<NEW_LINE>int nTests = (int) predictions.size(0);<NEW_LINE>int wrong = 0;<NEW_LINE>int correct = 0;<NEW_LINE>String[] questionS = CustomSequenceIterator.oneHotDecode(questions);<NEW_LINE>String[] <MASK><NEW_LINE>String[]... | answersS = CustomSequenceIterator.oneHotDecode(answers); |
1,235,304 | public static LogEvent newInstance(PaxLoggingEvent event) {<NEW_LINE>LogEvent answer = new LogEvent();<NEW_LINE>try {<NEW_LINE>answer.setLevel(toString<MASK><NEW_LINE>} catch (NoClassDefFoundError error) {<NEW_LINE>// ENTESB-2234, KARAF-3350: Ignore NoClassDefFoundError exceptions<NEW_LINE>// Those exceptions may happe... | (event.getLevel())); |
1,655,060 | public ECPoint twicePlus(ECPoint b) {<NEW_LINE>if (this.isInfinity()) {<NEW_LINE>return b;<NEW_LINE>}<NEW_LINE>if (b.isInfinity()) {<NEW_LINE>return twice();<NEW_LINE>}<NEW_LINE>ECCurve curve = this.getCurve();<NEW_LINE>ECFieldElement X1 = this.x;<NEW_LINE>if (X1.isZero()) {<NEW_LINE>// A point with X == 0 is its own a... | add(T).square(); |
1,719,173 | private static boolean requestLocationServicePermission(final Fragment fragment) {<NEW_LINE>LocationManager locationManager = (LocationManager) fragment.getActivity().getSystemService(LOCATION_SERVICE);<NEW_LINE>if (!(locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER) || locationManager.isProviderEnabled(L... | Dialog alertDialog = builder.create(); |
892,800 | public PlayerPluginTab inspectPluginTabs(UUID playerUUID) {<NEW_LINE>Database database = dbSystem.get().getDatabase();<NEW_LINE>Map<ServerUUID, List<ExtensionData>> extensionPlayerData = database.query(new ExtensionPlayerDataQuery(playerUUID));<NEW_LINE>if (extensionPlayerData.isEmpty()) {<NEW_LINE>return new PlayerPlu... | append(tab.getNav()); |
730,425 | private void initialise() {<NEW_LINE>// we have to delay resolution of peer-set tags until they have been setup...<NEW_LINE>for (Object[] entry : temp_states) {<NEW_LINE>TagType tag_type <MASK><NEW_LINE>String tag_name = (String) entry[1];<NEW_LINE>TagFeatureRateLimit tag = (TagFeatureRateLimit) tag_type.getTag(tag_nam... | = (TagType) entry[0]; |
744,788 | public void write(OutputStream out) throws IOException {<NEW_LINE>StreamUtil.writeUB3(out, calcPacketSize());<NEW_LINE>StreamUtil.write(out, packetId);<NEW_LINE>StreamUtil.writeUB4(out, clientFlags);<NEW_LINE>StreamUtil.writeUB4(out, maxPacketSize);<NEW_LINE>StreamUtil.write<MASK><NEW_LINE>out.write(FILLER);<NEW_LINE>i... | (out, (byte) charsetIndex); |
1,142,468 | private Mono<Response<Void>> deleteAuthorizationRuleWithResponseAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is require... | error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); |
1,515,108 | public static int wavelengthToRGB(float wavelength) {<NEW_LINE>float gamma = 0.80f;<NEW_LINE>float r, g, b, factor;<NEW_LINE>int w = (int) wavelength;<NEW_LINE>if (w < 380) {<NEW_LINE>r = 0.0f;<NEW_LINE>g = 0.0f;<NEW_LINE>b = 0.0f;<NEW_LINE>} else if (w < 440) {<NEW_LINE>r = -(wavelength - 440) / (440 - 380);<NEW_LINE>... | adjust(r, factor, gamma); |
1,723,070 | public long addInstanceScanKeyTask(long appId, long auditId, String host, int port, String pattern, int size, long parentTaskId) {<NEW_LINE>Map<String, Object> paramMap = new HashMap<String, Object>();<NEW_LINE>paramMap.put(TaskConstants.APPID_KEY, appId);<NEW_LINE>paramMap.put(TaskConstants.AUDIT_ID_KEY, auditId);<NEW... | = InstanceScanKeyTask.class.getSimpleName(); |
877,916 | final PutServiceQuotaIncreaseRequestIntoTemplateResult executePutServiceQuotaIncreaseRequestIntoTemplate(PutServiceQuotaIncreaseRequestIntoTemplateRequest putServiceQuotaIncreaseRequestIntoTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putServiceQuotaIncreaseRequestIntoTemplateRe... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,006,942 | public Request<MergeShardsRequest> marshall(MergeShardsRequest mergeShardsRequest) {<NEW_LINE>if (mergeShardsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(MergeShardsRequest)");<NEW_LINE>}<NEW_LINE>Request<MergeShardsRequest> request = new DefaultRequest<MergeShardsReq... | String shardToMerge = mergeShardsRequest.getShardToMerge(); |
448,809 | final AssociateSkillWithSkillGroupResult executeAssociateSkillWithSkillGroup(AssociateSkillWithSkillGroupRequest associateSkillWithSkillGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateSkillWithSkillGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex... | invoke(request, responseHandler, executionContext); |
1,162,860 | public static RandomItem fromJson(JsonElement element, String name) {<NEW_LINE>// we serialize max to count for ranges as it looks cleaner, put it back<NEW_LINE>if (element.isJsonObject()) {<NEW_LINE>JsonObject object = element.getAsJsonObject();<NEW_LINE>if (object.has("max")) {<NEW_LINE>object.addProperty("count", Gs... | JsonObject object = element.getAsJsonObject(); |
447,380 | public static Options parse(@NonNull Context context, TypefaceLoader typefaceManager, JSONObject json) {<NEW_LINE>Options result = new Options();<NEW_LINE>if (json == null)<NEW_LINE>return result;<NEW_LINE>result.topBar = TopBarOptions.parse(context, typefaceManager, json.optJSONObject("topBar"));<NEW_LINE>result.topTa... | (json.optJSONObject("sideMenu")); |
1,021,611 | private static MultiValueMap<String, String> initHeaders(MultiValueMap<String, String> headerValues, HttpServletRequest request) {<NEW_LINE>HttpHeaders headers = null;<NEW_LINE>MediaType contentType = null;<NEW_LINE>if (!StringUtils.hasLength(headerValues.getFirst(HttpHeaders.CONTENT_TYPE))) {<NEW_LINE><MASK><NEW_LINE>... | String requestContentType = request.getContentType(); |
252,241 | public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) {<NEW_LINE>Route route = exchange.getAttribute(ServerWebExchangeUtils.GATEWAY_ROUTE_ATTR);<NEW_LINE>Mono<Void> asyncResult = chain.filter(exchange);<NEW_LINE>if (route != null) {<NEW_LINE>String routeId = route.getId();<NEW_LINE>Object[] par... | getResourceMode() == SentinelGatewayConstants.RESOURCE_MODE_ROUTE_ID); |
1,771,297 | private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, String dataExportName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."))... | this.client.mergeContext(context); |
447,884 | public void handleMouseInput() {<NEW_LINE>int x = (int) (Mouse.getEventX() * this.width / this.mc.displayWidth * glScale);<NEW_LINE>int y = (int) ((this.height - Mouse.getEventY() * this.height / this.mc.displayHeight - 1) * glScale);<NEW_LINE><MASK><NEW_LINE>if (k == 0) {<NEW_LINE>if (Mouse.getEventButtonState()) {<NE... | int k = Mouse.getEventButton(); |
1,220,215 | public TrialSource unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TrialSource trialSource = new TrialSource();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if ... | String currentParentElement = context.getCurrentParentElement(); |
420,805 | public static void handleLogsFilter(LogsFilterCapsule logsFilterCapsule) {<NEW_LINE>Iterator<Entry<String, LogFilterAndResult>> it;<NEW_LINE>if (logsFilterCapsule.isSolidified()) {<NEW_LINE>it = getEventFilter2ResultSolidity().entrySet().iterator();<NEW_LINE>} else {<NEW_LINE>it = getEventFilter2ResultFull().entrySet()... | ), logsFilterCapsule.isRemoved()); |
1,559,305 | public boolean process(Set<? extends TypeElement> types, RoundEnvironment env) {<NEW_LINE>remainingTypes.putAll(providerMethodsByClass(env));<NEW_LINE>for (Iterator<String> i = remainingTypes.keySet().iterator(); i.hasNext(); ) {<NEW_LINE>String typeName = i.next();<NEW_LINE>TypeElement type = processingEnv.getElementU... | getAnnotation(Module.class, type); |
1,146,233 | private static TLCServerRMI lookupTLCServer(final String serverName) throws MalformedURLException, RemoteException, NotBoundException, InterruptedException {<NEW_LINE>String url = "//" + serverName + ":" + TLCServer.Port + "/" + TLCServer.SERVER_NAME;<NEW_LINE>// try to repeatedly connect to the server until it becomes... | Throwable cause = e.getCause(); |
944,622 | public Collection<EventObject> findLastMessagesBefore(MetaContact contact, Date date, int count) throws RuntimeException {<NEW_LINE>LinkedList<EventObject> result = new LinkedList<EventObject>();<NEW_LINE>Iterator<Contact> iter = contact.getContacts();<NEW_LINE>while (iter.hasNext()) {<NEW_LINE>Contact item = iter.next... | startIndex, result.size()); |
821,361 | public static void create() throws Exception {<NEW_LINE>ObjectType type = <MASK><NEW_LINE>notFoundIfNull(type);<NEW_LINE>Constructor<?> constructor = type.entityClass.getDeclaredConstructor();<NEW_LINE>constructor.setAccessible(true);<NEW_LINE>Model object = (Model) constructor.newInstance();<NEW_LINE>Binder.bindBean(p... | ObjectType.get(getControllerClass()); |
988,075 | private static void markDuplicatedClasses(List<ClassNode> classes) {<NEW_LINE>classes.stream().collect(Collectors.groupingBy(ClassNode::getClassInfo)).entrySet().stream().filter(entry -> entry.getValue().size() > 1).forEach(entry -> {<NEW_LINE>List<String> sources = Utils.collectionMap(entry.getValue(), ClassNode::getI... | String thisSource = cls.getInputFileName(); |
223,314 | public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>Context ctx = view.getContext();<NEW_LINE>mStatus = view.findViewById(R.id.status);<NEW_LINE>mHandler = new Handler(Looper.getMainLooper());<NEW_LINE>mStatusIcon = view.findViewById(R.id.status_icon);<NEW_LINE>mConnectionsBtn ... | findViewById(R.id.num_up_to_date); |
1,489,550 | public static void record(Object a, Object b) {<NEW_LINE>// if (GlobalConfiguration.isRuntimeLogging && log.isLoggable(Level.INFO)) {<NEW_LINE>// log.info("recording invocation of generate with " + (a == null ? "null" : a.getClass().getName()) + " b="<NEW_LINE>// + (b == null ? "null" : b.getClass().getName()));<NEW_LI... | >) f.get(b); |
381,085 | private void assignBackends() throws UserException {<NEW_LINE>Set<Tag<MASK><NEW_LINE>if (userIdentity != null) {<NEW_LINE>tags = Env.getCurrentEnv().getAuth().getResourceTags(userIdentity.getQualifiedUser());<NEW_LINE>if (tags == UserProperty.INVALID_RESOURCE_TAGS) {<NEW_LINE>throw new UserException("No valid resource ... | > tags = Sets.newHashSet(); |
870,745 | private void sendLocalBroadcast(String event, String dirRemotePath, RemoteOperationResult result) {<NEW_LINE>Log_OC.d(TAG, "Send broadcast " + event);<NEW_LINE>Intent intent = new Intent(event);<NEW_LINE>intent.putExtra(FileSyncAdapter.EXTRA_ACCOUNT_NAME, getAccount().name);<NEW_LINE>if (dirRemotePath != null) {<NEW_LI... | ()).sendBroadcast(intent); |
1,043,091 | private String computeReason(List<? extends Integer> list) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>String reason = "\n A row cannot be frozen. \n";<NEW_LINE>for (Integer row : list) {<NEW_LINE>// If this row is not fixable, we need to identify the maximum span<NEW_LINE>if (!isRowFixable(row)) {<NEW_LINE>int maxSpan = 1;<NEW... | int count = row + maxSpan - 1; |
608,825 | public <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22> Record22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22> fetchSingle(SelectField<T1> field1, SelectField<T2> field2, SelectField<T3> field3, SelectField<T4> f... | field19, field20, field21, field22); |
48,979 | private void killHadoopJob() {<NEW_LINE>// To avoid issue of kill command once the ingestion task is actually completed<NEW_LINE>if (hadoopJobIdFileExists() && !ingestionState.equals(IngestionState.COMPLETED)) {<NEW_LINE>final ClassLoader oldLoader = Thread.currentThread().getContextClassLoader();<NEW_LINE>String hadoo... | killMRJobInnerProcessingRunner = getForeignClassloaderObject("org.apache.druid.indexing.common.task.HadoopIndexTask$HadoopKillMRJobIdProcessingRunner", loader); |
724,551 | // ------------------------------------------------------------------------------<NEW_LINE>// Method: LogFileHandle.fileClose<NEW_LINE>// ------------------------------------------------------------------------------<NEW_LINE>void fileClose() throws InternalLogException {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>Tr.<... | entry(tc, "fileClose", this); |
879,604 | protected void readImplicitParameters(Method method, Operation operation) {<NEW_LINE>ApiImplicitParams implicitParams = AnnotationUtils.<MASK><NEW_LINE>if (implicitParams == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (ApiImplicitParam param : implicitParams.value()) {<NEW_LINE>Class<?> cls;<NEW_LINE>try {<NEW_LIN... | findAnnotation(method, ApiImplicitParams.class); |
1,809,913 | protected void handleProcessCalled() {<NEW_LINE>BoofSwingUtil.checkNotGuiThread();<NEW_LINE>if (inputImages == null)<NEW_LINE>return;<NEW_LINE>// Compute has been invoked and can be disabled<NEW_LINE>SwingUtilities.invokeLater(() -> {<NEW_LINE>configurePanel.bCompute.setEnabled(false);<NEW_LINE>stereoPanel.clearVisuals... | configurePanel.textAreaStats.setText(""); |
1,819,267 | // 2019-10-22T23:41:21.852+0000: 21.912: [GC (GCLocker Initiated GC) 2019-10-22T23:41:21.853+0000: 21.912: [DefNew2019-10-22T23:41:21.914+0000: 21.974: [SoftReference, 0 refs, 0.0000842 secs]2019-10-22T23:41:21.914+0000: 21.974: [WeakReference, 76 refs, 0.0000513 secs]2019-10-22T23:41:21.914+0000: 21.974: [FinalReferen... | ), trace.getDuration()); |
649,763 | public void onSignalStrengthsChanged(SignalStrength signalStrength) {<NEW_LINE>// Update Signal Strength<NEW_LINE>if (signalStrength.isGsm()) {<NEW_LINE>int dbm;<NEW_LINE>if (signalStrength.getGsmSignalStrength() <= 2 || signalStrength.getGsmSignalStrength() == NeighboringCellInfo.UNKNOWN_RSSI) {<NEW_LINE>// Unknown si... | .parseInt(bits[9]); |
832,678 | public void init() {<NEW_LINE>logger.info("mobile info loading...");<NEW_LINE>Long begin = System.currentTimeMillis();<NEW_LINE>int count = 0;<NEW_LINE>try {<NEW_LINE>Path p = FileSystems.getDefault().getPath(mobileInfoFilePath);<NEW_LINE>List<String> lines = Files.readAllLines(p, Charset.forName("UTF-8"));<NEW_LINE>Li... | .setMobile(info[0]); |
396,268 | private void join(ServerRequest req, ServerResponse res) {<NEW_LINE>String lraId = req.<MASK><NEW_LINE>String compensatorLink = req.headers().first("Link").orElse("");<NEW_LINE>Lra lra = lraPersistentRegistry.get(lraId);<NEW_LINE>if (lra == null) {<NEW_LINE>res.status(404).send();<NEW_LINE>return;<NEW_LINE>} else if (l... | path().param("LraId"); |
1,383,922 | public void activate() {<NEW_LINE>if (!init)<NEW_LINE>init();<NEW_LINE>// Tree to be initiated on second/.. tab<NEW_LINE>if (m_mTab.isTreeTab() && m_mTab.getTabNo() != 0) {<NEW_LINE>String treeName = "AD_Tree_ID";<NEW_LINE>int treeId = Env.getContextAsInt(Env.getCtx(), m_WindowNo, treeName, true);<NEW_LINE>log.config(t... | ), m_WindowNo, treeName, treeId); |
1,730,486 | public void addWriteToParcel(JDefinedClass jclass) {<NEW_LINE>JMethod method = jclass.method(JMod.PUBLIC, void.class, "writeToParcel");<NEW_LINE>JVar dest = method.param(jclass.owner().directClass("android.os.Parcel"), "dest");<NEW_LINE>method.<MASK><NEW_LINE>// Call super.writeToParcel<NEW_LINE>if (extendsParcelable(j... | param(int.class, "flags"); |
1,053,492 | public void cook(Java.AbstractCompilationUnit abstractCompilationUnit) throws CompileException {<NEW_LINE>SimpleCompiler.LOGGER.entering(null, "cook", abstractCompilationUnit);<NEW_LINE>this.assertUncooked();<NEW_LINE>IClassLoader icl = (this.classLoaderIClassLoader = new ClassLoaderIClassLoader(this.parentClassLoader)... | this.debugLines, this.debugVars); |
1,513,282 | private void run() {<NEW_LINE>int regSz = ssaMeth.getRegCount();<NEW_LINE>ArrayList<TypedConstant> constantList = getConstsSortedByCountUse();<NEW_LINE>int toCollect = Math.min(constantList.size(), MAX_COLLECTED_CONSTANTS);<NEW_LINE>SsaBasicBlock start = ssaMeth.getEntryBlock();<NEW_LINE>// Constant to new register con... | SsaBasicBlock successorBlock = entryBlock.getPrimarySuccessor(); |
1,299,420 | public ResUnMarshalerT execute(ReqMarshalerT exportRequest, ResUnMarshalerT responseUnmarshaller) {<NEW_LINE>MarshalerServiceStub<ReqMarshalerT, ResUnMarshalerT, ?> stub = this.stub;<NEW_LINE>if (timeoutNanos > 0) {<NEW_LINE>stub = stub.withDeadlineAfter(timeoutNanos, TimeUnit.NANOSECONDS);<NEW_LINE>}<NEW_LINE>try {<NE... | status = Status.fromThrowable(t); |
1,391,055 | public void testCreateSharedNonDurableConsumerWithMsgSelector_coexist_TCP(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>JMSContext jmsContext = jmsTCFTCP.createContext();<NEW_LINE>JMSConsumer jmsConsumer1 = jmsContext.createSharedConsumer(jmsTopic1, "SUBID11", "Team = 'WAS'");<NE... | jmsTopic1, "SUBID11", "Team = 'WAS'", false); |
232,847 | private void proposeType(char[] packageName, char[] simpleTypeName, int modifiers, int accessibility, char[] typeName, char[] fullyQualifiedName, boolean isQualified, Scope scope) {<NEW_LINE>char[] completionName = fullyQualifiedName;<NEW_LINE>if (isQualified) {<NEW_LINE>if (packageName == null || packageName.length ==... | computeRelevanceForCaseMatching(this.completionToken, simpleTypeName); |
566,911 | public static void error(String message, Span location, Throwable cause) {<NEW_LINE><MASK><NEW_LINE>message = "Error (" + line.getLineNumber() + "): " + message + "\n\n";<NEW_LINE>message += line.getText();<NEW_LINE>message += "\n";<NEW_LINE>int errorStart = location.getStart() - line.getStart();<NEW_LINE>int errorEnd ... | Line line = location.getLine(); |
1,694,889 | public GradientValue_I32 compute(int x, int y) {<NEW_LINE>int a00, a01, a02, a10, a12, a20, a21, a22;<NEW_LINE>if (x >= 1 && y >= 1 && x < input.width - 1 && y < input.height - 1) {<NEW_LINE>int s = input.stride;<NEW_LINE>int tl = input.startIndex + input.stride * (y - 1) + x - 1;<NEW_LINE>a00 = input.data[tl] & 0xFF;<... | data[tl + s] & 0xFF; |
1,689,407 | public void paintEntity(Graphics g) {<NEW_LINE>Graphics2D g2 = (Graphics2D) g;<NEW_LINE>g2.setFont(HandlerElementMap.getHandlerForElement(this).<MASK><NEW_LINE>// enable colors<NEW_LINE>Composite[] composites = colorize(g2);<NEW_LINE>g2.setColor(fgColor);<NEW_LINE>Polygon poly = new Polygon();<NEW_LINE>poly.addPoint(ge... | getFontHandler().getFont()); |
1,612,040 | private Builder addReturnAnnotations(Builder builder, ExecutableElement methodToOverride) {<NEW_LINE><MASK><NEW_LINE>TypeElement visibleForTestingTypeElement = elements.getTypeElement(processorUtil.visibleForTesting().reflectionName());<NEW_LINE>String visibleForTestingTypeQualifiedName = visibleForTestingTypeElement.t... | Elements elements = processingEnv.getElementUtils(); |
34,685 | private static void notifyUserInfoChanged(V2TIMUserFullInfo userFullInfo) {<NEW_LINE>HashMap<String, Object> param = new HashMap<>();<NEW_LINE>param.put(TUIConstants.TUILogin.SELF_ID, userFullInfo.getUserID());<NEW_LINE>param.put(TUIConstants.TUILogin.SELF_SIGNATURE, userFullInfo.getSelfSignature());<NEW_LINE>param.put... | TUIConstants.TUILogin.EVENT_SUB_KEY_USER_INFO_UPDATED, param); |
1,581,301 | public static void grayMagnitude(GrayS32 input, int maxAbsValue, Bitmap output, @Nullable DogArray_I8 _storage) {<NEW_LINE>shapeShape(input, output);<NEW_LINE>_storage = ConvertBitmap.resizeStorage(output, _storage);<NEW_LINE>final byte[] storage = _storage.data;<NEW_LINE>if (maxAbsValue < 0)<NEW_LINE><MASK><NEW_LINE>i... | maxAbsValue = ImageStatistics.maxAbs(input); |
1,074,308 | public DatasetVersion cloneDatasetVersion() {<NEW_LINE>DatasetVersion dsv = new DatasetVersion();<NEW_LINE>dsv.setVersionState(this.getPriorVersionState());<NEW_LINE>dsv.setFileMetadatas(new ArrayList<>());<NEW_LINE>if (this.getUNF() != null) {<NEW_LINE>dsv.setUNF(this.getUNF());<NEW_LINE>}<NEW_LINE>if (this.getDataset... | getTermsOfUseAndAccess().copyTermsOfUseAndAccess()); |
1,511,616 | public void draw(Color color, Color borderColor, int from, int to) {<NEW_LINE>float alpha = color.a;<NEW_LINE>if (fbo == null)<NEW_LINE>initFBO();<NEW_LINE>if (lastPointDrawn != to || firstPointDrawn != from) {<NEW_LINE>int oldFb = GL11.glGetInteger(EXTFramebufferObject.GL_FRAMEBUFFER_BINDING_EXT);<NEW_LINE>int oldTex ... | GL_FRAMEBUFFER_EXT, fbo.getID()); |
348,331 | private void addHighlightElements(String query, int parent, String code, int index) {<NEW_LINE>NodeList<Element> els = DomUtils.querySelectorAll(Document.get().getBody(), query);<NEW_LINE>// guard against queries that might select an excessive number<NEW_LINE>// of UI elements<NEW_LINE>int n = Math.min(HIGHLIGHT_ELEMEN... | ) el = el.getParentElement(); |
1,222,467 | private Mono<Response<AccountKeysInner>> listKeysWithResponseAsync(String resourceGroupName, String accountName) {<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 (th... | error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); |
156,367 | private void initCards() {<NEW_LINE>// Init an array of Cards<NEW_LINE>ArrayList<Card> cards = new ArrayList<Card>();<NEW_LINE>for (int i = 0; i < 5; i++) {<NEW_LINE>ColorCard card = new ColorCard(this.getActivity());<NEW_LINE>card.setTitle("A simple colored card " + i);<NEW_LINE>card.setCount(i);<NEW_LINE>switch(i) {<... | setBackgroundColorResourceId(R.color.demo_card_background_color1); |
852,489 | public void serializeMeasurementMNode(MeasurementMNodePlan plan) throws IOException {<NEW_LINE>StringBuilder s = new StringBuilder(String.valueOf(MetadataConstant.MEASUREMENT_MNODE_TYPE));<NEW_LINE>s.append(",").append(plan.getName()).append(",");<NEW_LINE>if (plan.getAlias() != null) {<NEW_LINE>s.append(plan.getAlias(... | ()).append(","); |
1,085,439 | private void populateTypeArgumentsForInterfaces(Map<String, Map<String, TypeMirror>> typeArguments, TypeElement child) {<NEW_LINE>for (TypeMirror anInterface : child.getInterfaces()) {<NEW_LINE>if (anInterface instanceof DeclaredType) {<NEW_LINE>DeclaredType declaredType = (DeclaredType) anInterface;<NEW_LINE>Element e... | name = JavaModelUtils.getClassName(te); |
1,201,004 | private static void reflectiveMethodInvokeHook(Method method) {<NEW_LINE>serialClientOperationsLock.beginTrans(true);<NEW_LINE>try {<NEW_LINE>if (reflectMethods.containsKey(method)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ProfilerRuntimeCPU.suspendCurrentThreadTimer();<NEW_LINE>reflectMethods.put(method, null);<NEW_LINE... | sb, method.getReturnType()); |
1,581,944 | public static void main(String[] args) {<NEW_LINE>if (args.length < 2) {<NEW_LINE>System.out.println("Please specify a bucket name and key name");<NEW_LINE>System.exit(1);<NEW_LINE>}<NEW_LINE>// snippet-start:[s3.java.getobjecttags.main]<NEW_LINE>String bucketName = args[0];<NEW_LINE>String keyName = args[1];<NEW_LINE>... | > tagSet = tags.getTagSet(); |
1,147,573 | private void initLocator() {<NEW_LINE>// Load Warehouse<NEW_LINE>String sql = "SELECT M_Warehouse_ID, Name, Description FROM M_Warehouse";<NEW_LINE>if (m_only_Warehouse_ID != null) {<NEW_LINE>sql += " WHERE M_Warehouse_ID=" + m_only_Warehouse_ID.getRepoId();<NEW_LINE>}<NEW_LINE>final String sqlFinal = Env.getUserRolePe... | SQL_NOTQUALIFIED, Access.READ) + " ORDER BY 2"; |
95,831 | public void tint(Color tint) {<NEW_LINE><MASK><NEW_LINE>if (currentTint == newTint)<NEW_LINE>return;<NEW_LINE>currentTint = newTint;<NEW_LINE>float[][] pageVertices = this.pageVertices;<NEW_LINE>Color tempColor = BitmapFontCache.tempColor;<NEW_LINE>int[] tempGlyphCount = this.tempGlyphCount;<NEW_LINE>Arrays.fill(tempGl... | float newTint = tint.toFloatBits(); |
1,744,724 | private ModelReference handleFormParameter(ParameterContext context, ResolvedType parameterType, ModelReference modelRef, ModelSpecification parameterModel) {<NEW_LINE>if (treatRequestParamAsString(parameterType)) {<NEW_LINE>modelRef = new springfox.documentation.schema.ModelRef("string");<NEW_LINE>context.requestParam... | )).explode(true)); |
306,924 | public void initialize(InputSplit split) throws IOException {<NEW_LINE>if (imageLoader == null) {<NEW_LINE>imageLoader = new NativeImageLoader(height, width, channels, imageTransform);<NEW_LINE>}<NEW_LINE>if (split instanceof InputStreamInputSplit) {<NEW_LINE>this.inputSplit = split;<NEW_LINE>this.finishedInputStreamSp... | FileFromPathIterator(inputSplit.locationsPathIterator()); |
895,595 | private void doExperiments(int numberOfExperiments, int unionFindType) {<NEW_LINE>List<Experiment> experiments = new ArrayList<>();<NEW_LINE>int numberOfSites = 512;<NEW_LINE>// Previous time<NEW_LINE>UF initialUnionFind = generateUnionFind(numberOfSites / 2, unionFindType);<NEW_LINE>Stopwatch initialTimer = new Stopwa... | erdosRenyi(numberOfSites / 2, initialUnionFind); |
809,151 | private static ImportStatement parseImport(Node callNode) {<NEW_LINE>ImportPrimitive primitive = ImportPrimitive.fromName(callNode.getFirstChild().getQualifiedName());<NEW_LINE>String namespace = callNode.getSecondChild().getString();<NEW_LINE>Node parent = callNode.getParent();<NEW_LINE>if (parent.isExprResult()) {<NE... | Node grandparent = parent.getParent(); |
449,935 | public State mouseWheelMoved(Widget widget, WidgetMouseWheelEvent event) {<NEW_LINE>Scene scene = widget.getScene();<NEW_LINE>int modifiers = scene.getInputBindings().getZoomActionModifiers();<NEW_LINE>if ((event.getModifiers() & modifiers) != modifiers)<NEW_LINE>return State.REJECTED;<NEW_LINE>int amount = event.getWh... | Rectangle viewBounds = view.getVisibleRect(); |
1,279,101 | public Document update(Document document, String userId) {<NEW_LINE>EntityManager em = ThreadLocalContext.get().getEntityManager();<NEW_LINE>// Get the document<NEW_LINE>Query q = em.createQuery("select d from Document d where d.id = :id and d.deleteDate is null");<NEW_LINE>q.setParameter("id", document.getId());<NEW_L... | setTitle(document.getTitle()); |
923,377 | synchronized ProvSSLSession reportSession(String peerHost, int peerPort, TlsSession tlsSession, JsseSessionParameters jsseSessionParameters, boolean addToCache) {<NEW_LINE>processQueue();<NEW_LINE>if (!addToCache) {<NEW_LINE>return new ProvSSLSession(this, peerHost, peerPort, tlsSession, jsseSessionParameters);<NEW_LIN... | sessionEntry.getPeerKey(), sessionEntry); |
1,005,057 | public void run(CompilationController info) throws Exception {<NEW_LINE>// Task shared for one file needs reset first<NEW_LINE>canceled.set(false);<NEW_LINE>info.toPhase(JavaSource.Phase.RESOLVED);<NEW_LINE>Description rootDescription = null;<NEW_LINE>final Map<Element, Long> pos = new HashMap<Element, Long>();<NEW_LIN... | ? rootDescription : new Description()); |
670,515 | protected void processReport(File report) {<NEW_LINE>final String reportEncoding = getEncoding();<NEW_LINE>final String reportRegEx = getRegex();<NEW_LINE>if (reportRegEx.isEmpty()) {<NEW_LINE>LOG.error("processReport terminated because of empty custom regular expression");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!rep... | (getSubSequence(matcher, "file")); |
672,380 | private CompiledQuery alterTableDropOrAttachPartition(TableReader reader, int action, SqlExecutionContext executionContext) throws SqlException {<NEW_LINE>final int pos = lexer.lastTokenPosition();<NEW_LINE>TableReaderMetadata readerMetadata = reader.getMetadata();<NEW_LINE>if (readerMetadata.getPartitionBy() == Partit... | SqlException.$(pos, "WHERE clause can only be used with DROP PARTITION command"); |
632,417 | private void collapseChildren(int position) {<NEW_LINE>mVisibleComments.get<MASK><NEW_LINE>int depth = mVisibleComments.get(position).getDepth();<NEW_LINE>int allChildrenSize = 0;<NEW_LINE>for (int i = position + 1; i < mVisibleComments.size(); i++) {<NEW_LINE>if (mVisibleComments.get(i).getDepth() > depth) {<NEW_LINE>... | (position).setExpanded(false); |
1,282,540 | final void loadFile(final AbstractFile file) {<NEW_LINE>ensureInSwingThread();<NEW_LINE>if (!isInited()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final double panelWidth = fxPanel.getWidth();<NEW_LINE>final double panelHeight = fxPanel.getHeight();<NEW_LINE>Platform.runLater(() -> {<NEW_LINE>if (readImageFileTask != null... | scrollPane.setCursor(Cursor.WAIT); |
723,705 | public Sql[] generateSql(SetTableRemarksStatement statement, Database database, SqlGeneratorChain sqlGeneratorChain) {<NEW_LINE>String sql;<NEW_LINE>String remarksEscaped = database.escapeStringForDatabase(StringUtil.trimToEmpty<MASK><NEW_LINE>if (database instanceof MySQLDatabase) {<NEW_LINE>sql = "ALTER TABLE " + dat... | (statement.getRemarks())); |
591,866 | private void readObject(ObjectInputStream in) throws ClassNotFoundException, IOException {<NEW_LINE>m = in.readInt();<NEW_LINE>L = in.readInt();<NEW_LINE>int vec_count = in.readInt();<NEW_LINE>int cache_count = in.readInt();<NEW_LINE>boolean wasBuilt = in.readBoolean();<NEW_LINE>if (vec_count > 0) {<NEW_LINE>vecs = new... | new NearestIterator[m][L]; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.