idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
534,010 | final GetObjectInformationResult executeGetObjectInformation(GetObjectInformationRequest getObjectInformationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getObjectInformationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,692,891 | @RequestMapping(value = "/persistent/{rpcId}", method = RequestMethod.DELETE)<NEW_LINE>@ResponseBody<NEW_LINE>public void deleteRpc(@ApiParam(value = RPC_ID_PARAM_DESCRIPTION, required = true) @PathVariable(RPC_ID) String strRpc) throws ThingsboardException {<NEW_LINE>checkParameter("RpcId", strRpc);<NEW_LINE>try {<NEW... | tbClusterService.pushMsgToCore(removeMsg, null); |
1,533,920 | protected boolean isModified(@Nonnull LayoutImpl component) {<NEW_LINE>UISettings settings = UISettings.getInstance();<NEW_LINE>boolean isModified = false;<NEW_LINE>isModified |= !Comparing.equal(component.myFontCombo.getValue(), settings.FONT_FACE);<NEW_LINE>isModified |= !Comparing.equal(component.myFontSizeCombo.get... | .getValue() != settings.MOVE_MOUSE_ON_DEFAULT_BUTTON; |
172,175 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(game.getActivePlayerId());<NEW_LINE>if (player == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Cards cards = new CardsImpl();<NEW_LINE>Card toHand = null;<NEW_LINE>for (Card card : player.getLibrary().getCards(game)) {<NEW_L... | revealCards(source, cards, game); |
864,676 | public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select (select theString as c0, sum(intPrimitive) as c1 from SupportBean group by theString).take(10) as subq from SupportBean_S0";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>String[] <MASK><NEW_LINE>env.sendEventBean(new S... | fields = "c0,c1".split(","); |
1,588,581 | private void generateMdConfigOptions(StringBuilder sb, CodegenConfig config) {<NEW_LINE>sb.append(newline);<NEW_LINE>sb.append("| Option | Description | Values | Default |").append(newline);<NEW_LINE>sb.append("| ------ | ----------- | ------ | ------- |").append(newline);<NEW_LINE>Map<String, CliOption> langCliOptions... | ))).append("</dd>"); |
1,246,098 | public Task closeAsync(List<Module> modules) {<NEW_LINE>Util.err.fine("close: " + modules);<NEW_LINE>ev.log(Events.CLOSE);<NEW_LINE>moduleList.shutDown();<NEW_LINE>List<Task> waitFor = onStartStop.startClose(modules);<NEW_LINE>// [PENDING] this may need to write out changed ModuleInstall externalized<NEW_LINE>// forms.... | SharedClassObject.findObject(instClazz, true); |
439,901 | final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,369,962 | public static void doInstall(DictionaryDescription description) {<NEW_LINE>InputStreamReader input = null;<NEW_LINE>OutputStreamWriter output = null;<NEW_LINE>try {<NEW_LINE>boolean shared;<NEW_LINE>if (description.rAllUsers)<NEW_LINE>shared = true;<NEW_LINE>else if (description.rCurrentUser)<NEW_LINE>shared = false;<N... | "MSG_InputFileNotFound"), NotifyDescriptor.ERROR_MESSAGE)); |
681,139 | public static AnswerCallResponse unmarshall(AnswerCallResponse answerCallResponse, UnmarshallerContext _ctx) {<NEW_LINE>answerCallResponse.setRequestId(_ctx.stringValue("AnswerCallResponse.RequestId"));<NEW_LINE>answerCallResponse.setCode(_ctx.stringValue("AnswerCallResponse.Code"));<NEW_LINE>answerCallResponse.setHttp... | ("AnswerCallResponse.Data.UserContext.SignedSkillGroupIdList[" + i + "]")); |
783,133 | public void start() {<NEW_LINE>if (timer == null) {<NEW_LINE>lastSecondTick = System.currentTimeMillis();<NEW_LINE>timer = UserThread.runPeriodically(() -> {<NEW_LINE>listeners.forEach(Listener::onSecondTick);<NEW_LINE>counter++;<NEW_LINE>if (counter >= 60) {<NEW_LINE>counter = 0;<NEW_LINE>listeners.forEach(Listener::o... | -> listener.onMissedSecondTick(missedMs)); |
828,873 | protected void runGroupSynchronization(MapMarkersGroup group) {<NEW_LINE>List<MapMarker> <MASK><NEW_LINE>List<MapMarker> groupMarkers = new ArrayList<>(group.getMarkers());<NEW_LINE>if (group.getType() == ItineraryType.FAVOURITES) {<NEW_LINE>syncFavouriteGroup(group, existingMarkers);<NEW_LINE>} else if (group.getType(... | existingMarkers = new ArrayList<>(); |
924,885 | private void validateStructuredValue(TomlNode tomlValue, String variableName, Type type) {<NEW_LINE>if (tomlValue.kind() == TomlType.INLINE_TABLE) {<NEW_LINE>tomlValue = ((TomlInlineTableValueNode) tomlValue).toTable();<NEW_LINE>}<NEW_LINE>switch(type.getTag()) {<NEW_LINE>case TypeTags.TUPLE_TAG:<NEW_LINE>validateTuple... | validateValue(tomlValue, variableName, effectiveType); |
452,245 | ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wi wi = this.convertToWrapIn(jsonElement, Wi.... | getApplication(), Application.class); |
1,608,283 | public boolean meets(ToolChainRequirement requirement) {<NEW_LINE>switch(requirement) {<NEW_LINE>case AVAILABLE:<NEW_LINE>case VISUALCPP:<NEW_LINE>case SUPPORTS_32:<NEW_LINE>case SUPPORTS_32_AND_64:<NEW_LINE>return true;<NEW_LINE>case VISUALCPP_2012_OR_NEWER:<NEW_LINE>return version.compareTo(VISUALSTUDIO_2012.getVersi... | equals(VISUALSTUDIO_2019.getVersion()); |
1,123,034 | public StateId createStateId(String name) {<NEW_LINE>if (createdStateIds.containsKey(name))<NEW_LINE>return createdStateIds.get(name);<NEW_LINE>if (stateIndexCounter >= activityStates[0].length) {<NEW_LINE>activityStates = new Object[nuActivities][stateIndexCounter + 1];<NEW_LINE>vehicleDependentActivityStates = new Ob... | = new Object[stateIndexCounter + 1]; |
1,525,048 | public static void main(final String[] args) throws Exception {<NEW_LINE>final Options opts = new Options();<NEW_LINE>opts.addOption(Option.builder("b").longOpt("bootstrap-servers").hasArg().desc("Kafka cluster bootstrap server string (ex: broker:9092)").build());<NEW_LINE>opts.addOption(Option.builder("s").longOpt("sc... | formatter.printHelp("Fraud Service", opts); |
1,800,025 | // GEN-LAST:event_cancelButtonActionPerformed<NEW_LINE>private void sendButtonActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_sendButtonActionPerformed<NEW_LINE>String title = txtIdeaTitle<MASK><NEW_LINE>if (title.isEmpty()) {<NEW_LINE>JOptionPane.showMessageDialog(null, "\"Enter your idea... | .getText().trim(); |
999,346 | public static void convert(InterleavedF32 input, InterleavedI16 output) {<NEW_LINE>if (input.isSubimage() || output.isSubimage()) {<NEW_LINE>final int N = input.width * input.getNumBands();<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, input.height, y -> {<NEW_LINE>for (int y = 0; y < input.height; y++) {<NEW... | int i0 = 0, i1 = N; |
330,796 | public Change createChange(IProgressMonitor pm) throws CoreException {<NEW_LINE>final Map<String, String> arguments = new HashMap<>();<NEW_LINE>String project = null;<NEW_LINE>IJavaProject javaProject = fField.getJavaProject();<NEW_LINE>if (javaProject != null) {<NEW_LINE>project = javaProject.getElementName();<NEW_LIN... | (fGenerateJavadoc).toString()); |
779,950 | final CreateBucketAccessKeyResult executeCreateBucketAccessKey(CreateBucketAccessKeyRequest createBucketAccessKeyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createBucketAccessKeyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | endClientExecution(awsRequestMetrics, request, response); |
1,641,632 | public int compare(Integer head1, Integer head2) {<NEW_LINE>if (head1.equals(head2)) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>VcsRef <MASK><NEW_LINE>VcsRef ref2 = myRefsModel.bestRefToHead(head2);<NEW_LINE>if (ref1 == null) {<NEW_LINE>reportNoRefs(head1);<NEW_LINE>if (ref2 == null) {<NEW_LINE>reportNoRefs(head2);<NEW_L... | ref1 = myRefsModel.bestRefToHead(head1); |
427,041 | public FixResult fix() {<NEW_LINE>// If the failure does not include a suggestion, directly inform users that it cannot be auto<NEW_LINE>// fixed.<NEW_LINE>if (!err.hasSuggestion()) {<NEW_LINE>return FixResult.failure(query, err, "No similar function was found.");<NEW_LINE>}<NEW_LINE>// TODO: If the unrecognized functi... | getErrorPosition().getColumn()); |
792,101 | private void splitGraph(StructureVertex<?> vertex, Structure newStructure, Set<StructureVertex<?>> verticesToVisit, Set<StructureEdge<?, ?>> edgesToVisit) {<NEW_LINE>if (!verticesToVisit.contains(vertex))<NEW_LINE>return;<NEW_LINE>verticesToVisit.remove(vertex);<NEW_LINE>newStructure.vertices.put(vertex.id(), vertex);<... | ).asVariable(), props); |
865,517 | public static DescribeLoadBalancersResponse unmarshall(DescribeLoadBalancersResponse describeLoadBalancersResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeLoadBalancersResponse.setRequestId(_ctx.stringValue("DescribeLoadBalancersResponse.RequestId"));<NEW_LINE>describeLoadBalancersResponse.setPageNumber(_ctx.inte... | ("DescribeLoadBalancersResponse.LoadBalancers[" + i + "].LoadBalancerId")); |
472,212 | private void initializeComponents(int min, int max) {<NEW_LINE>// Min<NEW_LINE>minSlider = new Slider(0, 0, 999999, 1);<NEW_LINE>minSlider.setValue(min);<NEW_LINE>minSlider.addChangeListener(new ChangeListener() {<NEW_LINE><NEW_LINE>public void stateChanged(ChangeEvent event) {<NEW_LINE>ParticleController controller = ... | 0), 0, 0)); |
835,638 | private void _forwardLayout(HttpServletRequest req) throws Exception {<NEW_LINE>HttpSession ses = req.getSession();<NEW_LINE>Layout layout = (Layout) req.getAttribute(WebKeys.LAYOUT);<NEW_LINE>String layoutId = null;<NEW_LINE>if (layout == null || !InodeUtils.isSet(layoutId)) {<NEW_LINE>User user = PortalUtil.getUser(r... | getLayoutAPI().loadLayoutsForUser(user); |
189,351 | private static UserResult makeCredential(CredentialPojo preCredential, String claimJson, Integer cptId, WeIdAuthentication weIdAuthentication) {<NEW_LINE>Map<String, String> credentialInfoMap = buildCredentialInfo(preCredential, claimJson);<NEW_LINE>ResponseData<CredentialTemplateEntity> res = getCptService().queryCred... | DataDriverConstant.DOMAIN_USER_MASTER_SECRET, id, json); |
1,642,742 | public static List<VirtualMachineDescriptorProxy> list() {<NEW_LINE>try {<NEW_LINE>Method attachMethod = VIRTUAL_MACHINE_CLASS.getMethod("list");<NEW_LINE>attachMethod.setAccessible(true);<NEW_LINE>@SuppressWarnings("rawtypes")<NEW_LINE>List<?> list = (List) attachMethod.invoke(null);<NEW_LINE>if (list == null) {<NEW_L... | int size = list.size(); |
1,437,917 | public boolean visit(MySqlShowTopologyStatement x) {<NEW_LINE>final List<SqlNode> operands = new ArrayList<>();<NEW_LINE>SqlNode targetTable = convertToSqlNode(x.getName());<NEW_LINE>if (context.isTestMode()) {<NEW_LINE>String tableName = EagleeyeHelper.rebuildTableName(SQLUtils.normalizeNoTrim(x.getName().getSimpleNam... | convertToSqlNode(x.getWhere()); |
990,873 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE><MASK><NEW_LINE>mSceneView = findViewById(R.id.sceneView);<NEW_LINE>Portal portal = new Portal(getString(R.string.arcgis_online_url));<NEW_LINE>PortalItem portalItem = new PortalItem(portal, getString(R.string.sub... | setContentView(R.layout.activity_main); |
1,766,160 | private Map<String, Set<String>> resolvePortNamesFromContainerImage(URI imageUri) {<NEW_LINE>String imageName = imageUri.getSchemeSpecificPart();<NEW_LINE>Map<String, Set<String>> portsMap = new HashMap<>();<NEW_LINE>Map<String, String> labels = this.containerImageMetadataResolver.getImageLabels(imageName);<NEW_LINE>if... | inboundPortMapping = labels.get(CONFIGURATION_PROPERTIES_INBOUND_PORTS); |
229,353 | public static void updateGridOrListIcon(ImageView gridList, int libraryMode) {<NEW_LINE>if (gridList == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int stringId = R.string.list;<NEW_LINE>if (libraryMode == AppState.MODE_LIST) {<NEW_LINE>gridList.setImageResource(R.drawable.glyphicons_114_justify);<NEW_LINE>stringId = ... | setImageResource(R.drawable.glyphicons_67_tags); |
880,265 | public final Object execute(VirtualFrame frame) {<NEW_LINE>// Reload the arguments<NEW_LINE>Object[] superArguments = new Object[reloadNodes.length];<NEW_LINE>for (int n = 0; n < superArguments.length; n++) {<NEW_LINE>superArguments[n] = reloadNodes<MASK><NEW_LINE>}<NEW_LINE>if (restArgIndex != -1) {<NEW_LINE>final Obj... | [n].execute(frame); |
753,073 | public static // x > 0 means keep original<NEW_LINE>int compareCursors(final String original, final String candidate, final JsonSchemaPrimitive type) {<NEW_LINE>if (original == null && candidate == null) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>if (candidate == null) {<NEW_LINE>return 1;<NEW_LINE>}<NEW_LINE>if (origina... | , Double.parseDouble(candidate)); |
333,212 | /*<NEW_LINE>* Method that will write the latest errors to one file.<NEW_LINE>*/<NEW_LINE>public static void writeLogs() {<NEW_LINE>com.gmt2001.Console.out.println("Generating latest error logs...");<NEW_LINE>String logData = "";<NEW_LINE>// Need to clean this up later.<NEW_LINE>logData += PhantomBot.instance().getBotIn... | System.currentTimeMillis() + ".txt"); |
361,820 | private void insertGroup(long ds_obj_id, final String value, DrawableAttribute<?> groupBy, CaseDbTransaction caseDbTransaction) throws TskCoreException {<NEW_LINE>String cacheKey = Long.toString(ds_obj_id) + "_" + value + "_" + groupBy.getDisplayName();<NEW_LINE>if (groupCache.getIfPresent(cacheKey) != null) {<NEW_LINE... | put(cacheKey, Boolean.TRUE); |
1,832,897 | protected List<DataFrame> addToBuffer(DataFrame input) {<NEW_LINE>int n = input.getNumRows();<NEW_LINE>if (n == 0) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>double[] times = input.getDoubleColumnByName(timeColumn);<NEW_LINE>double maxInputTime = ArrayUtils.max(times);<NEW_LINE>DataFrame restInput =... | double t) -> t >= nextWindowEnd); |
724,265 | private Notification create() {<NEW_LINE>Type type = this.type.getSettingValue();<NEW_LINE>Color foreground = HtmlColors.decode(foregroundColor.getSettingValue());<NEW_LINE>Color background = HtmlColors.decode(backgroundColor.getSettingValue());<NEW_LINE>Notification.Builder b = new Notification.Builder(type);<NEW_LINE... | setSoundFile(soundFile.getSettingValue()); |
1,450,695 | public void execute(@Named(IServiceConstants.ACTIVE_SHELL) Shell shell, @Preference(UIConstants.Preferences.ENABLE_EXPERIMENTAL_FEATURES) boolean enableExperimentalFeatures, IThemeEngine themeEngine) {<NEW_LINE>PreferenceManager pm = new PreferenceManager('/');<NEW_LINE>// $NON-NLS-1$<NEW_LINE>pm.addToRoot(new Preferen... | "language", new LanguagePreferencePage())); |
793,943 | public ExportBackupPlanTemplateResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ExportBackupPlanTemplateResult exportBackupPlanTemplateResult = new ExportBackupPlanTemplateResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe... | int originalDepth = context.getCurrentDepth(); |
524,004 | public SuggestionContext build(SearchExecutionContext context) throws IOException {<NEW_LINE>CompletionSuggestionContext suggestionContext = new CompletionSuggestionContext(context);<NEW_LINE>// copy over common settings to each suggestion builder<NEW_LINE>populateCommonFields(context, suggestionContext);<NEW_LINE>sugg... | ), type.getContextMappings()); |
1,413,586 | private RubyRepeatedField rubyToRepeatedField(ThreadContext context, FieldDescriptor fieldDescriptor, IRubyObject value) {<NEW_LINE>RubyArray arr = value.convertToArray();<NEW_LINE>RubyRepeatedField repeatedField = repeatedFieldForFieldDescriptor(context, fieldDescriptor);<NEW_LINE>IRubyObject[] values = new IRubyObjec... | RubyDescriptor) getDescriptorForField(context, fieldDescriptor); |
1,815,659 | private String queryMicroarchitecture() {<NEW_LINE>String arch = null;<NEW_LINE>Properties archProps = FileUtil.readPropertiesFromFilename(OSHI_ARCHITECTURE_PROPERTIES);<NEW_LINE>// Intel is default, no prefix<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>// AMD and ARM properties have prefix<NEW_LINE>Strin... | getProperty(sb.toString()); |
408,334 | // todo area for optimization<NEW_LINE>private void removeRedundantMappings() {<NEW_LINE>final LocalFileSystem lfs = LocalFileSystem.getInstance();<NEW_LINE>final AllVcsesI <MASK><NEW_LINE>for (Iterator<String> iterator = myVcsToPaths.keySet().iterator(); iterator.hasNext(); ) {<NEW_LINE>final String vcsName = iterator... | allVcses = AllVcses.getInstance(myProject); |
560,386 | protected void consumeInterfaceHeaderName1() {<NEW_LINE>// InterfaceHeaderName ::= Modifiersopt 'interface' 'Identifier'<NEW_LINE>TypeDeclaration typeDecl = new TypeDeclaration(this.compilationUnit.compilationResult);<NEW_LINE>if (this.nestedMethod[this.nestedType] == 0) {<NEW_LINE>if (this.nestedType != 0) {<NEW_LINE>... | .intStack[this.intPtr--]; |
286,356 | // Private methods ---------------------------------------------------------<NEW_LINE>private static Set<URL> readRoots(JavadocRegistry jdr, Set<ClassPath> classpaths, Set<JavadocForBinaryQuery.Result> results) {<NEW_LINE>Set<URL> roots = new HashSet<URL>();<NEW_LINE>List<ClassPath> paths <MASK><NEW_LINE>paths.addAll(j... | = new LinkedList<ClassPath>(); |
542,884 | final ListStudioLifecycleConfigsResult executeListStudioLifecycleConfigs(ListStudioLifecycleConfigsRequest listStudioLifecycleConfigsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listStudioLifecycleConfigsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | false), new ListStudioLifecycleConfigsResultJsonUnmarshaller()); |
1,580,759 | public void handleEvent(Event event) {<NEW_LINE>SimpleTextEntryWindow entryWindow = new SimpleTextEntryWindow("max.sr.window.title", "max.sr.window.message");<NEW_LINE>entryWindow.setPreenteredText(existing, false);<NEW_LINE>entryWindow.selectPreenteredText(true);<NEW_LINE>entryWindow.prompt(new UIInputReceiverListener... | (MessageText.getString("MyTorrentsView.dialog.NumberError.text")); |
137,094 | public void onCreatePreferences(final Bundle savedInstanceState, final String rootKey) {<NEW_LINE>setPreferencesFromResource(R.xml.preferences_services_geocaching_com, rootKey);<NEW_LINE>// Open website Preference<NEW_LINE>final Preference openWebsite = findPreference(getString(R.string.pref_fakekey_gc_website));<NEW_L... | .getInstance().getHost(); |
1,601,275 | private static String computeParameterName(VariableElement parameter, TypeName type) {<NEW_LINE>String rawClassName = type.withoutAnnotations().toString();<NEW_LINE>String name;<NEW_LINE>if (type.isPrimitive() || type.isBoxedPrimitive()) {<NEW_LINE>name = getSmartPrimitiveParameterName(parameter);<NEW_LINE>} else {<NEW... | qualifiers = rawClassName.split("\\."); |
1,196,904 | public static <E> DiffResult<List<E>> diff(Collection<E> first, Collection<E> second) {<NEW_LINE>if ((first == null || first.isEmpty()) && (second == null || second.isEmpty())) {<NEW_LINE>return new DiffResult<List<E>>(new ArrayList<E>(), <MASK><NEW_LINE>}<NEW_LINE>if (first == null || first.isEmpty()) {<NEW_LINE>retur... | new ArrayList<E>()); |
1,035,362 | public Request<UpdateCloudFrontOriginAccessIdentityRequest> marshall(UpdateCloudFrontOriginAccessIdentityRequest updateCloudFrontOriginAccessIdentityRequest) {<NEW_LINE>if (updateCloudFrontOriginAccessIdentityRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>... | t.getMessage(), t); |
9,085 | protected void consumeUnaryExpression(int op, boolean post) {<NEW_LINE>// PreIncrementExpression ::= '++' PushPosition UnaryExpression<NEW_LINE>// PreDecrementExpression ::= '--' PushPosition UnaryExpression<NEW_LINE>// ++ and -- operators<NEW_LINE>// optimize the push/pop<NEW_LINE>// this.intStack has the position of ... | problemReporter().invalidUnaryExpression(leftHandSide); |
1,177,720 | public static void main(String[] args) {<NEW_LINE>final String USAGE = "\n" + "CreateBucket - create an S3 bucket\n\n" + "Usage: CreateBucket <bucketname>\n\n" + "Where:\n" + " bucketname - the name of the bucket to create.\n\n" + "The bucket name must be unique, or an error will result.\n";<NEW_LINE>if (args.length <... | System.out.println(USAGE); |
771,732 | final DescribeAppResult executeDescribeApp(DescribeAppRequest describeAppRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAppRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | false), new DescribeAppResultJsonUnmarshaller()); |
221,292 | final GetSecurityConfigurationResult executeGetSecurityConfiguration(GetSecurityConfigurationRequest getSecurityConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSecurityConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,193,083 | public static SegmentNameGenerator createSegmentNameGenerator(TableConfig tableConfig, Schema schema, @Nullable String prefix, @Nullable String postfix, @Nullable String fixedSegmentName, boolean excludeSequenceId) {<NEW_LINE>String segmentNameGeneratorType = tableConfig.getIndexingConfig().getSegmentNameGeneratorType(... | String tableName = tableConfig.getTableName(); |
774,908 | public List<JobEntity> queryJobList(String userName, String column, String order, int pageNo, int pageSize) throws Exception {<NEW_LINE>LOG.info("queryJobList owner:{}, column:{}, order:{}, pageNo:{}, pageSize:{}", userName, column, order, pageNo, pageSize);<NEW_LINE>List<JobEntity> list = null;<NEW_LINE>try (SqlSessio... | new RowBounds(pageNo, pageSize)); |
954,495 | protected Map<String, Object> createEventData(EventMessage message, DeviceMetadata metadata) {<NEW_LINE>Object value = message.getData();<NEW_LINE>DataType dataType = metadata.getEvent(message.getEvent()).map(EventMetadata::getType).orElseGet(UnknownType::new);<NEW_LINE>Object tempValue = ValueTypeTranslator.translator... | data.put("value", tempValue); |
344,753 | private Tabpanel createTrace() {<NEW_LINE>Tabpanel tabPanel = new Tabpanel();<NEW_LINE>Vbox vbox = new Vbox();<NEW_LINE>vbox.setParent(tabPanel);<NEW_LINE>vbox.setWidth("100%");<NEW_LINE>vbox.setHeight("100%");<NEW_LINE>Hbox hbox = new Hbox();<NEW_LINE>bErrorsOnly = new Checkbox();<NEW_LINE>bErrorsOnly.setLabel(Msg.get... | getColumnNames(Env.getCtx()); |
110,010 | public void showBackReferences(IdEObject idEObject) {<NEW_LINE>System.out.println("Showing back references to: " + idEObject);<NEW_LINE>for (IdEObject object : getValues()) {<NEW_LINE>for (EReference eReference : object.eClass().getEAllReferences()) {<NEW_LINE>if (eReference.isMany()) {<NEW_LINE>List list = (List) obje... | getName() + " " + object); |
847,362 | public void processSpecific(SchemaDescriptor schema) {<NEW_LINE>switch(schema.entityType()) {<NEW_LINE>case NODE:<NEW_LINE>for (int labelTokenId : schema.getEntityTokenIds()) {<NEW_LINE>checkValidInternalToken(null, labelTokenId, tokenHolders.labelTokens(), neoStores.getLabelTokenStore(), (record, id) -> {<NEW_LINE>}, ... | "Schema with given entity type is not supported: " + schema.entityType()); |
1,524,974 | public Function<InitialHandshakeResponse, ProtocolHandshake.Result> errorHandler() {<NEW_LINE>return tuple -> {<NEW_LINE>if (!(tuple.getData().containsKey("status"))) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Object rawStatus = tuple.getData().get("status");<NEW_LINE>if (!(rawStatus instanceof Number)) {<NEW_LINE>ret... | Response response = new Response(null); |
1,819,776 | /*<NEW_LINE>* The conditional operator has three operand expressions. ? appears between the first and second expressions, and<NEW_LINE>* : appears between the second and third expressions.<NEW_LINE>* There are three kinds of conditional expressions, classified according to the second and third operand<NEW_LINE>* expres... | ConditionalExprResolver.getConditionExprHandler(thenExpr, elseExpr); |
192,267 | public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>contentView = View.inflate(getContext(), R.layout.bottom_sheet_contact_attachment_item, null);<NEW_LINE>itemsLayout = contentView.<MASK><NEW_LINE>if (savedInstanceState != null) {<NE... | findViewById(R.id.items_layout); |
327,698 | public void syncJsonToLocal(boolean isWriteToLocal) throws Exception {<NEW_LINE>XmlProcessBase xmlProcess = new XmlProcessBase();<NEW_LINE>xmlProcess.addParseClass(Shardings.class);<NEW_LINE><MASK><NEW_LINE>xmlProcess.addParseClass(Users.class);<NEW_LINE>// init xml<NEW_LINE>xmlProcess.initJaxbClass();<NEW_LINE>// shar... | xmlProcess.addParseClass(DbGroups.class); |
1,004,379 | private void addActionsRow(HintHint hintHint, LightweightHint hint, Editor editor, List<? super AnAction> actions, JComponent grid, boolean newLayout, boolean highlightActions) {<NEW_LINE>if (tooltipAction == null || !hintHint.isAwtTooltip())<NEW_LINE>return;<NEW_LINE>JPanel buttons = new JPanel(new GridBagLayout());<N... | , 12, bottomInset, 4)); |
1,022,441 | public static <T> RecordChangeLog of(@NonNull final T model, @NonNull final Class<T> modelClass, @NonNull final List<RecordChangeLogEntry> entries) {<NEW_LINE>final RecordChangeLogBuilder builder = RecordChangeLog.builder().entries(entries);<NEW_LINE>final Integer createdBy = InterfaceWrapperHelper.<MASK><NEW_LINE>buil... | getValueOrNull(model, InterfaceWrapperHelper.COLUMNNAME_Created); |
1,063,172 | public short[] convert(ByteBuffer buffer) {<NEW_LINE>int offset = 0;<NEW_LINE>long dcAccumulator = 0;<NEW_LINE>short sample;<NEW_LINE>short[] samples;<NEW_LINE>byte b1, b2;<NEW_LINE>samples = new short[<MASK><NEW_LINE>for (int x = 0; x < samples.length; x++) {<NEW_LINE>b1 = buffer.get(offset++);<NEW_LINE>b2 = buffer.ge... | buffer.capacity() / 2]; |
1,212,775 | public String updateWhitelistedSite(@PathVariable("id") Long id, @RequestBody String jsonString, ModelMap m, Principal p) {<NEW_LINE>JsonObject json;<NEW_LINE>WhitelistedSite whitelist = null;<NEW_LINE>try {<NEW_LINE>json = parser.parse(jsonString).getAsJsonObject();<NEW_LINE>whitelist = gson.fromJson(json, Whitelisted... | HttpCodeView.CODE, HttpStatus.BAD_REQUEST); |
938,146 | public boolean analyze(Program program, AddressSetView set, TaskMonitor monitor, final MessageLog log) throws Exception {<NEW_LINE>DisassemblerMessageListener listener = new DisassemblerMessageListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void disassembleMessageReported(String msg) {<NEW_LINE>log.appendMsg(... | , imageBase.add(offset)); |
557,287 | private FileObject generateMavenTester(File testdir, String baseURL) throws IOException {<NEW_LINE>String[] replaceKeys1 = { "TTL_TEST_RESBEANS", "MSG_TEST_RESBEANS_INFO" };<NEW_LINE>String[] replaceKeys2 = { "MSG_TEST_RESBEANS_wadlErr", "MSG_TEST_RESBEANS_No_AJAX", "MSG_TEST_RESBEANS_Resource", "MSG_TEST_RESBEANS_See"... | MiscUtilities.copyFile(testdir, "images/background_border_bottom.gif"); |
1,407,100 | public Engine.DeleteResult deleteRow(final IndexShard indexShard, final String type, final String id, final ConsistencyLevel cl) throws IOException {<NEW_LINE>try {<NEW_LINE>String ksName = indexShard<MASK><NEW_LINE>String cfName = SchemaManager.typeToCfName(indexShard.mapperService().keyspace(), type);<NEW_LINE>Docume... | .mapperService().keyspace(); |
45,811 | public TimeSeriesDatabaseConnection deleteByIdWithResponse(String id, Context context) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '... | "The resource ID '%s' is not valid. Missing path segment" + " 'timeSeriesDatabaseConnections'.", id))); |
1,103,530 | public void write(Annotation annotation) {<NEW_LINE>// name hash<NEW_LINE>buf.putInt(annotation.getType().getId());<NEW_LINE>byte features = 0;<NEW_LINE>if (annotation.isSpanNodeValid()) {<NEW_LINE>features |= ((byte) 1);<NEW_LINE>}<NEW_LINE>if (annotation.hasFieldValue()) {<NEW_LINE>features |= ((byte) 2);<NEW_LINE>}<... | SerializationException("Could not serialize annotation, associated SpanNode not found (" + annotation + ")"); |
215,806 | protected Bundle doInBackground(Bundle... params) {<NEW_LINE>Bundle args = params[0];<NEW_LINE>Bundle result = new Bundle(args);<NEW_LINE>String <MASK><NEW_LINE>String comment = args.getString("message");<NEW_LINE>try {<NEW_LINE>Map<String, String> requestParams = new HashMap<String, String>();<NEW_LINE>requestParams.p... | link = args.getString("link"); |
1,305,353 | final UpdateJobQueueResult executeUpdateJobQueue(UpdateJobQueueRequest updateJobQueueRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateJobQueueRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | false), new UpdateJobQueueResultJsonUnmarshaller()); |
1,090,415 | private String expandRedirectUri(HttpServletRequest request, ClientRegistration clientRegistration, String action) {<NEW_LINE>Map<String, String> <MASK><NEW_LINE>uriVariables.put("registrationId", clientRegistration.getRegistrationId());<NEW_LINE>UriComponents uriComponents = UriComponentsBuilder.fromHttpUrl(UrlUtils.b... | uriVariables = new HashMap<>(); |
828,575 | public void onClick(View v) {<NEW_LINE>controller.clearSelectedText();<NEW_LINE><MASK><NEW_LINE>String trim = editText.getText().toString().trim();<NEW_LINE>if (Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB) {<NEW_LINE>ClipboardManager clipboard = (ClipboardManager) c.getSystemService(Context.CLIPBOARD_SERVICE)... | Context c = anchor.getContext(); |
1,545,322 | /*<NEW_LINE>* this routine deals with -er, -or, -ier, and -eer. The -izer ending is<NEW_LINE>* always converted to -ize<NEW_LINE>*/<NEW_LINE>private void erAndOrEndings() {<NEW_LINE>int old_k = k;<NEW_LINE>// YCS<NEW_LINE>if (word.charAt(k) != 'r')<NEW_LINE>return;<NEW_LINE>char word_char;<NEW_LINE>word.setLength(j + 4... | word.setLength(j + 1); |
1,424,976 | public static void constraintMatrix3x6(DMatrixRMaj L, DMatrixRMaj y, DogArray<Point3D_F64> controlWorldPts, List<Point3D_F64>[] nullPts) {<NEW_LINE>int row = 0;<NEW_LINE>for (int i = 0; i < 3; i++) {<NEW_LINE>Point3D_F64 ci = controlWorldPts.get(i);<NEW_LINE>Point3D_F64 vai = nullPts[0].get(i);<NEW_LINE>Point3D_F64 vbi... | + ya * yb + za * zb; |
318,734 | public void build(ScheduleOptions scheduleOptions, HttpOperationResult result, String pipelineName, PipelineScheduleOptions pipelineScheduleOptions, HealthStateType healthStateType) {<NEW_LINE>for (MaterialForScheduling materialForScheduling : pipelineScheduleOptions.getMaterials()) {<NEW_LINE>try {<NEW_LINE>MaterialCo... | ), materialForScheduling.getRevision()); |
1,619,140 | public OResultSet executeSimple(OCommandContext ctx) {<NEW_LINE>OInternalResultSet result = new OInternalResultSet();<NEW_LINE>String operation = this.operation.getStringValue();<NEW_LINE>Object key = this.key.execute(new OResultInternal(), ctx);<NEW_LINE>if (key == null) {<NEW_LINE>key = this.key.getDefaultAlias();<NE... | = this.value.getDefaultAlias(); |
1,236,882 | final DeleteEmailTemplateResult executeDeleteEmailTemplate(DeleteEmailTemplateRequest deleteEmailTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteEmailTemplateRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DeleteEmai... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,787,231 | protected void paintComponent(Graphics g) {<NEW_LINE>if (isPatch()) {<NEW_LINE>paintComponentPatch(g);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Graphics2D g2 = (Graphics2D) g.create();<NEW_LINE>try {<NEW_LINE>// we should be painting the background behind the painter if we have one<NEW_LINE>// this prevents issues with buf... | getWidth(), getHeight()); |
901,559 | private void appendReference(StringBuilder sb, ReferenceTree ref, List<? extends DocTree> label, TreePath docPath, DocCommentTree doc, DocTrees trees) {<NEW_LINE>String sig = ref.getSignature();<NEW_LINE>if (sig != null && sig.length() > 0) {<NEW_LINE>if (sig.charAt(0) == '#') {<NEW_LINE>// NOI18N<NEW_LINE>sig = sig.su... | , doc, trees, null)); |
912,279 | public void changeRole(Locale locale, Properties ctx) {<NEW_LINE>Env.setCtx(ctx);<NEW_LINE>getDesktop().getSession().setAttribute(Attributes.PREFERRED_LOCALE, locale);<NEW_LINE>Locales.setThreadLocal(locale);<NEW_LINE>new Login(Env.getCtx());<NEW_LINE>MUser user = MUser.get(ctx<MASK><NEW_LINE>boolean loginWithValue = M... | , Env.getAD_User_ID(ctx)); |
300,950 | public void before(Object target, Object[] args) {<NEW_LINE>if (isDebug) {<NEW_LINE>logger.beforeInterceptor(target, args);<NEW_LINE>}<NEW_LINE>if (target == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Trace trace = traceContext.currentRawTraceObject();<NEW_LINE>if (trace == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LIN... | SpanEventRecorder recorder = trace.traceBlockBegin(); |
266,892 | protected Report reportSumByNameRound(List<TaskStats> taskStats) {<NEW_LINE>// aggregate by task name and round<NEW_LINE>LinkedHashMap<String, TaskStats> p2 = new LinkedHashMap<>();<NEW_LINE>int reported = 0;<NEW_LINE>for (final TaskStats stat1 : taskStats) {<NEW_LINE>if (stat1.getElapsed() >= 0) {<NEW_LINE>// consider... | .getTask().getName(); |
249,265 | public void reduce(final IntWritable key, final Iterator<Text> values, OutputCollector<IntWritable, Text> output, final Reporter reporter) throws IOException {<NEW_LINE>String component_id_str = "";<NEW_LINE>Set<Integer> from_nodes_set = new HashSet<Integer>();<NEW_LINE>boolean self_contained = false;<NEW_LINE>String l... | add(key.get()); |
1,612,592 | public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception {<NEW_LINE>if (evt instanceof CompleteEvent) {<NEW_LINE>final CompleteReason reason = ((CompleteEvent) evt).getReason();<NEW_LINE>if ((reason != SESSION_COMPLETE) && (edgeProxy != null)) {<NEW_LINE>LOG.error("Origin request completed... | reason.name(), true); |
1,165,786 | public void symbolAdded(Symbol symbol, int type, Address addr, Object oldValue, Object newValue) {<NEW_LINE>if (recordChanges) {<NEW_LINE>if (!symbol.isDynamic()) {<NEW_LINE><MASK><NEW_LINE>((ProgramDBChangeSet) changeSet).symbolAdded(symbolID);<NEW_LINE>}<NEW_LINE>if (symbol instanceof VariableSymbolDB) {<NEW_LINE>lon... | long symbolID = symbol.getID(); |
1,505,653 | void mouseDragged(MouseEvent e) {<NEW_LINE>if ((e.getModifiersEx() & InputEvent.BUTTON1_DOWN_MASK) == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int x = e.getX();<NEW_LINE><MASK><NEW_LINE>if (((Math.abs(x - mouseDownX) > 3) || (Math.abs(y - mouseDownY) > 3))) {<NEW_LINE>didDrag = true;<NEW_LINE>if (selectionHandler.isIn... | int y = e.getY(); |
13,094 | public static IllegalAccessMaps generate(ModuleFinder finder) {<NEW_LINE>Map<String, ModuleDescriptor> map = new HashMap<>();<NEW_LINE>finder.findAll().stream().map(ModuleReference::descriptor).forEach(md -> md.packages().forEach(pn -> map.<MASK><NEW_LINE>Map<String, Set<String>> concealedPackagesToOpen = new HashMap<>... | putIfAbsent(pn, md))); |
1,018,678 | public int select(int j) {<NEW_LINE>preComputeCardinalities();<NEW_LINE>if (highLowContainer.size() == 0) {<NEW_LINE>// empty: .select is out-of-bounds<NEW_LINE>throw new IllegalArgumentException("select " + j + " when the cardinality is " + this.getCardinality());<NEW_LINE>}<NEW_LINE>int maxCardinality = highToCumulat... | Arrays.binarySearch(highToCumulatedCardinality, j); |
1,450,081 | public void sendRequest(final MetaInfoRequest request) {<NEW_LINE>try {<NEW_LINE>String metaServer = queryMetaServerAddress();<NEW_LINE>if (metaServer == null)<NEW_LINE>return;<NEW_LINE>final Channel channel = getOrCreateChannel(metaServer);<NEW_LINE>final Datagram datagram = RemotingBuilder.buildRequestDatagram(Comman... | debug("request meta info exception. {}", request, e); |
1,058,791 | // This function checks whether the size of arguments fits in an expected signature.<NEW_LINE>private List<String> convert(List<NoMatchingSignatureError.ArgumentType> arguments, NoMatchingSignatureError.Signature signature) {<NEW_LINE>List<String> argumentTemplates = new ArrayList<>();<NEW_LINE>// A wildcard to match A... | String sourceType = argument.getDataType(); |
1,070,409 | public ColumnFamilyOptions createColumnFamilyOptions(ColumnFamilyOptions currentOptions) {<NEW_LINE>if (currentOptions == null)<NEW_LINE>currentOptions = new ColumnFamilyOptions();<NEW_LINE>currentOptions.setMergeOperator(new StringAppendOperator());<NEW_LINE>BlockBasedTableConfig tableOptions = new BlockBasedTableConf... | setWriteBufferSize(64 * SizeUnit.MB); |
15,149 | private boolean canExport(JFileChooser chooser) {<NEW_LINE><MASK><NEW_LINE>String defaultExtention = selectedBuilder.getFileTypes()[0].getExtension();<NEW_LINE>try {<NEW_LINE>if (!file.getPath().endsWith(defaultExtention)) {<NEW_LINE>file = new File(file.getPath() + defaultExtention);<NEW_LINE>selectedFile = file;<NEW_... | File file = chooser.getSelectedFile(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.