idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,593,602 | private OkHttpClient createHttpClient() {<NEW_LINE>OkHttpClient client = new OkHttpClient();<NEW_LINE>client.setReadTimeout(connectorOptions.getReadTimeout(), TimeUnit.SECONDS);<NEW_LINE>client.setWriteTimeout(connectorOptions.getWriteTimeout(), TimeUnit.SECONDS);<NEW_LINE>client.setConnectTimeout(connectorOptions.getC... | setCookieHandler(CookieHandler.getDefault()); |
684,066 | public Future<Integer> init(PhpModule phpModule) {<NEW_LINE>assert phpModule != null;<NEW_LINE>// composer.json<NEW_LINE>FileObject composerJson = getComposerJson(phpModule);<NEW_LINE>if (composerJson != null && composerJson.isValid()) {<NEW_LINE>// existing config<NEW_LINE>if (!userConfirmation(phpModule.getDisplayNam... | validate(options).getResult(); |
1,849,015 | private void handleDescribeModel(ChannelHandlerContext ctx, String modelName) throws ModelNotFoundException {<NEW_LINE>ModelManager modelManager = ModelManager.getInstance();<NEW_LINE>Model model = modelManager.getModels().get(modelName);<NEW_LINE>if (model == null) {<NEW_LINE>throw new ModelNotFoundException("Model no... | Engine engine = manifest.getEngine(); |
1,552,090 | public DynamicResultSet inspect(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, InspectHelper helper) throws ServiceException {<NEW_LINE>try {<NEW_LINE>PersistencePerspective persistencePerspective = persistencePackage.getPersistencePerspective();<NEW_LINE>Map<MergedPropertyType, Map<String, F... | ServiceException("Unable to retrieve inspection results for " + className, e); |
104,568 | public void handleReceived(int id, String received) {<NEW_LINE>listener.info(String.format("[%d(%d)/%d(%d)]--> %s", id, c.getNumTopics(id), c.getNumConnections(), c.getNumTopics(), StringUtil.trim(received)));<NEW_LINE>Message message = Message.fromJson(received, userIds);<NEW_LINE>if (message != null) {<NEW_LINE>if (m... | data = (ModeratorActionData) message.data; |
1,153,844 | private Batch fetch(List<Long> indices, int progress) throws IOException {<NEW_LINE>NDManager subManager = manager.newSubManager();<NEW_LINE>subManager.setName("dataIter fetch");<NEW_LINE>int batchSize = indices.size();<NEW_LINE>NDList[] data = new NDList[batchSize];<NEW_LINE>NDList[] labels = new NDList[batchSize];<NE... | .transform(data[i]); |
1,751,203 | private com.uwetrottmann.tmdb2.entities.Movie loadSummaryFromTmdb(@Nullable String languageCode, String regionCode, int movieTmdbId) {<NEW_LINE>// try to get local movie summary<NEW_LINE>Movie movie = getMovieSummary("get local movie summary", languageCode, movieTmdbId, true);<NEW_LINE>if (movie != null && !TextUtils.i... | TextTools.textNoTranslationMovieLanguage(context, languageCode); |
1,085,377 | public void instrumentGetActiveAndIndices(final Response.Listener<List<Instrument>> responseListener, final Response.ErrorListener errorListener) {<NEW_LINE>Object postBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String path = "/instrument/activeAndIndices".replaceAll("\\{format\\}", "json");<NEW_LIN... | , "array", Instrument.class)); |
1,801,873 | private MetaInfoResponse handleClientRegister(final MetaInfoRequest request) {<NEW_LINE>final String realSubject = RetrySubjectUtils.getRealSubject(request.getSubject());<NEW_LINE>if (SubjectUtils.isInValid(realSubject)) {<NEW_LINE>return buildResponse(request, -2, OnOfflineState.OFFLINE, new BrokerCluster(new ArrayLis... | new ArrayList<>())); |
1,149,422 | public static ImmutableSet<String> combine(@Nullable Set<String> prefixes, String base, @Nullable Set<String> suffixes) {<NEW_LINE>ImmutableSet<String> suffixedSet;<NEW_LINE>if (suffixes == null || suffixes.isEmpty()) {<NEW_LINE>suffixedSet = ImmutableSet.of(base);<NEW_LINE>} else {<NEW_LINE>ImmutableSet.Builder<String... | > suffixedBuilder = ImmutableSet.builder(); |
562,023 | private void appendSelect() {<NEW_LINE>if (selectClause != null) {<NEW_LINE>sb.append(selectClause);<NEW_LINE>} else {<NEW_LINE>useSqlLimiter = (query.hasMaxRowsOrFirstRow() && select.getManyProperty() == null);<NEW_LINE>if (!useSqlLimiter) {<NEW_LINE>appendSelectDistinct();<NEW_LINE>}<NEW_LINE>if (countSingleAttribute... | .descriptor().idProperty(); |
1,542,947 | public List<HistoryItem> buildHistoryItems() {<NEW_LINE>SQLiteOpenHelper helper = new DBHelper(activity);<NEW_LINE>List<HistoryItem> items = new ArrayList<>();<NEW_LINE>try (SQLiteDatabase db = helper.getReadableDatabase();<NEW_LINE>Cursor cursor = db.query(DBHelper.TABLE_NAME, COLUMNS, null, null, null, null, DBHelper... | format = cursor.getString(2); |
795,149 | public String[] authenticate(String username, String password) {<NEW_LINE>KeyNamePair[] roles = null;<NEW_LINE>// do authentication<NEW_LINE>if (username != null && password != null) {<NEW_LINE>// perform db authentication<NEW_LINE>Login login = new Login(Env.getCtx());<NEW_LINE>roles = login.getRoles(username, passwor... | groups = grpList.toArray(groups); |
588,188 | public Response intercept(Chain chain) throws IOException {<NEW_LINE>Request request = chain.request();<NEW_LINE>Response response = chain.proceed(request);<NEW_LINE>if (!response.isSuccessful()) {<NEW_LINE>return response;<NEW_LINE>}<NEW_LINE>DockerHttpClient.Request originalRequest = request.tag(DockerHttpClient.Requ... | .clearTimeout().clearDeadline(); |
509,655 | public void run(RegressionEnvironment env) {<NEW_LINE>sendTimeEvent(env, "2002-05-1T8:00:00.000");<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String eplContext = "@Name('CTX') @public create context CtxInitiated " + "initiated by pattern [every s0=SupportBean_S0 -> s1=SupportBean_S1(id = s0.id)]" + "... | new SupportBean_S0(10, "S0_1")); |
331,337 | void handle(DownloadBitsFromKVMHostToPrimaryStorageMsg msg, ReturnValueCompletion<DownloadBitsFromKVMHostToPrimaryStorageReply> completion) {<NEW_LINE>DownloadBitsFromKVMHostToPrimaryStorageReply reply = new DownloadBitsFromKVMHostToPrimaryStorageReply();<NEW_LINE>GetKVMHostDownloadCredentialMsg gmsg = new GetKVMHostDo... | SERVICE_ID, msg.getSrcHostUuid()); |
1,328,274 | public static MoveAllocationCommand fromXContent(XContentParser parser) throws IOException {<NEW_LINE>String index = null;<NEW_LINE>int shardId = -1;<NEW_LINE>String fromNode = null;<NEW_LINE>String toNode = null;<NEW_LINE>String currentFieldName = null;<NEW_LINE>XContentParser.Token token;<NEW_LINE>while ((token = par... | throw new OpenSearchParseException("[{}] command missing the index parameter", NAME); |
1,260,331 | // PropertyChangeListener<NEW_LINE>@Override<NEW_LINE>public void propertyChange(java.beans.PropertyChangeEvent evt) {<NEW_LINE>if (ExplorerManager.PROP_SELECTED_NODES.equals(evt.getPropertyName())) {<NEW_LINE>Node[] nodes = (Node[]) evt.getNewValue();<NEW_LINE>boolean res = nodes != null && nodes.length > 0;<NEW_LINE>... | ).lookup(OpenCookie.class); |
673,158 | public Pattern doAnd(Pattern b, int sa) {<NEW_LINE>CombinePattern tmp;<NEW_LINE>if (b.numDisjoint() != 0) {<NEW_LINE>return b.doAnd(this, -sa);<NEW_LINE>}<NEW_LINE>if (b instanceof CombinePattern) {<NEW_LINE>CombinePattern b2 = (CombinePattern) b;<NEW_LINE>ContextPattern c = (ContextPattern) context.doAnd(b2.context, 0... | instr.doAnd(b3, sa); |
750,154 | public static void sendAllBookmarksTo(final Activity a) {<NEW_LINE>final List<AppBookmark> all = BookmarksData.get().getAll(a);<NEW_LINE>Set<String> files = new HashSet<>();<NEW_LINE>for (AppBookmark appBookmark : all) {<NEW_LINE>files.add(appBookmark.getPath());<NEW_LINE>}<NEW_LINE>final StringBuilder result = new Str... | = new Intent(Intent.ACTION_SEND); |
192,079 | protected List<Class<? extends C>> parseValue(Object obj) throws ParameterException {<NEW_LINE>if (obj == null) {<NEW_LINE>throw new UnspecifiedParameterException(this);<NEW_LINE>}<NEW_LINE>if (List.class.isInstance(obj)) {<NEW_LINE>List<?> l = (List<?>) obj;<NEW_LINE>ArrayList<C> inst = new ArrayList<>(l.size());<NEW_... | >) o.getClass()); |
1,029,247 | static void parseResources(Document doc, String fileName) {<NEW_LINE>logger.debug("Parsing resources from project file...");<NEW_LINE>String val = "";<NEW_LINE>val += nodeListToString(doc.getElementsByTagName("dataline_input"), "dataline_input");<NEW_LINE>val += nodeListToString(doc.getElementsByTagName("dataline_outpu... | .getElementsByTagName("airlink_dimming"), "airlink_dimming"); |
14,297 | public Request<CloneReceiptRuleSetRequest> marshall(CloneReceiptRuleSetRequest cloneReceiptRuleSetRequest) {<NEW_LINE>if (cloneReceiptRuleSetRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(CloneReceiptRuleSetRequest)");<NEW_LINE>}<NEW_LINE>Request<CloneReceiptRuleSetRequ... | , StringUtils.fromString(ruleSetName)); |
842,046 | protected void paintIcon(Component c, Graphics2D g) {<NEW_LINE>if (!ignoreButtonState && c instanceof AbstractButton) {<NEW_LINE>ButtonModel model = ((AbstractButton) c).getModel();<NEW_LINE>if (model.isPressed() || model.isRollover()) {<NEW_LINE>// paint filled circle with cross<NEW_LINE>g.setColor(model.isPressed() ?... | , 11, 11), false); |
250,101 | protected static Media readMedia(JsonNode node) {<NEW_LINE>Media media = new Media();<NEW_LINE>JsonNode bitrate = node.get("bitrate");<NEW_LINE>if (bitrate != null && !bitrate.isNull()) {<NEW_LINE>media.bitrate = bitrate.intValue();<NEW_LINE>media.hasBitrate = true;<NEW_LINE>}<NEW_LINE>media.copyright = node.path("copy... | get("width").intValue(); |
1,563,454 | final GetAuthorizationTokenResult executeGetAuthorizationToken(GetAuthorizationTokenRequest getAuthorizationTokenRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAuthorizationTokenRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | addHandlerContext(HandlerContextKey.SERVICE_ID, "codeartifact"); |
1,838,906 | public void executeFrameWithDeltaTime(float deltaTime, PhysicsObject physicsObject) {<NEW_LINE>if (!isWithinInfluence()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>float dx = this.target.getTranslationX<MASK><NEW_LINE>float dy = this.target.getTranslationY() - this.anchorPoint.y;<NEW_LINE>double dr = Math.sqrt(dx * dx + dy... | () - this.anchorPoint.x; |
1,849,753 | public void preprocessFederatedIdentity(KeycloakSession session, RealmModel realm, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) {<NEW_LINE>String attribute = mapperModel.getConfig().get(USER_ATTRIBUTE);<NEW_LINE>if (StringUtil.isNullOrEmpty(attribute)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE... | value = getClaimValue(mapperModel, context); |
1,040,759 | public CompletableFuture<Exception> abort(Exception abortReason) {<NEW_LINE>if (abortReason != null) {<NEW_LINE>logger.debug("Abort request received for Work Package [{}]-[{}].", name, segment.getSegmentId(), abortReason);<NEW_LINE>segmentStatusUpdater.accept(status -> {<NEW_LINE>if (status != null) {<NEW_LINE>return s... | currentReason == null ? abortReason : currentReason); |
1,617,768 | final PutRegistryPolicyResult executePutRegistryPolicy(PutRegistryPolicyRequest putRegistryPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putRegistryPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | invoke(request, responseHandler, executionContext); |
497,406 | final GetResourceSetResult executeGetResourceSet(GetResourceSetRequest getResourceSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getResourceSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
909,503 | public synchronized void changeInputScale() {<NEW_LINE>calib = new StereoParameters(origCalib);<NEW_LINE>double scale = control.inputScale / 100.0;<NEW_LINE>PerspectiveOps.scaleIntrinsic(calib.left, scale);<NEW_LINE>PerspectiveOps.<MASK><NEW_LINE>int w = (int) (origLeft.getWidth() * scale);<NEW_LINE>int h = (int) (orig... | scaleIntrinsic(calib.right, scale); |
283,539 | private static void convertSdks() {<NEW_LINE>ProjectJdkTable sdkTable = ProjectJdkTable.getInstance();<NEW_LINE>Collection<String> globalGoPathUrls = ContainerUtil.newLinkedHashSet();<NEW_LINE>Collection<Sdk> sdksToDelete = ContainerUtil.newArrayList();<NEW_LINE>Collection<Sdk> sdksToAdd = ContainerUtil.newArrayList();... | getInstance().setLibraryRootUrls(globalGoPathUrls); |
1,290,848 | public JsonNode transformResponse(JsonNode response, MethodConfig methodConfig) {<NEW_LINE>if (response == null) {<NEW_LINE>throw new AppsmithPluginException(AppsmithPluginError.PLUGIN_ERROR, "Missing a valid response object.");<NEW_LINE>}<NEW_LINE>ArrayNode valueRanges = (ArrayNode) response.get("valueRanges");<NEW_LI... | collectedCells = new LinkedList<>(); |
1,226,753 | private void initialize() throws WebServerException {<NEW_LINE>logger.info<MASK><NEW_LINE>synchronized (this.monitor) {<NEW_LINE>try {<NEW_LINE>addInstanceIdToEngineName();<NEW_LINE>Context context = findContext();<NEW_LINE>context.addLifecycleListener((event) -> {<NEW_LINE>if (context.equals(event.getSource()) && Life... | ("Tomcat initialized with port(s): " + getPortsDescription(false)); |
329,095 | protected void readAttributes() throws QuickFixException {<NEW_LINE>super.readAttributes();<NEW_LINE>String parent = getAttributeValue(ATTRIBUTE_EXTENDS);<NEW_LINE>if (!StringUtils.isBlank(parent)) {<NEW_LINE>builder.setExtendsDescriptor(definitionService.getDefDescriptor(parent.trim(), TokensDef.class));<NEW_LINE>}<NE... | builder.setAccess(readAccessAttribute()); |
1,484,954 | private STNode parseByteArrayLiteral() {<NEW_LINE>STNode type;<NEW_LINE>if (peek().kind == SyntaxKind.BASE16_KEYWORD) {<NEW_LINE>type = parseBase16Keyword();<NEW_LINE>} else {<NEW_LINE>type = parseBase64Keyword();<NEW_LINE>}<NEW_LINE>STNode <MASK><NEW_LINE>if (startingBackTick.isMissing()) {<NEW_LINE>// Create new miss... | startingBackTick = parseBacktickToken(ParserRuleContext.TEMPLATE_START); |
1,098,265 | void init(final GridViewSkin skin, HorizontalHeader horizontalHeader) {<NEW_LINE>this.skin = skin;<NEW_LINE>// Adjust position upon HorizontalHeader height<NEW_LINE>horizontalHeader.heightProperty().addListener(new ChangeListener<Number>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void changed(ObservableValue<? ex... | ().getHeight())); |
1,359,896 | public void initConfig(GL2 gl) {<NEW_LINE>// Disable Vertical synchro<NEW_LINE>gl.setSwapInterval(0);<NEW_LINE>// Config<NEW_LINE>// Z is set by the order of drawing<NEW_LINE>gl.glDisable(GL2.GL_DEPTH_TEST);<NEW_LINE>gl.glDisable(GL2.GL_POINT_SMOOTH);<NEW_LINE>gl.glDisable(GL2.GL_LINE_SMOOTH);<NEW_LINE>gl.glClearDepth(... | .getVizModel().getBackgroundColorComponents(); |
106,724 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>if (player != null) {<NEW_LINE>for (int i = 0; i < 3; i++) {<NEW_LINE>Set<UUID> opponents = game.getOpponents(source.getControllerId());<NEW_LINE>boolean putToken = true;<NEW_LINE>for (UUID oppo... | ).apply(game, source); |
1,123,183 | public InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId) throws SAXException {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "resolveEntity", systemId);<NEW_LINE>InputSource inputSource = null;<NEW_LINE>try {<NEW_LINE>// validate against stats.dtd ONLY and NOT perf.dtd<NEW_LINE>i... | ex, "com.ibm.ws.pmi.server.ModuleConfigParser.resolveEntity", "126", this); |
979,877 | public List<Either<String, MarkedString>> computeHover(int line, int column, IProgressMonitor monitor) {<NEW_LINE>List<Either<String, MarkedString>> res = new LinkedList<>();<NEW_LINE>try {<NEW_LINE>if (monitor.isCanceled()) {<NEW_LINE>return cancelled(res);<NEW_LINE>}<NEW_LINE>IJavaElement[] elements = JDTUtils.findEl... | getJavaProject().getProject()); |
39,322 | public void listBlocks2() {<NEW_LINE>// BEGIN: com.azure.storage.blob.specialized.BlockBlobClient.listBlocksWithResponse#BlockListType-String-Duration-Context<NEW_LINE>Context context = new Context("key", "value");<NEW_LINE>BlockList block = client.listBlocksWithResponse(BlockListType.ALL, leaseId, timeout, context).ge... | , b.getSizeLong())); |
1,388,786 | private String initializeAddLine(IntrospectedColumn introspectedColumn) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>if (introspectedColumn.isJDBCDateColumn()) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>sb.append("addCriterionForJDBCDate(\"");<NEW_LINE>} else if (introspectedColumn.isJDBCTimeColumn()) {<NEW_LINE... | sb.charAt(3))); |
303,641 | private Pair<Gradient, INDArray> backpropGradientHelper(final INDArray epsilon, final boolean truncatedBPTT, final int tbpttBackwardLength, LayerWorkspaceMgr workspaceMgr) {<NEW_LINE>assertInputSet(true);<NEW_LINE>final INDArray inputWeights = getParamWithNoise(LSTMParamInitializer.INPUT_WEIGHT_KEY, true, workspaceMgr)... | (STATE_KEY_PREV_MEMCELL), true, workspaceMgr); |
392,226 | public static CountResponse fromXContent(XContentParser parser) throws IOException {<NEW_LINE>ensureExpectedToken(XContentParser.Token.START_OBJECT, parser.nextToken(), parser);<NEW_LINE>parser.nextToken();<NEW_LINE>ensureExpectedToken(XContentParser.Token.FIELD_NAME, parser.currentToken(), parser);<NEW_LINE>String cur... | CountResponse(count, terminatedEarly, shardStats); |
1,172,183 | private void addIncommingRef(Object to, Object from, Field f) {<NEW_LINE>// wrap statics with special (private) object<NEW_LINE>Object save = from != null ? from : Root.createStatic(f, to);<NEW_LINE>Object entry = objects.get(to);<NEW_LINE>if (entry == null) {<NEW_LINE>if (save instanceof Object[]) {<NEW_LINE>entry = n... | Object[] { entry, save }; |
1,053,346 | public void enable() {<NEW_LINE>if (tfConfig != null) {<NEW_LINE>if (tfConfig.eIsSet(tfConfig.eClass().getEStructuralFeature("threshold"))) {<NEW_LINE>setThreshold(tfConfig.getThreshold());<NEW_LINE>}<NEW_LINE>if (tfConfig.eIsSet(tfConfig.eClass().getEStructuralFeature("callbackPeriod"))) {<NEW_LINE>setCallbackPeriod(t... | tinkerforgeDevice.setMovingAverage(getMovingAverage()); |
428,915 | public static DexMethodDescriptor doFindMethodFromNative(int i) {<NEW_LINE>DexMethodDescriptor ret = getMethodDescFromCache(i);<NEW_LINE>if (ret != null) {<NEW_LINE>return ret;<NEW_LINE>}<NEW_LINE>DexHelper helper = getHelper();<NEW_LINE>byte[][] keys = b(i);<NEW_LINE>HashSet<DexMethodDescriptor> <MASK><NEW_LINE>Config... | methods = new HashSet<>(); |
1,313,925 | public void delete(Long id) {<NEW_LINE>Form form = formsRepository.get(id);<NEW_LINE>List<Instance> instancesForVersion = instancesRepository.getAllNotDeletedByFormIdAndVersion(form.getFormId(), form.getVersion());<NEW_LINE>// If there's more than one form with the same formid/version, trust the user that they want to ... | ), form.getVersion()); |
1,837,906 | public void startElement(String uri, String localName, String name, Attributes attributes) {<NEW_LINE>if ("node".equals(name)) {<NEW_LINE>String child = attributes.getValue("name");<NEW_LINE>if (child == null) {<NEW_LINE>throw new RuntimeException("name attribute not set");<NEW_LINE>}<NEW_LINE>String encoding = attribu... | .lastElement() + "/" + child; |
295,581 | private I_C_Flatrate_DataEntry createFlatrateDataEntry(final I_C_Flatrate_Term term, final I_C_Period period) {<NEW_LINE>final IContextAware context = getContext();<NEW_LINE>final I_C_Flatrate_DataEntry newDataEntry = InterfaceWrapperHelper.newInstance(I_C_Flatrate_DataEntry.class, context);<NEW_LINE>newDataEntry.setAD... | after(period.getStartDate()); |
1,736,819 | private static <T extends AcsResponse> T readResponse(Class<T> clasz, HttpResponse httpResponse, FormatType format) throws ClientException {<NEW_LINE>UnmarshallerContext context = new UnmarshallerContext();<NEW_LINE>T response = null;<NEW_LINE>String stringContent = httpResponse.getHttpContentString();<NEW_LINE>try {<N... | .lastIndexOf(".") + 1); |
1,426,837 | public void updateContent() {<NEW_LINE>int iconColorDef = nightMode ? R.color.icon_color_active_dark : R.color.icon_color_active_light;<NEW_LINE>int iconColorPres = R.color.active_buttons_and_links_text_dark;<NEW_LINE>GPXFile gpxFile = getGPXFile();<NEW_LINE>boolean fileAvailable = gpxFile.<MASK><NEW_LINE>showButton = ... | path != null && !gpxFile.showCurrentTrack; |
233,132 | protected boolean updateListData() {<NEW_LINE>// clearing list<NEW_LINE>removeAllItems();<NEW_LINE>setDict(null);<NEW_LINE>setDescription(null);<NEW_LINE>//<NEW_LINE>final String search = getSearchText();<NEW_LINE>Object userObject = getUserOject();<NEW_LINE>if (userObject != null && !isMatching(userObject, search)) {<... | DB.close(rs, pstmt); |
1,484,979 | public double[] transformToDoubleValuesSV(ProjectionBlock projectionBlock) {<NEW_LINE><MASK><NEW_LINE>if (_quotients == null || _quotients.length < length) {<NEW_LINE>_quotients = new double[length];<NEW_LINE>}<NEW_LINE>if (_firstTransformFunction == null) {<NEW_LINE>Arrays.fill(_quotients, 0, length, _firstLiteral);<N... | int length = projectionBlock.getNumDocs(); |
1,684,474 | public static IRubyObject detectCommon(final ThreadContext context, CallSite each, IRubyObject self, IRubyObject ifnone, final Block block) {<NEW_LINE>final Ruby runtime = context.runtime;<NEW_LINE>final IRubyObject[] result <MASK><NEW_LINE>try {<NEW_LINE>callEach(context, each, self, Signature.OPTIONAL, new BlockCallb... | = new IRubyObject[] { null }; |
18,687 | private void initialize() {<NEW_LINE>this.setLayout(new BorderLayout());<NEW_LINE>// ZAP: i18n<NEW_LINE>this.setName(Constant.messages.getString("output.panel.title"));<NEW_LINE>if (Model.getSingleton().getOptionsParam().getViewParam().getWmUiHandlingOption() == 0) {<NEW_LINE>this.setSize(243, 119);<NEW_LINE>}<NEW_LINE... | , KeyEvent.SHIFT_DOWN_MASK, false)); |
279,108 | public CallbackBaseResponseDTO taskInfo(CallbackRequestDTO callBackInfo) {<NEW_LINE>log.info("get call back request dto: {}", JsonUtil<MASK><NEW_LINE>CallbackMethodEnum method = callBackInfo.getMethod();<NEW_LINE>PageInfoDTO page = callBackInfo.getPage();<NEW_LINE>String projectId = callBackInfo.getFilter().getParent()... | .INSTANCE.toJson(callBackInfo)); |
559,702 | protected ErrorDescription[] apply(TypeElement subject, ProblemContext ctx) {<NEW_LINE>ArrayList<ErrorDescription> errors = new ArrayList<ErrorDescription>();<NEW_LINE>AnnotationMirror annEntity = Utilities.findAnnotation(subject, ANNOTATION_WEBSERVICE);<NEW_LINE>if (subject.getKind() == ElementKind.CLASS && Utilities.... | Utilities.findAnnotation(subject, aName); |
1,460,014 | protected static String digest(@Sensitive String input, String algorithm, String charset) {<NEW_LINE>MessageDigest md;<NEW_LINE>String output = null;<NEW_LINE>if (input != null && input.length() > 0) {<NEW_LINE>try {<NEW_LINE>md = MessageDigest.getInstance(algorithm);<NEW_LINE>md.update(input.getBytes(charset));<NEW_LI... | throw new RuntimeException("Exception converting String object : " + uee); |
1,735,548 | private Response sendVerifyEmail(RequiredActionContext context) throws UriBuilderException, IllegalArgumentException {<NEW_LINE>KeycloakSession session = context.getSession();<NEW_LINE><MASK><NEW_LINE>AuthenticationSessionModel authSession = context.getAuthenticationSession();<NEW_LINE>EventBuilder event = context.getE... | UserModel user = context.getUser(); |
1,058,911 | public static ListSQLReviewOriginSQLResponse unmarshall(ListSQLReviewOriginSQLResponse listSQLReviewOriginSQLResponse, UnmarshallerContext _ctx) {<NEW_LINE>listSQLReviewOriginSQLResponse.setRequestId<MASK><NEW_LINE>listSQLReviewOriginSQLResponse.setErrorCode(_ctx.stringValue("ListSQLReviewOriginSQLResponse.ErrorCode"))... | (_ctx.stringValue("ListSQLReviewOriginSQLResponse.RequestId")); |
1,573,758 | public void encodeBegin(FacesContext context) throws IOException {<NEW_LINE>if (context == null) {<NEW_LINE>throw new NullPointerException("context");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>setCachedFacesContext(context);<NEW_LINE>// Call UIComponent.pushComponentToEL(javax.faces.context.FacesContext, javax.faces.component... | class, UIComponent.class, this); |
1,387,921 | public static ListMediasResponse unmarshall(ListMediasResponse listMediasResponse, UnmarshallerContext context) {<NEW_LINE>listMediasResponse.setRequestId(context.stringValue("ListMediasResponse.RequestId"));<NEW_LINE>listMediasResponse.setSuccess(context.booleanValue("ListMediasResponse.Success"));<NEW_LINE>listMedias... | ("ListMediasResponse.Medias.List[" + i + "].Type")); |
540,079 | Column[] initColumns(SessionLocal session, Column[] columnTemplates, Query query, boolean isDerivedTable) {<NEW_LINE>ArrayList<Expression> expressions = query.getExpressions();<NEW_LINE>final int count = query.getColumnCount();<NEW_LINE>ArrayList<Column> list = new ArrayList<>(count);<NEW_LINE>for (int i = 0; i < count... | expr = expressions.get(i); |
537,132 | public OpenSearchServiceDataSourceConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>OpenSearchServiceDataSourceConfig openSearchServiceDataSourceConfig = new OpenSearchServiceDataSourceConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = c... | class).unmarshall(context)); |
1,226,870 | private Comment buildComment() {<NEW_LINE>Comment comment = new Comment();<NEW_LINE>comment.comment = args.getString(InitBundle.MESSAGE);<NEW_LINE>comment.spoiler = args.getBoolean(InitBundle.ISSPOILER);<NEW_LINE>// episode?<NEW_LINE>long episodeId = args.getLong(InitBundle.EPISODE_ID);<NEW_LINE>if (episodeId != 0) {<N... | comment.episode = new Episode(); |
67,667 | public static FetchPhotosResponse unmarshall(FetchPhotosResponse fetchPhotosResponse, UnmarshallerContext context) {<NEW_LINE>fetchPhotosResponse.setRequestId(context.stringValue("FetchPhotosResponse.RequestId"));<NEW_LINE>fetchPhotosResponse.setCode(context.stringValue("FetchPhotosResponse.Code"));<NEW_LINE>fetchPhoto... | ("FetchPhotosResponse.Photos[" + i + "].Title")); |
1,176,292 | public void onInteract(Player p, Block b) {<NEW_LINE>Block dispenser = b.getRelative(BlockFace.DOWN);<NEW_LINE>BlockState state = PaperLib.getBlockState(dispenser, false).getState();<NEW_LINE>if (state instanceof Dispenser) {<NEW_LINE>Dispenser disp = (Dispenser) state;<NEW_LINE>Inventory inv = disp.getInventory();<NEW... | sendMessage(p, "machines.pattern-not-found", true); |
1,019,868 | protected void writeForInLoop(final ForStatement loop) {<NEW_LINE>controller.getAcg().onLineNumber(loop, "visitForLoop");<NEW_LINE>writeStatementLabel(loop);<NEW_LINE>CompileStack compileStack = controller.getCompileStack();<NEW_LINE>MethodVisitor mv = controller.getMethodVisitor();<NEW_LINE><MASK><NEW_LINE>compileStac... | OperandStack operandStack = controller.getOperandStack(); |
1,081,292 | public static void main(String[] args) throws IOException {<NEW_LINE>Path root = Paths.get("/home/ahmetaa/data/vector");<NEW_LINE>Path binVectorFile = root.resolve("model-large-min10.vec.bin");<NEW_LINE>Path vocabFile = root.resolve("vocab-large-min10.bin");<NEW_LINE>Path <MASK><NEW_LINE>DistanceBasedStemmer experiment... | distanceFile = root.resolve("distance-large-min10.bin"); |
14,202 | public boolean validate(TornadoDevice device) {<NEW_LINE>float[] randArrayTor<MASK><NEW_LINE>boolean val;<NEW_LINE>val = true;<NEW_LINE>randArrayTor = new float[size];<NEW_LINE>callTor = new float[size];<NEW_LINE>putTor = new float[size];<NEW_LINE>calSeq = new float[size];<NEW_LINE>putSeq = new float[size];<NEW_LINE>fo... | , callTor, putTor, calSeq, putSeq; |
454,211 | static String handleParseErrorException(final ParseErrorException exception) {<NEW_LINE>final SystemMessageBuilder systemMessageBuilder = new SystemMessageBuilder();<NEW_LINE>final StringBuilder message = new StringBuilder();<NEW_LINE>final String errorMessage = WordUtils.wrap(exception.getMessage(), 15, Html.br(), fal... | String messageAsString = message.toString(); |
1,181,600 | private void processReturnType(MethodVisitor visitor) throws Exception {<NEW_LINE>TypeKind kind = executable.getReturnType().getKind();<NEW_LINE>if (kind == TypeKind.VOID) {<NEW_LINE>visitor.visitVarInsn(ALOAD, 1);<NEW_LINE>Method isResponseStarted = Context.class.getDeclaredMethod("isResponseStarted");<NEW_LINE>visito... | visitor.visitVarInsn(ALOAD, 2); |
447,216 | public static void appendPaddedInteger(Appendable appendable, long value, int size) throws IOException {<NEW_LINE>int intValue = (int) value;<NEW_LINE>if (intValue == value) {<NEW_LINE>appendPaddedInteger(appendable, intValue, size);<NEW_LINE>} else if (size <= 19) {<NEW_LINE>appendable.append(Long.toString(value));<NE... | (Long.toString(value)); |
450,483 | private void handle(CreateVolumeSnapshotGroupMsg msg) {<NEW_LINE>thdf.chainSubmit(new ChainTask(msg) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String getSyncSignature() {<NEW_LINE>return String.format(<MASK><NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run(SyncTaskChain chain) {<NEW_LINE>CreateVolu... | "create-volume-%s-snapshot-group", msg.getVolumeUuid()); |
128,497 | public void handleGraphAnswer(@Nullable GraphAnswer<Integer> answer, boolean dataCouldChange, @Nullable VcsLogGraphTable.Selection previousSelection, @Nullable MouseEvent e) {<NEW_LINE>if (dataCouldChange) {<NEW_LINE>myTable.getModel().fireTableDataChanged();<NEW_LINE>// since fireTableDataChanged clears selection we r... | getVisibleRowIndex(answer.getCommitToJump()); |
1,192,379 | private void addField(QueryProfilesConfig.Queryprofile.Builder qpB, QueryProfile profile, Entry<String, Object> field, String namePrefix) {<NEW_LINE>String fullName <MASK><NEW_LINE>if (field.getValue() instanceof QueryProfile) {<NEW_LINE>QueryProfile subProfile = (QueryProfile) field.getValue();<NEW_LINE>if (!subProfil... | = namePrefix + field.getKey(); |
690,717 | final DescribeJobLogItemsResult executeDescribeJobLogItems(DescribeJobLogItemsRequest describeJobLogItemsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeJobLogItemsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
949,330 | public void visitToken(DetailAST ast) {<NEW_LINE>final int parentType = ast.getParent().getType();<NEW_LINE>final <MASK><NEW_LINE>if (parentType != TokenTypes.OBJBLOCK && (!ignoreFinal || modifiers.findFirstToken(TokenTypes.FINAL) == null)) {<NEW_LINE>final DetailAST variable = ast.findFirstToken(TokenTypes.IDENT);<NEW... | DetailAST modifiers = ast.getFirstChild(); |
221,213 | public static void removeNonReplicateShardResultForInsert(List<PhyTableInsertSharder.PhyTableShardResult> shardResults, TableMeta tableMeta) {<NEW_LINE>if (GeneralUtil.isEmpty(shardResults)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<String, Set<String>> replicateDbIndexAndPhycialTables = new HashMap<>();<NEW_LINE>for ... | getPhyTableName().toUpperCase()); |
799,225 | private void commandStos(Instruction instruction, int flags) {<NEW_LINE>int addressSize;<NEW_LINE>int rDI, rCX;<NEW_LINE>switch(instruction.getOp0Kind()) {<NEW_LINE>case OpKind.MEMORY_ESDI:<NEW_LINE>addressSize = CodeSize.CODE16;<NEW_LINE>rDI = Register.DI;<NEW_LINE>rCX = Register.CX;<NEW_LINE>break;<NEW_LINE>case OpKi... | Register.ES, OpAccess.READ); |
1,746,204 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>final RelativeLayout progressLayout = new RelativeLayout(this);<NEW_LINE>RelativeLayout.LayoutParams lParams = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTE... | settings.setCacheMode(WebSettings.LOAD_NO_CACHE); |
7,079 | public static DescribeAppVersionResponse unmarshall(DescribeAppVersionResponse describeAppVersionResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeAppVersionResponse.setRequestId(_ctx.stringValue("DescribeAppVersionResponse.RequestId"));<NEW_LINE>AppVersion appVersion = new AppVersion();<NEW_LINE>appVersion.setId(... | (_ctx.stringValue("DescribeAppVersionResponse.AppVersion.GmtCreate")); |
26,201 | private static boolean implVerify(byte[] sig, int sigOff, byte[] pk, int pkOff, byte[] ctx, byte phflag, byte[] m, int mOff, int mLen) {<NEW_LINE>if (!checkContextVar(ctx)) {<NEW_LINE>throw new IllegalArgumentException("ctx");<NEW_LINE>}<NEW_LINE>byte[] R = copy(sig, sigOff, POINT_BYTES);<NEW_LINE>byte[] S = copy(sig, ... | = new byte[SCALAR_BYTES * 2]; |
441,333 | public Set<Tuple> zRangeByScoreWithScores(byte[] key, Range range, org.springframework.data.redis.connection.Limit limit) {<NEW_LINE>Assert.notNull(key, "Key must not be null!");<NEW_LINE>Assert.notNull(range, "Range cannot be null for ZRANGEBYSCOREWITHSCORES.");<NEW_LINE>byte[] min = JedisConverters.boundaryToBytesFor... | getMin(), JedisConverters.NEGATIVE_INFINITY_BYTES); |
1,015,511 | private void statInit() {<NEW_LINE>initComponents();<NEW_LINE>fDocumentNo.setWidth("100%");<NEW_LINE>fDescription.setWidth("100%");<NEW_LINE>fDateFrom.setWidth("165px");<NEW_LINE>fDateTo.setWidth("165px");<NEW_LINE>fAmtFrom.getDecimalbox().setWidth("155px");<NEW_LINE>fAmtTo.getDecimalbox().setWidth("155px");<NEW_LINE>R... | appendChild(lblGrandTotal.rightAlign()); |
1,897 | @Path("/{ruleUID}/runnow")<NEW_LINE>@Consumes(MediaType.TEXT_PLAIN)<NEW_LINE>@Operation(operationId = "runRuleNow", summary = "Executes actions of the rule.", responses = { @ApiResponse(responseCode = "200", description = "OK"), @ApiResponse(responseCode = "404", description = "Rule corresponding to the given UID does ... | rule = ruleRegistry.get(ruleUID); |
577,296 | private void appendGetByHashKeyMethod(StringBuilder classBuilder) {<NEW_LINE>if (schema.getHashKey() != null) {<NEW_LINE>String valueReturnType = parameterizeValue ? "V" : valueClassName;<NEW_LINE>classBuilder.append(" public " + valueReturnType + " get(");<NEW_LINE>classBuilder.append(getKeyFieldType(schema.getHash... | (", k").append(i); |
615,773 | public void destroy() {<NEW_LINE>log.log(Level.FINE, () -> sessionName + ": synchronous destroy() called");<NEW_LINE>try {<NEW_LINE>synchronized (progress.getToken()) {<NEW_LINE>synchronized (completionMonitor) {<NEW_LINE>// If we are destroying the session before it has completed (e.g. because<NEW_LINE>// waitUntilDon... | log(Level.WARNING, "Interrupted waiting for visitor session to be destroyed"); |
39,414 | public void onClick(View v) {<NEW_LINE>int parentNumber = mTestDataItemList.size() - 1;<NEW_LINE>HorizontalParent horizontalParent = mTestDataItemList.get(parentNumber);<NEW_LINE>HorizontalParent newHorizontalParent = new HorizontalParent();<NEW_LINE>newHorizontalParent.setParentText(getString(R.string.modified_parent_... | childItemList = new ArrayList<>(); |
193,477 | private static void paintOutlinedComponentImpl(Graphics2D g, int x, int y, int width, int height, float focusWidth, float focusWidthFraction, float focusInnerWidth, float borderWidth, float arc, Paint focusColor, Paint borderColor, Paint background) {<NEW_LINE>// outside bounds of the border and the background<NEW_LINE... | = height - (inset * 2); |
532,958 | public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@Audit @Name('s0') select " + "firstever(theString) as firsteverstring, " + "lastever(theString) as lasteverstring, " + "first(theString) as firststring, " + "last(theString) as laststring, " + "countever(*) as cntstar, " + "countever(intBoxed) as cnte... | "E4", 13, 130, true); |
309,566 | public void marshall(Cluster cluster, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (cluster == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(cluster.getName(), NAME_BINDING);<NEW_LINE>protocolMarshaller.m... | cluster.getLogging(), LOGGING_BINDING); |
956,652 | ActionResult<Wo> execute(EffectivePerson effectivePerson, String queryId) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wo wo = new Wo();<NEW_LINE>Business business = new Business(emc);... | emc.fetchAll(Query.class); |
1,237,709 | public void onCreate(final Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_error);<NEW_LINE>final Toolbar toolbar = findViewById(R.id.toolbar);<NEW_LINE>setSupportActionBar(toolbar);<NEW_LINE>final Intent intent = getIntent();<NEW_LINE>final ActionBar ... | copyToClipboard(this, buildMarkdown()); |
353,702 | protected JMenu buildFileMenu(JMenuItem[] exportItems) {<NEW_LINE>JMenuItem item;<NEW_LINE>JMenu fileMenu = new JMenu(Language.text("menu.file"));<NEW_LINE>item = Toolkit.newJMenuItem(Language.text("menu.file.new"), 'N');<NEW_LINE>item.addActionListener(e -> base.handleNew());<NEW_LINE>fileMenu.add(item);<NEW_LINE>item... | .text("menu.file.print"), 'P'); |
1,105,841 | public void onFileUploadDone(@NonNull String type, @NonNull String fileName, long uploadTime, @Nullable String error) {<NEW_LINE>if (item instanceof FileSettingsItem) {<NEW_LINE>FileSettingsItem fileItem = (FileSettingsItem) item;<NEW_LINE>String itemFileName = BackupHelper.getFileItemName(fileItem);<NEW_LINE>if (backu... | item, fileName, uploadTime, error); |
787,155 | public DescribeImagesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeImagesResult describeImagesResult = new DescribeImagesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe... | JsonToken token = context.getCurrentToken(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.