idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
821,736 | private void fillUpUniverseModules() {<NEW_LINE>filterValue.setEnabled(false);<NEW_LINE>moduleList.setEnabled(false);<NEW_LINE>showNonAPIModules.setEnabled(false);<NEW_LINE>matchCaseValue.setEnabled(false);<NEW_LINE>showExclModulesCheckBox.setEnabled(false);<NEW_LINE>final String lastFilter = filterValue.getText();<NEW... | setModel(UIUtil.createListWaitModel()); |
1,282,082 | private JPanel initLowerPanel() {<NEW_LINE>JPanel inner1 = new JPanel(new BorderLayout());<NEW_LINE>inner1.setOpaque(false);<NEW_LINE>JPanel analyzerName = new JPanel(new FlowLayout(FlowLayout.LEADING, 10, 2));<NEW_LINE>analyzerName.setOpaque(false);<NEW_LINE>analyzerName.add(new JLabel(MessageUtils.getLocalizedMessage... | getClass().getName()); |
603,906 | public void exitExtended_access_list_tail(Extended_access_list_tailContext ctx) {<NEW_LINE>LineAction action = toLineAction(ctx.ala);<NEW_LINE>AccessListAddressSpecifier srcAddressSpecifier = toAccessListAddressSpecifier(ctx.srcipr);<NEW_LINE>AccessListAddressSpecifier dstAddressSpecifier = toAccessListAddressSpecifier... | IPV4_ACCESS_LIST_LINE, qualifiedName, IPV4_ACCESS_LIST_LINE_SELF_REF, configLine); |
1,291,381 | private static Properties createDefaultAxisProperties() {<NEW_LINE>Properties p = new Properties();<NEW_LINE>p.put(LOG_SCALE_KEY, "false");<NEW_LINE>p.put(MINIMUM_KEY, "0");<NEW_LINE>p.put(MAXIMUM_KEY, "1");<NEW_LINE><MASK><NEW_LINE>p.put(AXIS_ATTRIBUTES_KEY + '/' + Factory.CLASS_NAME_KEY, ShapeAttributes.class.getName... | p.put(AXIS_LENGTH_KEY, "0.8"); |
715,734 | public okhttp3.Call readNamespacedDeploymentStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{nam... | localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); |
329,837 | public Answer execute(FindL2GatewayServiceCommand command, NiciraNvpResource niciraNvpResource) {<NEW_LINE>final GatewayServiceConfig config = command.getGatewayServiceConfig();<NEW_LINE>final String uuid = config.getUuid();<NEW_LINE>final String type = config.getType();<NEW_LINE>final NiciraNvpApi niciraNvpApi = nicir... | "Looking for L2 Gateway Service " + uuid + " of type " + type); |
1,317,131 | private boolean tryPropertyDefinitionByMetaIndex(String nextToken, String remaining, boolean hasRemaining) {<NEW_LINE>boolean isAll = "all".equals(nextToken);<NEW_LINE>boolean isAny = "any".equals(nextToken);<NEW_LINE>if (!hasRemaining && (isAll || isAny)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (isAll) {<NEW_LI... | || schemaOfAdditionalItems.definesProperty(remaining)); |
699,222 | private void animateScaleDownAndFadeOut(View view, int position) {<NEW_LINE>if (!mIsAnimated) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long animationDelay = 600;<NEW_LINE>animationDelay += position * 30;<NEW_LINE>ViewHelper.setScaleY(view, 1f);<NEW_LINE>ViewHelper.setScaleX(view, 1f);<NEW_LINE>ObjectAnimator scaleDown = ... | ("scaleY", 1.15f, 1.0f)); |
775,855 | private static void allTheOtherLinesGrammar(LexerfulGrammarBuilder b) {<NEW_LINE>// if-section, if-group, # ifdef/ifndef<NEW_LINE>b.rule(ifdefLine).is(b.firstOf(IFDEF, IFNDEF), b.oneOrMore(WS), IDENTIFIER, b.zeroOrMore(WS));<NEW_LINE>// if-section, else-group, #else<NEW_LINE>b.rule(elseLine).is(ELSE, b.zeroOrMore(WS));... | , b.oneOrMore(ppToken)); |
841,444 | private void purgeSystemRecords(ArrayList<String> truncatedTables) {<NEW_LINE>// temporarily disconnect from source to ease burden on server<NEW_LINE>m_source.temporarilyDisconnectSource();<NEW_LINE>resetDBObjects(DBObject_Table.class);<NEW_LINE>s_logger.log(Level.CONFIG, "");<NEW_LINE>s_logger.log(Level.CONFIG, "purge... | util.Collections.sort(v); |
1,572,459 | List<UsageConsumableInArrearTierUnitAggregate> computeToBeBilledConsumableInArrear(final LocalDate startDate, final LocalDate endDate, final RolledUpUnit roUnit, final List<UsageConsumableInArrearTierUnitAggregate> previousUsage) throws CatalogApiException {<NEW_LINE>Preconditions.checkState(isBuilt.get());<NEW_LINE>fi... | "Unknown TierBlockPolicy " + usage.getTierBlockPolicy()); |
1,419,764 | public Request<UpdateReceiptRuleRequest> marshall(UpdateReceiptRuleRequest updateReceiptRuleRequest) {<NEW_LINE>if (updateReceiptRuleRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(UpdateReceiptRuleRequest)");<NEW_LINE>}<NEW_LINE>Request<UpdateReceiptRuleRequest> request... | String ruleSetName = updateReceiptRuleRequest.getRuleSetName(); |
487,379 | final GetBuiltinIntentResult executeGetBuiltinIntent(GetBuiltinIntentRequest getBuiltinIntentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getBuiltinIntentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | endClientExecution(awsRequestMetrics, request, response); |
1,501,534 | public static void processAssemblyRecipeAddIMC(IMCEvent event, IMCMessage msg) {<NEW_LINE>boolean failed = false;<NEW_LINE>if (!msg.isNBTMessage()) {<NEW_LINE>failed = true;<NEW_LINE>} else {<NEW_LINE>NBTTagCompound recipe = msg.getNBTValue();<NEW_LINE>if (!recipe.hasKey("id") || !recipe.hasKey("input", 9) || !recipe.h... | (recipe.getCompoundTag("output")); |
160,003 | private <T> Single<T> wrapWithContext(Single<T> single) {<NEW_LINE>Map<Class<?>, Object> contextProperties = new HashMap<>();<NEW_LINE>PROPAGATION_PROVIDERS.forEach(provider -> contextProperties.put(provider.getClass(), provider.data()));<NEW_LINE>return Single.create(subscriber -> single.subscribe(new Flow.Subscriber<... | -> subscriber.onSubscribe(subscription)); |
91,010 | public void encode(ChannelHandlerContext ctx, Package pkg, ByteBuf out) throws Exception {<NEW_LINE>Preconditions.checkNotNull(pkg, "TcpPackage cannot be null");<NEW_LINE>final Header header = pkg.getHeader();<NEW_LINE>Preconditions.checkNotNull(header, "TcpPackage header cannot be null", header);<NEW_LINE>if (log.isDe... | (pkg.getBody())); |
788,923 | public void append(Key key, Value value) throws IOException {<NEW_LINE>if (key.compareTo(prevKey) < 0) {<NEW_LINE>throw new IllegalArgumentException("Keys appended out-of-order. New key " + key + ", previous key " + prevKey);<NEW_LINE>}<NEW_LINE>currentLocalityGroup.updateColumnCount(key);<NEW_LINE>if (currentLocality... | = new RelativeKey(lastKeyInBlock, key); |
1,800,790 | public static TypeReference cloneSelfType(EclipseNode context, ASTNode source) {<NEW_LINE>int pS = source == null ? 0 : source.sourceStart, pE = source == null ? 0 : source.sourceEnd;<NEW_LINE>long p = (long) pS << 32 | pE;<NEW_LINE>EclipseNode type = context;<NEW_LINE>TypeReference result = null;<NEW_LINE>while (type ... | ) type = type.up(); |
872,049 | public int add(byte[] value) {<NEW_LINE>int offsetBufferIndex = _numValues >>> OFFSET_BUFFER_SHIFT_OFFSET;<NEW_LINE>int offsetIndex = _numValues & OFFSET_BUFFER_MASK;<NEW_LINE>PinotDataBuffer offsetBuffer;<NEW_LINE>// If this is the first entry in the offset buffer, allocate a new buffer and store the end offset of the... | _offsetBuffers.set(offsetBufferIndex, offsetBuffer); |
1,533,987 | private void exportSettingsToFile() {<NEW_LINE>try {<NEW_LINE>if (Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) {<NEW_LINE>SharedPreferences prefs = <MASK><NEW_LINE>settingsPersistence.exportSettingsToFile(prefs, SettingsPersistence.DEFAULT_SETTINGS_FILE);<NEW_LINE>SnackbarManager.show(Snackbar.with(SystemSetting... | PreferenceManager.getDefaultSharedPreferences(SystemSettingsActivity.this); |
962,084 | public void init(Container container) throws Exception {<NEW_LINE>this.timerService = container.getService(TimerService.class);<NEW_LINE>this.managerWebService = container.getService(ManagerWebService.class);<NEW_LINE>this.identityService = container.getService(ManagerIdentityService.class);<NEW_LINE>this.persistenceSe... | container.getService(PersistenceService.class); |
1,555,627 | public I_AD_InfoColumn retrieveInfoColumnByColumnName(@CacheModel final I_AD_InfoWindow infoWindow, final String columnName) {<NEW_LINE>final Properties ctx = InterfaceWrapperHelper.getCtx(infoWindow);<NEW_LINE>final IQueryBuilder<I_AD_Element> addElementQueryBuilder = Services.get(IQueryBL.class).createQueryBuilder(I_... | addEqualsFilter(I_AD_Element.COLUMNNAME_ColumnName, columnName); |
446,369 | private RefactoringStatus analyzeSelection(RefactoringStatus status) {<NEW_LINE>fInputFlowContext = new <MASK><NEW_LINE>fInputFlowContext.setConsiderAccessMode(true);<NEW_LINE>fInputFlowContext.setComputeMode(FlowContext.ARGUMENTS);<NEW_LINE>InOutFlowAnalyzer flowAnalyzer = new InOutFlowAnalyzer(fInputFlowContext);<NEW... | FlowContext(0, fMaxVariableId + 1); |
1,565,784 | private HttpResponse patchVCMR(HttpRequest request, String vcmrId) {<NEW_LINE>var optionalChangeRequest = controller.curator().readChangeRequest(vcmrId);<NEW_LINE>if (optionalChangeRequest.isEmpty()) {<NEW_LINE>return <MASK><NEW_LINE>}<NEW_LINE>var changeRequest = optionalChangeRequest.get();<NEW_LINE>var inspector = i... | ErrorResponse.notFoundError("No VCMR with id: " + vcmrId); |
335,823 | private CharSequence generateComment(Context context, ObservedTextView textView, GalleryComment comment) {<NEW_LINE>Spanned sp = Html.fromHtml(comment.comment, Html.FROM_HTML_MODE_LEGACY, new URLImageGetter(textView, EhApplication.getConaco(context)), null);<NEW_LINE>SpannableStringBuilder ssb = new SpannableStringBuil... | score : Integer.toString(score); |
63,889 | protected void updateModel(DataContext dataContext) {<NEW_LINE>if (LaterInvocator.isInModalContext() || (updated && !isFixedComponent))<NEW_LINE>return;<NEW_LINE>if (dataContext.getData(PlatformDataKeys.CONTEXT_COMPONENT) instanceof NavBarPanel)<NEW_LINE>return;<NEW_LINE>NavBarModelExtension ownerExtension = null;<NEW_... | (Collections.singletonList(root)); |
199,307 | public static void main(String[] args) throws IOException, ClassNotFoundException {<NEW_LINE>// Write V1<NEW_LINE>var fishV1 = new RainbowFish("Zed", 10, 11, 12);<NEW_LINE>LOGGER.info("fishV1 name={} age={} length={} weight={}", fishV1.getName(), fishV1.getAge(), fishV1.getLengthMeters(), fishV1.getWeightTons());<NEW_L... | RainbowFishSerializer.writeV2(fishV2, "fish2.out"); |
1,773,883 | private static void evaluateNarlsAgainstTruth(final SVIntervalTree<String> narlyBreakpoints, final SVIntervalTree<String> trueBreakpoints, final Logger localLogger) {<NEW_LINE>final float falsePos = 1.f - narlyBreakpoints.overlapFraction(trueBreakpoints);<NEW_LINE>final int nNarly = narlyBreakpoints.size();<NEW_LINE>lo... | ) + "/" + nNarly + ")"); |
415,344 | public static void vertical(Kernel1D_S32 kernel, GrayS32 input, GrayS32 output) {<NEW_LINE>final int offset = kernel.getOffset();<NEW_LINE>final <MASK><NEW_LINE>final int height = input.getHeight();<NEW_LINE>for (int y = 0; y < height; y++) {<NEW_LINE>for (int x = 0; x < width; x++) {<NEW_LINE>int total = 0;<NEW_LINE>i... | int width = input.getWidth(); |
932,474 | public void delete(Key key) {<NEW_LINE>if (key == null) {<NEW_LINE>throw new IllegalArgumentException("Argument to delete() cannot be null");<NEW_LINE>}<NEW_LINE>if (!contains(key)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>resetTimers();<NEW_LINE>long initTime = System.nanoTime();<NEW_LINE>int tableIndex = hash(key);<NEW... | put(keyToRedo, valueToRedo, false); |
1,140,941 | public static synchronized void doPatch(String className, ClassMethod[] classMethods) {<NEW_LINE>ClassPool classPool = ClassPool.getDefault();<NEW_LINE>try {<NEW_LINE>CtClass cls = classPool.get(className);<NEW_LINE>for (ClassMethod classMethod : classMethods) {<NEW_LINE>String method = classMethod.method;<NEW_LINE>CtM... | String[] params = classMethod.params; |
995,818 | KeyVaultClient build() {<NEW_LINE>SecretClientBuilder builder = getBuilder();<NEW_LINE>AppConfigManagedIdentityProperties msiProps = properties.getManagedIdentity();<NEW_LINE>String fullUri = "https://" + uri.getHost();<NEW_LINE>if (tokenCredential != null && msiProps != null) {<NEW_LINE>throw new IllegalArgumentExcept... | ()).build()); |
1,083,169 | private void writeTomcatInformations(List<TomcatInformations> tomcatInformationsList) throws IOException {<NEW_LINE>final List<TomcatInformations> list = new ArrayList<>();<NEW_LINE>for (final TomcatInformations tomcatInformations : tomcatInformationsList) {<NEW_LINE>if (tomcatInformations.getRequestCount() > 0) {<NEW_... | (tomcatInformations.getMaxTime())); |
71,401 | public GenericResponse deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {<NEW_LINE>GenericResponse response = new GenericResponse();<NEW_LINE>Map<String, Object> map = new HashMap<String, Object>();<NEW_LINE>JsonObject jsonObject = jsonElem... | description = jsonObject.get("description"); |
675,310 | private static LIRGenerationResult emitLowLevel(TargetDescription target, LIRGenerationResult lirGenRes, LIRGeneratorTool lirGen, LIRSuites lirSuites, RegisterAllocationConfig registerAllocationConfig, CodeEmissionOrder<?> blockOrder) {<NEW_LINE>DebugContext debug = lirGenRes<MASK><NEW_LINE>PreAllocationOptimizationCon... | .getLIR().getDebug(); |
996,902 | public static void applyOptions(boolean holdConsole, boolean isReport) {<NEW_LINE>int style = Font.PLAIN;<NEW_LINE>if (ConfigOptions.bBold.booleanValue()) {<NEW_LINE>style += Font.BOLD;<NEW_LINE>}<NEW_LINE>if (ConfigOptions.bItalic.booleanValue()) {<NEW_LINE>style += Font.ITALIC;<NEW_LINE>}<NEW_LINE>GC.font = new Font(... | .FETCHCOUNT = iFetchCount.intValue(); |
1,574,685 | public Object toCompleteResponse(String rootUrl) {<NEW_LINE>Map<String, Object> realTextures = new HashMap<>();<NEW_LINE>if (skin != null && skin.getSkin() != null) {<NEW_LINE>if (skin.getModel() == TextureModel.ALEX) {<NEW_LINE>realTextures.put("SKIN", mapOf(pair("url", rootUrl + "/textures/" + skin.getSkin().getHash(... | , pair("textures", realTextures)); |
1,077,188 | static List<Mat> applySortedIndsToElements(List<Mat> mats, Mat sortedInds) {<NEW_LINE>int nChannels = mats.get(0).channels();<NEW_LINE>int nRows = mats.get(0).rows();<NEW_LINE>int nCols = mats.get(0).cols();<NEW_LINE>int nImages = mats.size();<NEW_LINE>assert sortedInds.cols() == nImages;<NEW_LINE>assert sortedInds.row... | indexers = new ArrayList<>(); |
1,385,223 | public int swimInWater(int[][] grid) {<NEW_LINE>int len = grid.length;<NEW_LINE>if (len == 1) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>var seen = new boolean[len][len];<NEW_LINE>seen[0][0] = true;<NEW_LINE>var minHeap = new PriorityQueue<Integer[]>((a, b) -> a[0] - b[0]);<NEW_LINE>minHeap.add(new Integer[] { grid[0][<M... | 0], 0, 0 }); |
600,209 | public void removeTag(IIdType theId, TagTypeEnum theTagType, String theScheme, String theTerm, RequestDetails theRequest) {<NEW_LINE>// Notify interceptors<NEW_LINE>if (theRequest != null) {<NEW_LINE>ActionRequestDetails requestDetails = new ActionRequestDetails(theRequest, getResourceName(), theId);<NEW_LINE>notifyInt... | .code(1999) + theId); |
1,052,536 | private HiveConf configure() throws Exception {<NEW_LINE>String scratchDir = NTFSLocalFileSystem.SCRATCH_DIR;<NEW_LINE>File scratchDirFile = new File(scratchDir);<NEW_LINE>TestUtils.delete(scratchDirFile);<NEW_LINE>Configuration cfg = new Configuration();<NEW_LINE>HiveConf conf = new HiveConf(cfg, HiveConf.class);<NEW_... | SessionState.class.getDeclaredField("tss"); |
1,358,317 | protected ExtensionElement parseExtensionElement(XMLStreamReader xtr) throws Exception {<NEW_LINE>ExtensionElement extensionElement = new ExtensionElement();<NEW_LINE>extensionElement.setName(xtr.getLocalName());<NEW_LINE>if (StringUtils.isNotEmpty(xtr.getNamespaceURI())) {<NEW_LINE>extensionElement.setNamespace(xtr.ge... | setNamespacePrefix(xtr.getPrefix()); |
1,297,709 | public static final long[] readThisLongArrayXml(XmlPullParser parser, String endTag, String[] name) throws XmlPullParserException, java.io.IOException {<NEW_LINE>int num;<NEW_LINE>try {<NEW_LINE>num = Integer.parseInt(parser.getAttributeValue(null, "num"));<NEW_LINE>} catch (NullPointerException e) {<NEW_LINE>throw new... | int eventType = parser.getEventType(); |
868,064 | private static void updateProjectSettings(Project project, BlazeProjectData blazeProjectData) {<NEW_LINE>KotlinToolchainIdeInfo kotlinToolchainIdeInfo = findToolchain(blazeProjectData.getTargetMap());<NEW_LINE>if (kotlinToolchainIdeInfo == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LanguageVersion languageLevel = get... | .join(" ", commonFlags)); |
452,439 | public List<OptExpression> transform(OptExpression input, OptimizerContext context) {<NEW_LINE>LogicalAggregationOperator aggregationOperator = (LogicalAggregationOperator) input.getOp();<NEW_LINE>Map<ColumnRefOperator, CallOperator> newAggMap = Maps.newHashMap();<NEW_LINE>for (Map.Entry<ColumnRefOperator, CallOperator... | ).getFunction(searchDesc, IS_NONSTRICT_SUPERTYPE_OF); |
1,588,052 | public ModelAndView login(HttpServletRequest request, HttpServletResponse response) {<NEW_LINE>// Auto-login if "user" and "password" parameters are given.<NEW_LINE>String username = request.getParameter("user");<NEW_LINE>String password = request.getParameter("password");<NEW_LINE>if (username != null && password != n... | ModelAndView("login", "model", map); |
536,706 | public String decodeValue(int dataType, int data) {<NEW_LINE>switch(dataType) {<NEW_LINE>case TYPE_NULL:<NEW_LINE>return null;<NEW_LINE>case TYPE_STRING:<NEW_LINE>return strings[data];<NEW_LINE>case TYPE_INT_DEC:<NEW_LINE>return Integer.toString(data);<NEW_LINE>case TYPE_INT_HEX:<NEW_LINE>return "0x" + Integer.toHexStr... | .toHexString(dataType), data); |
548,765 | public synchronized void fail(String reason) {<NEW_LINE>boolean wasRunning = (status == Status.RUNNING);<NEW_LINE>this.reason = reason;<NEW_LINE>status = Status.FAILED;<NEW_LINE>if (!wasRunning) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (testCaseStarter != null) {<NEW_LINE>testCaseStarter.stop();<NEW_LINE>}<NEW_LINE>St... | listener.loadTestStopped(this, context); |
1,014,662 | void updatePaintContent() {<NEW_LINE>if (origForeground == null) {<NEW_LINE>origForeground = getForeground();<NEW_LINE>}<NEW_LINE>boolean isDisabled = paintState == EdgeWidget.DISABLED;<NEW_LINE>Color foreC = origForeground;<NEW_LINE>if (paintState == EdgeWidget.GRAYED || isDisabled) {<NEW_LINE>foreC = UIManager.getCol... | .createLineBorder(10, foreC)); |
1,293,532 | private Object doLoad() {<NEW_LINE>if (updateCheckMode == NONE) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>SplashScreen.stage(0, null, "Fetching applet viewer config");<NEW_LINE>RSConfig config = downloadConfig();<NEW_LINE>SplashScreen.stage(.05, null, "Waiting for other clients to start");<NEW_LINE>LOC... | .getParentFile().mkdirs(); |
1,258,766 | public void testContextInfoExactMatchDisableDefault() throws Exception {<NEW_LINE>CommonTasks.writeLogMsg(Level.INFO, "**** >>>>> server configuration thresholds for - <global - slow : 5s , hung : 10s> <timing - Slow : 120s , hung : 120s>");<NEW_LINE>server.setServerConfigurationFile("contextInfoPattern/server_timing_7... | assertTrue("Test did not run long enough (elapsedSeconds)", elapsedSeconds >= 12); |
1,561,445 | public static EnumValue resolveIdentAsEnum(String constant, ClasspathImportServiceCompileTime classpathImportService, ClasspathExtensionClass classpathExtension, boolean isAnnotation) {<NEW_LINE>int lastDotIndex = constant.lastIndexOf('.');<NEW_LINE>if (lastDotIndex == -1) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>St... | field = clazz.getField(constName); |
946,544 | private final void logSecretKeyInitResult() {<NEW_LINE>ArrayList<Secret> secretSet = m_secretSet;<NEW_LINE>if (secretSet == null) {<NEW_LINE>if (s_logger.isErrorEnabled()) {<NEW_LINE>s_logger.error("error.sip.outbound.failure", null, null);<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>if (s_logger.isInfoEnabled()) {<NEW_LINE>... | StringBuilder b = new StringBuilder(1024); |
133,603 | private void decodeRowDescription(ByteBuf in) {<NEW_LINE>PgColumnDesc[] columns = new PgColumnDesc[in.readUnsignedShort()];<NEW_LINE>for (int c = 0; c < columns.length; ++c) {<NEW_LINE>String fieldName = Util.readCStringUTF8(in);<NEW_LINE>int tableOID = in.readInt();<NEW_LINE>short columnAttributeNumber = in.readShort(... | short typeSize = in.readShort(); |
69,979 | public void showBroadcastNotifications(final RequestContext context) {<NEW_LINE>final Request request = context.getRequest();<NEW_LINE>final JSONObject currentUser = Sessions.getUser();<NEW_LINE>if (null == currentUser) {<NEW_LINE>context.sendError(403);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final AbstractFreeMarkerRend... | ) recordCnt / (double) pageSize); |
1,495,879 | public Sequence<T> run(final QueryPlus<T> queryPlus, ResponseContext responseContext) {<NEW_LINE>final Query<T> query = queryPlus.getQuery();<NEW_LINE>final boolean isBySegment = QueryContexts.isBySegment(query);<NEW_LINE>final boolean shouldFinalize = QueryContexts.isFinalize(query, true);<NEW_LINE>final Query<T> quer... | queryToRun), responseContext), finalizerFn); |
316,750 | public static DetectSpineMRIResponse unmarshall(DetectSpineMRIResponse detectSpineMRIResponse, UnmarshallerContext _ctx) {<NEW_LINE>detectSpineMRIResponse.setRequestId(_ctx.stringValue("DetectSpineMRIResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>List<Disc> discs = new ArrayList<Disc>();<NEW_LINE>for ... | ("DetectSpineMRIResponse.Data.Discs[" + i + "].Identification")); |
1,309,967 | public static byte[] encodeAsBytes(byte[] inArray) {<NEW_LINE>// Output string must be 4 * floor((n+2)/3) large<NEW_LINE>byte[] out = new byte[4 * ((inArray.length + 2) / 3)];<NEW_LINE>// Create padded input array with the next largest length that is a multiple of 3<NEW_LINE>byte[] in = new byte[(inArray.length + 2) / ... | in, 0, inArray.length); |
1,336,786 | private void addRestParam(BIRFunction birFunc, BVarSymbol paramSymbol, Location pos) {<NEW_LINE>BIRFunctionParameter birVarDcl = new BIRFunctionParameter(pos, paramSymbol.type, this.env.nextLocalVarId(names), VarScope.FUNCTION, VarKind.ARG, paramSymbol.name.value, false);<NEW_LINE>birFunc.parameters.put(birVarDcl, new ... | symbolVarMap.put(paramSymbol, birVarDcl); |
30,094 | public static RateGalleryParser.Result rateGallery(@Nullable EhClient.Task task, OkHttpClient okHttpClient, long apiUid, String apiKey, long gid, String token, float rating) throws Throwable {<NEW_LINE>final JSONObject json = new JSONObject();<NEW_LINE><MASK><NEW_LINE>json.put("apiuid", apiUid);<NEW_LINE>json.put("apik... | json.put("method", "rategallery"); |
1,004,165 | public static List<FavouritePoint> asFavourites(OsmandApplication app, List<WptPt> wptPts, String fileName, boolean forceImportFavourites) {<NEW_LINE>List<FavouritePoint> favourites = new ArrayList<>();<NEW_LINE>for (WptPt p : wptPts) {<NEW_LINE>if (Algorithms.isEmpty(p.name)) {<NEW_LINE>p.name = app.getString(R.string... | point.setDescription(p.desc); |
872,357 | public void postComment(View view) {<NEW_LINE>if (dribbblePrefs.isLoggedIn()) {<NEW_LINE>if (TextUtils.isEmpty(enterComment.getText()))<NEW_LINE>return;<NEW_LINE>enterComment.setEnabled(false);<NEW_LINE>dribbbleApi.postComment(shot.id, enterComment.getText().toString().trim(), new retrofit.Callback<Comment>() {<NEW_LIN... | , R.color.background_light)); |
1,390,876 | public void traceExecution(final MessageFrame messageFrame, final ExecuteOperation executeOperation) {<NEW_LINE>final Operation currentOp = messageFrame.getCurrentOperation();<NEW_LINE>int pc = messageFrame.getPC();<NEW_LINE>int opcode = currentOp.getOpcode();<NEW_LINE>String remainingGas = shortNumber(messageFrame.get... | >(messageFrame.stackSize()); |
1,697,308 | private Path createEncryptionFolder(Path encFolder) throws IOException {<NEW_LINE>Files.createDirectories(encFolder);<NEW_LINE>if (Util.getOperatingSystem() == Util.OperatingSystem.WINDOWS)<NEW_LINE>Files.<MASK><NEW_LINE>Path readme = encFolder.resolve("READ ME I AM VERY IMPORTANT.txt");<NEW_LINE>String readmeText = "D... | setAttribute(encFolder, "dos:hidden", true); |
1,706,738 | private List<com.dianping.cat.home.service.entity.Domain> sort(ServiceReport serviceReport, final String sortBy) {<NEW_LINE>List<com.dianping.cat.home.service.entity.Domain> result = new ArrayList<com.dianping.cat.home.service.entity.Domain>(serviceReport.getDomains().values());<NEW_LINE>Collections.sort(result, new Co... | () - d1.getTotalCount(); |
187,292 | public static SubscriptionCriteria parse(String theCriteria) {<NEW_LINE>String criteria = trim(theCriteria);<NEW_LINE>if (isBlank(criteria)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (criteria.startsWith(Constants.SUBSCRIPTION_MULTITYPE_PREFIX)) {<NEW_LINE>if (criteria.endsWith(Constants.SUBSCRIPTION_MULTITYPE_SUF... | .setTrimmerMatcher(new StringTrimmingTrimmerMatcher()); |
1,832,167 | public net.osmand.binary.OsmandOdb.IndexedStringTable buildPartial() {<NEW_LINE>net.osmand.binary.OsmandOdb.IndexedStringTable result = new net.osmand.<MASK><NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>to_bitField0_ |... | binary.OsmandOdb.IndexedStringTable(this); |
275,500 | public String renderToJson(byte[] name) {<NEW_LINE>StringBuilder sb = new StringBuilder("{");<NEW_LINE>int offset = 0;<NEW_LINE>Iterator<NameComponentDescription> it = rowParts.iterator();<NEW_LINE>byte[] flippedName = null;<NEW_LINE>while (it.hasNext()) {<NEW_LINE>NameComponentDescription component = it.next();<NEW_LI... | ).append(parse.lhSide); |
1,684,359 | public int execute() throws IOException {<NEW_LINE>input.getLocalRegistry().verifyAdministratorAccess();<NEW_LINE>ProcessBuilder pb = new ProcessBuilder();<NEW_LINE>List<String> commandLine = new ArrayList<>();<NEW_LINE>// enforce relative path<NEW_LINE>Path toolPath = findNativeImagePath(input, feedback);<NEW_LINE>if ... | ioWriter = connectors.submit(rw); |
1,406,097 | private CompiledQuery vacuum(SqlExecutionContext executionContext) throws SqlException {<NEW_LINE>CharSequence tok = expectToken(lexer, "'partitions'");<NEW_LINE>if (isPartitionsKeyword(tok)) {<NEW_LINE>CharSequence tableName = expectToken(lexer, "table name");<NEW_LINE>tableName = GenericLexer.assertNoDotsAndSlashes(G... | eol = SqlUtil.fetchNext(lexer); |
916,148 | final AddFlowMediaStreamsResult executeAddFlowMediaStreams(AddFlowMediaStreamsRequest addFlowMediaStreamsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(addFlowMediaStreamsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "AddFlowMediaStreams"); |
1,650,931 | private void partialDirRefresh(@Nonnull VirtualDirectoryImpl dir, @Nonnull RefreshContext refreshContext) {<NEW_LINE>while (true) {<NEW_LINE>// obtaining directory snapshot<NEW_LINE>Pair<List<VirtualFile>, List<String>> result = ReadAction.compute(() -> pair(dir.getCachedChildren()<MASK><NEW_LINE>List<VirtualFile> cach... | , dir.getSuspiciousNames())); |
1,340,681 | public void execute() {<NEW_LINE>try {<NEW_LINE>UserVm <MASK><NEW_LINE>if (userVm == null) {<NEW_LINE>throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to move vm");<NEW_LINE>}<NEW_LINE>UserVmResponse response = _responseGenerator.createUserVmResponse(ResponseView.Full, "virtualmachine", userVm).get(0);... | userVm = _userVmService.moveVMToUser(this); |
1,049,301 | private void initialize(ULocale locale) {<NEW_LINE>ICUResourceBundle bundle = (ICUResourceBundle) ICUResourceBundle.getBundleInstance(ICUData.ICU_ZONE_BASE_NAME, locale);<NEW_LINE>_zoneStrings = (ICUResourceBundle) bundle.get(ZONE_STRINGS_BUNDLE);<NEW_LINE>// TODO: Access is synchronized, can we use a non-concurrent ma... | tzCanonicalID = ZoneMeta.getCanonicalCLDRID(tz); |
1,779,699 | public static ErrorDescription apply(HintContext hc) {<NEW_LINE>if (hc.isCanceled()) {<NEW_LINE>// NOI18N<NEW_LINE>// we pass only if it is an annotation<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final JPAProblemContext ctx = ModelUtils.getOrCreateCachedContext(hc);<NEW_LINE>if (ctx == null || hc.isCanceled()) {<NEW_LI... | TreePath par = hc.getPath(); |
1,036,427 | protected Long countCompletedWork(Business business, DateRange dateRange, String applicationId, String processId, String unit, String person) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(WorkCompleted.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>Criteri... | ().listWithUnitSubNested(unit)); |
18,354 | public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {<NEW_LINE>String mname = method.getName();<NEW_LINE>if (mname.equals("toString")) {<NEW_LINE>return "SpunPhadhailListener<" + l + ">";<NEW_LINE>} else if (mname.equals("equals")) {<NEW_LINE>return args[0] == l ? Boolean.TRUE : Boolean.FA... | assert EventQueue.isDispatchThread() : mname; |
1,357,434 | protected void loadKeys() {<NEW_LINE>if (config.getConfigurationSection("Hostile") != null) {<NEW_LINE>backup();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (String entityName : config.getKeys(false)) {<NEW_LINE>Class<?> clazz = null;<NEW_LINE>String className = config.getString(entityName + ".Class", "");<NEW_LINE>try {<... | config.getInt(entityName + ".Taming_XP"); |
1,247,093 | private Transfer initTransfer(ConnectionInfo ci, String db, String server) throws IOException {<NEW_LINE>Socket socket = NetUtils.createSocket(server, Constants.DEFAULT_TCP_PORT, ci.isSSL(), ci.getProperty("NETWORK_TIMEOUT", 0));<NEW_LINE>Transfer trans = new Transfer(this, socket);<NEW_LINE>trans.setSSL(ci.isSSL());<N... | trans.writeInt(Constants.TCP_PROTOCOL_VERSION_MIN_SUPPORTED); |
120,244 | public void startSignIn(@NonNull PhoneAuthCredential credential, @NonNull final IdpResponse response) {<NEW_LINE>if (!response.isSuccessful()) {<NEW_LINE>setResult(Resource.forFailure(response.getError()));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!response.getProviderType().equals(PhoneAuthProvider.PROVIDER_ID)) {<NEW... | ) e).getUpdatedCredential()); |
793,943 | public ExportBackupPlanTemplateResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ExportBackupPlanTemplateResult exportBackupPlanTemplateResult = new ExportBackupPlanTemplateResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalD... | String currentParentElement = context.getCurrentParentElement(); |
493,583 | public <T extends AsyncAPI> T updateAsyncAPIResult(AsyncAPIResult asyncAPIResult, String asyncAPIId, Class<T> type) {<NEW_LINE>log.debug("updateAsyncAPIResult");<NEW_LINE>T queryObj = (T) executeInTransaction(dataStore, (tx, scope) -> {<NEW_LINE>EntityProjection asyncAPIIterable = EntityProjection.builder().type(type).... | query.setStatus(QueryStatus.COMPLETE); |
657,983 | public static GeneratedType fromTypeDeclaration(AbstractTypeDeclaration typeNode) {<NEW_LINE>TypeElement typeElement = typeNode.getTypeElement();<NEW_LINE>CompilationUnit unit = TreeUtil.getCompilationUnit(typeNode);<NEW_LINE>NameTable nameTable = unit.getEnv().nameTable();<NEW_LINE>boolean emitLineDirectives = unit.ge... | > superTypes = ImmutableList.builder(); |
814,375 | private void callDBFunctionUntilDone(final String dbFunctionName, final int maxUpdates, final boolean vacuum) {<NEW_LINE>final Mutable<Boolean> done = new Mutable<>(false);<NEW_LINE>final Mutable<Integer> updates = new Mutable<>(0);<NEW_LINE>final Mutable<String> lastTableName = new Mutable<>();<NEW_LINE>final Mutable<... | = new Mutable<>(0); |
1,629,703 | private void wado() throws Exception {<NEW_LINE>ImagingDocumentSourcePortType port = port();<NEW_LINE>if (rendered) {<NEW_LINE>RetrieveRenderedImagingDocumentSetResponseType retrieveRenderedImagingDocumentSetResponseType = port.imagingDocumentSourceRetrieveRenderedImagingDocumentSet(createRetrieveRenderedImagingDocumen... | > documentResponse = retrieveDocumentSetResponseType.getDocumentResponse(); |
209,367 | public static void main(final String... args) throws Exception {<NEW_LINE>Swift2ThriftGeneratorCommandLineConfig cliConfig = new Swift2ThriftGeneratorCommandLineConfig();<NEW_LINE>JCommander jCommander = new JCommander(cliConfig, args);<NEW_LINE>jCommander.setProgramName(Swift2ThriftGenerator.class.getSimpleName());<NE... | namespaceMapBuilder.put(key, value); |
123,645 | public StartDocumentAnalysisResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StartDocumentAnalysisResult startDocumentAnalysisResult = new StartDocumentAnalysisResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentE... | JsonToken token = context.getCurrentToken(); |
1,434,916 | public void onScrolled(@NonNull @NotNull RecyclerView recyclerView, int dx, int dy) {<NEW_LINE>super.onScrolled(recyclerView, dx, dy);<NEW_LINE>mEmojiPalettesAdapter.onPageScrolled();<NEW_LINE>final <MASK><NEW_LINE>final int extent = recyclerView.computeVerticalScrollExtent();<NEW_LINE>final int range = recyclerView.co... | int offset = recyclerView.computeVerticalScrollOffset(); |
1,093,427 | private void updateShippingPackageFromPackage(final I_M_ShippingPackage shippingPackage, final I_M_Package mpackage) {<NEW_LINE>shippingPackage.setM_Package_ID(mpackage.getM_Package_ID());<NEW_LINE>shippingPackage.setC_BPartner_ID(mpackage.getC_BPartner_ID());<NEW_LINE>shippingPackage.setC_BPartner_Location_ID(mpackage... | getM_InOut().getC_BPartner_Location_ID()); |
1,225,298 | void addWire(Circuit dest, CircuitMutator mutator, Element elt) throws XmlReaderException {<NEW_LINE>Location pt0;<NEW_LINE>try {<NEW_LINE>final var str = elt.getAttribute("from");<NEW_LINE>if (str == null || "".equals(str)) {<NEW_LINE>throw new XmlReaderException<MASK><NEW_LINE>}<NEW_LINE>pt0 = Location.parse(str);<NE... | (S.get("wireStartMissingError")); |
1,748,374 | public synchronized void draw(BoundingBox boundingBox, byte zoomLevel, Canvas canvas, Point topLeftPoint) {<NEW_LINE>if (this.latLong == null || this.bitmap == null || this.bitmap.isDestroyed()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long mapSize = MercatorProjection.getMapSize(zoomLevel, this.displayModel.getTileSize(... | .bitmap.getHeight() / 2; |
865,635 | final ListFirewallsResult executeListFirewalls(ListFirewallsRequest listFirewallsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listFirewallsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ListFirewallsRequest> request = null;<NE... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
245,364 | private static int countDataFiles(TOTorrent torrent, String torrent_save_dir, String torrent_save_file) {<NEW_LINE>try {<NEW_LINE>int res = 0;<NEW_LINE>LocaleUtilDecoder locale_decoder = LocaleTorrentUtil.getTorrentEncoding(torrent);<NEW_LINE>TOTorrentFile[<MASK><NEW_LINE>for (int i = 0; i < files.length; i++) {<NEW_LI... | ] files = torrent.getFiles(); |
838,821 | private Object constructObject(UserConfigurationDictionaryObjectType type, List<String> value, EwsServiceXmlReader reader) {<NEW_LINE>EwsUtilities.ewsAssert(<MASK><NEW_LINE>EwsUtilities.ewsAssert((value.size() == 1 || type == UserConfigurationDictionaryObjectType.StringArray), "UserConfigurationDictionary.ConstructObje... | value != null, "UserConfigurationDictionary.ConstructObject", "value is null"); |
1,539,218 | public void writeInt(int index, int numBitsPerValue, int value) {<NEW_LINE>long bitOffset = (long) index * numBitsPerValue;<NEW_LINE>int byteOffset = (int) (bitOffset / Byte.SIZE);<NEW_LINE>int bitOffsetInFirstByte = (int) (bitOffset % Byte.SIZE);<NEW_LINE>int firstByte = _dataBuffer.getByte(byteOffset);<NEW_LINE>int f... | ) (value >> numBitsLeft)); |
610,586 | ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, String path0, String path1, String path2, String path3, String path4, String path5, JsonElement jsonElement) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wo wo = new Wo();<NEW_LINE>String executorSeed = null;<NE... | .toList(WorkCompleted.job_FIELDNAME)); |
1,726,326 | protected void updateSubBatch(Geometry bg) {<NEW_LINE>Batch batch = batchesByGeom.get(bg);<NEW_LINE>if (batch != null) {<NEW_LINE>Mesh mesh <MASK><NEW_LINE>Mesh origMesh = bg.getMesh();<NEW_LINE>VertexBuffer pvb = mesh.getBuffer(VertexBuffer.Type.Position);<NEW_LINE>VertexBuffer nvb = mesh.getBuffer(VertexBuffer.Type.N... | = batch.geometry.getMesh(); |
751,048 | public Object execute(final Map<Object, Object> iArgs) {<NEW_LINE>if (newRecords == null && content == null && subQuery == null)<NEW_LINE>throw new OCommandExecutionException("Cannot execute the command because it has not been parsed yet");<NEW_LINE>final OCommandParameters commandParameters = new OCommandParameters(iA... | result.put(KEYWORD_KEY, indexKey); |
1,761,272 | public boolean isValid() {<NEW_LINE>boolean isValid = true;<NEW_LINE>// file<NEW_LINE>String fileName = fileTextField.getText();<NEW_LINE>if (fileName == null || fileName.trim().length() == 0) {<NEW_LINE>setErrorMessage(Bundle.CustomizerController_invalid_file());<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>File file = ... | setErrorMessage(Bundle.CustomizerController_invalid_file()); |
1,638,112 | protected void onCreate(@Nullable @org.jetbrains.annotations.Nullable Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>Bundle extra = getIntent().getExtras();<NEW_LINE>String prelayout = extra.getString(Utils.KEY);<NEW_LINE>layout_name = prelayout;<NEW_LINE>Context ctx = getApplication... | logStack(TAG, "", 19); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.