idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
628,920 | protected ByteBuffer control(EPID caller, int command, ByteBuffer cmd) throws Pausable {<NEW_LINE>switch(command) {<NEW_LINE>case INFLATE_INIT:<NEW_LINE>{<NEW_LINE>this.inflater = new Inflater();<NEW_LINE>this.inflater.inflateInit(true);<NEW_LINE>return reply_ok();<NEW_LINE>}<NEW_LINE>case INFLATE_INIT2:<NEW_LINE>{<NEW... | int level = cmd.getInt(); |
1,422,223 | private static void runAssertion(RegressionEnvironment env, String eventTypeName, RegressionPath path) {<NEW_LINE>String xml = "<Event IsTriggering=\"True\">\n" + "<Field Name=\"A\" Value=\"987654321\"/>\n" + "<Field Name=\"B\" Value=\"2196958725202\"/>\n" + "<Field Name=\"C\" Value=\"1232363702\"/>\n" + "<Participants... | + "<Field Name=\"D\" Value=\"353263010930650\"/>\n" + "</Participant>\n" + "</Participants>\n" + "</Event>"; |
605,346 | private SAML11AssertionType parseBaseAttributes(StartElement nextElement) throws ParsingException {<NEW_LINE>Attribute idAttribute = nextElement.getAttributeByName(new QName(SAML11Constants.ASSERTIONID));<NEW_LINE>if (idAttribute == null)<NEW_LINE>throw logger.parserRequiredAttribute("AssertionID");<NEW_LINE>String id ... | new QName(SAML11Constants.MAJOR_VERSION)); |
1,362,149 | public com.amazonaws.services.cloudtrail.model.TrailNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.cloudtrail.model.TrailNotFoundException trailNotFoundException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = context.getCurre... | cloudtrail.model.TrailNotFoundException(null); |
1,377,612 | protected void configureGraphicalViewer() {<NEW_LINE>super.configureGraphicalViewer();<NEW_LINE>this.getGraphicalViewer().getControl().setBackground(UIUtils.getColorRegistry().get(ERDUIConstants.COLOR_ERD_DIAGRAM_BACKGROUND));<NEW_LINE>GraphicalViewer graphicalViewer = getGraphicalViewer();<NEW_LINE>DBPPreferenceStore ... | (editDomain.getPaletteViewer())); |
385,429 | public int numDecodings(String s) {<NEW_LINE>if (s == null || s.length() == 0) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>char[] chars = s.toCharArray();<NEW_LINE>int[] memo = new <MASK><NEW_LINE>memo[chars.length] = 1;<NEW_LINE>int before = 0;<NEW_LINE>for (int i = chars.length - 1; i >= 0; i--) {<NEW_LINE>int curNum = ... | int[chars.length + 2]; |
843,609 | public static <T> ProcessorMetaSupplier streamJmsTopicP(@Nullable String destination, boolean isSharedConsumer, @Nonnull ProcessingGuarantee maxGuarantee, @Nonnull EventTimePolicy<? super T> eventTimePolicy, @Nonnull SupplierEx<? extends Connection> newConnectionFn, @Nonnull FunctionEx<? super Session, ? extends Messag... | pSupplier, newUnsecureUuidString(), permission); |
1,464,500 | protected void internalRollback(Xid xid) throws XAException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "internalRollback", xid);<NEW_LINE>try {<NEW_LINE>CommsByteBuffer request = getCommsByteBuffer();<NEW_LINE>request.putInt(getTransactionId());<NEW_LINE>r... | (isMSResource ? 0x01 : 0x00)); |
653,062 | private void predictSubXFullYUnSafe(byte[] ref, int rx, int ix, int ry, int refW, int refH, int refVertStep, int refVertOff, int[] tgt, int tgtY, int tgtW, int tgtH, int tgtVertStep) {<NEW_LINE>int[] coeff = COEFF[ix];<NEW_LINE>int tgtOff = tgtW * tgtY;<NEW_LINE>int lfTgt = tgtVertStep * tgtW;<NEW_LINE>for (int i = 0; ... | coeff) + 64) >> 7; |
1,066,966 | public void openJuliLog() {<NEW_LINE>// ensure only one thread will be opened<NEW_LINE>synchronized (juliLogLock) {<NEW_LINE>if (juliLogViewer == null || !juliLogViewer.isOpen()) {<NEW_LINE>if (juliLogViewer != null) {<NEW_LINE>juliLogViewer.removeAllLogViewerStopListener();<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>TomcatPro... | "localhost.", null, true, false); |
1,172,155 | private void addDyeRecipes(Consumer<FinishedRecipe> consumer, String basePath) {<NEW_LINE>// Black<NEW_LINE>dye(consumer, basePath, Items.BLACK_DYE, <MASK><NEW_LINE>// Blue<NEW_LINE>dye(consumer, basePath, Items.BLUE_DYE, false, EnumColor.DARK_BLUE, "blue_dye");<NEW_LINE>dye(consumer, basePath, Items.BLUE_DYE, true, En... | false, EnumColor.BLACK, "black_dye"); |
1,691,872 | private ModifiersTree changeModifiers(ModifiersTree modifiersTree, boolean usageOutsideOfPackage, boolean usageOutsideOfType) {<NEW_LINE>final Set<Modifier> flags = modifiersTree.getFlags();<NEW_LINE>Set<Modifier> newModifiers = flags.isEmpty() ? EnumSet.noneOf(Modifier.class) : EnumSet.copyOf(flags);<NEW_LINE>switch(v... | newModifiers.add(Modifier.PRIVATE); |
396,005 | public void init(ServletConfig servletConfig) throws ServletException {<NEW_LINE>super.init(servletConfig);<NEW_LINE>ConfigManager config = (ConfigManager) getServletContext().getAttribute(ConfigManager.CONFIG_MANAGER);<NEW_LINE>enabled = !config.getBoolean(DISABLE_PROXY, false);<NEW_LINE>if (!enabled) {<NEW_LINE>LOG.i... | = new ProxyAllowlist(allowlistStr, probeLocal); |
1,764,982 | public static // fun_name? argument_definition_list clause_guard? clause_body<NEW_LINE>boolean fun_clause(PsiBuilder b, int l) {<NEW_LINE>if (!recursion_guard_(b, l, "fun_clause"))<NEW_LINE>return false;<NEW_LINE>if (!nextTokenIs(b, "<fun clause>", ERL_PAR_LEFT, ERL_VAR))<NEW_LINE>return false;<NEW_LINE>boolean r, p;<N... | fun_clause_0(b, l + 1); |
454,911 | private boolean fromPlatform(FileObject fo) {<NEW_LINE>boolean fromPlatform = false;<NEW_LINE>FileObject archive = FileUtil.getArchiveFile(fo);<NEW_LINE>if (archive != null) {<NEW_LINE>FileObject <MASK><NEW_LINE>if (root != null) {<NEW_LINE>if (cachedPlatformRoots.contains(root)) {<NEW_LINE>fromPlatform = true;<NEW_LIN... | root = FileUtil.getArchiveRoot(archive); |
1,451,305 | private static void visitEnvironmentSquenceItems(@NotNull Consumer<Pair<String, PsiElement>> consumer, @NotNull YAMLKeyValue yamlKeyValue) {<NEW_LINE>YAMLKeyValue environment = YamlHelper.getYamlKeyValue(yamlKeyValue, "environment");<NEW_LINE>if (environment != null) {<NEW_LINE>// FOOBAR=0<NEW_LINE>for (YAMLSequenceIte... | getChildOfType(environment, YAMLMapping.class); |
1,460,328 | public void addResourceHandlers(ResourceHandlerRegistry registry) {<NEW_LINE>// For examples using Spring 4.1.0<NEW_LINE>if ((env.getProperty("resource.handler.conf")).equals("4.1.0")) {<NEW_LINE>registry.addResourceHandler("/js/**").addResourceLocations("/js/").setCachePeriod(3600).resourceChain(true).addResolver(new ... | .addResolver(new PathResourceResolver()); |
700,675 | public void adjustMouseSpeedLive() {<NEW_LINE>AlertDialog.Builder b = new AlertDialog.Builder(this);<NEW_LINE>b.setTitle(R.string.mcl_setting_title_mousespeed);<NEW_LINE>View v = LayoutInflater.from(this).inflate(R.layout.dialog_live_mouse_speed_editor, null);<NEW_LINE>final SeekBar sb = v.<MASK><NEW_LINE>final TextVie... | findViewById(R.id.mouseSpeed); |
490,025 | private static BundleEntryComponent medicationClaim(Person person, BundleEntryComponent personEntry, Bundle bundle, BundleEntryComponent encounterEntry, Claim claim, BundleEntryComponent medicationEntry) {<NEW_LINE>org.hl7.fhir.r4.model.Claim claimResource = new org.hl7.fhir.r4.model.Claim();<NEW_LINE>org.hl7.fhir.r4.m... | getPeriod().getEnd()); |
201,415 | public StringAggState removeFromAggregatedState(RamAccounting ramAccounting, StringAggState previousAggState, Input[] stateToRemove) {<NEW_LINE>String expression = (String) stateToRemove[0].value();<NEW_LINE>if (expression == null) {<NEW_LINE>return previousAggState;<NEW_LINE>}<NEW_LINE>String delimiter = (String) stat... | previousAggState.values.remove(indexOfExpression); |
1,484,658 | private void processHeadOrGetSingleClient(String clientId, OidcOAuth20ClientProvider clientProvider, HttpServletRequest request, HttpServletResponse response) throws IOException, OidcServerException {<NEW_LINE>OidcBaseClient client = clientProvider.get(clientId);<NEW_LINE>if (client == null) {<NEW_LINE>// CWWKS1424E<NE... | toString().getBytes("UTF-8"); |
752,374 | protected Number runThread(AbstractEmulator<?> emulator) {<NEW_LINE>Backend backend = emulator.getBackend();<NEW_LINE>UnidbgPointer stack = allocateStack(emulator);<NEW_LINE>if (emulator.is32Bit()) {<NEW_LINE>Pointer tls = thread.share(0x48);<NEW_LINE>this.errno = tls.share(8);<NEW_LINE>backend.reg_write(ArmConst.UC_AR... | Arm64Const.UC_ARM64_REG_SP, stack.peer); |
1,484,723 | public long add(String str) throws CoreException {<NEW_LINE>long record = find(str);<NEW_LINE>if (record != 0)<NEW_LINE>return record;<NEW_LINE>IString string = this.db.newString(str);<NEW_LINE>record = string.getRecord();<NEW_LINE>long new_node = this.db.malloc(<MASK><NEW_LINE>NodeType.Next.put(this.db, new_node, getH... | NodeType.sizeof, Database.POOL_STRING_SET); |
1,776,502 | final PutFunctionConcurrencyResult executePutFunctionConcurrency(PutFunctionConcurrencyRequest putFunctionConcurrencyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putFunctionConcurrencyRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Req... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
496,169 | public int nextc() {<NEW_LINE>if (lex_p == lex_pend) {<NEW_LINE>line_offset += lex_pend;<NEW_LINE>ByteList v = lex_nextline;<NEW_LINE>lex_nextline = null;<NEW_LINE>if (v == null) {<NEW_LINE>if (eofp)<NEW_LINE>return EOF;<NEW_LINE>if (src == null || (v = src.gets()) == null) {<NEW_LINE>eofp = true;<NEW_LINE>lex_goto_eol... | = lex_p + v.length(); |
599,146 | public void init(final DaemonContext context) {<NEW_LINE>final File confFile = PropertiesUtil.findConfigFile("server.properties");<NEW_LINE>if (confFile == null) {<NEW_LINE>LOG.warn(String.format("Server configuration file not found. Initializing server daemon on %s, with http.enable=%s, http.port=%s, https.enable=%s, ... | getProperty(HTTPS_ENABLE, "false"))); |
462,943 | protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>ByteBuf buf = (ByteBuf) msg;<NEW_LINE>int type = buf.readUnsignedByte();<NEW_LINE>int index = buf.readUnsignedByte();<NEW_LINE>// length<NEW_LINE>buf.readUnsignedShort();<NEW_LINE>if (type == MSG_LOGIN_REQUEST)... | buf.readUnsignedByte(), buf); |
507,511 | public BlockManagementTaskResult run() {<NEW_LINE>LOG.debug("Running align task.");<NEW_LINE>// Acquire align range from the configuration.<NEW_LINE>// This will limit swap operations in a single run.<NEW_LINE>final int alignRange = ServerConfiguration.getInt(PropertyKey.WORKER_MANAGEMENT_TIER_ALIGN_RANGE);<NEW_LINE>Bl... | (generateSwapTransferInfos(swapLists), excHandler); |
1,510,610 | public void start(Stage stage) {<NEW_LINE>stage.setTitle("Path Anti-Aliasing Test");<NEW_LINE>Scene scene = new Scene(new Group(), 800.0f, 800.0f);<NEW_LINE>scene<MASK><NEW_LINE>scene.setFill(Color.BEIGE);<NEW_LINE>Path path = new Path();<NEW_LINE>path.setRotate(40.0F);<NEW_LINE>path.setRotationAxis(Rotate.Y_AXIS);<NEW... | .setCamera(new PerspectiveCamera()); |
1,272,139 | public void validateEmbargoDate(FacesContext context, UIComponent component, Object value) throws ValidatorException {<NEW_LINE>if (isEmbargoAllowed()) {<NEW_LINE>UIComponent <MASK><NEW_LINE>UIInput endComponent = (UIInput) cb;<NEW_LINE>boolean removedState = false;<NEW_LINE>if (endComponent != null) {<NEW_LINE>try {<N... | cb = component.findComponent("embargoCheckbox"); |
371,284 | private void recursivelyCollectDescendants(final List<ObjectInFolderContainer> list, final AbstractFile child, final int maxDepth, final int depth, final Boolean includeAllowableActions) throws FrameworkException {<NEW_LINE>if (depth > maxDepth) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final PropertyKey<Folder> parent = ... | App app = StructrApp.getInstance(); |
570,252 | public boolean isValid() {<NEW_LINE>if (!isListenerSelected()) {<NEW_LINE>// NOI18N<NEW_LINE>// NOI18N<NEW_LINE>wizard.// NOI18N<NEW_LINE>putProperty(WizardDescriptor.PROP_ERROR_MESSAGE, org.openide.util.NbBundle.getMessage(ListenerPanel.class, "MSG_noListenerSelected"));<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Proj... | putProperty(WizardDescriptor.PROP_WARNING_MESSAGE, ""); |
910,605 | Temporal isOk(final Temporal t) {<NEW_LINE>if (checker.matches(t)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Temporal out = t.plus(1, type.getBaseUnit());<NEW_LINE>// Fall-through switch case. for example if type is year all cases below must also be handled.<NEW_LINE>switch(type) {<NEW_LINE>case YEAR:<NEW_LINE>out = ... | with(ChronoField.HOUR_OF_DAY, 0); |
1,788,743 | protected BeanDefinitionBuilder parseHandler(Element gatewayElement, ParserContext parserContext) {<NEW_LINE>BeanDefinitionBuilder jpaOutboundGatewayBuilder = super.parseHandler(gatewayElement, parserContext);<NEW_LINE>BeanDefinitionBuilder jpaExecutorBuilder = JpaParserUtils.getOutboundGatewayJpaExecutorBuilder(gatewa... | new BeanComponentDefinition(jpaExecutorBuilderBeanDefinition, jpaExecutorBeanName)); |
1,532,368 | protected void checkRenewTimeAgainstCertValidityPeriod(Date notBefore, Date notAfter, String serialNumber) {<NEW_LINE>long notBeforems = notBefore.getTime();<NEW_LINE>long notAfterms = notAfter.getTime();<NEW_LINE>long renewCertMin = acmeConfig.getRenewCertMin();<NEW_LINE>long validityPeriod = notAfterms - notBeforems;... | acmeConfig.setRenewBeforeExpirationMs(renewCertMin, false); |
335,751 | public void onClick(View view) {<NEW_LINE>BluetoothDevice device = foundDevices.get(getDeviceAddress());<NEW_LINE>SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(requireContext());<NEW_LINE>prefs.edit().putString(PREFERENCE_KEY_BLUETOOTH_HW_ADDRESS, device.getAddress()).putString(PREFERENCE_KEY_... | " with address " + device.getAddress()); |
654 | public static List<String> validateValues(final StoredConfiguration storedConfiguration) {<NEW_LINE>final Function<StoredConfigKey, Stream<String>> validateSettingFunction = storedConfigItemKey -> {<NEW_LINE>final PwmSetting pwmSetting = storedConfigItemKey.toPwmSetting();<NEW_LINE>final String profileID = storedConfig... | .DEFAULT_LOCALE) + " - " + loopError); |
285,744 | public void createControl(Composite parent) {<NEW_LINE>Composite cfgGroup = new Composite(parent, SWT.NONE);<NEW_LINE>GridLayout gl = new GridLayout(1, false);<NEW_LINE>gl.marginHeight = 10;<NEW_LINE>gl.marginWidth = 10;<NEW_LINE>cfgGroup.setLayout(gl);<NEW_LINE>GridData gd = new GridData(GridData.FILL_BOTH);<NEW_LINE>... | new GridData(GridData.FILL_HORIZONTAL)); |
1,536,985 | public synchronized void revert(MediaElement shaper, boolean releaseElement) throws OpenViduException {<NEW_LINE>final String elementId = shaper.getId();<NEW_LINE>if (!elements.containsKey(elementId)) {<NEW_LINE>throw new OpenViduException(Code.MEDIA_ENDPOINT_ERROR_CODE, "This endpoint (" + getEndpointName() + ") has n... | "EP {}: Released media element {}", getEndpointName(), elementId); |
540,743 | public void addSystemTray(final LooksFrame frame) {<NEW_LINE>if (SystemTray.isSupported()) {<NEW_LINE><MASK><NEW_LINE>Image trayIconImage = resolveTrayIcon();<NEW_LINE>PopupMenu popup = new PopupMenu();<NEW_LINE>MenuItem defaultItem = new MenuItem(Messages.getString("LooksFrame.5"));<NEW_LINE>MenuItem traceItem = new M... | SystemTray tray = SystemTray.getSystemTray(); |
1,426,096 | private void updateAdditionalInfoVisibility() {<NEW_LINE>View line3 = view.findViewById(R.id.context_menu_line3);<NEW_LINE>View additionalInfoImageView = view.findViewById(R.id.additional_info_image_view);<NEW_LINE>View additionalInfoTextView = view.findViewById(R.id.additional_info_text_view);<NEW_LINE>View compassVie... | findViewById(R.id.title_bottom_button_container); |
1,182,063 | public Object execute(ExecutionEvent event) throws ExecutionException {<NEW_LINE>ListDialog dlg = new ListDialog(UIUtils.getActiveShell());<NEW_LINE>dlg.setContentProvider(ArrayContentProvider.getInstance());<NEW_LINE>dlg.setLabelProvider(new LabelProvider() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Image getImage... | imageRegistry.put(id, desc); |
744,519 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>controller.<MASK><NEW_LINE>game.fireUpdatePlayersEvent();<NEW_LINE>Choice manaChoice = new ChoiceImpl();<NEW_LINE>Set<String> choices = new LinkedHashSet<>... | drawCards(1, source, game); |
1,123,186 | private boolean checkResetPassword(final Authenticator auth, final HttpServletRequest request, final HttpServletResponse response, final String path) throws FrameworkException, IOException {<NEW_LINE>logger.debug("Checking reset password ...");<NEW_LINE>final String key = request.getParameter(CONFIRMATION_KEY_KEY);<NEW... | AuthHelper.doLogin(request, user); |
1,111,988 | public void postUsabilityStats(int seqNum, boolean isSameBssidAndFreq, WifiUsabilityStatsEntryBuilder statsBuilder) {<NEW_LINE><MASK><NEW_LINE>Set<Map.Entry<WifiManager.OnWifiUsabilityStatsListener, Executor>> toNotify = new ArraySet<>();<NEW_LINE>toNotify.addAll(wifiUsabilityStatsListeners.entrySet());<NEW_LINE>for (M... | WifiUsabilityStatsEntry stats = statsBuilder.build(); |
1,115,688 | private Map<String, String> generateWlpBasedMap(String serverName) {<NEW_LINE>Map<String, String> resultMap = new <MASK><NEW_LINE>resultMap.put("wlp.install.dir", wlpDir);<NEW_LINE>resultMap.put("wlp.user.dir", wlpUsrDir);<NEW_LINE>resultMap.put("usr.extension.dir", userExtensionDir);<NEW_LINE>resultMap.put("shared.app... | HashMap<String, String>(); |
876,223 | public void exitL_login_authentication(L_login_authenticationContext ctx) {<NEW_LINE>String list;<NEW_LINE>if (ctx.DEFAULT() != null) {<NEW_LINE>list = ctx.DEFAULT().getText();<NEW_LINE>} else if (ctx.name != null) {<NEW_LINE>list = ctx.name.getText();<NEW_LINE>} else {<NEW_LINE>throw new BatfishException("Invalid list... | list)).orElse(null); |
333,481 | final GetFunctionResult executeGetFunction(GetFunctionRequest getFunctionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getFunctionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
439,491 | public CodeGenEdge unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CodeGenEdge codeGenEdge = new CodeGenEdge();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE... | JsonToken token = context.getCurrentToken(); |
478,255 | private void performStop(@NotNull final State desiredState, @NotNull final List<CompletableFuture<Void>> startFutures, @NotNull final List<CompletableFuture<Void>> stopFutures) {<NEW_LINE>try {<NEW_LINE>final long startTime = System.currentTimeMillis();<NEW_LINE>try {<NEW_LINE>hiveMQServer.stop();<NEW_LINE>} catch (fin... | new AbortedStateChangeException("EmbeddedHiveMQ was stopped"), startFutures); |
650,507 | // ///////////// Emit Terminator instructions ////////////////////<NEW_LINE>static String emitTerminator(BIRTerminator term, int tabs) {<NEW_LINE>switch(term.kind) {<NEW_LINE>case WAIT:<NEW_LINE>return emitWait((BIRTerminator.Wait) term, tabs);<NEW_LINE>case FLUSH:<NEW_LINE>return emitFlush((BIRTerminator.Flush) term, ... | BIRTerminator.WaitAll) term, tabs); |
63,306 | public void handle(HttpExchange exchange) {<NEW_LINE>try {<NEW_LINE>Response response = getResponse(exchange);<NEW_LINE>response.getHeaders().putIfAbsent("Access-Control-Allow-Origin", config.get(WebserverSettings.CORS_ALLOW_ORIGIN));<NEW_LINE>response.getHeaders().putIfAbsent("Access-Control-Allow-Methods", "GET, OPTI... | ).putIfAbsent("Access-Control-Allow-Credentials", "true"); |
85,187 | public void init() throws IOException {<NEW_LINE>int flushLen = conf.getInt(AngelConf.ANGEL_LOG_FLUSH_MIN_SIZE, AngelConf.DEFAULT_ANGEL_LOG_FLUSH_MIN_SIZE);<NEW_LINE>conf.setInt(DFSConfigKeys.DFS_CLIENT_WRITE_PACKET_SIZE_KEY, flushLen);<NEW_LINE>conf.setInt(DFSConfigKeys.DFS_BYTES_PER_CHECKSUM_KEY, flushLen);<NEW_LINE>... | IOException("log directory is null. you must set " + AngelConf.ANGEL_LOG_PATH); |
152,261 | public static void quickContrast3(int[] arr, int extra_contrast, int delta_brightness) {<NEW_LINE>int lum;<NEW_LINE>// Use linear contrast variation; extra_contrast=0 = no change,<NEW_LINE>// extra_contrast=100 = 2x contrast<NEW_LINE>double contrast = (100 + extra_contrast) / 100.0;<NEW_LINE>int hash = extra_contrast *... | [i] = brightnessContrastMap[lum]; |
688,012 | public void onCreate(final Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>activityViewModel = new ViewModelProvider(activity).get(NetworkMonitorViewModel.class);<NEW_LINE>activityViewModel.selectedItem.observe(this, item -> {<NEW_LINE>if (item instanceof HostAndPort) {<NEW_LINE><MASK... | final HostAndPort peerHostAndPort = (HostAndPort) item; |
1,769,893 | private void addIgnoreActionForNotification(Context context, NotificationCompat.Builder builder, int postId, boolean isPage) {<NEW_LINE>// Call processing service when user taps on IGNORE - we should remember this decision for this post<NEW_LINE>Intent ignoreIntent = new Intent(context, NotificationsProcessingService.c... | ignoreIntent.putExtra(POST_ID_EXTRA, postId); |
1,255,246 | public static Spectrum readSpectrum(BufferedImage image, Rectangle area, int precision) throws IOException {<NEW_LINE>if (precision < 8)<NEW_LINE>throw new IllegalArgumentException("Color size should not be less then 8");<NEW_LINE>if (precision > 256)<NEW_LINE>throw new IllegalArgumentException("Color size should not b... | ) & 0xff) * precision / 256; |
1,303,281 | private void saveLine(@NonNull final IQualityInvoiceLine line) {<NEW_LINE>final I_C_Invoice_Candidate invoiceCandidate = getC_Invoice_Candidate();<NEW_LINE>final int seqNo = _seqNoNext;<NEW_LINE>final Quantity lineQty = line.getQty();<NEW_LINE>// Pricing<NEW_LINE>final IPricingResult pricingResult = line.getPrice();<NE... | getUomId().getRepoId()); |
1,164,567 | public static BigDecimal computeChildInvoiceAmount(final Currency currency, @Nullable final Iterable<InvoiceItem> invoiceItems) {<NEW_LINE>if (invoiceItems == null) {<NEW_LINE>return BigDecimal.ZERO;<NEW_LINE>}<NEW_LINE>final Iterable<InvoiceItem> chargeItems = Iterables.filter(invoiceItems, new Predicate<InvoiceItem>(... | currency, invoiceItems).negate(); |
1,100,162 | public void bindView(View view, Context context, Cursor cursor) {<NEW_LINE>View square = view.findViewById(R.id.color_square);<NEW_LINE>int color = Utils.getDisplayColorFromColor(context, cursor.getInt(AlertActivity.INDEX_COLOR));<NEW_LINE>square.setBackgroundColor(color);<NEW_LINE>// Repeating info<NEW_LINE>View repea... | findViewById(R.id.repeat_icon); |
381,123 | public static <T> MouseMotionListener installAutoSelectOnMouseMove(@Nonnull JList<T> list) {<NEW_LINE>final MouseMotionAdapter listener = new MouseMotionAdapter() {<NEW_LINE><NEW_LINE>boolean myIsEngaged = false;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void mouseMoved(MouseEvent e) {<NEW_LINE>Component focusOwner ... | .getCurrentKeyboardFocusManager().getFocusOwner(); |
95,522 | private void initWindow() {<NEW_LINE>logger.info("Initializing display (if last line in log then likely the game crashed from an issue with your " + "video card)");<NEW_LINE>// set opengl core profile to 3.3<NEW_LINE>GLFW.glfwWindowHint(GLFW.GLFW_CONTEXT_VERSION_MAJOR, 3);<NEW_LINE>GLFW.glfwWindowHint(GLFW.GLFW_CONTEXT... | GLFW.GLFW_OPENGL_PROFILE, GLFW.GLFW_OPENGL_CORE_PROFILE); |
1,743,861 | public static Dataset<Row> buildGraph(Dataset<Row> vertices, Dataset<Row> edges) {<NEW_LINE>// we need to transform the input here by using stop words<NEW_LINE>// rename id field which is a common field in data to another field as it<NEW_LINE>// clashes with graphframes :-(<NEW_LINE>vertices = vertices.withColumnRename... | .COL_PREFIX + ColName.ID_COL)); |
1,072,370 | final PutSessionResult executePutSession(PutSessionRequest putSessionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putSessionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
768,472 | private void throwInvalidImportedModuleError(Toml toml, Module module) {<NEW_LINE>String moduleKey = getModuleKey(module);<NEW_LINE>TomlNode errorNode = null;<NEW_LINE>Optional<TomlValueNode> valueNode = toml.get(moduleKey);<NEW_LINE>List<Toml> tomlTables = toml.getTables(moduleKey);<NEW_LINE>String moduleName = module... | location().lineRange()); |
854,996 | /*<NEW_LINE>* Validate the classpaths of the projects affected by the given delta.<NEW_LINE>* Create markers if necessary.<NEW_LINE>* Returns whether cycle markers should be recomputed.<NEW_LINE>*/<NEW_LINE>private boolean validateClasspaths(IResourceDelta delta) {<NEW_LINE>Set<IPath> affectedProjects = new HashSet<>(5... | ] projects = workspaceRoot.getProjects(); |
93,629 | public void testAsyncInvoker_getConnectionTimeout(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String target = null;<NEW_LINE>if (isZOS()) {<NEW_LINE>// https://stackoverflow.com/a/904609/6575578<NEW_LINE>target = "http://example.com:81";<NEW_LINE>} else {<NEW_LINE>// Connect to telnet port - which should b... | long startTime2 = System.currentTimeMillis(); |
1,511,211 | public void onScroll(int dragDirection, int moveEdge, float scrollPercent) {<NEW_LINE>scrollPercent = Math.max(0f, Math.min(1f, scrollPercent));<NEW_LINE>QMUIFragmentContainerProvider provider = findFragmentContainerProvider(false);<NEW_LINE>if (provider == null || provider.getFragmentContainerView() == null) {<NEW_LIN... | translateInSwipeBack(mSwipeBackgroundView, moveEdge, targetOffset); |
654,455 | static List<PartitionDefinition> findShardPartitions(Settings settings, MappingSet mappingSet, Map<String, NodeInfo> nodes, List<List<Map<String, Object>>> shards, Log log) {<NEW_LINE>Mapping resolvedMapping = mappingSet == null <MASK><NEW_LINE>List<PartitionDefinition> partitions = new ArrayList<PartitionDefinition>(s... | ? null : mappingSet.getResolvedView(); |
1,572,552 | public void addSpnToKeytab(String user, String spn) throws Exception {<NEW_LINE>String methodName = "addSpnToKeytab";<NEW_LINE>Log.info(thisClass, methodName, "Adding SPN: " + "spn" + " for user: " + user + " to existing keytab file");<NEW_LINE>String localScriptName = SPNEGOConstants.ADD_SPN_TO_KEYTAB_LOCAL_FILE;<NEW_... | .CYGWIN_HOME_REALM_1 + shortHostName + SPNEGOConstants.KRB5_KEYTAB_TEMP_SUFFIX; |
919,812 | private boolean verifyGoogDefine(Node callNode) {<NEW_LINE>this.knownGoogDefineCalls.add(callNode);<NEW_LINE>Node parent = callNode.getParent();<NEW_LINE>Node methodName = callNode.getFirstChild();<NEW_LINE>Node args = callNode.getSecondChild();<NEW_LINE>// Calls to goog.define must be in the global hoist scope after m... | .getParent(), INVALID_CLOSURE_CALL_SCOPE_ERROR)); |
445,222 | void dumpStats() {<NEW_LINE>if (parserPhaseTime.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LOG.finer("Phase times:");<NEW_LINE>for (int i = 0; i <= Phases.ALL; i++) {<NEW_LINE>Long d = parserPhaseTime.get(i);<NEW_LINE>if (d == null) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>LOG.log(Level.FINER, "\t" + phaseToStri... | >(perfCounters.keySet()); |
1,125,302 | public void run() {<NEW_LINE>CoapResponse response;<NEW_LINE>try {<NEW_LINE>CoapClient client = new CoapClient(uri);<NEW_LINE>response = client.get();<NEW_LINE>} catch (Exception ex) {<NEW_LINE>Log.e("coap", <MASK><NEW_LINE>response = null;<NEW_LINE>}<NEW_LINE>final CoapResponse finalResponse = response;<NEW_LINE>handl... | ex.getMessage(), ex); |
1,492,379 | BacktrackSteps[][] evaluateSteps(final List leftList, final List rightList) {<NEW_LINE>final int leftDim = leftList.size() + 1;<NEW_LINE>final int rightDim = rightList.size() + 1;<NEW_LINE>final BacktrackSteps[][] steps = new BacktrackSteps[leftDim][rightDim];<NEW_LINE>final int[][] <MASK><NEW_LINE>for (int i = 1; i < ... | scores = initScores(leftDim, rightDim); |
1,192,462 | public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create json schema Book(bookId string, price BigDecimal);\n", path);<NEW_LINE>env.compileDeploy("@public create json schema Shelf(shelfId string, book Book);\n", path);<NEW_LINE><MASK><N... | env.compileDeploy("@public create json schema Isle(isleId string, shelf Shelf);\n", path); |
85,870 | protected void onPostExecute(Integer result) {<NEW_LINE>EventBus.getDefault().removeStickyEvent(BaseMessageActivity.ServiceActiveEvent.class);<NEW_LINE>boolean displaySuccess;<NEW_LINE>String confirmationText;<NEW_LINE>if (result == SUCCESS) {<NEW_LINE>// success!<NEW_LINE>displaySuccess = true;<NEW_LINE>confirmationTe... | (R.string.trakt)); |
314,351 | public Entity deleteEntity(String domainName, String entityName, String auditRef) {<NEW_LINE>WebTarget target = base.path("/domain/{domainName}/entity/{entityName}").resolveTemplate("domainName", domainName).resolveTemplate("entityName", entityName);<NEW_LINE>Invocation.Builder invocationBuilder = target.request("appli... | int code = response.getStatus(); |
930,649 | public void handleStatement(@Nullable final Statement st) {<NEW_LINE>checkNotNull(st);<NEW_LINE>assert st != null;<NEW_LINE>String subjectString;<NEW_LINE>String objectString;<NEW_LINE>if (st.getSubject() instanceof BNode) {<NEW_LINE>subjectString = st.getSubject().stringValue();<NEW_LINE>// it is not mandatory for BNo... | getLanguage().orElse(null); |
447,278 | private void addConstructorRenames(TextChangeManager manager) throws CoreException {<NEW_LINE>ICompilationUnit cu = fType.getCompilationUnit();<NEW_LINE>IMethod[] methods = fType.getMethods();<NEW_LINE>int typeNameLength = fType.getElementName().length();<NEW_LINE>for (int i = 0; i < methods.length; i++) {<NEW_LINE>if ... | , typeNameLength, getNewElementName())); |
104,824 | private void serializIt(final String resource, final Integer revision, final OutputStream output, final boolean nodeid) throws JaxRxException, SirixException {<NEW_LINE>// Connection to sirix, creating a session<NEW_LINE>Database database = null;<NEW_LINE>Session session = null;<NEW_LINE>// INodeReadTrx rtx = null;<NEW... | closeRTX(null, session, database); |
1,707,594 | public void afterInit() {<NEW_LINE>threadService.runActionLater(() -> {<NEW_LINE>getWindow(<MASK><NEW_LINE>ReadOnlyObjectProperty<Worker.State> stateProperty = webEngine().getLoadWorker().stateProperty();<NEW_LINE>WebView popupView = new WebView();<NEW_LINE>Stage stage = new Stage();<NEW_LINE>stage.initModality(Modalit... | ).setMember("afx", controller); |
787,074 | public CreateClusterResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateClusterResult createClusterResult = new CreateClusterResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep... | JsonToken token = context.getCurrentToken(); |
1,771,176 | final DeleteSafetyRuleResult executeDeleteSafetyRule(DeleteSafetyRuleRequest deleteSafetyRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteSafetyRuleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | invoke(request, responseHandler, executionContext); |
1,592,184 | public void actionPerformed(ActionEvent e) {<NEW_LINE>Object source = e.getSource();<NEW_LINE>if (source == addFolderButton) {<NEW_LINE>// Let user search for the Jar file<NEW_LINE>FileChooserBuilder builder = new FileChooserBuilder(SourceRootsUi.class).setDirectoriesOnly(true);<NEW_LINE>builder.setDefaultWorkingDirect... | .project.getProjectDirectory())); |
195,231 | public IMqttToken connect(MqttConnectOptions options, Object userContext, IMqttActionListener callback) throws MqttException {<NEW_LINE>IMqttToken token = new MqttTokenAndroid(this, userContext, callback);<NEW_LINE>connectOptions = options;<NEW_LINE>connectToken = token;<NEW_LINE>if (mqttService == null) {<NEW_LINE>// ... | new RuntimeException("cannot start service " + SERVICE_NAME)); |
1,562,543 | final DescribeManagedRuleGroupResult executeDescribeManagedRuleGroup(DescribeManagedRuleGroupRequest describeManagedRuleGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeManagedRuleGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeManagedRuleGroup"); |
1,255,247 | public <T> int readFieldNumber(final Schema<T> schema) throws IOException {<NEW_LINE>if (emptyMessage) {<NEW_LINE>emptyMessage = false;<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>if (parser.getEventType() == END_ELEMENT)<NEW_LINE>return 0;<NEW_LINE>final String name = parser.getLocalName();<NEW_LINE>final int num = schema.... | " on message " + schema.messageFullName()); |
824,344 | private void checkPermissions(RepositoryModel model) {<NEW_LINE>boolean authenticateAdmin = app().settings().getBoolean(Keys.web.authenticateAdminPages, true);<NEW_LINE>boolean allowAdmin = app().settings().getBoolean(Keys.web.allowAdministration, true);<NEW_LINE>GitBlitWebSession session = GitBlitWebSession.get();<NEW... | (getString("gb.errorOnlyAdminOrOwnerMayEditRepository"), true); |
976,254 | private void createInitCheck(Program program, BasicBlock block, String className, BasicBlock continueBlock, BasicBlock initBlock, TextLocation location) {<NEW_LINE>Variable clsVariable = program.createVariable();<NEW_LINE><MASK><NEW_LINE>ClassConstantInstruction clsConstant = new ClassConstantInstruction();<NEW_LINE>cl... | Variable initializedVariable = program.createVariable(); |
319,205 | private void removePreferencesWithGPVersion() {<NEW_LINE>PreferenceScreen dnscryptSettings = findPreference("dnscrypt_settings");<NEW_LINE>ArrayList<PreferenceCategory> categories = new ArrayList<>();<NEW_LINE>categories<MASK><NEW_LINE>categories.add(findPreference("pref_dnscrypt_cloaking_rules"));<NEW_LINE>categories.... | .add(findPreference("pref_dnscrypt_forwarding_rules")); |
738,332 | public com.amazonaws.services.applicationdiscovery.model.ConflictErrorException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.applicationdiscovery.model.ConflictErrorException conflictErrorException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDept... | applicationdiscovery.model.ConflictErrorException(null); |
91,017 | private Map<String, String> autoConfigure(Map<String, String> localSettings) {<NEW_LINE>Map<String, String> mutableLocalSettings = new HashMap<>(localSettings);<NEW_LINE>if (Boolean.parseBoolean(system2.envVariable("GITLAB_CI"))) {<NEW_LINE>// GitLab CI auto configuration<NEW_LINE>if (system2.envVariable("CI_MERGE_REQU... | (ScannerProperties.PULL_REQUEST_BRANCH, v)); |
1,586,153 | public okhttp3.Call readNamespacedServiceCall(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 = "/api/v1/namespaces/{namespace}/services/{name}".replaceAll("\\... | = new ArrayList<Pair>(); |
872,196 | private void validateFields(int line, boolean isConfig, FileTab fileTab) throws IOException, ClassNotFoundException {<NEW_LINE>List<String> relationalFieldList = fileTab.getFileFieldList().stream().filter(field -> !Strings.isNullOrEmpty(field.getSubImportField())).map(field -> field.getImportField().getName() + "." + f... | getProperty(importField.getName()); |
669,282 | private void sendSupportEmail(ErrorInfo jXErrorPaneInfo) {<NEW_LINE>Configuration configuration = AppBeans.get(Configuration.NAME);<NEW_LINE>ExceptionReportService reportService = AppBeans.get(ExceptionReportService.NAME);<NEW_LINE>ClientConfig clientConfig = configuration.getConfig(ClientConfig.class);<NEW_LINE>TopLev... | log.error("Can't send error report", e); |
94,218 | private static void gatherNormally(final List<File> inputs, final File output, final boolean createIndex, final boolean createMd5, final File referenceFasta) {<NEW_LINE>final SAMFileHeader header;<NEW_LINE>{<NEW_LINE>header = SamReaderFactory.makeDefault().referenceSequence(referenceFasta).getFileHeader(inputs.get(0));... | in) out.addAlignment(rec); |
372,760 | private Object executeGetter(ObjectTemplate template, Object holder, Object[] arguments) {<NEW_LINE>Object result = null;<NEW_LINE>Object key = arguments[3];<NEW_LINE>PropertyHandler indexedHandler = template.getIndexedPropertyHandler();<NEW_LINE><MASK><NEW_LINE>if (!(key instanceof HiddenKey)) {<NEW_LINE>if (JSRuntime... | PropertyHandler namedHandler = template.getNamedPropertyHandler(); |
1,268,644 | private void upgradeDolphinSchedulerDDL(String schemaDir, String scriptFile) {<NEW_LINE>Resource sqlFilePath = new ClassPathResource(String.format("sql/upgrade/%s/%s/%s", schemaDir, getDbType().name().toLowerCase(), scriptFile));<NEW_LINE>Connection conn = null;<NEW_LINE>PreparedStatement pstmt = null;<NEW_LINE>try {<N... | e.getMessage(), e); |
809,858 | private static void packColumn(JTable table, int columnIndex) {<NEW_LINE>TableColumn tableColumn = table.getColumnModel().getColumn(columnIndex);<NEW_LINE>Object value = tableColumn.getHeaderValue();<NEW_LINE>TableCellRenderer columnRenderer = tableColumn.getHeaderRenderer();<NEW_LINE>if (columnRenderer == null) {<NEW_... | , false, -1, columnIndex); |
1,055,404 | protected BoltDeclarer grouping(String componentId, String streamId, Grouping grouping) {<NEW_LINE>// Check if bolt is KvStateBolt, if so, enable the key range hash in upstream component<NEW_LINE>TransactionBolt bolt = (TransactionBolt) _bolts.get(_boltId);<NEW_LINE>if (bolt.getBoltExecutor() instanceof KvStatefulBoltE... | common = _commons.get(componentId); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.