idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
951,592 | public MultipartPart call() throws BackgroundException {<NEW_LINE>overall.validate();<NEW_LINE>final TransferStatus status = new TransferStatus().withLength(length).withOffset(offset);<NEW_LINE>final Map<String, String> requestParameters = new HashMap<>();<NEW_LINE>requestParameters.put("uploadId", multipart.getUploadI... | .getInputStream(), status)); |
49,309 | public Request<StopTrainingEntityRecognizerRequest> marshall(StopTrainingEntityRecognizerRequest stopTrainingEntityRecognizerRequest) {<NEW_LINE>if (stopTrainingEntityRecognizerRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(StopTrainingEntityRecognizerRequest)");<NEW_LI... | request.addHeader("X-Amz-Target", target); |
954,187 | public Solution recover(ParserRuleContext currentCtx, STToken nextToken, boolean isCompletion) {<NEW_LINE>// Assumption: always comes here after a peek()<NEW_LINE>int currentTokenIndex = this.tokenReader.getCurrentTokenIndex();<NEW_LINE>if (currentTokenIndex == this.previousTokenIndex) {<NEW_LINE>itterCount++;<NEW_LINE... | fix = getResolution(currentCtx, nextToken); |
176,735 | private FieldValueReader createReader(String mapping) {<NEW_LINE>FieldValueReader reader = null;<NEW_LINE>if (mapping.startsWith(MAPPING_INDEX_PREFIX)) {<NEW_LINE>int propertySepIdx = mapping.indexOf(MAPPING_INDEX_PROPERTY_SEP, MAPPING_INDEX_PREFIX_LENGTH + 1);<NEW_LINE>if (propertySepIdx < 0) {<NEW_LINE>String indexSt... | IndexPropertyReader(index - 1, property); |
437,317 | private ClasspathLocation mapToClassPathLocation(JavaModelManager manager, PackageFragmentRoot root, IModuleDescription defaultModule) {<NEW_LINE>ClasspathLocation cp = null;<NEW_LINE>IPath path = root.getPath();<NEW_LINE>try {<NEW_LINE>if (root.isArchive()) {<NEW_LINE>ClasspathEntry rawClasspathEntry = (ClasspathEntry... | addModuleClassPathInfo(root, defaultModule, cp); |
1,569,950 | public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String epl = "@public create window WinS0#keepall as SupportBean_S0;\n" + "@public create window WinSB#unique(intPrimitive) as SupportBean;\n" + "insert into WinS0 select * from SupportBean_S0;\n" + "insert into W... | , { 3, "c" } }); |
1,760,642 | private void drawCommandString(Graphics2D g) {<NEW_LINE>if (userAlreadyKnowsAboutCommandString)<NEW_LINE>return;<NEW_LINE>int maxSize = (int) (min(mainPanel.getWidth(), mainPanel<MASK><NEW_LINE>Font font = new Font(Lizzie.config.fontName, Font.PLAIN, (int) (maxSize * 0.03));<NEW_LINE>String commandString = resourceBund... | .getHeight()) * 0.98); |
1,765,582 | public boolean eIsSet(int featureID) {<NEW_LINE>switch(featureID) {<NEW_LINE>case ModelPackage.MDUAL_RELAY__SWITCH_STATE:<NEW_LINE>return SWITCH_STATE_EDEFAULT == null ? switchState != null : !SWITCH_STATE_EDEFAULT.equals(switchState);<NEW_LINE>case ModelPackage.MDUAL_RELAY__LOGGER:<NEW_LINE>return LOGGER_EDEFAULT == n... | : !LOGGER_EDEFAULT.equals(logger); |
1,527,282 | public static String checkCompatiblyEscaped(final String str, Report report, EPUBVersion version) {<NEW_LINE>// don't check remote resources<NEW_LINE>if (str.matches("^[^:/?#]+://.*")) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>// the test string will be used to compare test result<NEW_LINE>String test = checkNonAsciiFi... | checkCompatiblyEscaped30(str, test, report); |
1,394,506 | private static void addBulkdataOptions(Options opts) {<NEW_LINE>OptionGroup group = new OptionGroup();<NEW_LINE>group.addOption(Option.builder("B").longOpt("no-bulkdata").desc(rb.getString("no-bulkdata")).build());<NEW_LINE>group.addOption(Option.builder("b").longOpt("with-bulkdata").desc(rb.getString("with-bulkdata"))... | "blk-file-prefix")).build()); |
1,090,311 | protected void migrateProcessElementInstance(MigratingProcessElementInstance migratingInstance, MigratingScopeInstanceBranch migratingInstanceBranch) {<NEW_LINE>final MigratingScopeInstance parentMigratingInstance = migratingInstance.getParent();<NEW_LINE>ScopeImpl sourceScope = migratingInstance.getSourceScope();<NEW_... | ? parentMigratingInstance.getTargetScope() : null; |
557,231 | public String formatETA(long value, boolean absolute) {<NEW_LINE>SimpleDateFormat override = null;<NEW_LINE>if (absolute) {<NEW_LINE>long[] et = extra_times;<NEW_LINE>if (et != null) {<NEW_LINE>SimpleDateFormat[] ef = extra_formats;<NEW_LINE>if (et.length == ef.length) {<NEW_LINE>long max = 0;<NEW_LINE>long age = Syste... | .formatETA(value, absolute)); |
1,125,820 | private void initWebView(String url) {<NEW_LINE>mWebView.setWebViewClient(new WebViewClient() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onPageFinished(WebView view, String url) {<NEW_LINE>UiUtils.show(mWebView);<NEW_LINE>UiUtils.hide(mProgress);<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean ... | Uri.parse(url))); |
1,035,205 | private void enumerateTableColumns(QueryModel model, SqlExecutionContext executionContext) throws SqlException {<NEW_LINE>final ObjList<QueryModel> jm = model.getJoinModels();<NEW_LINE>// we have plain tables and possibly joins<NEW_LINE>// deal with _this_ model first, it will always be the first element in join model ... | model.getUnionModel(), executionContext); |
1,777,670 | protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>String sentence = (String) msg;<NEW_LINE>// Synchronization<NEW_LINE>if (sentence.startsWith("%SN") && channel != null) {<NEW_LINE>int start = sentence.indexOf(':');<NEW_LINE>int end = start;<NEW_LINE>for (int ... | (parser.nextDouble())); |
1,585,464 | private void renderRailButton(GL2 gl, RailButton r, Surface which) {<NEW_LINE>if (which == Surface.OUTSIDE) {<NEW_LINE>// renderOther(gl, r);<NEW_LINE>final double or = r.getOuterDiameter() / 2.0;<NEW_LINE>final double ir <MASK><NEW_LINE>gl.glRotated(r.getAngleOffset() * 180 / Math.PI - 90, 1, 0, 0);<NEW_LINE>// Inner ... | = r.getInnerDiameter() / 2.0; |
89,270 | private void demoPlsqlProcedureNoParams(Connection conn) throws SQLException {<NEW_LINE>// Create a PLSQL stored procedure that takes no arguments.<NEW_LINE>final String PROC_NAME = "ProcNoParams";<NEW_LINE>String sql = "CREATE OR REPLACE PROCEDURE " + PROC_NAME + " IS " + "BEGIN " + "INSERT INTO " + TABLE_NAME + " VAL... | show("Rows inserted by the stored procedure '" + PROC_NAME + "' are: "); |
442,045 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* erjang.beam.BlockVisitor2#visitReceive(erjang.beam.BeamOpcode,<NEW_LINE>* int, erjang.beam.Arg)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void visitReceive(BeamOpcode opcode, int blockLabel, Arg out) {<NEW_LINE>switch(opcode) {<NEW_LINE>case loop_re... | mv.visitVarInsn(ALOAD, 0); |
245,298 | public void filterWsdlRequest(SubmitContext context, WsdlRequest wsdlRequest) {<NEW_LINE>WssContainer wssContainer = wsdlRequest.getOperation().getInterface().getProject().getWssContainer();<NEW_LINE>if (wssContainer == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>OutgoingWss outgoingWss = wssContainer.getOutgoingWssBy... | .getProject().getEndpointStrategy(); |
1,725,209 | public Result apply(AggregationNode parent, Captures captures, Context context) {<NEW_LINE>if (!parent.hasDefaultOutput() || parent.getOutputVariables().size() != 1) {<NEW_LINE>return Result.empty();<NEW_LINE>}<NEW_LINE>Map<VariableReferenceExpression, AggregationNode.Aggregation<MASK><NEW_LINE>for (Map.Entry<VariableR... | > assignments = parent.getAggregations(); |
772,571 | private static StatementSpecRaw map(EPStatementObjectModel sodaStatement, StatementSpecMapContext mapContext) {<NEW_LINE>SelectClauseStreamSelectorEnum defaultStreamSelector = StatementSpecMapper.mapFromSODA(mapContext.getConfiguration().getCompiler().getStreamSelection().getDefaultStreamSelector());<NEW_LINE>Statement... | getFromClause(), raw, mapContext); |
1,540,467 | final EngineDefaults executeDescribeEngineDefaultClusterParameters(DescribeEngineDefaultClusterParametersRequest describeEngineDefaultClusterParametersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeEngineDefaultClusterParametersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
388,651 | protected void onCreate(@Nullable Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>requestWindowFeature(Window.FEATURE_NO_TITLE);<NEW_LINE>getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);<NEW_LINE>setContentView(R.layout.acti... | movedItem = mVideoPaths.remove(fromPosition); |
310,007 | public String charge(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) {<NEW_LINE>Integer C_Charge_ID = (Integer) value;<NEW_LINE>if (C_Charge_ID == null || C_Charge_ID.intValue() == 0)<NEW_LINE>return "";<NEW_LINE>// No Product defined<NEW_LINE>if (mTab.getValue("M_Product_ID") != null) {<NEW... | DB.close(rs, pstmt); |
409,570 | final DeleteAppInstanceUserResult executeDeleteAppInstanceUser(DeleteAppInstanceUserRequest deleteAppInstanceUserRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAppInstanceUserRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | endClientExecution(awsRequestMetrics, request, response); |
311,769 | public void encodeGridLayout(FacesContext context, PanelGrid grid) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String clientId = grid.getClientId(context);<NEW_LINE>String layout = grid.getLayout();<NEW_LINE><MASK><NEW_LINE>if (columns == 0) {<NEW_LINE>throw new FacesExce... | int columns = grid.getColumns(); |
603,952 | public VersioningConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>VersioningConfiguration versioningConfiguration = new VersioningConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI... | class).unmarshall(context)); |
1,095,429 | public static void add(Watch w, Path dir, boolean nativeRecursive) {<NEW_LINE>if (watchService == null) {<NEW_LINE>start(dir);<NEW_LINE>}<NEW_LINE>// Ignore common system directories that should never be watched<NEW_LINE>if (Platform.isMac() && (dir.toString().contains("/Music/Audio Music Apps") || dir.toString().conta... | , ENTRY_DELETE }, ExtendedWatchEventModifier.FILE_TREE); |
1,335,755 | private HttpRequest.Builder loginUserRequestBuilder(String username, String password) throws ApiException {<NEW_LINE>// verify the required parameter 'username' is set<NEW_LINE>if (username == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'username' when calling loginUser");<NEW_LINE>}<NE... | localVarRequestBuilder.header("Accept", "application/json"); |
1,025,582 | public void pasteOnHastebin(final String text, final Callback.a2<Boolean, String> callback, final String... serverOrNothing) {<NEW_LINE><MASK><NEW_LINE>final String server = (serverOrNothing != null && serverOrNothing.length > 0 && serverOrNothing[0] != null) ? serverOrNothing[0] : "https://hastebin.com";<NEW_LINE>new ... | final Handler handler = new Handler(); |
1,650,397 | public void install(@Nonnull Jooby application) throws Exception {<NEW_LINE>Environment environment = application.getEnvironment();<NEW_LINE>ServiceRegistry registry = application.getServices();<NEW_LINE>DataSource dataSource = registry.getOrNull(ServiceKey.key(DataSource.class, name));<NEW_LINE>if (dataSource == null)... | putIfAbsent(Flyway.class, flyway); |
605,645 | public final <T> T retrieveAndLock(final IQuery<T> query, final Class<T> clazz) {<NEW_LINE>final IQuery<T> finalQuery = retrieveNotLockedQuery(query);<NEW_LINE>final int maxLockRetries = 50;<NEW_LINE>final ILockCommand lockCommand = new LockCommand(this<MASK><NEW_LINE>int retryCounter = 0;<NEW_LINE>while (retryCounter ... | ).setOwner(LockOwner.NONE); |
1,246,087 | public void afterPlace(GlowPlayer player, GlowBlock block, ItemStack holding, GlowBlockState oldState) {<NEW_LINE>GlowSkull skull = (GlowSkull) block.getState();<NEW_LINE>skull.setSkullType(getType(holding.getDurability()));<NEW_LINE>if (skull.getSkullType() == SkullType.PLAYER) {<NEW_LINE>SkullMeta meta = <MASK><NEW_L... | (SkullMeta) holding.getItemMeta(); |
1,440,858 | public boolean execute() {<NEW_LINE>String tableSchema = executableScheduledJob.getTableSchema();<NEW_LINE>String timeZoneStr = executableScheduledJob.getTimeZone();<NEW_LINE>long scheduleId = executableScheduledJob.getScheduleId();<NEW_LINE>long fireTime = executableScheduledJob.getFireTime();<NEW_LINE>long startTime ... | .format("start allocating local partition. table:[%s]", tableName)); |
621,787 | private EventData deserializeEventData(Message message) {<NEW_LINE>final AmqpAnnotatedMessage amqpAnnotatedMessage = MessageUtils.toAmqpAnnotatedMessage(message);<NEW_LINE>// Convert system properties to their respective types.<NEW_LINE>final Map<String, Object> messageAnnotations = amqpAnnotatedMessage.getMessageAnnot... | amqpAnnotatedMessage, systemProperties, Context.NONE); |
799,204 | public boolean onContextualActionClicked(int itemId) {<NEW_LINE>Activity currentActivity = getActivity();<NEW_LINE>if (currentActivity instanceof QuranActivity) {<NEW_LINE>QuranActivity activity = (QuranActivity) currentActivity;<NEW_LINE>if (itemId == R.id.cab_delete) {<NEW_LINE>final List<QuranRow> selected = bookmar... | , size), BookmarkPresenter.DELAY_DELETION_DURATION_IN_MS); |
975,454 | public static void toJSON(OutputWriter outputWriter, StageInstanceModel stageInstanceModel) {<NEW_LINE>if (stageInstanceModel.getResult() != null) {<NEW_LINE>outputWriter.add("result", stageInstanceModel.<MASK><NEW_LINE>}<NEW_LINE>outputWriter.add("status", stageInstanceModel.getState().toString());<NEW_LINE>if (stageI... | getResult().toString()); |
1,574,714 | public int longestSubarray(int[] nums, int limit) {<NEW_LINE>int ans = 0;<NEW_LINE>PriorityQueue<Integer> maxHeap = new PriorityQueue<>((a, b) -> b - a);<NEW_LINE>PriorityQueue<Integer> minHeap = new PriorityQueue<>();<NEW_LINE>for (int left = 0, right = 0; left < nums.length && right < nums.length; right++) {<NEW_LINE... | .remove(nums[left]); |
1,498,714 | private String ensureBuiltinRole(String roleName, Set<String> expectedPermissions, String name, String description) {<NEW_LINE>RoleImpl previousRole = null;<NEW_LINE>try {<NEW_LINE>previousRole = load(roleName);<NEW_LINE>if (!previousRole.isReadOnly() || !expectedPermissions.equals(previousRole.getPermissions())) {<NEW... | "Unable to save fixed " + roleName + " role, please restart Graylog to fix this.", e); |
1,173,138 | public List<LDUpdate> applyUpdates() {<NEW_LINE>List<LDUpdate> appliedUpdates = new ArrayList<LDUpdate>();<NEW_LINE>LDUpdate update = null;<NEW_LINE>while (ldUpdates.peek() != null) {<NEW_LINE>try {<NEW_LINE>update = ldUpdates.take();<NEW_LINE>} catch (Exception e) {<NEW_LINE>log.error("Error reading link discovery upd... | log.debug("Applying update: {}", update); |
1,132,351 | private CommandNode<S> filterNode(final CommandNode<S> node, final S source) {<NEW_LINE>// We only check the non-context requirement when filtering alias nodes.<NEW_LINE>// Otherwise, we would need to manually craft context builder and reader instances,<NEW_LINE>// which is both incorrect and inefficient. The reason wh... | > result = builder.build(); |
753,804 | private JavaScriptNode desugarForInOrOfBody(ForNode forNode, JavaScriptNode iterator, JumpTargetCloseable<ContinueTarget> jumpTarget) {<NEW_LINE>assert forNode.isForInOrOf();<NEW_LINE>VarRef iteratorVar = environment.createTempVar();<NEW_LINE>JavaScriptNode iteratorInit = iteratorVar.createWriteNode(iterator);<NEW_LINE... | VarRef nextValueVar = environment.createTempVar(); |
1,138,641 | static Pair<Map<String, Set<String>>, Set<Project>> computeModulesAndPackages(final CompilationInfo info, Result tags) {<NEW_LINE>Map<String, Set<String>> module2UsedUnexportedPackages = new HashMap<>();<NEW_LINE>Set<TypeElement> seenClasses = new HashSet<>();<NEW_LINE>Set<Project> seenProjects = new HashSet<>();<NEW_L... | seen = new HashSet<>(); |
1,483,831 | // Updates any existing OAI records for this dataset<NEW_LINE>// Should be called whenever there's a change in the release status of the Dataset<NEW_LINE>// (i.e., when it's published or deaccessioned), so that the timestamps and<NEW_LINE>// on the records could be freshened before the next reexport of the correspondin... | findOaiRecordsByGlobalId(dataset.getGlobalIdString()); |
466,521 | final DeleteFleetsResult executeDeleteFleets(DeleteFleetsRequest deleteFleetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteFleetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | addHandlerContext(HandlerContextKey.SERVICE_ID, "EC2"); |
1,796,313 | private static Number initBigDecimalNoneScale(final byte[] bytes, final int pos, final short len, final short weight, final short sign) {<NEW_LINE>int idx = pos + 8;<NEW_LINE>short d = readShort2(bytes, idx);<NEW_LINE>BigInteger unscaledBI = null;<NEW_LINE>long unscaledInt = d;<NEW_LINE>for (int i = 1; i < len; ++i) {<... | unscaledBI = BigInteger.valueOf(unscaledInt); |
913,504 | private RelNode transformHashJoin(LogicalJoin join) {<NEW_LINE>CBOUtil.RexNodeHolder <MASK><NEW_LINE>CBOUtil.RexNodeHolder otherConditionHolder = new CBOUtil.RexNodeHolder();<NEW_LINE>if (!CBOUtil.checkHashJoinCondition(join, join.getCondition(), join.getLeft().getRowType().getFieldCount(), equalConditionHolder, otherC... | equalConditionHolder = new CBOUtil.RexNodeHolder(); |
1,462,119 | // MRI: prep_stdio<NEW_LINE>public static RubyIO prepStdio(Ruby runtime, OutputStream f, Channel c, int fmode, RubyClass klass, String path) {<NEW_LINE>OpenFile fptr;<NEW_LINE>RubyIO io = prepIO(runtime, c, fmode | OpenFile.PREP | <MASK><NEW_LINE>fptr = io.getOpenFileChecked();<NEW_LINE>// If we can't use native IO, al... | EncodingUtils.DEFAULT_TEXTMODE, klass, path); |
575,992 | protected FormatResult formatOpTemplate(A appender, OpTpl op) {<NEW_LINE>int opcode = op.getOpcode();<NEW_LINE>if (PcodeOp.PTRADD == opcode) {<NEW_LINE>appender.appendLineLabel(op.getInput()[0].getOffset().getReal());<NEW_LINE>return FormatResult.CONTINUE;<NEW_LINE>}<NEW_LINE>appender.appendIndent();<NEW_LINE>if (opcod... | VarnodeTpl output = op.getOutput(); |
622,657 | private static InvokeNode buildInvokeNode(MethodHandleType methodHandleType, InvokeCustomNode invokeCustomNode, MethodInfo callMthInfo) {<NEW_LINE>InvokeType invokeType = convertInvokeType(methodHandleType);<NEW_LINE>int callArgsCount = callMthInfo.getArgsCount();<NEW_LINE>boolean instanceCall = invokeType != InvokeTyp... | = callArgTypes.get(callArgNum++); |
1,834,163 | public static void rgbToLab_F32(Planar<GrayF32> rgb, Planar<GrayF32> lab) {<NEW_LINE>GrayF32 R = rgb.getBand(0);<NEW_LINE>GrayF32 G = rgb.getBand(1);<NEW_LINE>GrayF32 B = rgb.getBand(2);<NEW_LINE>GrayF32 L_ = lab.getBand(0);<NEW_LINE>GrayF32 A_ = lab.getBand(1);<NEW_LINE>GrayF32 B_ = lab.getBand(2);<NEW_LINE>// CONCURR... | .data[indexRgb] / 255f); |
968,105 | public void muteChat(String option) {<NEW_LINE>if (context instanceof ChatNotificationsPreferencesActivity)<NEW_LINE>return;<NEW_LINE>switch(option) {<NEW_LINE>case NOTIFICATIONS_ENABLED:<NEW_LINE>showSnackbar(context, context.getString(R.string.success_unmuting_a_chat));<NEW_LINE>break;<NEW_LINE>case NOTIFICATIONS_DIS... | .string.success_muting_a_chat_for_specific_time, text)); |
477,138 | protected Map<K, V> doGetAllInternal(Set<? extends K> keys, boolean includeNulls) throws StoreAccessException {<NEW_LINE>Map<K, Store.ValueHolder<V>> computedMap = store.bulkComputeIfAbsent(keys<MASK><NEW_LINE>Map<K, V> result = new HashMap<>(computedMap.size());<NEW_LINE>int hits = 0;<NEW_LINE>int keyCount = 0;<NEW_LI... | , new GetAllFunction<>()); |
815,098 | public void testPTPTemporaryQueue_TCP(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>boolean testFailed = false;<NEW_LINE>JMSContext jmsContextQCFTCP = qcfTCP.createContext();<NEW_LINE><MASK><NEW_LINE>JMSProducer jmsProducerQCFTCP = jmsContextQCFTCP.createProducer();<NEW_LINE>JMSC... | TemporaryQueue tempQ = jmsContextQCFTCP.createTemporaryQueue(); |
412,833 | public static void downloadLocalStormCode(Map conf, String topologyId, String masterCodeDir) throws IOException, TException {<NEW_LINE>// STORM_LOCAL_DIR/supervisor/tmp/(UUID)<NEW_LINE>String tmpRoot = StormConfig.supervisorTmpDir(conf) + File.separator + UUID.randomUUID().toString();<NEW_LINE>// STORM-LOCAL-DIR/superv... | FileUtils.copyDirectory(srcDir, destDir); |
1,541,852 | public static GetProjectResponse unmarshall(GetProjectResponse getProjectResponse, UnmarshallerContext _ctx) {<NEW_LINE>getProjectResponse.setRequestId(_ctx.stringValue("GetProjectResponse.RequestId"));<NEW_LINE>getProjectResponse.setHttpStatusCode(_ctx.integerValue("GetProjectResponse.HttpStatusCode"));<NEW_LINE>getPr... | (_ctx.integerValue("GetProjectResponse.Data.TablePrivacyMode")); |
825,857 | final DescribeAssessmentTargetsResult executeDescribeAssessmentTargets(DescribeAssessmentTargetsRequest describeAssessmentTargetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAssessmentTargetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,574,307 | public void needToEmulateMethodAccess(MethodBinding method, ASTNode location) {<NEW_LINE>if (method.isConstructor()) {<NEW_LINE>int <MASK><NEW_LINE>if (severity == ProblemSeverities.Ignore)<NEW_LINE>return;<NEW_LINE>if (method.declaringClass.isEnum())<NEW_LINE>// tolerate emulation for enum constructors, which can only... | severity = computeSeverity(IProblem.NeedToEmulateConstructorAccess); |
373,226 | private void loadNode235() throws IOException, SAXException {<NEW_LINE>DataTypeDescriptionTypeNode node = new DataTypeDescriptionTypeNode(this.context, Identifiers.OpcUa_XmlSchema_Range, new QualifiedName(0, "Range"), new LocalizedText("en", "Range"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), ... | String xml = sb.toString(); |
998,510 | private void parseFrameOptionsElement(boolean addIfNotPresent, Element element, ParserContext parserContext) {<NEW_LINE>BeanDefinitionBuilder builder = BeanDefinitionBuilder.genericBeanDefinition(XFrameOptionsHeaderWriter.class);<NEW_LINE>Element frameElement = (element != null) ? DomUtils.getChildElementByTagName(elem... | add(builder.getBeanDefinition()); |
1,238,726 | public static int askInput(String message, int timeout, int defaultValue, String... options) {<NEW_LINE>ConsoleInput con = ConsoleInput.get(1, timeout, TimeUnit.SECONDS);<NEW_LINE>if (con != null) {<NEW_LINE>StringBuilder msg = new StringBuilder(message + "\n\n");<NEW_LINE>for (int i = 0; i < options.length; i++) {<NEW... | getJbangIcon(), options, defOpt); |
253,703 | public List<RowMap> jsonMaps(Table table, long lastHeartbeatRead, String rowQuery) throws ColumnDefCastException {<NEW_LINE>ArrayList<RowMap> list = new ArrayList<>();<NEW_LINE>Position position = Position.valueOf(this.position, lastHeartbeatRead);<NEW_LINE>Position nextPosition = Position.valueOf(this.nextPosition, la... | .getIncludedColumns(), rowQuery)); |
1,220,587 | private Document readXML(Report report, String fileEntry, InputStream is, final String lineNumAttribName, final String columnNumAttribName) throws IOException, SAXException {<NEW_LINE>final Document doc;<NEW_LINE>SAXParser parser;<NEW_LINE>try {<NEW_LINE>SAXParserFactory factory = SAXParserFactory.newInstance();<NEW_LI... | factory.setFeature("http://xml.org/sax/features/namespaces", true); |
972,644 | final SendVoiceMessageResult executeSendVoiceMessage(SendVoiceMessageRequest sendVoiceMessageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(sendVoiceMessageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,826,159 | public Function newInstance(int position, ObjList<Function> args, IntList argPositions, CairoConfiguration configuration, SqlExecutionContext sqlExecutionContext) throws SqlException {<NEW_LINE>CharSequenceHashSet set = new CharSequenceHashSet();<NEW_LINE>int n = args.size();<NEW_LINE>if (n == 1) {<NEW_LINE>return Bool... | func = args.getQuick(i); |
951,323 | public static GetPipelineInstanceGroupStatusResponse unmarshall(GetPipelineInstanceGroupStatusResponse getPipelineInstanceGroupStatusResponse, UnmarshallerContext _ctx) {<NEW_LINE>getPipelineInstanceGroupStatusResponse.setRequestId(_ctx.stringValue("GetPipelineInstanceGroupStatusResponse.RequestId"));<NEW_LINE>getPipel... | ("GetPipelineInstanceGroupStatusResponse.Object.Groups[" + i + "].Name")); |
1,083,235 | public static FhirPackage load(String zipFilePath) throws IOException, InvalidFhirException {<NEW_LINE>ZipFile zipFile = new ZipFile(new File(zipFilePath));<NEW_LINE>Enumeration<? extends ZipEntry> entries = zipFile.entries();<NEW_LINE>PackageInfo packageInfo = null;<NEW_LINE>Map<String, String> jsonFiles = new HashMap... | getInputStream(entry)), UTF_8); |
1,760,694 | public com.amazonaws.services.kinesis.model.ExpiredIteratorException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.kinesis.model.ExpiredIteratorException expiredIteratorException = new com.amazonaws.services.kinesis.model.ExpiredIteratorException(null);<NEW_LI... | int originalDepth = context.getCurrentDepth(); |
1,574,289 | protected void searchPoiIndex(int left31, int right31, int top31, int bottom31, SearchRequest<Amenity> req, PoiRegion region) throws IOException {<NEW_LINE>int indexOffset = codedIS.getTotalBytesRead();<NEW_LINE>long time = System.currentTimeMillis();<NEW_LINE>TLongHashSet skipTiles = null;<NEW_LINE>if (req.zoom >= 0 &... | ] offsets = offsetsMap.keys(); |
1,061,786 | public double[] calcEquation(List<List<String>> equations, double[] values, List<List<String>> queries) {<NEW_LINE>root = new HashMap<>();<NEW_LINE>rate = new HashMap<>();<NEW_LINE>int n = equations.size();<NEW_LINE>for (int i = 0; i < n; ++i) {<NEW_LINE>String X = equations.get(i).get(0);<NEW_LINE>String Y = equations... | findRoot(Y, Y, 1.0); |
1,223,503 | public static BoolQueryBuilder buildQuery(@Nullable final String sourceType, @Nonnull final Filter sourceEntityFilter, @Nullable final String destinationType, @Nonnull final Filter destinationEntityFilter, @Nonnull final List<String> relationshipTypes, @Nonnull final RelationshipFilter relationshipFilter) {<NEW_LINE>Bo... | RelationshipDirection relationshipDirection = relationshipFilter.getDirection(); |
1,804,472 | protected static void pauseDownloadsFor(DownloadManager[] dms) {<NEW_LINE>final List<DownloadManager> dms_to_pause = new ArrayList<>();<NEW_LINE>for (int i = 0; i < dms.length; i++) {<NEW_LINE>DownloadManager dm = dms[i];<NEW_LINE>if (dm.isPaused() || ManagerUtils.isPauseable(dm)) {<NEW_LINE>dms_to_pause.add(dm);<NEW_L... | COConfigurationManager.setParameter("pause.for.period.default", mins); |
1,672,855 | private TypeDefPatch updateBusinessCapabilityEntity() {<NEW_LINE>final String typeName = "BusinessCapability";<NEW_LINE>TypeDefPatch typeDefPatch = archiveBuilder.getPatchForType(typeName);<NEW_LINE>typeDefPatch.setUpdatedBy(originatorName);<NEW_LINE>typeDefPatch.setUpdateTime(creationDate);<NEW_LINE>List<TypeDefAttrib... | properties = new ArrayList<>(); |
154,978 | private void addActionInOnHandleIntent(EIntentServiceHolder holder, ExecutableElement executableElement, String methodName, JFieldVar actionKeyField) {<NEW_LINE>JMethod onHandleIntentMethod = holder.getOnHandleIntentMethod();<NEW_LINE>// If action match, call the method<NEW_LINE>JInvocation actionCondition = actionKeyF... | arg(holder.getOnHandleIntentIntentAction()); |
386,938 | private Optional<String> migrateStream(Stream stream) {<NEW_LINE>final List<AlarmCallbackConfiguration> <MASK><NEW_LINE>final List<Optional<String>> updatedConfigurations = alarmCallbacks.stream().filter(callbackConfiguration -> callbackConfiguration.getType().equals(EmailAlarmCallback.class.getCanonicalName())).map(ca... | alarmCallbacks = alarmCallbackService.getForStream(stream); |
737,822 | // ----------------------------------------------------------------------------<NEW_LINE>// ANDROID METHODS<NEW_LINE>// ----------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>if (showedActivityFailedScreen(sa... | mReloadRequired = savedInstanceState.getBoolean("reloadRequired"); |
892,923 | static DeletionRequest createFromTask(TaskHandle task, DateTime now) throws Exception {<NEW_LINE>ImmutableMap<String, String> params = ImmutableMap.copyOf(task.extractParams());<NEW_LINE>VKey<EppResource> resourceKey = VKey.create(checkNotNull(params.get(PARAM_RESOURCE_KEY), "Resource to delete not specified"));<NEW_LI... | getClass().getSimpleName()); |
1,139,357 | private static FileObject generateHtml(FileObject appletFile, FileObject buildDir, FileObject classesDir) throws IOException {<NEW_LINE>FileObject htmlFile = buildDir.getFileObject(appletFile.getName(), HTML_EXT);<NEW_LINE>if (htmlFile == null) {<NEW_LINE>htmlFile = buildDir.createData(appletFile.getName(), HTML_EXT);<... | .toURL().toString(); |
1,677,229 | private Publisher<?> query(StandardOperations.Select select) {<NEW_LINE>final Query query = select.query();<NEW_LINE>if (query.hasAggregations()) {<NEW_LINE>throw new UnsupportedOperationException("Aggregations are not yet supported by " + InMemoryBackend.class.getSimpleName());<NEW_LINE>}<NEW_LINE>Stream<Object> strea... | just(stream.count()); |
1,736,828 | final UpdateThingShadowResult executeUpdateThingShadow(UpdateThingShadowRequest updateThingShadowRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateThingShadowRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateThingShadow"); |
1,062,487 | private void parseGroupRoleTag(final Node node, final HashMap<String, Set<String>> groupRoles) {<NEW_LINE>final NamedNodeMap groupAttrMap = node.getAttributes();<NEW_LINE>final Node <MASK><NEW_LINE>if (groupNameAttr == null) {<NEW_LINE>throw new RuntimeException("Error loading role. The role 'name' attribute doesn't ex... | groupNameAttr = groupAttrMap.getNamedItem(GROUPNAME_ATTR); |
759,015 | /* (non-Javadoc)<NEW_LINE>* @see org.springframework.data.repository.query.QueryLookupStrategy#resolveQuery(java.lang.reflect.Method, org.springframework.data.repository.core.RepositoryMetadata, org.springframework.data.projection.ProjectionFactory, org.springframework.data.repository.core.NamedQueries)<NEW_LINE>*/<NEW... | neo4jOperations, mappingContext, queryMethod, projectionFactory); |
217,407 | private ListenableFuture<TransportApiResponseMsg> handle(GetResourceRequestMsg requestMsg) {<NEW_LINE>TenantId tenantId = TenantId.fromUUID(new UUID(requestMsg.getTenantIdMSB()<MASK><NEW_LINE>ResourceType resourceType = ResourceType.valueOf(requestMsg.getResourceType());<NEW_LINE>String resourceKey = requestMsg.getReso... | , requestMsg.getTenantIdLSB())); |
84,769 | public void initialize(Python3Core core) {<NEW_LINE>super.initialize(core);<NEW_LINE>// Should we read TZ env variable?<NEW_LINE>ZoneId defaultZoneId = core.getContext().getEnv().getTimeZone();<NEW_LINE>core.lookupBuiltinModule("time").setAttribute(CURRENT_ZONE_ID, defaultZoneId);<NEW_LINE>TimeZone <MASK><NEW_LINE>Stri... | defaultTimeZone = TimeZone.getTimeZone(defaultZoneId); |
1,049,809 | protected VxlanNetworkVO scripts() {<NEW_LINE>VxlanNetworkVO vo = new VxlanNetworkVO(ovo);<NEW_LINE>String uuid = msg.getResourceUuid() == null ? Platform.getUuid() : msg.getResourceUuid();<NEW_LINE>vo.setUuid(uuid);<NEW_LINE>vo.setVni(r.getVni());<NEW_LINE>vo.setAccountUuid(msg.getSession().getAccountUuid());<NEW_LINE... | .getEntityManager().flush(); |
1,235,193 | public void marshall(VcenterClient vcenterClient, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (vcenterClient == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMarshaller.marshall(v... | vcenterClient.getArn(), ARN_BINDING); |
720,021 | protected void parseSSI(final byte[] in, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {<NEW_LINE>ByteBuffer buffer = new ByteBuffer(in);<NEW_LINE>OutputStream out = response.getOutputStream();<NEW_LINE>final byte[] inctxt = "<!--#include virtual=\"".getBytes();<NEW_LINE... | buffer.indexOf(inctxt, offset); |
925,006 | public void start() throws IOException {<NEW_LINE>String xsltFilenameProperty = getProperty(XSLT_FILENAME);<NEW_LINE>if (xsltFilenameProperty != null) {<NEW_LINE>File file = new File(xsltFilenameProperty);<NEW_LINE>if (file.exists() && file.canRead()) {<NEW_LINE>this.xsltFilename = xsltFilenameProperty;<NEW_LINE>}<NEW_... | = new File(this.xsltFilename); |
284,779 | public void updateRoomUsers(RoomUsersAddBatchRequest body, Long roomId, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'body' wh... | (roomId.toString())); |
1,692,487 | private DynamicSchema typeToDynamicSchema(String type) {<NEW_LINE>ProtobufSchema dep;<NEW_LINE>switch(type) {<NEW_LINE>case PROTOBUF_DECIMAL_TYPE:<NEW_LINE>dep = new ProtobufSchema(io.confluent.protobuf.type.Decimal.getDescriptor());<NEW_LINE>return dep.toDynamicSchema(PROTOBUF_DECIMAL_LOCATION);<NEW_LINE>case PROTOBUF... | protobuf.FloatValue.getDescriptor()); |
1,262,755 | private IOException error(int errno, Path p) {<NEW_LINE>if (errno == EPERM) {<NEW_LINE>return new PathPermissionException(p.toString());<NEW_LINE>} else if (errno == ENOTDIR) {<NEW_LINE>return new ParentNotDirectoryException();<NEW_LINE>} else if (errno == ENOENT) {<NEW_LINE>return new FileNotFoundException(<MASK><NEW_... | p.toString() + ": not found"); |
1,060,767 | public String generate(IStatusBar statusBar, KeyNamePair docTypeKNPair, String docActionSelected) {<NEW_LINE>String info = "";<NEW_LINE>log.info("M_Warehouse_ID=" + m_M_Warehouse_ID);<NEW_LINE>String trxName = Trx.createTrxName("IOG");<NEW_LINE>// trx needs to be committed too<NEW_LINE>Trx trx = Trx.get(trxName, true);... | .getCtx(), "InOutGenerateGen")); |
1,437,154 | protected List<RelNode> genRollbackPhysicalPlans(ExecutionContext executionContext) {<NEW_LINE>DdlContext ddlContext = executionContext.getDdlContext();<NEW_LINE>ddlContext.setDdlType(DdlType.DROP_INDEX);<NEW_LINE>final String indexName = physicalPlanData.getIndexName();<NEW_LINE>final String tableName = physicalPlanDa... | "." + SqlIdentifier.surroundWithBacktick(tableName); |
122,672 | protected void initGoalState(ClusterModel clusterModel, OptimizationOptions optimizationOptions) throws OptimizationFailureException {<NEW_LINE>Set<String> mustHaveTopicLeadersPerBroker = Collections.unmodifiableSet(Utils.getTopicNamesMatchedWithPattern(_balancingConstraint.topicsWithMinLeadersPerBrokerPattern(), clust... | boolean onlyMoveImmigrantReplicas = optimizationOptions.onlyMoveImmigrantReplicas(); |
215,449 | protected ViewState calculatePageVisibility(final ViewState initial) {<NEW_LINE>final Page[] pages <MASK><NEW_LINE>if (LengthUtils.isEmpty(pages)) {<NEW_LINE>return initial;<NEW_LINE>}<NEW_LINE>int firstVisiblePage = initial.pages.firstVisible;<NEW_LINE>int lastVisiblePage = initial.pages.lastVisible;<NEW_LINE>if (Leng... | = ctrl.model.getPages(); |
697,095 | public static void horizontal5(Kernel1D_S32 kernel, GrayS16 input, GrayI16 output, int skip, int divisor) {<NEW_LINE>final short[] dataSrc = input.data;<NEW_LINE>final short[] dataDst = output.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<N... | UtilDownConvolve.computeOffset(skip, radius); |
1,618,922 | public static ConsensusGroupId toConsensusGroupId(RaftGroupId raftGroupId) {<NEW_LINE>byte[] padded = raftGroupId<MASK><NEW_LINE>int validOffset = padded.length - 1;<NEW_LINE>while (padded[validOffset] == PADDING_MAGIC) {<NEW_LINE>validOffset--;<NEW_LINE>}<NEW_LINE>String consensusGroupString = new String(padded, 0, va... | .toByteString().toByteArray(); |
1,703,494 | public void payEnergyBill(DynamicPropertiesStore dynamicPropertiesStore, AccountStore accountStore, ForkController forkController, AccountCapsule origin, AccountCapsule caller, long percent, long originEnergyLimit, EnergyProcessor energyProcessor, long now) throws BalanceInsufficientException {<NEW_LINE>if (receipt.get... | useEnergy(origin, originUsage, now); |
233,056 | public void validate() {<NEW_LINE>super.validate();<NEW_LINE>if (bccRecipients() != null) {<NEW_LINE>bccRecipients().forEach(e -> e.validate());<NEW_LINE>}<NEW_LINE>if (body() != null) {<NEW_LINE>body().validate();<NEW_LINE>}<NEW_LINE>if (ccRecipients() != null) {<NEW_LINE>ccRecipients().forEach(<MASK><NEW_LINE>}<NEW_L... | e -> e.validate()); |
1,709,496 | // Dump the content of this bean returning it as a String<NEW_LINE>public void dump(StringBuffer str, String indent) {<NEW_LINE>String s;<NEW_LINE>BaseBean n;<NEW_LINE>str.append(indent);<NEW_LINE>// NOI18N<NEW_LINE>str.append("ClientData");<NEW_LINE>n = this.getClientData();<NEW_LINE>if (n != null)<NEW_LINE>// NOI18N<... | str.append(indent + "\tnull"); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.